Searched refs:RULE_REJECT_ALL (Results 1 – 5 of 5) sorted by relevance
23 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 …]
80 public static final int RULE_REJECT_ALL = 1 << 6; field in NetworkPolicyManager
32 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;
56 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()
34 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;960 allowed = (uidRules & RULE_REJECT_ALL) == 0; in isNetworkWithLinkPropertiesBlocked()