Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java25 import static android.net.NetworkPolicyManager.RULE_TEMPORARY_ALLOW_METERED;
35 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED, "2 (TEMPORARY_ALLOW_METERED)"); in testUidRulesToString()
44 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString()
46 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_REJECT_ALL, in testUidRulesToString()
70 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
71 & RULE_TEMPORARY_ALLOW_METERED); in testMeteredNetworksMask()
72 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
73 & (RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()
74 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
75 & (RULE_TEMPORARY_ALLOW_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java73 public static final int RULE_TEMPORARY_ALLOW_METERED = 1 << 1; field in NetworkPolicyManager
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java58 import static android.net.NetworkPolicyManager.RULE_TEMPORARY_ALLOW_METERED;
2868 newRule = RULE_TEMPORARY_ALLOW_METERED; in updateRulesForDataUsageRestrictionsLocked()
2904 if ((newRule & RULE_TEMPORARY_ALLOW_METERED) != 0) { in updateRulesForDataUsageRestrictionsLocked()
2915 } else if ((oldRule & RULE_TEMPORARY_ALLOW_METERED) != 0) { in updateRulesForDataUsageRestrictionsLocked()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java36 import static android.net.NetworkPolicyManager.RULE_TEMPORARY_ALLOW_METERED;
950 || (uidRules & RULE_TEMPORARY_ALLOW_METERED) != 0; in isNetworkWithLinkPropertiesBlocked()
4049 && (uidRules & RULE_TEMPORARY_ALLOW_METERED) == 0) { in enforceMeteredApnPolicy()