Home
last modified time | relevance | path

Searched refs:POLICY_REJECT_METERED_BACKGROUND (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java48 public static final int POLICY_REJECT_METERED_BACKGROUND = 0x1; field in NetworkPolicyManager
333 if ((policy & POLICY_REJECT_METERED_BACKGROUND) != 0) { in dumpPolicy()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java26 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
261 mService.setUidPolicy(APP_ID_A, POLICY_REJECT_METERED_BACKGROUND); in testPolicyChangeTriggersBroadcast()
329 mService.setUidPolicy(APP_ID_A, POLICY_REJECT_METERED_BACKGROUND); in testScreenChangesRules()
392 mService.setUidPolicy(APP_ID_A, POLICY_REJECT_METERED_BACKGROUND); in testPolicyReject()
433 mService.setUidPolicy(APP_ID_A, POLICY_REJECT_METERED_BACKGROUND); in testPolicyRejectAddRemove()
639 mService.setUidPolicy(APP_ID_A, POLICY_REJECT_METERED_BACKGROUND); in testUidRemovedPolicyCleared()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java47 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
2256 if (!uidForeground && (uidPolicy & POLICY_REJECT_METERED_BACKGROUND) != 0) { in updateRulesForUidLocked()
2605 for (int uid : getUidsWithPolicy(POLICY_REJECT_METERED_BACKGROUND)) { in factoryReset()