Home
last modified time | relevance | path

Searched refs:MODE_OPTIMIZED (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/fuelgauge/batteryusage/
DAppOptModeSharedPreferencesUtilsTest.kt24 import com.android.settings.fuelgauge.BatteryOptimizeUtils.MODE_OPTIMIZED in <lambda>()
90 MODE_OPTIMIZED, in <lambda>()
115 MODE_OPTIMIZED, in <lambda>()
144 MODE_OPTIMIZED, in <lambda>()
172 MODE_OPTIMIZED, in <lambda>()
177 verify(testBatteryOptimizeUtils)?.setAppUsageState(MODE_OPTIMIZED, Action.EXTERNAL_UPDATE) in <lambda>()
192 MODE_OPTIMIZED, in <lambda>()
222 whenever(testBatteryOptimizeUtils?.getAppOptimizationMode(true)).thenReturn(MODE_OPTIMIZED) in <lambda>()
227 mutableListOf(MODE_OPTIMIZED), in <lambda>()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatterySettingsMigrateCheckerTest.java157 mContext, BatteryOptimizeUtils.MODE_OPTIMIZED, Arrays.asList(PACKAGE_NAME)); in verifyBatteryOptimizeModeApps_inAllowList_resetOptimizationMode()
163 BatteryOptimizeUtils.MODE_OPTIMIZED, in verifyBatteryOptimizeModeApps_inAllowList_resetOptimizationMode()
169 doReturn(BatteryOptimizeUtils.MODE_OPTIMIZED) in verifyBatteryOptimizeModeApps_optimizedMode_noAction()
174 mContext, BatteryOptimizeUtils.MODE_OPTIMIZED, Arrays.asList(PACKAGE_NAME)); in verifyBatteryOptimizeModeApps_optimizedMode_noAction()
186 mContext, BatteryOptimizeUtils.MODE_OPTIMIZED, new ArrayList<String>()); in verifyBatteryOptimizeModeApps_notInAllowList_noAction()
DOptimizedPreferenceControllerTest.java80 .thenReturn(BatteryOptimizeUtils.MODE_OPTIMIZED); in testUpdateState_isSystemOrDefaultAppAndOptimizeStates_prefChecked()
102 .thenReturn(BatteryOptimizeUtils.MODE_OPTIMIZED); in testUpdateState_isOptimizedStates_prefChecked()
DPowerBackgroundUsageDetailTest.java274 final int optimizedMode = BatteryOptimizeUtils.MODE_OPTIMIZED; in onSwitchChanged_fromUnrestrictedModeSetDisabled_becomeRestrictedMode()
290 final int optimizedMode = BatteryOptimizeUtils.MODE_OPTIMIZED; in onSwitchChanged_fromRestrictedModeSetEnabled_becomeOptimizedMode()
308 final int optimizedMode = BatteryOptimizeUtils.MODE_OPTIMIZED; in onPause_optimizationModeChanged_logPreference()
332 final int optimizedMode = BatteryOptimizeUtils.MODE_OPTIMIZED; in onPause_optimizationModeIsNotChanged_notInvokeLogging()
DUnrestrictedPreferenceControllerTest.java104 .thenReturn(BatteryOptimizeUtils.MODE_OPTIMIZED); in testUpdateState_isSystemOrDefaultApp_prefUnchecked()
128 .thenReturn(BatteryOptimizeUtils.MODE_OPTIMIZED); in testUpdateState_prefUnchecked()
DAllowBackgroundPreferenceControllerTest.java105 .thenReturn(BatteryOptimizeUtils.MODE_OPTIMIZED); in testUpdateState_isSystemOrDefaultApp_prefUnchecked()
129 .thenReturn(BatteryOptimizeUtils.MODE_OPTIMIZED); in testUpdateState_prefUnchecked()
DBatteryOptimizeUtilsTest.java19 import static com.android.settings.fuelgauge.BatteryOptimizeUtils.MODE_OPTIMIZED;
127 assertThat(mBatteryOptimizeUtils.getAppOptimizationMode()).isEqualTo(MODE_OPTIMIZED); in testGetAppOptimizationMode_returnOptimized()
191 mBatteryOptimizeUtils.setAppUsageState(MODE_OPTIMIZED, Action.UNKNOWN); in testSetAppUsageState_Optimized_verifyAction()
DAdvancedPowerUsageDetailTest.java399 final int optimizedMode = BatteryOptimizeUtils.MODE_OPTIMIZED; in onPause_optimizationModeChanged_logPreference()
426 final int optimizedMode = BatteryOptimizeUtils.MODE_OPTIMIZED; in onPause_optimizationModeIsNotChanged_notInvokeLogging()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppBatteryUsageBridge.java53 static final int MODE_OPTIMIZED = 2; field in AppStateAppBatteryUsageBridge
63 MODE_OPTIMIZED,
110 mode = allowListed ? MODE_UNRESTRICTED : MODE_OPTIMIZED; in getAppBatteryUsageState()
159 return getAppBatteryUsageDetailsMode(info) == MODE_OPTIMIZED;
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryOptimizeUtils.java77 public static final int MODE_OPTIMIZED = 3; field in BatteryOptimizeUtils
85 MODE_OPTIMIZED,
109 return MODE_OPTIMIZED; in getAppOptimizationMode()
251 if (optimizationMode == MODE_OPTIMIZED in resetAppOptimizationModeInternal()
261 MODE_OPTIMIZED, in resetAppOptimizationModeInternal()
DOptimizedPreferenceController.java53 == BatteryOptimizeUtils.MODE_OPTIMIZED; in updateState()
DPowerBackgroundUsageDetail.java196 return BatteryOptimizeUtils.MODE_OPTIMIZED; in getSelectedPreference()
303 case BatteryOptimizeUtils.MODE_OPTIMIZED: in logMetricCategory()
DBatterySettingsMigrateChecker.java62 BatteryOptimizeUtils.MODE_OPTIMIZED, in verifyBatteryOptimizeModes()
DAdvancedPowerUsageDetail.java444 ? BatteryOptimizeUtils.MODE_OPTIMIZED in onPreferenceChange()
458 case BatteryOptimizeUtils.MODE_OPTIMIZED: in logMetricCategory()
DBatteryBackupHelper.java201 if (optimizationMode == BatteryOptimizeUtils.MODE_OPTIMIZED in backupOptimizationMode()
DBatterySettingsStorage.java352 if (optimizationMode == BatteryOptimizeUtils.MODE_OPTIMIZED in backup()
/packages/apps/Settings/src/com/android/settings/fuelgauge/protos/
Dbattery_usage_slot.proto21 MODE_OPTIMIZED = 3; enumerator
/packages/apps/Settings/src/com/android/settings/spa/app/battery/
DBatteryOptimizationModeAppListPageProvider.kt115 appOptimizationMode == BatteryOptimizeUtils.MODE_OPTIMIZED in transform()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DConvertUtilsTest.java388 (int) batteryDiffEntry.mUid, BatteryOptimizationMode.MODE_OPTIMIZED); in convertToBatteryUsageDiff_returnsExpectedResult()
410 .isEqualTo(BatteryOptimizationMode.MODE_OPTIMIZED); in convertToBatteryUsageDiff_returnsExpectedResult()