Searched refs:BrightnessUtils (Results 1 – 8 of 8) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/util/ |
D | BrightnessUtilsTest.java | 19 import static com.android.car.util.BrightnessUtils.GAMMA_SPACE_MAX; 20 import static com.android.car.util.BrightnessUtils.GAMMA_SPACE_MIN; 38 assertThat(BrightnessUtils.convertLinearToGamma(MIN_INT, MIN_INT, MAX_INT)) in linearToGamma_minValue_shouldReturnMin() 40 assertThat(BrightnessUtils.convertLinearToGammaFloat(MIN_FLOAT, MIN_FLOAT, MAX_FLOAT)) in linearToGamma_minValue_shouldReturnMin() 46 assertThat(BrightnessUtils.convertLinearToGamma(MAX_INT, MIN_INT, MAX_INT)) in linearToGamma_maxValue_shouldReturnGammaSpaceMax() 48 assertThat(BrightnessUtils.convertLinearToGammaFloat(MAX_FLOAT, MIN_FLOAT, MAX_FLOAT)) in linearToGamma_maxValue_shouldReturnGammaSpaceMax() 54 assertThat(BrightnessUtils.convertGammaToLinear(GAMMA_SPACE_MAX, MIN_INT, MAX_INT)) in gammaToLinear_gammaSpaceValue_shouldReturnMax() 61 assertThat(BrightnessUtils.convertLinearToGamma(102, MIN_BACKLIGHT, MAX_BACKLIGHT)) in linearToGamma_autoDefault() 67 assertThat(BrightnessUtils.convertGammaToLinear(53572, MIN_BACKLIGHT, MAX_BACKLIGHT)) in gammaToLinear_autoDefault() 73 assertThat(BrightnessUtils.brightnessIntToFloat(MIN_INT)).isEqualTo(MIN_FLOAT); in brightnessIntToFloat_shouldReturnMin() [all …]
|
/packages/services/Car/service/src/com/android/car/systeminterface/ |
D | DisplayInterface.java | 24 import static com.android.car.util.BrightnessUtils.GAMMA_SPACE_MAX; 25 import static com.android.car.util.BrightnessUtils.convertGammaToLinear; 26 import static com.android.car.util.BrightnessUtils.convertLinearToGamma; 54 import com.android.car.util.BrightnessUtils; 251 int linear = BrightnessUtils.brightnessFloatToInt( in refreshDisplayBrightnessFromDisplay() 319 BrightnessUtils.brightnessIntToFloat(linear)); in setDisplayBrightness()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/ |
D | BrightnessSliderTestCase.java | 20 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX; 21 import static com.android.settingslib.display.BrightnessUtils.convertGammaToLinear; 22 import static com.android.settingslib.display.BrightnessUtils.convertLinearToGamma;
|
/packages/apps/Car/Settings/src/com/android/car/settings/display/ |
D | BrightnessLevelPreferenceController.java | 24 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX; 25 import static com.android.settingslib.display.BrightnessUtils.convertGammaToLinear; 26 import static com.android.settingslib.display.BrightnessUtils.convertLinearToGamma;
|
/packages/apps/Car/Settings/src/com/android/car/settings/qc/ |
D | BrightnessSlider.java | 23 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX; 24 import static com.android.settingslib.display.BrightnessUtils.convertGammaToLinear; 25 import static com.android.settingslib.display.BrightnessUtils.convertLinearToGamma;
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | BrightnessLevelPreferenceController.java | 19 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX; 20 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MIN; 21 import static com.android.settingslib.display.BrightnessUtils.convertLinearToGammaFloat;
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/display/ |
D | BrightnessLevelPreferenceControllerTest.java | 19 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX; 20 import static com.android.settingslib.display.BrightnessUtils.convertLinearToGamma;
|
/packages/services/Car/service/src/com/android/car/util/ |
D | BrightnessUtils.java | 27 public class BrightnessUtils { class
|