/packages/apps/Settings/tests/unit/src/com/android/settings/fuelgauge/batteryusage/ |
D | AppOptModeSharedPreferencesUtilsTest.kt | 24 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/ |
D | BatterySettingsMigrateCheckerTest.java | 157 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()
|
D | OptimizedPreferenceControllerTest.java | 80 .thenReturn(BatteryOptimizeUtils.MODE_OPTIMIZED); in testUpdateState_isSystemOrDefaultAppAndOptimizeStates_prefChecked() 102 .thenReturn(BatteryOptimizeUtils.MODE_OPTIMIZED); in testUpdateState_isOptimizedStates_prefChecked()
|
D | PowerBackgroundUsageDetailTest.java | 274 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()
|
D | UnrestrictedPreferenceControllerTest.java | 104 .thenReturn(BatteryOptimizeUtils.MODE_OPTIMIZED); in testUpdateState_isSystemOrDefaultApp_prefUnchecked() 128 .thenReturn(BatteryOptimizeUtils.MODE_OPTIMIZED); in testUpdateState_prefUnchecked()
|
D | AllowBackgroundPreferenceControllerTest.java | 105 .thenReturn(BatteryOptimizeUtils.MODE_OPTIMIZED); in testUpdateState_isSystemOrDefaultApp_prefUnchecked() 129 .thenReturn(BatteryOptimizeUtils.MODE_OPTIMIZED); in testUpdateState_prefUnchecked()
|
D | BatteryOptimizeUtilsTest.java | 19 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()
|
D | AdvancedPowerUsageDetailTest.java | 399 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/ |
D | AppStateAppBatteryUsageBridge.java | 53 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/ |
D | BatteryOptimizeUtils.java | 77 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()
|
D | OptimizedPreferenceController.java | 53 == BatteryOptimizeUtils.MODE_OPTIMIZED; in updateState()
|
D | PowerBackgroundUsageDetail.java | 196 return BatteryOptimizeUtils.MODE_OPTIMIZED; in getSelectedPreference() 303 case BatteryOptimizeUtils.MODE_OPTIMIZED: in logMetricCategory()
|
D | BatterySettingsMigrateChecker.java | 62 BatteryOptimizeUtils.MODE_OPTIMIZED, in verifyBatteryOptimizeModes()
|
D | AdvancedPowerUsageDetail.java | 444 ? BatteryOptimizeUtils.MODE_OPTIMIZED in onPreferenceChange() 458 case BatteryOptimizeUtils.MODE_OPTIMIZED: in logMetricCategory()
|
D | BatteryBackupHelper.java | 201 if (optimizationMode == BatteryOptimizeUtils.MODE_OPTIMIZED in backupOptimizationMode()
|
D | BatterySettingsStorage.java | 352 if (optimizationMode == BatteryOptimizeUtils.MODE_OPTIMIZED in backup()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/protos/ |
D | battery_usage_slot.proto | 21 MODE_OPTIMIZED = 3; enumerator
|
/packages/apps/Settings/src/com/android/settings/spa/app/battery/ |
D | BatteryOptimizationModeAppListPageProvider.kt | 115 appOptimizationMode == BatteryOptimizeUtils.MODE_OPTIMIZED in transform()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | ConvertUtilsTest.java | 388 (int) batteryDiffEntry.mUid, BatteryOptimizationMode.MODE_OPTIMIZED); in convertToBatteryUsageDiff_returnsExpectedResult() 410 .isEqualTo(BatteryOptimizationMode.MODE_OPTIMIZED); in convertToBatteryUsageDiff_returnsExpectedResult()
|