diff options
| author | Santos Cordon <santoscordon@google.com> | 2020-01-17 15:18:10 +0000 |
|---|---|---|
| committer | Santos Cordon <santoscordon@google.com> | 2020-01-22 18:34:39 +0000 |
| commit | 4505e5e6e8624dabdb2bc5e6721869b6eab0b14f (patch) | |
| tree | 824fb3163c2e8c8adbf10e069212181dbc5d73cb /core/java/android/os/PowerManager.java | |
| parent | f3f75809650aec8cb04277a24c0708ede84c5966 (diff) | |
Add display configuration files.
Adds a static display configuration file for specifying static display
configurations as a sustainable API.
Bug: 131813802
Test: Verify brightness changes work as expected. Verify changes going
through system to HAL conversion.
Exempt-From-Owner-Approval: I am new owner of lights, but OWNERS rights hasnt yet propogated.
Change-Id: I17922267f4695bc042d7c0687d4dcc10554e1b85
Diffstat (limited to 'core/java/android/os/PowerManager.java')
| -rw-r--r-- | core/java/android/os/PowerManager.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/java/android/os/PowerManager.java b/core/java/android/os/PowerManager.java index bf13c35867a4..6a80788c81cc 100644 --- a/core/java/android/os/PowerManager.java +++ b/core/java/android/os/PowerManager.java @@ -247,6 +247,19 @@ public final class PowerManager { */ public static final int BRIGHTNESS_DEFAULT = -1; + /** + * Brightness value for fully off in float. + * TODO: rename this to BRIGHTNES_OFF and remove the integer-based constant. + * @hide + */ + public static final float BRIGHTNESS_OFF_FLOAT = -1.0f; + + /** + * Invalid brightness value. + * @hide + */ + public static final float BRIGHTNESS_INVALID_FLOAT = Float.NaN; + // Note: Be sure to update android.os.BatteryStats and PowerManager.h // if adding or modifying user activity event constants. |
