Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java29 import static android.net.NetworkPolicyManager.RULE_TEMPORARY_ALLOW_METERED;
49 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED, "2 (TEMPORARY_ALLOW_METERED)"); in testUidRulesToString()
60 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString()
63 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_REJECT_ALL, in testUidRulesToString()
103 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
104 & RULE_TEMPORARY_ALLOW_METERED); in testMeteredNetworksMask()
105 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
106 & (RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()
107 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
108 & (RULE_TEMPORARY_ALLOW_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java108 public static final int RULE_TEMPORARY_ALLOW_METERED = 1 << 1; field in NetworkPolicyManager
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java34 import static android.net.NetworkPolicyManager.RULE_TEMPORARY_ALLOW_METERED;
1750 expectedBlockedStates.add(new Pair<>(false, RULE_TEMPORARY_ALLOW_METERED)); in testIsUidNetworkingBlocked()
1761 expectedBlockedStates.add(new Pair<>(false, RULE_TEMPORARY_ALLOW_METERED)); in testIsUidNetworkingBlocked()
1772 expectedBlockedStates.add(new Pair<>(false, RULE_TEMPORARY_ALLOW_METERED)); in testIsUidNetworkingBlocked()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java68 import static android.net.NetworkPolicyManager.RULE_TEMPORARY_ALLOW_METERED;
4263 newRule = RULE_TEMPORARY_ALLOW_METERED; in updateRulesForDataUsageRestrictionsULInner()
4296 if (hasRule(newRule, RULE_TEMPORARY_ALLOW_METERED)) { in updateRulesForDataUsageRestrictionsULInner()
4307 } else if (hasRule(oldRule, RULE_TEMPORARY_ALLOW_METERED)) { in updateRulesForDataUsageRestrictionsULInner()
5147 else if (hasRule(uidRules, RULE_TEMPORARY_ALLOW_METERED)) { in isUidNetworkingBlockedInternal()
5209 && !hasRule(uidRules, RULE_TEMPORARY_ALLOW_METERED); in isUidRestrictedOnMeteredNetworks()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt44556 Landroid/net/NetworkPolicyManager;->RULE_TEMPORARY_ALLOW_METERED:I