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;
60 assertEquals(RULE_NONE, MASK_METERED_NETWORKS in testMeteredNetworksMask()
63 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
65 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
67 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
70 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
72 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
74 assertEquals(RULE_TEMPORARY_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
77 assertEquals(RULE_REJECT_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
79 assertEquals(RULE_REJECT_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java82 public static final int MASK_METERED_NETWORKS = 0b00001111; field in NetworkPolicyManager
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java53 import static android.net.NetworkPolicyManager.MASK_METERED_NETWORKS;
2862 final int oldRule = oldUidRules & MASK_METERED_NETWORKS; in updateRulesForDataUsageRestrictionsLocked()
3003 final int newUidRules = (oldUidRules & MASK_METERED_NETWORKS) | newRule; in updateRulesForPowerRestrictionsLocked()