Merge "Update NPMS internal state when app idle parole state is changed." into oc-dev
am: 67e802dd5e
Change-Id: I88cacca1d3a576b69dc0aaa6806b6c2901afa696
This commit is contained in:
@@ -2992,7 +2992,12 @@ public class NetworkPolicyManagerService extends INetworkPolicyManager.Stub {
|
||||
// Skip if it had no restrictions to begin with
|
||||
if ((oldRules & MASK_ALL_NETWORKS) == 0) continue;
|
||||
}
|
||||
updateRulesForPowerRestrictionsUL(uid, oldRules, paroled);
|
||||
final int newUidRules = updateRulesForPowerRestrictionsUL(uid, oldRules, paroled);
|
||||
if (newUidRules == RULE_NONE) {
|
||||
mUidRules.delete(uid);
|
||||
} else {
|
||||
mUidRules.put(uid, newUidRules);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user