Searched refs:RULE_ALLOW_ALL (Results 1 – 6 of 6) sorted by relevance
20 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;37 uidRulesToStringTest(RULE_ALLOW_ALL, "32 (ALLOW_ALL)"); in testUidRulesToString()40 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString()44 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString()48 uidRulesToStringTest(RULE_REJECT_METERED | RULE_ALLOW_ALL, in testUidRulesToString()66 & (RULE_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()73 & (RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()80 & (RULE_REJECT_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()89 assertEquals(RULE_ALLOW_ALL, MASK_ALL_NETWORKS in testAllNetworksMask()90 & RULE_ALLOW_ALL); in testAllNetworksMask()[all …]
27 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;318 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testScreenChangesRules()327 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testScreenChangesRules()347 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testScreenChangesRules()359 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testPolicyNone()368 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testPolicyNone()377 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testPolicyNone()399 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testPolicyReject()421 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testPolicyRejectAddRemove()440 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testPolicyRejectAddRemove()[all …]
78 public static final int RULE_ALLOW_ALL = 1 << 5; field in NetworkPolicyManager
51 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;2997 newRule = RULE_ALLOW_ALL; in updateRulesForPowerRestrictionsLocked()3000 newRule = isWhitelisted ? RULE_ALLOW_ALL : RULE_REJECT_ALL; in updateRulesForPowerRestrictionsLocked()3026 if (newRule == RULE_NONE || (newRule & RULE_ALLOW_ALL) != 0) { in updateRulesForPowerRestrictionsLocked()
31 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
31 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;4046 uidRules = mUidRules.get(uid, RULE_ALLOW_ALL); in enforceMeteredApnPolicy()