Home
last modified time | relevance | path

Searched refs:POLICY_ALLOW_METERED_BACKGROUND (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java19 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()
DNetworkPolicyManagerService.java60 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/
DNetworkPolicyManagerTest.java21 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/
DNetworkPolicyManagerServiceTest.java26 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/
DCompanionDeviceManagerService.java491 NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND);
495 NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND);
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java75 public static final int POLICY_ALLOW_METERED_BACKGROUND = 0x4; field in NetworkPolicyManager
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt44545 Landroid/net/NetworkPolicyManager;->POLICY_ALLOW_METERED_BACKGROUND:I