Home
last modified time | relevance | path

Searched refs:RULE_ALLOW_ALL (Results 1 – 5 of 5) 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.java119 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;
1752 expectedBlockedStates.add(new Pair<>(true, RULE_ALLOW_ALL)); in testIsUidNetworkingBlocked()
1763 expectedBlockedStates.add(new Pair<>(false, RULE_ALLOW_ALL)); in testIsUidNetworkingBlocked()
1774 expectedBlockedStates.add(new Pair<>(false, RULE_ALLOW_ALL)); in testIsUidNetworkingBlocked()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java63 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
4423 newRule = RULE_ALLOW_ALL; in updateRulesForPowerRestrictionsULInner()
4426 newRule = isWhitelisted ? RULE_ALLOW_ALL : RULE_REJECT_ALL; in updateRulesForPowerRestrictionsULInner()
4446 if (newRule == RULE_NONE || hasRule(newRule, RULE_ALLOW_ALL)) { in updateRulesForPowerRestrictionsULInner()
5204 uidRules = mUidRules.get(uid, RULE_ALLOW_ALL); in isUidRestrictedOnMeteredNetworks()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt44551 Landroid/net/NetworkPolicyManager;->RULE_ALLOW_ALL:I