Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java27 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;
52 uidRulesToStringTest(RULE_REJECT_ALL, "64 (REJECT_ALL)"); in testUidRulesToString()
57 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_REJECT_ALL, in testUidRulesToString()
63 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_REJECT_ALL, in testUidRulesToString()
69 uidRulesToStringTest(RULE_REJECT_METERED | RULE_REJECT_ALL, in testUidRulesToString()
101 & (RULE_ALLOW_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()
108 & (RULE_TEMPORARY_ALLOW_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()
115 & (RULE_REJECT_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()
132 assertEquals(RULE_REJECT_ALL, MASK_ALL_NETWORKS in testAllNetworksMask()
133 & RULE_REJECT_ALL); in testAllNetworksMask()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java124 public static final int RULE_REJECT_ALL = 1 << 6; field in NetworkPolicyManager
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java32 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;
1753 expectedBlockedStates.add(new Pair<>(true, RULE_REJECT_ALL)); in testIsUidNetworkingBlocked()
1764 expectedBlockedStates.add(new Pair<>(true, RULE_REJECT_ALL)); in testIsUidNetworkingBlocked()
1775 expectedBlockedStates.add(new Pair<>(true, RULE_REJECT_ALL)); in testIsUidNetworkingBlocked()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java66 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;
4426 newRule = isWhitelisted ? RULE_ALLOW_ALL : RULE_REJECT_ALL; in updateRulesForPowerRestrictionsULInner()
4448 } else if (hasRule(newRule, RULE_REJECT_ALL)) { in updateRulesForPowerRestrictionsULInner()
5135 else if (hasRule(uidRules, RULE_REJECT_ALL)) { in isUidNetworkingBlockedInternal()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java75 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;
5903 setUidRulesChanged(RULE_REJECT_ALL); in testNetworkBlockedStatus()
5948 setUidRulesChanged(RULE_REJECT_ALL); in testNetworkBlockedStatusBeforeAndAfterConnect()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt44554 Landroid/net/NetworkPolicyManager;->RULE_REJECT_ALL:I