Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java22 import static android.net.NetworkPolicyManager.RULE_NONE;
33 uidRulesToStringTest(RULE_NONE, "0 (NONE)"); in testUidRulesToString()
60 assertEquals(RULE_NONE, MASK_METERED_NETWORKS in testMeteredNetworksMask()
61 & RULE_NONE); in testMeteredNetworksMask()
86 assertEquals(RULE_NONE, MASK_ALL_NETWORKS in testAllNetworksMask()
87 & RULE_NONE); in testAllNetworksMask()
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java69 public static final int RULE_NONE = 0; field in NetworkPolicyManager
371 if (uidRules == RULE_NONE) { in uidRulesToString()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java55 import static android.net.NetworkPolicyManager.RULE_NONE;
2388 final int uidRules = mUidRules.get(uid, RULE_NONE); in dump()
2402 final int uidRules = mUidRules.get(uid, RULE_NONE); in dump()
2857 final int oldUidRules = mUidRules.get(uid, RULE_NONE); in updateRulesForDataUsageRestrictionsLocked()
2863 int newRule = RULE_NONE; in updateRulesForDataUsageRestrictionsLocked()
2892 if (newUidRules == RULE_NONE) { in updateRulesForDataUsageRestrictionsLocked()
2984 final int oldUidRules = mUidRules.get(uid, RULE_NONE); in updateRulesForPowerRestrictionsLocked()
2989 int newRule = RULE_NONE; in updateRulesForPowerRestrictionsLocked()
3018 if (newUidRules == RULE_NONE) { in updateRulesForPowerRestrictionsLocked()
3026 if (newRule == RULE_NONE || (newRule & RULE_ALLOW_ALL) != 0) { in updateRulesForPowerRestrictionsLocked()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java33 import static android.net.NetworkPolicyManager.RULE_NONE;
937 uidRules = mUidRules.get(uid, RULE_NONE); in isNetworkWithLinkPropertiesBlocked()
1411 final int oldRules = mUidRules.get(uid, RULE_NONE);
1414 if (uidRules == RULE_NONE) {
1912 final int uidRules = mUidRules.get(uid, RULE_NONE); in dump()