Home
last modified time | relevance | path

Searched refs:mUidPolicies (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/src/com/android/settings/datausage/
DDataSaverBackend.java43 private SparseIntArray mUidPolicies = new SparseIntArray(); field in DataSaverBackend
86 mUidPolicies.put(uid, policy); in setIsWhitelisted()
95 return mUidPolicies.get(uid, POLICY_NONE) == POLICY_ALLOW_METERED_BACKGROUND; in isWhitelisted()
104 mUidPolicies.put(uid, POLICY_ALLOW_METERED_BACKGROUND); in loadWhitelist()
116 mUidPolicies.put(uid, policy); in setIsBlacklisted()
125 return mUidPolicies.get(uid, POLICY_NONE) == POLICY_REJECT_METERED_BACKGROUND; in isBlacklisted()
133 mUidPolicies.put(uid, POLICY_REJECT_METERED_BACKGROUND); in loadBlacklist()
160 final int oldPolicy = mUidPolicies.get(uid, POLICY_NONE); in handleUidPoliciesChanged()
162 mUidPolicies.delete(uid); in handleUidPoliciesChanged()
164 mUidPolicies.put(uid, newPolicy); in handleUidPoliciesChanged()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataSaverBackend.java43 private SparseIntArray mUidPolicies = new SparseIntArray(); field in DataSaverBackend
86 mUidPolicies.put(uid, policy); in setIsWhitelisted()
95 return mUidPolicies.get(uid, POLICY_NONE) == POLICY_ALLOW_METERED_BACKGROUND; in isWhitelisted()
104 mUidPolicies.put(uid, POLICY_ALLOW_METERED_BACKGROUND); in loadWhitelist()
116 mUidPolicies.put(uid, policy); in setIsBlacklisted()
125 return mUidPolicies.get(uid, POLICY_NONE) == POLICY_REJECT_METERED_BACKGROUND; in isBlacklisted()
133 mUidPolicies.put(uid, POLICY_REJECT_METERED_BACKGROUND); in loadBlacklist()
160 final int oldPolicy = mUidPolicies.get(uid, POLICY_NONE); in handleUidPoliciesChanged()
162 mUidPolicies.delete(uid); in handleUidPoliciesChanged()
164 mUidPolicies.put(uid, newPolicy); in handleUidPoliciesChanged()