Searched refs:POLICY_ALLOW_METERED_BACKGROUND (Results 1 – 6 of 6) 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; 246 POLICY_ALLOW_METERED_BACKGROUND); in listRestrictBackgroundAllowlist() 315 return setUidPolicy(POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundAllowlist() 319 return resetUidPolicy("not whitelisted", POLICY_ALLOW_METERED_BACKGROUND); in removeRestrictBackgroundAllowlist()
|
D | NetworkPolicyManagerService.java | 98 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND; 1027 setUidPolicyUncheckedUL(uid, POLICY_ALLOW_METERED_BACKGROUND, false); in addDefaultRestrictBackgroundAllowlistUidsUL() 2891 final int newPolicy = policy | POLICY_ALLOW_METERED_BACKGROUND; 3143 final boolean wasAllowed = oldPolicy == POLICY_ALLOW_METERED_BACKGROUND; 3144 final boolean isAllowed = policy == POLICY_ALLOW_METERED_BACKGROUND; 3555 return (mUidPolicy.get(uid) & POLICY_ALLOW_METERED_BACKGROUND) != 0 5432 final boolean isAllowed = (uidPolicy & POLICY_ALLOW_METERED_BACKGROUND) != 0;
|
/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 | 65 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND; 719 mService.setUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundAllowlist() 722 assertUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundAllowlist() 724 .onUidPoliciesChanged(APP_ID_A, POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundAllowlist() 904 assertUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in removeRestrictBackgroundAllowlist() 1049 assertUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest() 1050 assertUidPolicy(UID_B, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest() 1051 assertUidPolicy(UID_C, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest() 1066 mService.setUidPolicy(UID_E, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest() 1067 assertUidPolicy(UID_E, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest() [all …]
|
/frameworks/base/services/companion/java/com/android/server/companion/ |
D | CompanionDeviceManagerService.java | 788 NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND); in updateSpecialAccessPermissionAsSystem() 792 NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND); in updateSpecialAccessPermissionAsSystem()
|
/frameworks/base/core/java/android/net/ |
D | NetworkPolicyManager.java | 88 public static final int POLICY_ALLOW_METERED_BACKGROUND = 0x4; field in NetworkPolicyManager
|