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.java56 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND;
717 setUidPolicyUncheckedUL(uid, POLICY_ALLOW_METERED_BACKGROUND, false); in addDefaultRestrictBackgroundWhitelistUidsUL()
2343 final int newPolicy = policy | POLICY_ALLOW_METERED_BACKGROUND; in readPolicyAL()
2601 final boolean wasWhitelisted = oldPolicy == POLICY_ALLOW_METERED_BACKGROUND; in setUidPolicyUncheckedUL()
2602 final boolean isWhitelisted = policy == POLICY_ALLOW_METERED_BACKGROUND; in setUidPolicyUncheckedUL()
2939 return (mUidPolicy.get(uid) & POLICY_ALLOW_METERED_BACKGROUND) != 0 in getRestrictBackgroundByCaller()
4161 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;
501 mService.setUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist()
504 assertUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist()
506 .onUidPoliciesChanged(APP_ID_A, POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist()
616 assertUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in removeRestrictBackgroundWhitelist()
762 assertUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest()
763 assertUidPolicy(UID_B, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest()
764 assertUidPolicy(UID_C, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest()
779 mService.setUidPolicy(UID_E, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest()
780 assertUidPolicy(UID_E, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java58 public static final int POLICY_ALLOW_METERED_BACKGROUND = 0x4; field in NetworkPolicyManager
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java491 NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND);
495 NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND);
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt47800 Landroid/net/NetworkPolicyManager;->POLICY_ALLOW_METERED_BACKGROUND:I