Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java20 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
37 uidRulesToStringTest(RULE_ALLOW_ALL, "32 (ALLOW_ALL)"); in testUidRulesToString()
40 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString()
44 uidRulesToStringTest(RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString()
48 uidRulesToStringTest(RULE_REJECT_METERED | RULE_ALLOW_ALL, in testUidRulesToString()
66 & (RULE_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()
73 & (RULE_TEMPORARY_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()
80 & (RULE_REJECT_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()
89 assertEquals(RULE_ALLOW_ALL, MASK_ALL_NETWORKS in testAllNetworksMask()
90 & RULE_ALLOW_ALL); in testAllNetworksMask()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java27 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
318 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testScreenChangesRules()
327 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testScreenChangesRules()
347 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testScreenChangesRules()
359 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testPolicyNone()
368 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testPolicyNone()
377 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testPolicyNone()
399 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testPolicyReject()
421 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testPolicyRejectAddRemove()
440 future = expectRulesChanged(UID_A, RULE_ALLOW_ALL); in testPolicyRejectAddRemove()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java78 public static final int RULE_ALLOW_ALL = 1 << 5; field in NetworkPolicyManager
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java51 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
2997 newRule = RULE_ALLOW_ALL; in updateRulesForPowerRestrictionsLocked()
3000 newRule = isWhitelisted ? RULE_ALLOW_ALL : RULE_REJECT_ALL; in updateRulesForPowerRestrictionsLocked()
3026 if (newRule == RULE_NONE || (newRule & RULE_ALLOW_ALL) != 0) { in updateRulesForPowerRestrictionsLocked()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java31 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java31 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
4046 uidRules = mUidRules.get(uid, RULE_ALLOW_ALL); in enforceMeteredApnPolicy()