Searched refs:brightnessFloat (Results 1 – 1 of 1) sorted by relevance
153 public static int brightnessFloatToInt(float brightnessFloat) { in brightnessFloatToInt() argument154 return Math.round(brightnessFloatToIntRange(brightnessFloat)); in brightnessFloatToInt()166 private static float brightnessFloatToIntRange(float brightnessFloat) { in brightnessFloatToIntRange() argument167 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()