Add setPollForce to module API am: 6dff4abc88
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1987469 Change-Id: Icc0825a99853b565c31f9718d6bd4850408b067d
This commit is contained in:
@@ -27,7 +27,6 @@ import android.annotation.Nullable;
|
||||
import android.annotation.RequiresPermission;
|
||||
import android.annotation.SystemApi;
|
||||
import android.annotation.SystemService;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.WorkerThread;
|
||||
import android.app.usage.NetworkStats.Bucket;
|
||||
import android.compat.annotation.UnsupportedAppUsage;
|
||||
@@ -192,9 +191,13 @@ public class NetworkStatsManager {
|
||||
}
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
/**
|
||||
* Set poll force flag to indicate that calling any subsequent query method will force a stats
|
||||
* poll.
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.R, trackingBug = 170729553)
|
||||
@TestApi
|
||||
@SystemApi(client = MODULE_LIBRARIES)
|
||||
public void setPollForce(boolean pollForce) {
|
||||
if (pollForce) {
|
||||
mFlags |= FLAG_POLL_FORCE;
|
||||
|
||||
Reference in New Issue
Block a user