Searched refs:BrightnessUtils (Results 1 – 3 of 3) sorted by relevance
19 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX;35 assertThat(BrightnessUtils.convertLinearToGamma(MIN, MIN, MAX)).isEqualTo(0); in linearToGamma_minValue_shouldReturn0()40 assertThat(BrightnessUtils.convertLinearToGamma(MAX, MIN, MAX)).isEqualTo(GAMMA_SPACE_MAX); in linearToGamma_maxValue_shouldReturnGammaSpaceMax()45 assertThat(BrightnessUtils.convertGammaToLinear(MIN, MIN, MAX)).isEqualTo(MIN); in gammaToLinear_minValue_shouldReturnMin()50 assertThat(BrightnessUtils.convertGammaToLinear(GAMMA_SPACE_MAX, MIN, MAX)).isEqualTo(MAX); in gammaToLinear_gammaSpaceValue_shouldReturnMax()
21 public class BrightnessUtils { class
19 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX;20 import static com.android.settingslib.display.BrightnessUtils.convertGammaToLinear;21 import static com.android.settingslib.display.BrightnessUtils.convertLinearToGamma;