Home
last modified time | relevance | path

Searched refs:GAMMA_SPACE_MAX (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/util/
DBrightnessUtilsTest.java19 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()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/display/
DBrightnessLevelPreferenceControllerTest.java19 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()
/packages/services/Car/service/src/com/android/car/util/
DBrightnessUtils.java30 public static final int GAMMA_SPACE_MAX = 65535; field in BrightnessUtils
67 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()
/packages/services/Car/service/src/com/android/car/systeminterface/
DDisplayInterface.java24 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()
/packages/apps/Car/Settings/src/com/android/car/settings/display/
DBrightnessLevelPreferenceController.java24 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()
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DBrightnessSlider.java23 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()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DBrightnessSliderTestCase.java20 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX;
67 assertThat(slider.getMax()).isEqualTo(GAMMA_SPACE_MAX); in getQCItem_createsSlider()
/packages/apps/Settings/src/com/android/settings/display/
DBrightnessLevelPreferenceController.java19 import static com.android.settingslib.display.BrightnessUtils.GAMMA_SPACE_MAX;
183 return getPercentage(value, GAMMA_SPACE_MIN, GAMMA_SPACE_MAX); in getCurrentBrightness()