Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/util/
DBrightnessUtils.java153 public static int brightnessFloatToInt(float brightnessFloat) { in brightnessFloatToInt() argument
154 return Math.round(brightnessFloatToIntRange(brightnessFloat)); in brightnessFloatToInt()
166 private static float brightnessFloatToIntRange(float brightnessFloat) { in brightnessFloatToIntRange() argument
167 if (floatEquals(brightnessFloat, PowerManagerHelper.BRIGHTNESS_OFF_FLOAT)) { in brightnessFloatToIntRange()
169 } else if (Float.isNaN(brightnessFloat)) { in brightnessFloatToIntRange()
176 return MathUtils.constrainedMap(minInt, maxInt, minFloat, maxFloat, brightnessFloat); in brightnessFloatToIntRange()