Searched refs:brightnessFloat (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/java/com/android/internal/ |
D | BrightnessSynchronizer.java | 121 public static int brightnessFloatToInt(Context context, float brightnessFloat) { in brightnessFloatToInt() argument 122 return Math.round(brightnessFloatToIntRange(context, brightnessFloat)); in brightnessFloatToInt() 130 public static float brightnessFloatToIntRange(Context context, float brightnessFloat) { in brightnessFloatToIntRange() argument 142 return brightnessFloatToIntRange(brightnessFloat, minFloat, maxFloat, minInt, maxInt); in brightnessFloatToIntRange() 151 private static float brightnessFloatToIntRange(float brightnessFloat, float minFloat, in brightnessFloatToIntRange() argument 153 if (floatEquals(brightnessFloat, PowerManager.BRIGHTNESS_OFF_FLOAT)) { in brightnessFloatToIntRange() 155 } else if (Float.isNaN(brightnessFloat)) { in brightnessFloatToIntRange() 158 return MathUtils.constrainedMap(minInt, maxInt, minFloat, maxFloat, brightnessFloat); in brightnessFloatToIntRange()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PhoneWindowManager.java | 2747 float brightnessFloat = Settings.System.getFloatForUser( in interceptKeyBeforeDispatching() local 2752 brightnessFloat += stepFloat; in interceptKeyBeforeDispatching() 2754 brightnessFloat = Math.min(maxFloat, brightnessFloat); in interceptKeyBeforeDispatching() 2755 brightnessFloat = Math.max(minFloat, brightnessFloat); in interceptKeyBeforeDispatching() 2758 Settings.System.SCREEN_BRIGHTNESS_FLOAT, brightnessFloat, in interceptKeyBeforeDispatching() local
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayPowerController.java | 1653 final float brightnessFloat = Settings.System.getFloatForUser(mContext.getContentResolver(), in getScreenBrightnessForVrSetting() local 1656 return clampScreenBrightnessForVr(brightnessFloat); in getScreenBrightnessForVrSetting()
|