Home
last modified time | relevance | path

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

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/strategy/
DFollowerBrightnessStrategyTest.java38 private FollowerBrightnessStrategy mFollowerBrightnessStrategy; field in FollowerBrightnessStrategyTest
42 mFollowerBrightnessStrategy = new FollowerBrightnessStrategy(Display.DEFAULT_DISPLAY); in before()
51 mFollowerBrightnessStrategy.setBrightnessToFollow(brightnessToFollow, slowChange); in testUpdateBrightness()
59 .setDisplayBrightnessStrategyName(mFollowerBrightnessStrategy.getName()) in testUpdateBrightness()
63 mFollowerBrightnessStrategy.updateBrightness( in testUpdateBrightness()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/
DDisplayBrightnessStrategySelectorTest.java86 private FollowerBrightnessStrategy mFollowerBrightnessStrategy; field in DisplayBrightnessStrategySelectorTest
136 return mFollowerBrightnessStrategy;
255 when(mFollowerBrightnessStrategy.getBrightnessToFollow()).thenReturn(Float.NaN); in selectStrategySelectsOverrideStrategyWhenValid()
267 when(mFollowerBrightnessStrategy.getBrightnessToFollow()).thenReturn(Float.NaN); in selectStrategySelectsTemporaryStrategyWhenValid()
280 when(mFollowerBrightnessStrategy.getBrightnessToFollow()).thenReturn(Float.NaN); in selectStrategySelectsBoostStrategyWhenValid()
294 when(mFollowerBrightnessStrategy.getBrightnessToFollow()).thenReturn(Float.NaN); in selectStrategySelectsInvalidStrategyWhenNoStrategyIsValid()
307 when(mFollowerBrightnessStrategy.getBrightnessToFollow()).thenReturn(0.3f); in selectStrategySelectsFollowerStrategyWhenValid()
311 mFollowerBrightnessStrategy); in selectStrategySelectsFollowerStrategyWhenValid() local
322 when(mFollowerBrightnessStrategy.getBrightnessToFollow()).thenReturn(Float.NaN); in selectStrategySelectsOffloadStrategyWhenValid()
346 when(mFollowerBrightnessStrategy.getBrightnessToFollow()).thenReturn(Float.NaN); in selectStrategy_selectsAutomaticStrategyWhenValid()
[all …]
/frameworks/base/services/core/java/com/android/server/display/brightness/
DDisplayBrightnessStrategySelector.java72 private final FollowerBrightnessStrategy mFollowerBrightnessStrategy; field in DisplayBrightnessStrategySelector
126 mFollowerBrightnessStrategy = injector.getFollowerBrightnessStrategy(displayId); in DisplayBrightnessStrategySelector()
151 mScreenOffBrightnessStrategy, mDozeBrightnessStrategy, mFollowerBrightnessStrategy, in DisplayBrightnessStrategySelector()
178 mFollowerBrightnessStrategy.getBrightnessToFollow())) { in selectStrategy()
179 displayBrightnessStrategy = mFollowerBrightnessStrategy; in selectStrategy()
225 return mFollowerBrightnessStrategy; in getFollowerDisplayBrightnessStrategy()