Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java23 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;
38 uidRulesToStringTest(RULE_REJECT_ALL, "64 (REJECT_ALL)"); in testUidRulesToString()
42 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_REJECT_ALL, in testUidRulesToString()
46 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_REJECT_ALL, in testUidRulesToString()
50 uidRulesToStringTest(RULE_REJECT_METERED | RULE_REJECT_ALL, in testUidRulesToString()
68 & (RULE_ALLOW_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()
75 & (RULE_TEMPORARY_ALLOW_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()
82 & (RULE_REJECT_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()
98 assertEquals(RULE_REJECT_ALL, MASK_ALL_NETWORKS in testAllNetworksMask()
99 & RULE_REJECT_ALL); in testAllNetworksMask()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java80 public static final int RULE_REJECT_ALL = 1 << 6; field in NetworkPolicyManager
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java32 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java56 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;
3000 newRule = isWhitelisted ? RULE_ALLOW_ALL : RULE_REJECT_ALL; in updateRulesForPowerRestrictionsLocked()
3028 } else if ((newRule & RULE_REJECT_ALL) != 0) { in updateRulesForPowerRestrictionsLocked()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java34 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;
960 allowed = (uidRules & RULE_REJECT_ALL) == 0; in isNetworkWithLinkPropertiesBlocked()