Home
last modified time | relevance | path

Searched refs:mOffloadBrightnessStrategy (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/
DOffloadBrightnessStrategyTest.java48 private OffloadBrightnessStrategy mOffloadBrightnessStrategy; field in OffloadBrightnessStrategyTest
53 mOffloadBrightnessStrategy = new OffloadBrightnessStrategy(mDisplayManagerFlags); in before()
62 mOffloadBrightnessStrategy.setOffloadScreenBrightness(brightness); in testUpdateBrightnessWhenOffloadBrightnessIsSet()
70 .setDisplayBrightnessStrategyName(mOffloadBrightnessStrategy.getName()) in testUpdateBrightnessWhenOffloadBrightnessIsSet()
74 mOffloadBrightnessStrategy.updateBrightness( in testUpdateBrightnessWhenOffloadBrightnessIsSet()
78 assertEquals(PowerManager.BRIGHTNESS_INVALID_FLOAT, mOffloadBrightnessStrategy in testUpdateBrightnessWhenOffloadBrightnessIsSet()
91 mOffloadBrightnessStrategy.setOffloadScreenBrightness(offloadBrightness); in strategySelectionPostProcessor_resetsOffloadBrightness()
95 .thenReturn(mOffloadBrightnessStrategy.getName()); in strategySelectionPostProcessor_resetsOffloadBrightness()
96 mOffloadBrightnessStrategy.strategySelectionPostProcessor(strategySelectionNotifyRequest); in strategySelectionPostProcessor_resetsOffloadBrightness()
98 mOffloadBrightnessStrategy.getOffloadScreenBrightness(), 0.0f); in strategySelectionPostProcessor_resetsOffloadBrightness()
[all …]
/frameworks/base/services/core/java/com/android/server/display/brightness/
DDisplayBrightnessStrategySelector.java89 private final OffloadBrightnessStrategy mOffloadBrightnessStrategy; field in DisplayBrightnessStrategySelector
142 mOffloadBrightnessStrategy = injector in DisplayBrightnessStrategySelector()
145 mOffloadBrightnessStrategy = null; in DisplayBrightnessStrategySelector()
153 mAutomaticBrightnessStrategy1, mOffloadBrightnessStrategy, in DisplayBrightnessStrategySelector()
192 && mOffloadBrightnessStrategy != null && BrightnessUtils.isValidBrightnessValue( in selectStrategy()
193 mOffloadBrightnessStrategy.getOffloadScreenBrightness())) { in selectStrategy()
194 displayBrightnessStrategy = mOffloadBrightnessStrategy; in selectStrategy()
234 return mOffloadBrightnessStrategy; in getOffloadBrightnessStrategy()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/
DDisplayBrightnessStrategySelectorTest.java92 private OffloadBrightnessStrategy mOffloadBrightnessStrategy; field in DisplayBrightnessStrategySelectorTest
159 return mOffloadBrightnessStrategy;
296 when(mOffloadBrightnessStrategy.getOffloadScreenBrightness()).thenReturn(Float.NaN); in selectStrategySelectsInvalidStrategyWhenNoStrategyIsValid()
325 when(mOffloadBrightnessStrategy.getOffloadScreenBrightness()).thenReturn(0.3f); in selectStrategySelectsOffloadStrategyWhenValid()
329 mOffloadBrightnessStrategy); in selectStrategySelectsOffloadStrategyWhenValid() local
389 when(mOffloadBrightnessStrategy.getOffloadScreenBrightness()).thenReturn(0.3f); in selectStrategyDoesNotSelectOffloadStrategyWhenFeatureFlagDisabled()
390 assertNotEquals(mOffloadBrightnessStrategy, in selectStrategyDoesNotSelectOffloadStrategyWhenFeatureFlagDisabled()