Home
last modified time | relevance | path

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

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/
DBrightnessClamperControllerTest.java168 float customAnimationRate = 0.01f; in testClamp_inactiveClamperNotApplied() local
171 when(mMockClamper.getCustomAnimationRate()).thenReturn(customAnimationRate); in testClamp_inactiveClamperNotApplied()
192 float customAnimationRate = 0.01f; in testClamp_activeClamperApplied_brightnessAboveMax() local
195 when(mMockClamper.getCustomAnimationRate()).thenReturn(customAnimationRate); in testClamp_activeClamperApplied_brightnessAboveMax()
207 assertEquals(customAnimationRate, state.getCustomAnimationRate(), FLOAT_TOLERANCE); in testClamp_activeClamperApplied_brightnessAboveMax()
216 float customAnimationRate = 0.01f; in testClamp_activeClamperApplied_brightnessBelowMax() local
219 when(mMockClamper.getCustomAnimationRate()).thenReturn(customAnimationRate); in testClamp_activeClamperApplied_brightnessBelowMax()
231 assertEquals(customAnimationRate, state.getCustomAnimationRate(), FLOAT_TOLERANCE); in testClamp_activeClamperApplied_brightnessBelowMax()
240 float customAnimationRate = 0.01f; in testClamp_activeClamperAppliedTwoTimes_keepsSlowChange() local
243 when(mMockClamper.getCustomAnimationRate()).thenReturn(customAnimationRate); in testClamp_activeClamperAppliedTwoTimes_keepsSlowChange()
[all …]
/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/
DBrightnessClamperController.java257 float customAnimationRate = DisplayBrightnessState.CUSTOM_ANIMATION_RATE_NOT_SET; in recalculateBrightnessCap() local
267 customAnimationRate = minClamper.getCustomAnimationRate(); in recalculateBrightnessCap()
272 || mCustomAnimationRate != customAnimationRate) { in recalculateBrightnessCap()
275 mCustomAnimationRate = customAnimationRate; in recalculateBrightnessCap()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java1364 float customAnimationRate = displayBrightnessState.getCustomAnimationRate(); in updatePowerStateInternal() local
1557 customAnimationRate = Math.max(customAnimationRate, clampedState.getCustomAnimationRate()); in updatePowerStateInternal()
1643 customAnimationRate = Math.max(customAnimationRate, in updatePowerStateInternal()
1654 customAnimationRate = DisplayBrightnessState.CUSTOM_ANIMATION_RATE_NOT_SET; in updatePowerStateInternal()
1680 } else if (customAnimationRate > 0) { in updatePowerStateInternal()
1682 customAnimationRate, /* ignoreAnimationLimits = */true); in updatePowerStateInternal()