Searched refs:RULE_TEMPORARY_ALLOW_METERED (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkPolicyManagerTest.java | 29 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/ |
D | NetworkPolicyManager.java | 81 public static final int RULE_TEMPORARY_ALLOW_METERED = 1 << 1; field in NetworkPolicyManager
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 34 import static android.net.NetworkPolicyManager.RULE_TEMPORARY_ALLOW_METERED; 1692 expectedBlockedStates.add(new Pair<>(false, RULE_TEMPORARY_ALLOW_METERED)); in testIsUidNetworkingBlocked() 1703 expectedBlockedStates.add(new Pair<>(false, RULE_TEMPORARY_ALLOW_METERED)); in testIsUidNetworkingBlocked() 1714 expectedBlockedStates.add(new Pair<>(false, RULE_TEMPORARY_ALLOW_METERED)); in testIsUidNetworkingBlocked()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 64 import static android.net.NetworkPolicyManager.RULE_TEMPORARY_ALLOW_METERED; 4170 newRule = RULE_TEMPORARY_ALLOW_METERED; in updateRulesForDataUsageRestrictionsULInner() 4203 if (hasRule(newRule, RULE_TEMPORARY_ALLOW_METERED)) { in updateRulesForDataUsageRestrictionsULInner() 4214 } else if (hasRule(oldRule, RULE_TEMPORARY_ALLOW_METERED)) { in updateRulesForDataUsageRestrictionsULInner() 5012 else if (hasRule(uidRules, RULE_TEMPORARY_ALLOW_METERED)) { in isUidNetworkingBlockedInternal() 5074 && !hasRule(uidRules, RULE_TEMPORARY_ALLOW_METERED); in isUidRestrictedOnMeteredNetworks()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 47811 Landroid/net/NetworkPolicyManager;->RULE_TEMPORARY_ALLOW_METERED:I
|