Searched refs:brightnessInt (Results 1 – 4 of 4) sorted by relevance
148 public static float brightnessIntToFloat(int brightnessInt) { in brightnessIntToFloat() argument149 if (brightnessInt == PowerManager.BRIGHTNESS_OFF) { in brightnessIntToFloat()151 } else if (brightnessInt == PowerManager.BRIGHTNESS_INVALID) { in brightnessIntToFloat()158 return MathUtils.constrainedMap(minFloat, maxFloat, minInt, maxInt, brightnessInt); in brightnessIntToFloat()306 public static float brightnessIntSettingToFloat(Context context, int brightnessInt) { in brightnessIntSettingToFloat() argument307 if (brightnessInt == PowerManager.BRIGHTNESS_OFF) { in brightnessIntSettingToFloat()309 } else if (brightnessInt == PowerManager.BRIGHTNESS_INVALID) { in brightnessIntSettingToFloat()316 float userPerceptionBrightness = MathUtils.norm(minInt, maxInt, brightnessInt); in brightnessIntSettingToFloat()418 int brightnessInt = getBrightnessAsInt(); in update() local419 if (mLatestIntBrightness != brightnessInt) { in update()[all …]
272 private float[] brightnessArrayIntToFloat(int[] brightnessInt, in brightnessArrayIntToFloat() argument274 float[] brightnessFloat = new float[brightnessInt.length]; in brightnessArrayIntToFloat()275 for (int i = 0; i < brightnessInt.length; i++) { in brightnessArrayIntToFloat()277 BrightnessSynchronizer.brightnessIntToFloat(brightnessInt[i])); in brightnessArrayIntToFloat()
299 int brightnessInt = BrightnessSynchronizer.brightnessFloatToInt(brightness); in setBrightness() local300 int color = brightnessInt & 0x000000ff; in setBrightness()
2783 int brightnessInt = mFlags.isBrightnessIntRangeUserPerceptionEnabled() in noteScreenBrightness() local2786 mBatteryStats.noteScreenBrightness(brightnessInt); in noteScreenBrightness()