Home
last modified time | relevance | path

Searched refs:isWhitelisted (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/datausage/
DDataSaverBackend.java94 public boolean isWhitelisted(int uid) { in isWhitelisted() method in DataSaverBackend
145 private void handleWhitelistChanged(int uid, boolean isWhitelisted) { in handleWhitelistChanged() argument
147 mListeners.get(i).onWhitelistStatusChanged(uid, isWhitelisted); in handleWhitelistChanged()
170 final boolean isWhitelisted = newPolicy == POLICY_ALLOW_METERED_BACKGROUND; in handleUidPoliciesChanged()
173 if (wasWhitelisted != isWhitelisted) { in handleUidPoliciesChanged()
174 handleWhitelistChanged(uid, isWhitelisted); in handleUidPoliciesChanged()
214 void onWhitelistStatusChanged(int uid, boolean isWhitelisted); in onWhitelistStatusChanged() argument
DAppStateDataUsageBridge.java40 app.extraInfo = new DataUsageState(mDataSaverBackend.isWhitelisted(app.info.uid), in loadAllExtraInfo()
47 app.extraInfo = new DataUsageState(mDataSaverBackend.isWhitelisted(uid), in updateExtraInfo()
DUnrestrictedDataAccessPreference.java139 public void onWhitelistStatusChanged(int uid, boolean isWhitelisted) { in onWhitelistStatusChanged() argument
141 mDataUsageState.isDataSaverWhitelisted = isWhitelisted; in onWhitelistStatusChanged()
DAppDataUsage.java333 return mDataSaverBackend.isWhitelisted(mAppItem.key); in getUnrestrictData()
467 public void onWhitelistStatusChanged(int uid, boolean isWhitelisted) { in onWhitelistStatusChanged() argument
469 updatePrefs(getAppRestrictBackground(), isWhitelisted); in onWhitelistStatusChanged() local
DDataSaverPreference.java51 public void onWhitelistStatusChanged(int uid, boolean isWhitelisted) { in onWhitelistStatusChanged() argument
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataSaverBackend.java94 public boolean isWhitelisted(int uid) { in isWhitelisted() method in DataSaverBackend
145 private void handleWhitelistChanged(int uid, boolean isWhitelisted) { in handleWhitelistChanged() argument
147 mListeners.get(i).onWhitelistStatusChanged(uid, isWhitelisted); in handleWhitelistChanged()
170 final boolean isWhitelisted = newPolicy == POLICY_ALLOW_METERED_BACKGROUND; in handleUidPoliciesChanged()
173 if (wasWhitelisted != isWhitelisted) { in handleUidPoliciesChanged()
174 handleWhitelistChanged(uid, isWhitelisted); in handleUidPoliciesChanged()
214 void onWhitelistStatusChanged(int uid, boolean isWhitelisted); in onWhitelistStatusChanged() argument
DAppStateDataUsageBridge.java40 app.extraInfo = new DataUsageState(mDataSaverBackend.isWhitelisted(app.info.uid), in loadAllExtraInfo()
47 app.extraInfo = new DataUsageState(mDataSaverBackend.isWhitelisted(uid), in updateExtraInfo()
DUnrestrictedDataAccessPreference.java139 public void onWhitelistStatusChanged(int uid, boolean isWhitelisted) { in onWhitelistStatusChanged() argument
141 mDataUsageState.isDataSaverWhitelisted = isWhitelisted; in onWhitelistStatusChanged()
DAppDataUsage.java333 return mDataSaverBackend.isWhitelisted(mAppItem.key); in getUnrestrictData()
467 public void onWhitelistStatusChanged(int uid, boolean isWhitelisted) { in onWhitelistStatusChanged() argument
469 updatePrefs(getAppRestrictBackground(), isWhitelisted); in onWhitelistStatusChanged() local
DDataSaverPreference.java51 public void onWhitelistStatusChanged(int uid, boolean isWhitelisted) { in onWhitelistStatusChanged() argument
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryOptimizationPreferenceController.java72 final boolean isWhitelisted = mBackend.isWhitelisted(mPackageName); in updateState()
73 preference.setSummary(isWhitelisted ? R.string.high_power_on : R.string.high_power_off); in updateState()
DHighPowerDetail.java84 mIsEnabled = mDefaultOn || mBackend.isWhitelisted(mPackageName); in onCreate()
140 boolean oldValue = mBackend.isWhitelisted(mPackageName); in onClick()
185 : powerWhitelist.isWhitelisted(pkg) in getSummary()
DBackgroundActivityPreferenceController.java87 final boolean whitelisted = mPowerWhitelistBackend.isWhitelisted(mTargetPackage); in updateState()
120 if (mPowerWhitelistBackend.isWhitelisted(mTargetPackage)) { in updateSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryOptimizationPreferenceController.java72 final boolean isWhitelisted = mBackend.isWhitelisted(mPackageName); in updateState()
73 preference.setSummary(isWhitelisted ? R.string.high_power_on : R.string.high_power_off); in updateState()
DHighPowerDetail.java84 mIsEnabled = mDefaultOn || mBackend.isWhitelisted(mPackageName); in onCreate()
140 boolean oldValue = mBackend.isWhitelisted(mPackageName); in onClick()
185 : powerWhitelist.isWhitelisted(pkg) in getSummary()
DBackgroundActivityPreferenceController.java87 final boolean whitelisted = mPowerWhitelistBackend.isWhitelisted(mTargetPackage); in updateState()
120 if (mPowerWhitelistBackend.isWhitelisted(mTargetPackage)) { in updateSummary()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppObexServerSession.java201 boolean isWhitelisted = in onPut()
202 BluetoothOppManager.getInstance(mContext).isWhitelisted(destination); in onPut()
263 if (mimeType == null || (!isWhitelisted && !Constants.mimeTypeMatches(mimeType, in onPut()
286 if (isWhitelisted) { in onPut()
597 boolean isHandover = BluetoothOppManager.getInstance(mContext).isWhitelisted(destination); in onConnect()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStatePowerBridge.java46 app.extraInfo = mBackend.isWhitelisted(app.info.packageName) in loadAllExtraInfo()
53 app.extraInfo = mBackend.isWhitelisted(pkg) ? Boolean.TRUE : Boolean.FALSE; in updateExtraInfo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStatePowerBridge.java46 app.extraInfo = mBackend.isWhitelisted(app.info.packageName) in loadAllExtraInfo()
53 app.extraInfo = mBackend.isWhitelisted(pkg) ? Boolean.TRUE : Boolean.FALSE; in updateExtraInfo()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryOptimizationPreferenceControllerTest.java69 doReturn(false).when(mBackend).isWhitelisted(PKG_NOT_IN_WHITELIST); in setUp()
70 doReturn(true).when(mBackend).isWhitelisted(PKG_IN_WHITELIST); in setUp()
DBackgroundActivityPreferenceControllerTest.java106 when(mPowerWhitelistBackend.isWhitelisted(LOW_SDK_PACKAGE)).thenReturn(false); in setUp()
154 when(mPowerWhitelistBackend.isWhitelisted(LOW_SDK_PACKAGE)).thenReturn(true); in updateState_whitelisted()
DHighPowerDetailTest.java88 when(mPowerWhitelistBackend.isWhitelisted(TEST_PACKAGE)).thenReturn(false); in onClick_appAddedToDozeWhitelist_getsUnrestricted()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DHighPower.java56 mPowerWhitelistBackend.isWhitelisted(info.info.packageName);
119 } else if (mPowerWhitelistBackend.isWhitelisted(pkg)) { in updateSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/tether/
DWifiTetherSwitchBarController.java163 public void onWhitelistStatusChanged(int uid, boolean isWhitelisted) { in onWhitelistStatusChanged() argument
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSwitchBarController.java163 public void onWhitelistStatusChanged(int uid, boolean isWhitelisted) { in onWhitelistStatusChanged() argument

12