Home
last modified time | relevance | path

Searched refs:RULE_ALLOW_METERED (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java25 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/
DNetworkPolicyManager.java103 public static final int RULE_ALLOW_METERED = 1 << 0; field in NetworkPolicyManager
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java30 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/
DNetworkPolicyManagerService.java64 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/
DConnectivityServiceTest.java73 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED;
5924 setUidRulesChanged(RULE_ALLOW_METERED); in testNetworkBlockedStatus()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt44552 Landroid/net/NetworkPolicyManager;->RULE_ALLOW_METERED:I