Searched refs:customAnimationRate (Results 1 – 3 of 3) sorted by relevance
168 float customAnimationRate = 0.01f; in testClamp_inactiveClamperNotApplied() local171 when(mMockClamper.getCustomAnimationRate()).thenReturn(customAnimationRate); in testClamp_inactiveClamperNotApplied()192 float customAnimationRate = 0.01f; in testClamp_activeClamperApplied_brightnessAboveMax() local195 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() local219 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() local243 when(mMockClamper.getCustomAnimationRate()).thenReturn(customAnimationRate); in testClamp_activeClamperAppliedTwoTimes_keepsSlowChange()[all …]
257 float customAnimationRate = DisplayBrightnessState.CUSTOM_ANIMATION_RATE_NOT_SET; in recalculateBrightnessCap() local267 customAnimationRate = minClamper.getCustomAnimationRate(); in recalculateBrightnessCap()272 || mCustomAnimationRate != customAnimationRate) { in recalculateBrightnessCap()275 mCustomAnimationRate = customAnimationRate; in recalculateBrightnessCap()
1364 float customAnimationRate = displayBrightnessState.getCustomAnimationRate(); in updatePowerStateInternal() local1557 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()