Searched refs:convertLinearToGamma (Results 1 – 7 of 7) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/util/ |
D | BrightnessUtilsTest.java | 38 assertThat(BrightnessUtils.convertLinearToGamma(MIN_INT, MIN_INT, MAX_INT)) in linearToGamma_minValue_shouldReturnMin() 46 assertThat(BrightnessUtils.convertLinearToGamma(MAX_INT, MIN_INT, MAX_INT)) in linearToGamma_maxValue_shouldReturnGammaSpaceMax() 61 assertThat(BrightnessUtils.convertLinearToGamma(102, MIN_BACKLIGHT, MAX_BACKLIGHT)) in linearToGamma_autoDefault()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/display/ |
D | BrightnessLevelPreferenceControllerTest.java | 20 import static com.android.settingslib.display.BrightnessUtils.convertLinearToGamma; 137 assertThat(mSeekBarPreference.getValue()).isEqualTo(convertLinearToGamma(mMid, mMin, mMax)); in testRefreshUi_midValue() 156 mSeekBarPreference.callChangeListener(convertLinearToGamma(mMid, mMin, mMax)); in testHandlePreferenceChanged_midValue()
|
/packages/apps/Car/Settings/src/com/android/car/settings/qc/ |
D | BrightnessSlider.java | 25 import static com.android.settingslib.display.BrightnessUtils.convertLinearToGamma; 148 gamma = convertLinearToGamma(linear, mMinimumBacklight, mMaximumBacklight); in getSeekbarValue() 154 gamma = convertLinearToGamma(linear, mMinimumBacklight, mMaximumBacklight); in getSeekbarValue()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/ |
D | BrightnessSliderTestCase.java | 22 import static com.android.settingslib.display.BrightnessUtils.convertLinearToGamma; 69 convertLinearToGamma(getScreenBrightness(), mMinimumBacklight, mMaximumBacklight)); in getQCItem_createsSlider()
|
/packages/apps/Car/Settings/src/com/android/car/settings/display/ |
D | BrightnessLevelPreferenceController.java | 26 import static com.android.settingslib.display.BrightnessUtils.convertLinearToGamma; 128 gamma = convertLinearToGamma(linear, mMinimumBacklight, mMaximumBacklight); in getSeekbarValue()
|
/packages/services/Car/service/src/com/android/car/systeminterface/ |
D | DisplayInterface.java | 26 import static com.android.car.util.BrightnessUtils.convertLinearToGamma; 253 int gamma = convertLinearToGamma(linear, mMinimumBacklight, mMaximumBacklight); in refreshDisplayBrightnessFromDisplay() 266 gamma = convertLinearToGamma(linear, mMinimumBacklight, mMaximumBacklight); in refreshDisplayBrigtnessFromSetting()
|
/packages/services/Car/service/src/com/android/car/util/ |
D | BrightnessUtils.java | 102 public static final int convertLinearToGamma(int val, int min, int max) { in convertLinearToGamma() method in BrightnessUtils
|