Snap for 6088378 from 1e89d231a9f3e4b9a81ec3ff9aad5a5218eaeb2a to rvc-release
Change-Id: Iea954b44fc66a76cf4b6016c963e6dbf1e8eb4e6
This commit is contained in:
@@ -21,8 +21,8 @@ import static com.android.internal.util.Preconditions.checkNotNull;
|
||||
import android.annotation.Nullable;
|
||||
import android.annotation.SystemService;
|
||||
import android.annotation.TestApi;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.app.usage.NetworkStats.Bucket;
|
||||
import android.compat.annotation.UnsupportedAppUsage;
|
||||
import android.content.Context;
|
||||
import android.net.ConnectivityManager;
|
||||
import android.net.DataUsageRequest;
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
package android.net.nsd;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.UnsupportedAppUsage;
|
||||
import android.os.Parcelable;
|
||||
import android.compat.annotation.UnsupportedAppUsage;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import android.text.TextUtils;
|
||||
import android.util.ArrayMap;
|
||||
import android.util.Base64;
|
||||
import android.util.Log;
|
||||
import android.util.ArrayMap;
|
||||
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.InetAddress;
|
||||
|
||||
@@ -873,6 +873,8 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
|
||||
+ mPersistThreshold);
|
||||
}
|
||||
|
||||
final long oldGlobalAlertBytes = mGlobalAlertBytes;
|
||||
|
||||
// update and persist if beyond new thresholds
|
||||
final long currentTime = mClock.millis();
|
||||
synchronized (mStatsLock) {
|
||||
@@ -886,8 +888,9 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
|
||||
mUidTagRecorder.maybePersistLocked(currentTime);
|
||||
}
|
||||
|
||||
// re-arm global alert
|
||||
registerGlobalAlert();
|
||||
if (oldGlobalAlertBytes != mGlobalAlertBytes) {
|
||||
registerGlobalAlert();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user