Searched refs:restrictedMode (Results 1 – 2 of 2) sorted by relevance
273 final int restrictedMode = BatteryOptimizeUtils.MODE_RESTRICTED; in onSwitchChanged_fromUnrestrictedModeSetDisabled_becomeRestrictedMode() local283 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() local291 mFragment.mOptimizationMode = restrictedMode; in onSwitchChanged_fromRestrictedModeSetEnabled_becomeOptimizedMode()307 final int restrictedMode = BatteryOptimizeUtils.MODE_RESTRICTED; in onPause_optimizationModeChanged_logPreference() local309 mFragment.mOptimizationMode = restrictedMode; in onPause_optimizationModeChanged_logPreference()331 final int restrictedMode = BatteryOptimizeUtils.MODE_RESTRICTED; in onPause_optimizationModeIsNotChanged_notInvokeLogging() local333 mFragment.mOptimizationMode = restrictedMode; in onPause_optimizationModeIsNotChanged_notInvokeLogging()341 verify(mBatteryOptimizeUtils).setAppUsageState(restrictedMode, Action.APPLY); in onPause_optimizationModeIsNotChanged_notInvokeLogging()[all …]
398 final int restrictedMode = BatteryOptimizeUtils.MODE_RESTRICTED; in onPause_optimizationModeChanged_logPreference() local400 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() local427 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()