Merge "Update interface quota limit when network stats updated" am: 2dcf4c0227 am: a992b3aa83 am: 661741804d
Change-Id: I118f05adf0d5fc4aa665d45b3896d898dfeb3924
This commit is contained in:
@@ -873,6 +873,8 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
|
|||||||
+ mPersistThreshold);
|
+ mPersistThreshold);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final long oldGlobalAlertBytes = mGlobalAlertBytes;
|
||||||
|
|
||||||
// update and persist if beyond new thresholds
|
// update and persist if beyond new thresholds
|
||||||
final long currentTime = mClock.millis();
|
final long currentTime = mClock.millis();
|
||||||
synchronized (mStatsLock) {
|
synchronized (mStatsLock) {
|
||||||
@@ -886,8 +888,9 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
|
|||||||
mUidTagRecorder.maybePersistLocked(currentTime);
|
mUidTagRecorder.maybePersistLocked(currentTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
// re-arm global alert
|
if (oldGlobalAlertBytes != mGlobalAlertBytes) {
|
||||||
registerGlobalAlert();
|
registerGlobalAlert();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user