Searched refs:RULE_REJECT_METERED (Results 1 – 5 of 5) 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 | 83 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; 1693 expectedBlockedStates.add(new Pair<>(true, RULE_REJECT_METERED)); in testIsUidNetworkingBlocked() 1704 expectedBlockedStates.add(new Pair<>(true, RULE_REJECT_METERED)); in testIsUidNetworkingBlocked() 1715 expectedBlockedStates.add(new Pair<>(false, RULE_REJECT_METERED)); in testIsUidNetworkingBlocked()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 63 import static android.net.NetworkPolicyManager.RULE_REJECT_METERED; 4167 newRule = RULE_REJECT_METERED; in updateRulesForDataUsageRestrictionsULInner() 4176 newRule = RULE_REJECT_METERED; in updateRulesForDataUsageRestrictionsULInner() 4227 } else if (hasRule(newRule, RULE_REJECT_METERED) in updateRulesForDataUsageRestrictionsULInner() 4228 || hasRule(oldRule, RULE_REJECT_METERED)) { in updateRulesForDataUsageRestrictionsULInner() 4231 if (hasRule(oldRule, RULE_REJECT_METERED) && isWhitelisted) { in updateRulesForDataUsageRestrictionsULInner() 5006 else if (hasRule(uidRules, RULE_REJECT_METERED)) { in isUidNetworkingBlockedInternal()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 69 import static android.net.NetworkPolicyManager.RULE_REJECT_METERED; 5924 mService.setUidRulesChanged(RULE_REJECT_METERED); in testNetworkBlockedStatus() 5930 mService.setUidRulesChanged(RULE_REJECT_METERED); in testNetworkBlockedStatus() 5967 mService.setUidRulesChanged(RULE_REJECT_METERED); in testNetworkBlockedStatusBeforeAndAfterConnect()
|