Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java21 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
214 POLICY_REJECT_METERED_BACKGROUND); in listRestrictBackgroundBlacklist()
273 return setUidPolicy(POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist()
277 return resetUidPolicy("not blacklisted", POLICY_REJECT_METERED_BACKGROUND); in removeRestrictBackgroundBlacklist()
DNetworkPolicyManagerService.java58 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
2271 if ((policy & POLICY_REJECT_METERED_BACKGROUND) != 0) { in readPolicyAL()
2530 final boolean wasBlacklisted = oldPolicy == POLICY_REJECT_METERED_BACKGROUND; in setUidPolicyUncheckedUL()
2531 final boolean isBlacklisted = policy == POLICY_REJECT_METERED_BACKGROUND; in setUidPolicyUncheckedUL()
2858 if (policy == POLICY_REJECT_METERED_BACKGROUND) { in getRestrictBackgroundByCaller()
3989 final boolean isBlacklisted = (uidPolicy & POLICY_REJECT_METERED_BACKGROUND) != 0; in updateRulesForDataUsageRestrictionsULInner()
4778 for (int uid : getUidsWithPolicy(POLICY_REJECT_METERED_BACKGROUND)) { in factoryReset()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java22 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
80 uidPoliciesToStringTest(POLICY_REJECT_METERED_BACKGROUND, in testUidPoliciesToString()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java28 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
653 mService.setUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist()
655 assertUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist()
657 .onUidPoliciesChanged(APP_ID_A, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist()
687 assertUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); // Sanity check. in removeRestrictBackgroundBlacklist()
709 assertUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in testBlacklistedAppIsNotNotifiedWhenRestrictBackgroundIsOn()
738 mService.setUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in testWhitelistedAppIsNotifiedWhenBlacklisted()
763 assertUidPolicy(UID_E, POLICY_REJECT_METERED_BACKGROUND); in restrictBackgroundListsTest()
779 mService.setUidPolicy(UID_B, POLICY_REJECT_METERED_BACKGROUND); in restrictBackgroundListsTest()
780 assertUidPolicy(UID_B, POLICY_REJECT_METERED_BACKGROUND); in restrictBackgroundListsTest()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java54 public static final int POLICY_REJECT_METERED_BACKGROUND = 0x1; field in NetworkPolicyManager