Searched refs:RULE_ALLOW_METERED (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkPolicyManagerTest.java | 24 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED; 47 uidRulesToStringTest(RULE_ALLOW_METERED, "1 (ALLOW_METERED)"); in testUidRulesToString() 53 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString() 56 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_REJECT_ALL, in testUidRulesToString() 95 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask() 96 & RULE_ALLOW_METERED); in testMeteredNetworksMask() 97 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask() 98 & (RULE_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask() 99 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask() 100 & (RULE_ALLOW_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkPolicyManager.java | 77 public static final int RULE_ALLOW_METERED = 1 << 0; field in NetworkPolicyManager
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 60 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED; 4001 newRule = RULE_ALLOW_METERED; in updateRulesForDataUsageRestrictionsULInner() 4007 newRule = RULE_ALLOW_METERED; in updateRulesForDataUsageRestrictionsULInner() 4066 } else if (hasRule(newRule, RULE_ALLOW_METERED) in updateRulesForDataUsageRestrictionsULInner() 4067 || hasRule(oldRule, RULE_ALLOW_METERED)) { in updateRulesForDataUsageRestrictionsULInner() 4815 if (hasRule(uidRules, RULE_ALLOW_METERED)) { in isUidNetworkingBlockedInternal() 4858 && !hasRule(uidRules, RULE_ALLOW_METERED) in isUidRestrictedOnMeteredNetworks()
|