Home
last modified time | relevance | path

Searched refs:POLICY_REJECT_METERED_BACKGROUND (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java21 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()
DNetworkPolicyManagerService.java62 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
2356 if ((policy & POLICY_REJECT_METERED_BACKGROUND) != 0) { in readPolicyAL()
2618 final boolean wasBlacklisted = oldPolicy == POLICY_REJECT_METERED_BACKGROUND; in setUidPolicyUncheckedUL()
2619 final boolean isBlacklisted = policy == POLICY_REJECT_METERED_BACKGROUND; in setUidPolicyUncheckedUL()
2958 if (policy == POLICY_REJECT_METERED_BACKGROUND) { in getRestrictBackgroundByCaller()
4253 final boolean isBlacklisted = (uidPolicy & POLICY_REJECT_METERED_BACKGROUND) != 0; in updateRulesForDataUsageRestrictionsULInner()
5099 for (int uid : getUidsWithPolicy(POLICY_REJECT_METERED_BACKGROUND)) { in factoryReset()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java23 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/
DNetworkPolicyManagerServiceTest.java28 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
659 mService.setUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist()
661 assertUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist()
663 .onUidPoliciesChanged(APP_ID_A, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist()
693 assertUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); // Sanity check. in removeRestrictBackgroundBlacklist()
715 assertUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in testBlacklistedAppIsNotNotifiedWhenRestrictBackgroundIsOn()
744 mService.setUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in testWhitelistedAppIsNotifiedWhenBlacklisted()
769 assertUidPolicy(UID_E, POLICY_REJECT_METERED_BACKGROUND); in restrictBackgroundListsTest()
785 mService.setUidPolicy(UID_B, POLICY_REJECT_METERED_BACKGROUND); in restrictBackgroundListsTest()
786 assertUidPolicy(UID_B, POLICY_REJECT_METERED_BACKGROUND); in restrictBackgroundListsTest()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java70 public static final int POLICY_REJECT_METERED_BACKGROUND = 0x1; field in NetworkPolicyManager
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt44547 Landroid/net/NetworkPolicyManager;->POLICY_REJECT_METERED_BACKGROUND:I