Searched refs:POLICY_REJECT_METERED_BACKGROUND (Results 1 – 9 of 9) sorted by relevance
20 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;127 POLICY_REJECT_METERED_BACKGROUND); in updateManualDenylist_policyReject_addsUid()151 POLICY_REJECT_METERED_BACKGROUND); in updateManualDenylist_samePolicy_doNothing()161 POLICY_REJECT_METERED_BACKGROUND); in setUidPolicyLocked_invokeSetUidPolicy()165 eq(POLICY_REJECT_METERED_BACKGROUND)); in setUidPolicyLocked_invokeSetUidPolicy()208 POLICY_REJECT_METERED_BACKGROUND); in setDenylist_newListWithOldData_modifyPolicyNoneAndReject()221 POLICY_REJECT_METERED_BACKGROUND); in setDenylist_newListWithoutOldData_modifyPolicyReject()235 eq(POLICY_REJECT_METERED_BACKGROUND)); in setDenylist_emptyListWithOldData_modifyPolicyNone()250 mManualDenyListPref.edit().putInt(FAKE_UID_2, POLICY_REJECT_METERED_BACKGROUND).apply(); in isInManualDenylist_incorrectUid_returnsFalse()259 mManualDenyListPref.edit().putInt(FAKE_UID_1, POLICY_REJECT_METERED_BACKGROUND).apply(); in isInManualDenylist_initiated_returnsTrue()[all …]
19 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;118 final int policy = denylisted ? POLICY_REJECT_METERED_BACKGROUND : POLICY_NONE; in setIsDenylisted()129 return mUidPolicies.get(uid, POLICY_NONE) == POLICY_REJECT_METERED_BACKGROUND in isDenylisted()137 for (int uid : mPolicyManager.getUidsWithPolicy(POLICY_REJECT_METERED_BACKGROUND)) { in loadDenylist()138 mUidPolicies.put(uid, POLICY_REJECT_METERED_BACKGROUND); in loadDenylist()173 final boolean wasDenylisted = oldPolicy == POLICY_REJECT_METERED_BACKGROUND; in handleUidPoliciesChanged()175 final boolean isDenylisted = newPolicy == POLICY_REJECT_METERED_BACKGROUND; in handleUidPoliciesChanged()
17 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;311 return (uidPolicy & POLICY_REJECT_METERED_BACKGROUND) != 0 in getAppRestrictBackground()
20 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;83 .getUidsWithPolicy(POLICY_REJECT_METERED_BACKGROUND); in syncPolicyIfNeeded()86 editor.putInt(String.valueOf(uid), POLICY_REJECT_METERED_BACKGROUND); in syncPolicyIfNeeded() local126 mNetworkPolicyManager.setUidPolicy(uid, POLICY_REJECT_METERED_BACKGROUND); in setDenylist()150 editor.putInt(String.valueOf(uid), POLICY_REJECT_METERED_BACKGROUND); in setDenylist()169 .getUidsWithPolicy(POLICY_REJECT_METERED_BACKGROUND); in resetDenylistIfNeeded()227 if (policy != POLICY_REJECT_METERED_BACKGROUND) { in updateDenylistPref()
19 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;118 POLICY_REJECT_METERED_BACKGROUND); in onLoadFinished()
19 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;161 final int[] restrictedUids = mNpm.getUidsWithPolicy(POLICY_REJECT_METERED_BACKGROUND); in resetApps()
53 on { getUidsWithPolicy(NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND) } doReturn in <lambda>()
61 .getUidsWithPolicy(NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND) in <lambda>()
847 Landroid/net/NetworkPolicyManager;->POLICY_REJECT_METERED_BACKGROUND:I