Searched refs:GAMMA_SPACE_MAX (Results 1 – 3 of 3) sorted by relevance
19 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX;40 assertThat(BrightnessUtils.convertLinearToGamma(MAX, MIN, MAX)).isEqualTo(GAMMA_SPACE_MAX); in linearToGamma_maxValue_shouldReturnGammaSpaceMax()50 assertThat(BrightnessUtils.convertGammaToLinear(GAMMA_SPACE_MAX, MIN, MAX)).isEqualTo(MAX); in gammaToLinear_gammaSpaceValue_shouldReturnMax()
23 public static final int GAMMA_SPACE_MAX = 1023; field in BrightnessUtils54 final float normalizedVal = MathUtils.norm(0, GAMMA_SPACE_MAX, val); in convertGammaToLinear()99 return Math.round(MathUtils.lerp(0, GAMMA_SPACE_MAX, ret)); in convertLinearToGamma()
19 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX;260 mControl.setMax(GAMMA_SPACE_MAX); in BrightnessController()452 mControl.getValue() - target) / GAMMA_SPACE_MAX; in animateSliderTo()