Home
last modified time | relevance | path

Searched refs:POLICY_ALLOW_METERED_BACKGROUND (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/src/com/android/settings/datausage/
DDataSaverBackend.java17 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND;
88 final int policy = allowlisted ? POLICY_ALLOW_METERED_BACKGROUND : POLICY_NONE; in setIsAllowlisted()
99 return mUidPolicies.get(uid, POLICY_NONE) == POLICY_ALLOW_METERED_BACKGROUND; in isAllowlisted()
107 for (int uid : mPolicyManager.getUidsWithPolicy(POLICY_ALLOW_METERED_BACKGROUND)) { in loadAllowlist()
108 mUidPolicies.put(uid, POLICY_ALLOW_METERED_BACKGROUND); in loadAllowlist()
172 final boolean wasAllowlisted = oldPolicy == POLICY_ALLOW_METERED_BACKGROUND; in handleUidPoliciesChanged()
174 final boolean isAllowlisted = newPolicy == POLICY_ALLOW_METERED_BACKGROUND; in handleUidPoliciesChanged()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/applications/specialaccess/
DDataSaverControllerTest.kt23 import android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND
86 networkPolicyManager.getUidsWithPolicy(POLICY_ALLOW_METERED_BACKGROUND) in <lambda>()
99 networkPolicyManager.getUidsWithPolicy(POLICY_ALLOW_METERED_BACKGROUND) in <lambda>()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/
DDataSaverController.kt83 .getUidsWithPolicy(NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND) in <lambda>()
/packages/modules/DeviceLock/service/java/com/android/server/devicelock/
DDeviceLockServiceImpl.java93 private static final int POLICY_ALLOW_METERED_BACKGROUND = 0x4; field in DeviceLockServiceImpl
850 allow ? POLICY_ALLOW_METERED_BACKGROUND : POLICY_NONE);
/packages/modules/Connectivity/Tethering/apex/hiddenapi/
Dhiddenapi-max-target-o-low-priority.txt845 Landroid/net/NetworkPolicyManager;->POLICY_ALLOW_METERED_BACKGROUND:I