Searched refs:GAMMA_SPACE_MAX (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/display/ |
D | BrightnessUtilsTest.java | 19 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/ |
D | BrightnessUtils.java | 25 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/ |
D | AccessibilityMenuService.java | 71 (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/ |
D | GammaBrightness.kt | 29 to = BrightnessUtils.GAMMA_SPACE_MAX.toLong() in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/brightness/ |
D | BrightnessController.java | 19 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/ |
D | ScreenBrightnessInteractor.kt | 49 val maxGammaBrightness = GammaBrightness(BrightnessUtils.GAMMA_SPACE_MAX) in <lambda>()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/domain/interactor/ |
D | ScreenBrightnessInteractorTest.kt | 148 .isEqualTo(GammaBrightness(BrightnessUtils.GAMMA_SPACE_MAX)) in maxGammaBrightness()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/brightness/ui/viewmodel/ |
D | BrightnessSliderViewModelTest.kt | 103 .isEqualTo(GammaBrightness(BrightnessUtils.GAMMA_SPACE_MAX)) in maxGammaBrightness()
|