Searched refs:RULE_REJECT_ALL (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkPolicyManagerTest.java | 27 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/ |
D | NetworkPolicyManager.java | 88 public static final int RULE_REJECT_ALL = 1 << 6; field in NetworkPolicyManager
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 32 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL; 1695 expectedBlockedStates.add(new Pair<>(true, RULE_REJECT_ALL)); in testIsUidNetworkingBlocked() 1706 expectedBlockedStates.add(new Pair<>(true, RULE_REJECT_ALL)); in testIsUidNetworkingBlocked() 1717 expectedBlockedStates.add(new Pair<>(true, RULE_REJECT_ALL)); in testIsUidNetworkingBlocked()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 62 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL; 4333 newRule = isWhitelisted ? RULE_ALLOW_ALL : RULE_REJECT_ALL; in updateRulesForPowerRestrictionsULInner() 4355 } else if (hasRule(newRule, RULE_REJECT_ALL)) { in updateRulesForPowerRestrictionsULInner() 5000 else if (hasRule(uidRules, RULE_REJECT_ALL)) { in isUidNetworkingBlockedInternal()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 71 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL; 5933 mService.setUidRulesChanged(RULE_REJECT_ALL); in testNetworkBlockedStatus() 5978 mService.setUidRulesChanged(RULE_REJECT_ALL); in testNetworkBlockedStatusBeforeAndAfterConnect()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 47809 Landroid/net/NetworkPolicyManager;->RULE_REJECT_ALL:I
|