Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/util/
DBrightnessUtilsTest.java20 import static com.android.car.util.BrightnessUtils.GAMMA_SPACE_MIN;
39 .isEqualTo(GAMMA_SPACE_MIN); in linearToGamma_minValue_shouldReturnMin()
41 .isEqualTo(GAMMA_SPACE_MIN); in linearToGamma_minValue_shouldReturnMin()
/packages/services/Car/service/src/com/android/car/util/
DBrightnessUtils.java29 public static final int GAMMA_SPACE_MIN = 0; field in BrightnessUtils
67 final float normalizedVal = MathUtils.norm(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, val); in convertGammaToLinear()
124 return Math.round(MathUtils.lerp(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, ret)); in convertLinearToGammaFloat()
/packages/apps/Settings/src/com/android/settings/display/
DBrightnessLevelPreferenceController.java20 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MIN;
183 return getPercentage(value, GAMMA_SPACE_MIN, GAMMA_SPACE_MAX); in getCurrentBrightness()