Home
last modified time | relevance | path

Searched refs:MASK_METERED_NETWORKS (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java19 import static android.net.NetworkPolicyManager.MASK_METERED_NETWORKS;
92 assertEquals(RULE_NONE, MASK_METERED_NETWORKS in testMeteredNetworksMask()
95 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
97 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
99 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
102 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
104 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
106 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
109 assertEquals(RULE_REJECT_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
111 assertEquals(RULE_REJECT_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java88 public static final int MASK_METERED_NETWORKS = 0b00001111; field in NetworkPolicyManager
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java55 import static android.net.NetworkPolicyManager.MASK_METERED_NETWORKS;
3701 oldRules &= MASK_METERED_NETWORKS; in updateRulesForAppIdleParoleUL()
3991 final int oldRule = oldUidRules & MASK_METERED_NETWORKS; in updateRulesForDataUsageRestrictionsULInner()
4164 final int newUidRules = (oldUidRules & MASK_METERED_NETWORKS) | newRule; in updateRulesForPowerRestrictionsULInner()