Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java28 import static android.net.NetworkPolicyManager.RULE_REJECT_METERED;
50 uidRulesToStringTest(RULE_REJECT_METERED, "4 (REJECT_METERED)"); in testUidRulesToString()
66 uidRulesToStringTest(RULE_REJECT_METERED | RULE_ALLOW_ALL, in testUidRulesToString()
69 uidRulesToStringTest(RULE_REJECT_METERED | RULE_REJECT_ALL, in testUidRulesToString()
110 assertEquals(RULE_REJECT_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
111 & RULE_REJECT_METERED); in testMeteredNetworksMask()
112 assertEquals(RULE_REJECT_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
113 & (RULE_REJECT_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()
114 assertEquals(RULE_REJECT_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
115 & (RULE_REJECT_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java113 public static final int RULE_REJECT_METERED = 1 << 2; field in NetworkPolicyManager
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java33 import static android.net.NetworkPolicyManager.RULE_REJECT_METERED;
1751 expectedBlockedStates.add(new Pair<>(true, RULE_REJECT_METERED)); in testIsUidNetworkingBlocked()
1762 expectedBlockedStates.add(new Pair<>(true, RULE_REJECT_METERED)); in testIsUidNetworkingBlocked()
1773 expectedBlockedStates.add(new Pair<>(false, RULE_REJECT_METERED)); in testIsUidNetworkingBlocked()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java67 import static android.net.NetworkPolicyManager.RULE_REJECT_METERED;
4260 newRule = RULE_REJECT_METERED; in updateRulesForDataUsageRestrictionsULInner()
4269 newRule = RULE_REJECT_METERED; in updateRulesForDataUsageRestrictionsULInner()
4320 } else if (hasRule(newRule, RULE_REJECT_METERED) in updateRulesForDataUsageRestrictionsULInner()
4321 || hasRule(oldRule, RULE_REJECT_METERED)) { in updateRulesForDataUsageRestrictionsULInner()
4324 if (hasRule(oldRule, RULE_REJECT_METERED) && isWhitelisted) { in updateRulesForDataUsageRestrictionsULInner()
5141 else if (hasRule(uidRules, RULE_REJECT_METERED)) { in isUidNetworkingBlockedInternal()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java76 import static android.net.NetworkPolicyManager.RULE_REJECT_METERED;
5907 setUidRulesChanged(RULE_REJECT_METERED); in testNetworkBlockedStatus()
5913 setUidRulesChanged(RULE_REJECT_METERED); in testNetworkBlockedStatus()
5950 setUidRulesChanged(RULE_REJECT_METERED); in testNetworkBlockedStatusBeforeAndAfterConnect()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt44555 Landroid/net/NetworkPolicyManager;->RULE_REJECT_METERED:I