Searched refs:mAutomaticBrightnessStrategy (Results 1 – 5 of 5) sorted by relevance
68 private AutomaticBrightnessStrategy2 mAutomaticBrightnessStrategy; field in AutomaticBrightnessStrategy2Test81 mAutomaticBrightnessStrategy = new AutomaticBrightnessStrategy2(mContext, DISPLAY_ID); in before()86 mAutomaticBrightnessStrategy.setAutomaticBrightnessController( in before()88 mAutomaticBrightnessStrategy.setBrightnessConfiguration(mBrightnessConfiguration, in before()100 mAutomaticBrightnessStrategy.setUseAutoBrightness(false); in testAutoBrightnessState_AutoBrightnessDisabled()107 mAutomaticBrightnessStrategy.updatePendingAutoBrightnessAdjustments(); in testAutoBrightnessState_AutoBrightnessDisabled()108 mAutomaticBrightnessStrategy.setAutoBrightnessState(targetDisplayState, in testAutoBrightnessState_AutoBrightnessDisabled()118 assertFalse(mAutomaticBrightnessStrategy.isAutoBrightnessEnabled()); in testAutoBrightnessState_AutoBrightnessDisabled()119 assertFalse(mAutomaticBrightnessStrategy.isAutoBrightnessDisabledDueToDisplayOff()); in testAutoBrightnessState_AutoBrightnessDisabled()124 mAutomaticBrightnessStrategy.setUseAutoBrightness(true); in testAutoBrightnessState_DisplayIsOff()[all …]
77 private AutomaticBrightnessStrategy mAutomaticBrightnessStrategy; field in AutomaticBrightnessStrategyTest90 mAutomaticBrightnessStrategy = new AutomaticBrightnessStrategy(mContext, DISPLAY_ID, in before()96 mAutomaticBrightnessStrategy.setAutomaticBrightnessController( in before()98 mAutomaticBrightnessStrategy.setBrightnessConfiguration(mBrightnessConfiguration, in before()110 mAutomaticBrightnessStrategy.setUseAutoBrightness(false); in testAutoBrightnessState_AutoBrightnessDisabled()117 mAutomaticBrightnessStrategy.updatePendingAutoBrightnessAdjustments(); in testAutoBrightnessState_AutoBrightnessDisabled()118 mAutomaticBrightnessStrategy.setAutoBrightnessState(targetDisplayState, in testAutoBrightnessState_AutoBrightnessDisabled()128 assertFalse(mAutomaticBrightnessStrategy.isAutoBrightnessEnabled()); in testAutoBrightnessState_AutoBrightnessDisabled()129 assertFalse(mAutomaticBrightnessStrategy.isAutoBrightnessDisabledDueToDisplayOff()); in testAutoBrightnessState_AutoBrightnessDisabled()134 mAutomaticBrightnessStrategy.setUseAutoBrightness(true); in testAutoBrightnessState_DisplayIsOff()[all …]
88 private AutomaticBrightnessStrategy mAutomaticBrightnessStrategy; field in DisplayBrightnessStrategySelectorTest147 return mAutomaticBrightnessStrategy;348 when(mAutomaticBrightnessStrategy.shouldUseAutoBrightness()).thenReturn(true); in selectStrategy_selectsAutomaticStrategyWhenValid()349 when(mAutomaticBrightnessStrategy.isAutoBrightnessValid()).thenReturn(true); in selectStrategy_selectsAutomaticStrategyWhenValid()353 mAutomaticBrightnessStrategy); in selectStrategy_selectsAutomaticStrategyWhenValid() local354 verify(mAutomaticBrightnessStrategy).setAutoBrightnessState(Display.STATE_ON, in selectStrategy_selectsAutomaticStrategyWhenValid()370 when(mAutomaticBrightnessStrategy.shouldUseAutoBrightness()).thenReturn(true); in selectStrategy_selectsAutomaticFallbackStrategyWhenValid()371 when(mAutomaticBrightnessStrategy.isAutoBrightnessValid()).thenReturn(false); in selectStrategy_selectsAutomaticFallbackStrategyWhenValid()407 when(mAutomaticBrightnessStrategy.shouldUseAutoBrightness()).thenReturn(false); in selectStrategy_selectsFallbackStrategyAsAnUltimateFallback()408 when(mAutomaticBrightnessStrategy.isAutoBrightnessValid()).thenReturn(false); in selectStrategy_selectsFallbackStrategyAsAnUltimateFallback()[all …]
76 private final AutomaticBrightnessStrategy2 mAutomaticBrightnessStrategy; field in DisplayBrightnessStrategySelector135 mAutomaticBrightnessStrategy = in DisplayBrightnessStrategySelector()191 } else if (mAutomaticBrightnessStrategy.shouldUseAutoBrightness() in selectStrategy()229 return mAutomaticBrightnessStrategy; in getAutomaticBrightnessStrategy()
444 private final AutomaticBrightnessStrategy2 mAutomaticBrightnessStrategy; field in DisplayPowerController593 mAutomaticBrightnessStrategy = in DisplayPowerController()1390 mAutomaticBrightnessStrategy.isShortTermModelActive(); in updatePowerStateInternal()1404 mAutomaticBrightnessStrategy.setAutoBrightnessState(state, in updatePowerStateInternal()1413 && (mAutomaticBrightnessStrategy.getAutoBrightnessAdjustmentChanged() in updatePowerStateInternal()1418 final int autoBrightnessState = mAutomaticBrightnessStrategy.isAutoBrightnessEnabled() in updatePowerStateInternal()1420 : mAutomaticBrightnessStrategy.isAutoBrightnessDisabledDueToDisplayOff() in updatePowerStateInternal()1434 if (mAutomaticBrightnessStrategy.isAutoBrightnessEnabled()) { in updatePowerStateInternal()1435 brightnessState = mAutomaticBrightnessStrategy.getAutomaticScreenBrightness( in updatePowerStateInternal()1444 slowChange = mAutomaticBrightnessStrategy.hasAppliedAutoBrightness() in updatePowerStateInternal()[all …]