Home
last modified time | relevance | path

Searched refs:RULE_TEMPORARY_ALLOW_METERED (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java28 import static android.net.NetworkPolicyManager.RULE_TEMPORARY_ALLOW_METERED;
48 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED, "2 (TEMPORARY_ALLOW_METERED)"); in testUidRulesToString()
59 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString()
62 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_REJECT_ALL, in testUidRulesToString()
102 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
103 & RULE_TEMPORARY_ALLOW_METERED); in testMeteredNetworksMask()
104 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
105 & (RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()
106 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
107 & (RULE_TEMPORARY_ALLOW_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java79 public static final int RULE_TEMPORARY_ALLOW_METERED = 1 << 1; field in NetworkPolicyManager
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java64 import static android.net.NetworkPolicyManager.RULE_TEMPORARY_ALLOW_METERED;
3999 newRule = RULE_TEMPORARY_ALLOW_METERED; in updateRulesForDataUsageRestrictionsULInner()
4032 if (hasRule(newRule, RULE_TEMPORARY_ALLOW_METERED)) { in updateRulesForDataUsageRestrictionsULInner()
4043 } else if (hasRule(oldRule, RULE_TEMPORARY_ALLOW_METERED)) { in updateRulesForDataUsageRestrictionsULInner()
4819 if (hasRule(uidRules, RULE_TEMPORARY_ALLOW_METERED)) { in isUidNetworkingBlockedInternal()
4859 && !hasRule(uidRules, RULE_TEMPORARY_ALLOW_METERED); in isUidRestrictedOnMeteredNetworks()