Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java56 public static final int RULE_REJECT_METERED = 0x1; field in NetworkPolicyManager
342 if ((rules & RULE_REJECT_METERED) != 0) { in dumpRules()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java28 import static android.net.NetworkPolicyManager.RULE_REJECT_METERED;
337 future = expectRulesChanged(UID_A, RULE_REJECT_METERED); in testScreenChangesRules()
390 future = expectRulesChanged(UID_A, RULE_REJECT_METERED); in testPolicyReject()
408 future = expectRulesChanged(UID_A, RULE_REJECT_METERED); in testPolicyReject()
431 future = expectRulesChanged(UID_A, RULE_REJECT_METERED); in testPolicyRejectAddRemove()
637 future = expectRulesChanged(UID_A, RULE_REJECT_METERED); in testUidRemovedPolicyCleared()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java49 import static android.net.NetworkPolicyManager.RULE_REJECT_METERED;
2258 uidRules = RULE_REJECT_METERED; in updateRulesForUidLocked()
2262 uidRules = RULE_REJECT_METERED; in updateRulesForUidLocked()
2272 uidRules = RULE_REJECT_METERED; in updateRulesForUidLocked()
2285 final boolean oldRejectMetered = (oldRules & RULE_REJECT_METERED) != 0; in updateRulesForUidLocked()
2286 final boolean rejectMetered = (uidRules & RULE_REJECT_METERED) != 0; in updateRulesForUidLocked()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java33 import static android.net.NetworkPolicyManager.RULE_REJECT_METERED;
935 || (networkCostly && (uidRules & RULE_REJECT_METERED) != 0)) { in isNetworkWithLinkPropertiesBlocked()
3628 if ((uidRules & (RULE_REJECT_METERED | RULE_REJECT_ALL)) != 0) { in enforceMeteredApnPolicy()