Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/DisplayUtils/src/com/android/settingslib/display/
DBrightnessUtils.java56 final float normalizedVal = MathUtils.norm(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, val); in convertGammaToLinear() local
58 if (normalizedVal <= R) { in convertGammaToLinear()
59 ret = MathUtils.sq(normalizedVal / R); in convertGammaToLinear()
61 ret = MathUtils.exp((normalizedVal - C) / A) + B; in convertGammaToLinear()
79 final float normalizedVal = MathUtils.norm(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, val); in convertGammaToLinearFloat() local
81 if (normalizedVal <= R) { in convertGammaToLinearFloat()
82 ret = MathUtils.sq(normalizedVal / R); in convertGammaToLinearFloat()
84 ret = MathUtils.exp((normalizedVal - C) / A) + B; in convertGammaToLinearFloat()
132 final float normalizedVal = MathUtils.norm(min, max, val) * 12; in convertLinearToGammaFloat() local
134 if (normalizedVal <= 1f) { in convertLinearToGammaFloat()
[all …]
/frameworks/base/core/java/com/android/internal/display/
DBrightnessUtils.java74 final float normalizedVal = val * 12; in convertLinearToGamma() local
76 if (normalizedVal <= 1f) { in convertLinearToGamma()
77 ret = MathUtils.sqrt(normalizedVal) * R; in convertLinearToGamma()
79 ret = A * MathUtils.log(normalizedVal - B) + C; in convertLinearToGamma()