Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/datasaver/
DDynamicDenylistManagerTest.java20 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 …]
/packages/apps/Settings/src/com/android/settings/datausage/
DDataSaverBackend.java19 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()
DAppDataUsage.java17 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
311 return (uidPolicy & POLICY_REJECT_METERED_BACKGROUND) != 0 in getAppRestrictBackground()
/packages/apps/Settings/src/com/android/settings/fuelgauge/datasaver/
DDynamicDenylistManager.java20 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() local
126 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()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DAppsNetworkStatsManager.java19 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
118 POLICY_REJECT_METERED_BACKGROUND); in onLoadFinished()
/packages/apps/Settings/src/com/android/settings/applications/manageapplications/
DResetAppsHelper.java19 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
161 final int[] restrictedUids = mNpm.getUidsWithPolicy(POLICY_REJECT_METERED_BACKGROUND); in resetApps()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/
DAppDataUsageRepositoryTest.kt53 on { getUidsWithPolicy(NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND) } doReturn in <lambda>()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DAppDataUsageRepository.kt61 .getUidsWithPolicy(NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND) in <lambda>()
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt847 Landroid/net/NetworkPolicyManager;->POLICY_REJECT_METERED_BACKGROUND:I