Home
last modified time | relevance | path

Searched refs:RULE_ALLOW_ALL (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java24 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
51 uidRulesToStringTest(RULE_ALLOW_ALL, "32 (ALLOW_ALL)"); in testUidRulesToString()
54 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString()
60 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString()
66 uidRulesToStringTest(RULE_REJECT_METERED | RULE_ALLOW_ALL, in testUidRulesToString()
99 & (RULE_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()
106 & (RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()
113 & (RULE_REJECT_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()
123 assertEquals(RULE_ALLOW_ALL, MASK_ALL_NETWORKS in testAllNetworksMask()
124 & RULE_ALLOW_ALL); in testAllNetworksMask()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java86 public static final int RULE_ALLOW_ALL = 1 << 5; field in NetworkPolicyManager
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java29 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
1694 expectedBlockedStates.add(new Pair<>(true, RULE_ALLOW_ALL)); in testIsUidNetworkingBlocked()
1705 expectedBlockedStates.add(new Pair<>(false, RULE_ALLOW_ALL)); in testIsUidNetworkingBlocked()
1716 expectedBlockedStates.add(new Pair<>(false, RULE_ALLOW_ALL)); in testIsUidNetworkingBlocked()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java59 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
4330 newRule = RULE_ALLOW_ALL; in updateRulesForPowerRestrictionsULInner()
4333 newRule = isWhitelisted ? RULE_ALLOW_ALL : RULE_REJECT_ALL; in updateRulesForPowerRestrictionsULInner()
4353 if (newRule == RULE_NONE || hasRule(newRule, RULE_ALLOW_ALL)) { in updateRulesForPowerRestrictionsULInner()
5069 uidRules = mUidRules.get(uid, RULE_ALLOW_ALL); in isUidRestrictedOnMeteredNetworks()