Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java20 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
214 final int[] uids = mInterface.getUidsWithPolicy(POLICY_REJECT_METERED_BACKGROUND); in listRestrictBackgroundBlacklist()
268 mInterface.setUidPolicy(uid, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist()
DNetworkPolicyManagerService.java50 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
1711 final boolean isBlacklisted = policy == POLICY_REJECT_METERED_BACKGROUND; in setUidPolicyUncheckedLocked()
1715 final boolean wasBlacklisted = oldPolicy == POLICY_REJECT_METERED_BACKGROUND; in setUidPolicyUncheckedLocked()
2123 if (policy == POLICY_REJECT_METERED_BACKGROUND) { in getRestrictBackgroundByCaller()
2860 final boolean isBlacklisted = (uidPolicy & POLICY_REJECT_METERED_BACKGROUND) != 0; in updateRulesForDataUsageRestrictionsLocked()
3476 for (int uid : getUidsWithPolicy(POLICY_REJECT_METERED_BACKGROUND)) { in factoryReset()
/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/core/java/android/net/
DNetworkPolicyManager.java48 public static final int POLICY_REJECT_METERED_BACKGROUND = 0x1; field in NetworkPolicyManager