Searched refs:RULE_TEMPORARY_ALLOW_METERED (Results 1 – 4 of 4) sorted by relevance
25 import static android.net.NetworkPolicyManager.RULE_TEMPORARY_ALLOW_METERED;35 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED, "2 (TEMPORARY_ALLOW_METERED)"); in testUidRulesToString()44 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString()46 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_REJECT_ALL, in testUidRulesToString()70 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()71 & RULE_TEMPORARY_ALLOW_METERED); in testMeteredNetworksMask()72 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()73 & (RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()74 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()75 & (RULE_TEMPORARY_ALLOW_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()[all …]
73 public static final int RULE_TEMPORARY_ALLOW_METERED = 1 << 1; field in NetworkPolicyManager
58 import static android.net.NetworkPolicyManager.RULE_TEMPORARY_ALLOW_METERED;2868 newRule = RULE_TEMPORARY_ALLOW_METERED; in updateRulesForDataUsageRestrictionsLocked()2904 if ((newRule & RULE_TEMPORARY_ALLOW_METERED) != 0) { in updateRulesForDataUsageRestrictionsLocked()2915 } else if ((oldRule & RULE_TEMPORARY_ALLOW_METERED) != 0) { in updateRulesForDataUsageRestrictionsLocked()
36 import static android.net.NetworkPolicyManager.RULE_TEMPORARY_ALLOW_METERED;950 || (uidRules & RULE_TEMPORARY_ALLOW_METERED) != 0; in isNetworkWithLinkPropertiesBlocked()4049 && (uidRules & RULE_TEMPORARY_ALLOW_METERED) == 0) { in enforceMeteredApnPolicy()