Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java21 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED;
34 uidRulesToStringTest(RULE_ALLOW_METERED, "1 (ALLOW_METERED)"); in testUidRulesToString()
40 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString()
42 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_REJECT_ALL, in testUidRulesToString()
63 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
64 & RULE_ALLOW_METERED); in testMeteredNetworksMask()
65 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
66 & (RULE_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()
67 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
68 & (RULE_ALLOW_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java71 public static final int RULE_ALLOW_METERED = 1 << 0; field in NetworkPolicyManager
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java52 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED;
2870 newRule = RULE_ALLOW_METERED; in updateRulesForDataUsageRestrictionsLocked()
2876 newRule = RULE_ALLOW_METERED; in updateRulesForDataUsageRestrictionsLocked()
2938 } else if ((newRule & RULE_ALLOW_METERED) != 0 in updateRulesForDataUsageRestrictionsLocked()
2939 || (oldRule & RULE_ALLOW_METERED) != 0) { in updateRulesForDataUsageRestrictionsLocked()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java32 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED;
949 || (uidRules & RULE_ALLOW_METERED) != 0 in isNetworkWithLinkPropertiesBlocked()
953 + ", whitelisted=" + ((uidRules & RULE_ALLOW_METERED) != 0) in isNetworkWithLinkPropertiesBlocked()
4048 if (mRestrictBackground && (uidRules & RULE_ALLOW_METERED) == 0 in enforceMeteredApnPolicy()