Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/display/
DBrightnessUtils.java54 final float normalizedVal = MathUtils.norm(0, GAMMA_SPACE_MAX, val); in convertGammaToLinear() local
56 if (normalizedVal <= R) { in convertGammaToLinear()
57 ret = MathUtils.sq(normalizedVal / R); in convertGammaToLinear()
59 ret = MathUtils.exp((normalizedVal - C) / A) + B; in convertGammaToLinear()
91 final float normalizedVal = MathUtils.norm(min, max, val) * 12; in convertLinearToGamma() local
93 if (normalizedVal <= 1f) { in convertLinearToGamma()
94 ret = MathUtils.sqrt(normalizedVal) * R; in convertLinearToGamma()
96 ret = A * MathUtils.log(normalizedVal - B) + C; in convertLinearToGamma()