Searched refs:RULE_ALLOW_METERED (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkPolicyManagerTest.java | 25 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED; 48 uidRulesToStringTest(RULE_ALLOW_METERED, "1 (ALLOW_METERED)"); in testUidRulesToString() 54 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString() 57 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_REJECT_ALL, in testUidRulesToString() 96 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask() 97 & RULE_ALLOW_METERED); in testMeteredNetworksMask() 98 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask() 99 & (RULE_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask() 100 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask() 101 & (RULE_ALLOW_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkPolicyManager.java | 103 public static final int RULE_ALLOW_METERED = 1 << 0; field in NetworkPolicyManager
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 30 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED; 1749 expectedBlockedStates.add(new Pair<>(false, RULE_ALLOW_METERED)); in testIsUidNetworkingBlocked() 1760 expectedBlockedStates.add(new Pair<>(false, RULE_ALLOW_METERED)); in testIsUidNetworkingBlocked() 1771 expectedBlockedStates.add(new Pair<>(false, RULE_ALLOW_METERED)); in testIsUidNetworkingBlocked()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 64 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED; 4265 newRule = RULE_ALLOW_METERED; in updateRulesForDataUsageRestrictionsULInner() 4271 newRule = RULE_ALLOW_METERED; in updateRulesForDataUsageRestrictionsULInner() 4330 } else if (hasRule(newRule, RULE_ALLOW_METERED) in updateRulesForDataUsageRestrictionsULInner() 4331 || hasRule(oldRule, RULE_ALLOW_METERED)) { in updateRulesForDataUsageRestrictionsULInner() 5144 else if (hasRule(uidRules, RULE_ALLOW_METERED)) { in isUidNetworkingBlockedInternal() 5208 && !hasRule(uidRules, RULE_ALLOW_METERED) in isUidRestrictedOnMeteredNetworks()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 73 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED; 5924 setUidRulesChanged(RULE_ALLOW_METERED); in testNetworkBlockedStatus()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 44552 Landroid/net/NetworkPolicyManager;->RULE_ALLOW_METERED:I
|