Home
last modified time | relevance | path

Searched refs:mAutomaticBrightnessStrategy (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/
DAutomaticBrightnessStrategy2Test.java68 private AutomaticBrightnessStrategy2 mAutomaticBrightnessStrategy; field in AutomaticBrightnessStrategy2Test
81 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 …]
DAutomaticBrightnessStrategyTest.java77 private AutomaticBrightnessStrategy mAutomaticBrightnessStrategy; field in AutomaticBrightnessStrategyTest
90 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 …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/
DDisplayBrightnessStrategySelectorTest.java88 private AutomaticBrightnessStrategy mAutomaticBrightnessStrategy; field in DisplayBrightnessStrategySelectorTest
147 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() local
354 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 …]
/frameworks/base/services/core/java/com/android/server/display/brightness/
DDisplayBrightnessStrategySelector.java76 private final AutomaticBrightnessStrategy2 mAutomaticBrightnessStrategy; field in DisplayBrightnessStrategySelector
135 mAutomaticBrightnessStrategy = in DisplayBrightnessStrategySelector()
191 } else if (mAutomaticBrightnessStrategy.shouldUseAutoBrightness() in selectStrategy()
229 return mAutomaticBrightnessStrategy; in getAutomaticBrightnessStrategy()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java444 private final AutomaticBrightnessStrategy2 mAutomaticBrightnessStrategy; field in DisplayPowerController
593 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 …]