Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7603db47 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Update interface quota limit when network stats updated" am: bfc4589d...

Merge "Update interface quota limit when network stats updated" am: bfc4589d am: a992b3aa am: b372e3f2

Change-Id: I118f05adf0d5fc4aa665d45b3896d898dfeb3924
parents bdd7d4fd b372e3f2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1032,6 +1032,7 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
            // READ_NETWORK_USAGE_HISTORY permission above.

            synchronized (mNetworkPoliciesSecondLock) {
                updateNetworkRulesNL();
                updateNetworkEnabledNL();
                updateNotificationsNL();
            }
+5 −2
Original line number Diff line number Diff line
@@ -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,9 +888,10 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
            mUidTagRecorder.maybePersistLocked(currentTime);
        }

        // re-arm global alert
        if (oldGlobalAlertBytes != mGlobalAlertBytes) {
            registerGlobalAlert();
        }
    }

    @Override
    public DataUsageRequest registerUsageCallback(String callingPackage,