Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java26 import static android.net.NetworkPolicyManager.RULE_NONE;
47 uidRulesToStringTest(RULE_NONE, "0 (NONE)"); in testUidRulesToString()
93 assertEquals(RULE_NONE, MASK_METERED_NETWORKS in testMeteredNetworksMask()
94 & RULE_NONE); in testMeteredNetworksMask()
120 assertEquals(RULE_NONE, MASK_ALL_NETWORKS in testAllNetworksMask()
121 & RULE_NONE); in testAllNetworksMask()
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java77 public static final int RULE_NONE = 0; field in NetworkPolicyManager
328 if (uidRules == RULE_NONE) {
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java61 import static android.net.NetworkPolicyManager.RULE_NONE;
3482 final int uidRules = mUidRules.get(uid, RULE_NONE); in dump()
3496 final int uidRules = mUidRules.get(uid, RULE_NONE); in dump()
3816 if (newUidRules == RULE_NONE) { in updateRulesForAppIdleParoleUL()
4156 final int oldUidRules = mUidRules.get(uid, RULE_NONE); in updateRulesForDataUsageRestrictionsULInner()
4163 int newRule = RULE_NONE; in updateRulesForDataUsageRestrictionsULInner()
4195 if (newUidRules == RULE_NONE) { in updateRulesForDataUsageRestrictionsULInner()
4277 final int oldUidRules = mUidRules.get(uid, RULE_NONE); in updateRulesForPowerRestrictionsUL()
4281 if (newUidRules == RULE_NONE) { in updateRulesForPowerRestrictionsUL()
4313 return RULE_NONE; in updateRulesForPowerRestrictionsULInner()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java31 import static android.net.NetworkPolicyManager.RULE_NONE;
1690 expectedBlockedStates.add(new Pair<>(true, RULE_NONE)); in testIsUidNetworkingBlocked()
1701 expectedBlockedStates.add(new Pair<>(false, RULE_NONE)); in testIsUidNetworkingBlocked()
1712 expectedBlockedStates.add(new Pair<>(false, RULE_NONE)); in testIsUidNetworkingBlocked()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java42 import static android.net.NetworkPolicyManager.RULE_NONE;
1845 final int oldRules = mUidRules.get(uid, RULE_NONE); in handleUidRulesChanged()
1850 if (newRules == RULE_NONE) { in handleUidRulesChanged()
2378 final int uidRules = mUidRules.get(uid, RULE_NONE); in doDump()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java67 import static android.net.NetworkPolicyManager.RULE_NONE;
5927 mService.setUidRulesChanged(RULE_NONE); in testNetworkBlockedStatus()
5944 mService.setUidRulesChanged(RULE_NONE); in testNetworkBlockedStatus()
5966 mService.setUidRulesChanged(RULE_NONE); in testNetworkBlockedStatusBeforeAndAfterConnect()