Searched refs:POLICY_REJECT_METERED_BACKGROUND (Results 1 – 4 of 4) sorted by relevance
20 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()
50 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()
26 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()
48 public static final int POLICY_REJECT_METERED_BACKGROUND = 0x1; field in NetworkPolicyManager