Searched refs:RULE_REJECT_METERED (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkPolicyManagerTest.java | 28 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/ |
D | NetworkPolicyManager.java | 113 public static final int RULE_REJECT_METERED = 1 << 2; field in NetworkPolicyManager
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 33 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/ |
D | NetworkPolicyManagerService.java | 67 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/ |
D | ConnectivityServiceTest.java | 76 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/ |
D | hiddenapi-greylist-max-o.txt | 44555 Landroid/net/NetworkPolicyManager;->RULE_REJECT_METERED:I
|