Searched refs:POLICY_REJECT_METERED_BACKGROUND (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerShellCommand.java | 21 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND; 228 POLICY_REJECT_METERED_BACKGROUND); in listRestrictBackgroundBlacklist() 293 return setUidPolicy(POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist() 297 return resetUidPolicy("not blacklisted", POLICY_REJECT_METERED_BACKGROUND); in removeRestrictBackgroundBlacklist()
|
D | NetworkPolicyManagerService.java | 58 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND; 2337 if ((policy & POLICY_REJECT_METERED_BACKGROUND) != 0) { in readPolicyAL() 2599 final boolean wasBlacklisted = oldPolicy == POLICY_REJECT_METERED_BACKGROUND; in setUidPolicyUncheckedUL() 2600 final boolean isBlacklisted = policy == POLICY_REJECT_METERED_BACKGROUND; in setUidPolicyUncheckedUL() 2932 if (policy == POLICY_REJECT_METERED_BACKGROUND) { in getRestrictBackgroundByCaller() 4160 final boolean isBlacklisted = (uidPolicy & POLICY_REJECT_METERED_BACKGROUND) != 0; in updateRulesForDataUsageRestrictionsULInner() 4964 for (int uid : getUidsWithPolicy(POLICY_REJECT_METERED_BACKGROUND)) { in factoryReset()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkPolicyManagerTest.java | 23 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND; 81 uidPoliciesToStringTest(POLICY_REJECT_METERED_BACKGROUND, in testUidPoliciesToString()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 28 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND; 658 mService.setUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist() 660 assertUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist() 662 .onUidPoliciesChanged(APP_ID_A, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist() 692 assertUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); // Sanity check. in removeRestrictBackgroundBlacklist() 714 assertUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in testBlacklistedAppIsNotNotifiedWhenRestrictBackgroundIsOn() 743 mService.setUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in testWhitelistedAppIsNotifiedWhenBlacklisted() 768 assertUidPolicy(UID_E, POLICY_REJECT_METERED_BACKGROUND); in restrictBackgroundListsTest() 784 mService.setUidPolicy(UID_B, POLICY_REJECT_METERED_BACKGROUND); in restrictBackgroundListsTest() 785 assertUidPolicy(UID_B, POLICY_REJECT_METERED_BACKGROUND); in restrictBackgroundListsTest() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkPolicyManager.java | 56 public static final int POLICY_REJECT_METERED_BACKGROUND = 0x1; field in NetworkPolicyManager
|