Searched refs:POLICY_ALLOW_METERED_BACKGROUND (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerShellCommand.java | 19 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND; 223 POLICY_ALLOW_METERED_BACKGROUND); in listRestrictBackgroundWhitelist() 285 return setUidPolicy(POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist() 289 return resetUidPolicy("not whitelisted", POLICY_ALLOW_METERED_BACKGROUND); in removeRestrictBackgroundWhitelist()
|
D | NetworkPolicyManagerService.java | 60 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND; 722 setUidPolicyUncheckedUL(uid, POLICY_ALLOW_METERED_BACKGROUND, false); in addDefaultRestrictBackgroundWhitelistUidsUL() 2362 final int newPolicy = policy | POLICY_ALLOW_METERED_BACKGROUND; in readPolicyAL() 2620 final boolean wasWhitelisted = oldPolicy == POLICY_ALLOW_METERED_BACKGROUND; in setUidPolicyUncheckedUL() 2621 final boolean isWhitelisted = policy == POLICY_ALLOW_METERED_BACKGROUND; in setUidPolicyUncheckedUL() 2965 return (mUidPolicy.get(uid) & POLICY_ALLOW_METERED_BACKGROUND) != 0 in getRestrictBackgroundByCaller() 4254 final boolean isWhitelisted = (uidPolicy & POLICY_ALLOW_METERED_BACKGROUND) != 0; in updateRulesForDataUsageRestrictionsULInner()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkPolicyManagerTest.java | 21 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND; 83 uidPoliciesToStringTest(POLICY_ALLOW_METERED_BACKGROUND, in testUidPoliciesToString()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 26 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND; 502 mService.setUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist() 505 assertUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist() 507 .onUidPoliciesChanged(APP_ID_A, POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist() 617 assertUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in removeRestrictBackgroundWhitelist() 763 assertUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest() 764 assertUidPolicy(UID_B, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest() 765 assertUidPolicy(UID_C, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest() 780 mService.setUidPolicy(UID_E, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest() 781 assertUidPolicy(UID_E, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest() [all …]
|
/frameworks/base/services/companion/java/com/android/server/companion/ |
D | CompanionDeviceManagerService.java | 491 NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND); 495 NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND);
|
/frameworks/base/core/java/android/net/ |
D | NetworkPolicyManager.java | 75 public static final int POLICY_ALLOW_METERED_BACKGROUND = 0x4; field in NetworkPolicyManager
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 44545 Landroid/net/NetworkPolicyManager;->POLICY_ALLOW_METERED_BACKGROUND:I
|