Home
last modified time | relevance | path

Searched refs:convertLinearToGamma (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/util/
DBrightnessUtilsTest.java38 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/
DBrightnessLevelPreferenceControllerTest.java20 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/
DBrightnessSlider.java25 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/
DBrightnessSliderTestCase.java22 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/
DBrightnessLevelPreferenceController.java26 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/
DDisplayInterface.java26 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/
DBrightnessUtils.java102 public static final int convertLinearToGamma(int val, int min, int max) { in convertLinearToGamma() method in BrightnessUtils