diff options
author | Mike Lockwood <lockwood@android.com> | 2009-11-10 07:51:33 -0500 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-11-10 07:51:33 -0500 |
commit | baf21439df7b4e641dfa990f12c287dc53c40f09 (patch) | |
tree | f77f26e42117df22de602dc695dfd9e3541bc11c /include/hardware/lights.h | |
parent | a58556d7d8919ca193ec894b3f8553357bbbccc4 (diff) | |
download | hardware_libhardware-baf21439df7b4e641dfa990f12c287dc53c40f09.zip hardware_libhardware-baf21439df7b4e641dfa990f12c287dc53c40f09.tar.gz hardware_libhardware-baf21439df7b4e641dfa990f12c287dc53c40f09.tar.bz2 |
Add brightnessMode field to light_state_t
This is to allow the framework to inform the lights HAL of the current
lighting mode for the LCD backlight.
Change-Id: I665653c4b9097c4dd92bf0aaa5d83953e134a886
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include/hardware/lights.h')
-rwxr-xr-x | include/hardware/lights.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/hardware/lights.h b/include/hardware/lights.h index e8b2294..2cf5519 100755 --- a/include/hardware/lights.h +++ b/include/hardware/lights.h @@ -72,6 +72,16 @@ __BEGIN_DECLS #define LIGHT_FLASH_HARDWARE 2 /** + * Light brightness is managed by a user setting. + */ +#define BRIGHTNESS_MODE_USER 0 + +/** + * Light brightness is managed by a light sensor. + */ +#define BRIGHTNESS_MODE_SENSOR 1 + +/** * The parameters that can be set for a given light. * * Not all lights must support all parameters. If you @@ -100,6 +110,12 @@ struct light_state_t { int flashMode; int flashOnMS; int flashOffMS; + + /** + * Policy used by the framework to manage the light's brightness. + * Currently the values are BRIGHTNESS_MODE_USER and BRIGHTNESS_MODE_SENSOR. + */ + int brightnessMode; }; struct light_device_t { |