Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/display/
DBrightnessUtilsTest.java19 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX;
47 .isEqualTo(GAMMA_SPACE_MAX); in linearToGamma_maxValue_shouldReturnGammaSpaceMax()
49 .isEqualTo(GAMMA_SPACE_MAX); in linearToGamma_maxValue_shouldReturnGammaSpaceMax()
62 assertThat(BrightnessUtils.convertGammaToLinear(GAMMA_SPACE_MAX, MIN_INT, MAX_INT)) in gammaToLinear_gammaSpaceValue_shouldReturnMax()
64 assertThat(BrightnessUtils.convertGammaToLinearFloat(GAMMA_SPACE_MAX, MIN_FLOAT, MAX_FLOAT)) in gammaToLinear_gammaSpaceValue_shouldReturnMax()
/frameworks/base/packages/SettingsLib/DisplayUtils/src/com/android/settingslib/display/
DBrightnessUtils.java25 public static final int GAMMA_SPACE_MAX = 65535; field in BrightnessUtils
56 final float normalizedVal = MathUtils.norm(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, val); in convertGammaToLinear()
79 final float normalizedVal = MathUtils.norm(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, val); in convertGammaToLinearFloat()
140 return Math.round(MathUtils.lerp(GAMMA_SPACE_MIN, GAMMA_SPACE_MAX, ret)); in convertLinearToGammaFloat()
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/
DAccessibilityMenuService.java71 (int) Math.ceil(BrightnessUtils.GAMMA_SPACE_MAX * 0.11f);
73 (int) -Math.ceil(BrightnessUtils.GAMMA_SPACE_MAX * 0.11f);
336 Math.min(BrightnessUtils.GAMMA_SPACE_MAX, gamma + increment)); in adjustBrightness()
346 (gamma / (BrightnessUtils.GAMMA_SPACE_MAX / 100)))); in adjustBrightness()
/frameworks/base/packages/SystemUI/src/com/android/systemui/brightness/shared/model/
DGammaBrightness.kt29 to = BrightnessUtils.GAMMA_SPACE_MAX.toLong() in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/
DBrightnessController.java19 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX;
307 mControl.setMax(GAMMA_SPACE_MAX); in BrightnessController()
454 mControl.getValue() - target) / GAMMA_SPACE_MAX; in animateSliderTo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/brightness/domain/interactor/
DScreenBrightnessInteractor.kt49 val maxGammaBrightness = GammaBrightness(BrightnessUtils.GAMMA_SPACE_MAX) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/domain/interactor/
DScreenBrightnessInteractorTest.kt148 .isEqualTo(GammaBrightness(BrightnessUtils.GAMMA_SPACE_MAX)) in maxGammaBrightness()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/ui/viewmodel/
DBrightnessSliderViewModelTest.kt103 .isEqualTo(GammaBrightness(BrightnessUtils.GAMMA_SPACE_MAX)) in maxGammaBrightness()