Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java19 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND;
209 POLICY_ALLOW_METERED_BACKGROUND); in listRestrictBackgroundWhitelist()
265 return setUidPolicy(POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist()
269 return resetUidPolicy("not whitelisted", POLICY_ALLOW_METERED_BACKGROUND); in removeRestrictBackgroundWhitelist()
DNetworkPolicyManagerService.java56 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND;
700 setUidPolicyUncheckedUL(uid, POLICY_ALLOW_METERED_BACKGROUND, false); in addDefaultRestrictBackgroundWhitelistUidsUL()
2277 final int newPolicy = policy | POLICY_ALLOW_METERED_BACKGROUND; in readPolicyAL()
2532 final boolean wasWhitelisted = oldPolicy == POLICY_ALLOW_METERED_BACKGROUND; in setUidPolicyUncheckedUL()
2533 final boolean isWhitelisted = policy == POLICY_ALLOW_METERED_BACKGROUND; in setUidPolicyUncheckedUL()
2865 return (mUidPolicy.get(uid) & POLICY_ALLOW_METERED_BACKGROUND) != 0 in getRestrictBackgroundByCaller()
3990 final boolean isWhitelisted = (uidPolicy & POLICY_ALLOW_METERED_BACKGROUND) != 0; in updateRulesForDataUsageRestrictionsULInner()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java20 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND;
82 uidPoliciesToStringTest(POLICY_ALLOW_METERED_BACKGROUND, in testUidPoliciesToString()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java26 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND;
496 mService.setUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist()
499 assertUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist()
501 .onUidPoliciesChanged(APP_ID_A, POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist()
611 assertUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in removeRestrictBackgroundWhitelist()
757 assertUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest()
758 assertUidPolicy(UID_B, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest()
759 assertUidPolicy(UID_C, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest()
774 mService.setUidPolicy(UID_E, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest()
775 assertUidPolicy(UID_E, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java56 public static final int POLICY_ALLOW_METERED_BACKGROUND = 0x4; field in NetworkPolicyManager
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java468 NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND);
472 NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND);