Searched refs:RULE_REJECT_ALL (Results 1 – 3 of 3) sorted by relevance
26 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;51 uidRulesToStringTest(RULE_REJECT_ALL, "64 (REJECT_ALL)"); in testUidRulesToString()56 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_REJECT_ALL, in testUidRulesToString()62 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_REJECT_ALL, in testUidRulesToString()68 uidRulesToStringTest(RULE_REJECT_METERED | RULE_REJECT_ALL, in testUidRulesToString()100 & (RULE_ALLOW_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()107 & (RULE_TEMPORARY_ALLOW_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()114 & (RULE_REJECT_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()131 assertEquals(RULE_REJECT_ALL, MASK_ALL_NETWORKS in testAllNetworksMask()132 & RULE_REJECT_ALL); in testAllNetworksMask()[all …]
86 public static final int RULE_REJECT_ALL = 1 << 6; field in NetworkPolicyManager
62 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;4161 newRule = isWhitelisted ? RULE_ALLOW_ALL : RULE_REJECT_ALL; in updateRulesForPowerRestrictionsULInner()4183 } else if (hasRule(newRule, RULE_REJECT_ALL)) { in updateRulesForPowerRestrictionsULInner()4803 if (hasRule(uidRules, RULE_REJECT_ALL)) { in isUidNetworkingBlockedInternal()