Home
last modified time | relevance | path

Searched refs:GAMMA_SPACE_MIN (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/display/
DBrightnessUtilsTest.java20 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MIN;
39 .isEqualTo(GAMMA_SPACE_MIN); in linearToGamma_minValue_shouldReturnMin()
41 .isEqualTo(GAMMA_SPACE_MIN); in linearToGamma_minValue_shouldReturnMin()
54 assertThat(BrightnessUtils.convertGammaToLinear(GAMMA_SPACE_MIN, MIN_INT, MAX_INT)) in gammaToLinear_minValue_shouldReturnMin()
56 assertThat(BrightnessUtils.convertGammaToLinearFloat(GAMMA_SPACE_MIN, MIN_FLOAT, MAX_FLOAT)) in gammaToLinear_minValue_shouldReturnMin()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DBrightnessUtils.java23 public static final int GAMMA_SPACE_MIN = 0; field in BrightnessUtils
55 final float normalizedVal = MathUtils.norm(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, val); in convertGammaToLinear()
78 final float normalizedVal = MathUtils.norm(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, val); in convertGammaToLinearFloat()
139 return Math.round(MathUtils.lerp(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, ret)); in convertLinearToGammaFloat()