Searched refs:GAMMA_SPACE_MAX (Results 1 – 8 of 8) sorted by relevance
19 import static com.android.car.util.BrightnessUtils.GAMMA_SPACE_MAX;47 .isEqualTo(GAMMA_SPACE_MAX); in linearToGamma_maxValue_shouldReturnGammaSpaceMax()49 .isEqualTo(GAMMA_SPACE_MAX); in linearToGamma_maxValue_shouldReturnGammaSpaceMax()54 assertThat(BrightnessUtils.convertGammaToLinear(GAMMA_SPACE_MAX, MIN_INT, MAX_INT)) in gammaToLinear_gammaSpaceValue_shouldReturnMax()
19 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX;113 assertThat(mSeekBarPreference.getMax()).isEqualTo(GAMMA_SPACE_MAX); in testRefreshUi_maxSet()129 assertThat(mSeekBarPreference.getValue()).isEqualTo(GAMMA_SPACE_MAX); in testRefreshUi_maxValue()149 mSeekBarPreference.callChangeListener(GAMMA_SPACE_MAX); in testHandlePreferenceChanged_maxValue()
30 public static final int GAMMA_SPACE_MAX = 65535; field in BrightnessUtils67 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()
24 import static com.android.car.util.BrightnessUtils.GAMMA_SPACE_MAX;262 int gamma = GAMMA_SPACE_MAX; in refreshDisplayBrigtnessFromSetting()276 return (gamma * 100 + ((GAMMA_SPACE_MAX + 1) / 2)) / GAMMA_SPACE_MAX; in convertGammaToPercentBright()315 int gamma = (percentBright * GAMMA_SPACE_MAX + 50) / 100; in setDisplayBrightness()
24 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX;111 preference.setMax(GAMMA_SPACE_MAX); in updateState()125 int gamma = GAMMA_SPACE_MAX; in getSeekbarValue()
23 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX;130 .setMax(GAMMA_SPACE_MAX) in getBrightnessRowBuilder()143 int gamma = GAMMA_SPACE_MAX; in getSeekbarValue()
20 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX;67 assertThat(slider.getMax()).isEqualTo(GAMMA_SPACE_MAX); in getQCItem_createsSlider()
19 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX;183 return getPercentage(value, GAMMA_SPACE_MIN, GAMMA_SPACE_MAX); in getCurrentBrightness()