Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java22 import static android.net.NetworkPolicyManager.POLICY_NONE;
80 uidPoliciesToStringTest(POLICY_NONE, "0 (NONE)"); in testUidPoliciesToString()
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java54 public static final int POLICY_NONE = 0x0; field in NetworkPolicyManager
342 if (uidPolicies == POLICY_NONE) {
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java27 import static android.net.NetworkPolicyManager.POLICY_NONE;
496 assertUidPolicy(UID_A, POLICY_NONE); in addRestrictBackgroundWhitelist()
621 mService.setUidPolicy(UID_A, POLICY_NONE); in removeRestrictBackgroundWhitelist()
624 assertUidPolicy(UID_A, POLICY_NONE); in removeRestrictBackgroundWhitelist()
625 mPolicyListener.waitAndVerify().onUidPoliciesChanged(APP_ID_A, POLICY_NONE); in removeRestrictBackgroundWhitelist()
654 assertUidPolicy(UID_A, POLICY_NONE); // Sanity check. in addRestrictBackgroundBlacklist()
696 mService.setUidPolicy(UID_A, POLICY_NONE); in removeRestrictBackgroundBlacklist()
698 assertUidPolicy(UID_A, POLICY_NONE); in removeRestrictBackgroundBlacklist()
700 .onUidPoliciesChanged(APP_ID_A, POLICY_NONE); in removeRestrictBackgroundBlacklist()
767 assertUidPolicy(UID_D, POLICY_NONE); in restrictBackgroundListsTest()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java20 import static android.net.NetworkPolicyManager.POLICY_NONE;
280 mInterface.setUidPolicy(uid, POLICY_NONE); in resetUidPolicy()
DNetworkPolicyManagerService.java57 import static android.net.NetworkPolicyManager.POLICY_NONE;
2336 final int policy = mUidPolicy.get(uid, POLICY_NONE); in readPolicyAL()
2500 if (policy == POLICY_NONE) continue; in writePolicyAL()
2544 final int oldPolicy = mUidPolicy.get(uid, POLICY_NONE); in setUidPolicy()
2564 final int oldPolicy = mUidPolicy.get(uid, POLICY_NONE); in addUidPolicy()
2582 final int oldPolicy = mUidPolicy.get(uid, POLICY_NONE); in removeUidPolicy()
2625 if (policy == POLICY_NONE) { in setUidPolicyUncheckedUL()
2645 return mUidPolicy.get(uid, POLICY_NONE); in getUidPolicy()
2658 if ((policy == POLICY_NONE && uidPolicy == POLICY_NONE) || in getUidsWithPolicy()
4155 final int uidPolicy = mUidPolicy.get(uid, POLICY_NONE); in updateRulesForDataUsageRestrictionsULInner()
[all …]