Searched refs:mOffloadBrightnessStrategy (Results 1 – 3 of 3) sorted by relevance
48 private OffloadBrightnessStrategy mOffloadBrightnessStrategy; field in OffloadBrightnessStrategyTest53 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 …]
89 private final OffloadBrightnessStrategy mOffloadBrightnessStrategy; field in DisplayBrightnessStrategySelector142 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()
92 private OffloadBrightnessStrategy mOffloadBrightnessStrategy; field in DisplayBrightnessStrategySelectorTest159 return mOffloadBrightnessStrategy;296 when(mOffloadBrightnessStrategy.getOffloadScreenBrightness()).thenReturn(Float.NaN); in selectStrategySelectsInvalidStrategyWhenNoStrategyIsValid()325 when(mOffloadBrightnessStrategy.getOffloadScreenBrightness()).thenReturn(0.3f); in selectStrategySelectsOffloadStrategyWhenValid()329 mOffloadBrightnessStrategy); in selectStrategySelectsOffloadStrategyWhenValid() local389 when(mOffloadBrightnessStrategy.getOffloadScreenBrightness()).thenReturn(0.3f); in selectStrategyDoesNotSelectOffloadStrategyWhenFeatureFlagDisabled()390 assertNotEquals(mOffloadBrightnessStrategy, in selectStrategyDoesNotSelectOffloadStrategyWhenFeatureFlagDisabled()