Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DPowerBackgroundUsageDetailTest.java273 final int restrictedMode = BatteryOptimizeUtils.MODE_RESTRICTED; in onSwitchChanged_fromUnrestrictedModeSetDisabled_becomeRestrictedMode() local
283 assertThat(mFragment.getSelectedPreference()).isEqualTo(restrictedMode); in onSwitchChanged_fromUnrestrictedModeSetDisabled_becomeRestrictedMode()
284 verify(mBatteryOptimizeUtils).setAppUsageState(restrictedMode, Action.APPLY); in onSwitchChanged_fromUnrestrictedModeSetDisabled_becomeRestrictedMode()
289 final int restrictedMode = BatteryOptimizeUtils.MODE_RESTRICTED; in onSwitchChanged_fromRestrictedModeSetEnabled_becomeOptimizedMode() local
291 mFragment.mOptimizationMode = restrictedMode; in onSwitchChanged_fromRestrictedModeSetEnabled_becomeOptimizedMode()
307 final int restrictedMode = BatteryOptimizeUtils.MODE_RESTRICTED; in onPause_optimizationModeChanged_logPreference() local
309 mFragment.mOptimizationMode = restrictedMode; in onPause_optimizationModeChanged_logPreference()
331 final int restrictedMode = BatteryOptimizeUtils.MODE_RESTRICTED; in onPause_optimizationModeIsNotChanged_notInvokeLogging() local
333 mFragment.mOptimizationMode = restrictedMode; in onPause_optimizationModeIsNotChanged_notInvokeLogging()
341 verify(mBatteryOptimizeUtils).setAppUsageState(restrictedMode, Action.APPLY); in onPause_optimizationModeIsNotChanged_notInvokeLogging()
[all …]
DAdvancedPowerUsageDetailTest.java398 final int restrictedMode = BatteryOptimizeUtils.MODE_RESTRICTED; in onPause_optimizationModeChanged_logPreference() local
400 mFragment.mOptimizationMode = restrictedMode; in onPause_optimizationModeChanged_logPreference()
401 when(mBatteryOptimizeUtils.getAppOptimizationMode()).thenReturn(restrictedMode); in onPause_optimizationModeChanged_logPreference()
425 final int restrictedMode = BatteryOptimizeUtils.MODE_RESTRICTED; in onPause_optimizationModeIsNotChanged_notInvokeLogging() local
427 mFragment.mOptimizationMode = restrictedMode; in onPause_optimizationModeIsNotChanged_notInvokeLogging()
428 when(mBatteryOptimizeUtils.getAppOptimizationMode()).thenReturn(restrictedMode); in onPause_optimizationModeIsNotChanged_notInvokeLogging()
437 verify(mBatteryOptimizeUtils).setAppUsageState(restrictedMode, Action.APPLY); in onPause_optimizationModeIsNotChanged_notInvokeLogging()
438 when(mBatteryOptimizeUtils.getAppOptimizationMode()).thenReturn(restrictedMode); in onPause_optimizationModeIsNotChanged_notInvokeLogging()