Searched refs:RULE_ALLOW_ALL (Results 1 – 3 of 3) sorted by relevance
23 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;50 uidRulesToStringTest(RULE_ALLOW_ALL, "32 (ALLOW_ALL)"); in testUidRulesToString()53 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString()59 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString()65 uidRulesToStringTest(RULE_REJECT_METERED | RULE_ALLOW_ALL, in testUidRulesToString()98 & (RULE_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()105 & (RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()112 & (RULE_REJECT_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()122 assertEquals(RULE_ALLOW_ALL, MASK_ALL_NETWORKS in testAllNetworksMask()123 & RULE_ALLOW_ALL); in testAllNetworksMask()[all …]
84 public static final int RULE_ALLOW_ALL = 1 << 5; field in NetworkPolicyManager
59 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;4158 newRule = RULE_ALLOW_ALL; in updateRulesForPowerRestrictionsULInner()4161 newRule = isWhitelisted ? RULE_ALLOW_ALL : RULE_REJECT_ALL; in updateRulesForPowerRestrictionsULInner()4181 if (newRule == RULE_NONE || hasRule(newRule, RULE_ALLOW_ALL)) { in updateRulesForPowerRestrictionsULInner()4854 uidRules = mUidRules.get(uid, RULE_ALLOW_ALL); in isUidRestrictedOnMeteredNetworks()