diff options
author | AdrianDC <radian.dc@gmail.com> | 2015-07-14 10:48:37 +0200 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-10-26 17:54:17 -0700 |
commit | 7dd0277085f5d6f0b8bd00d1d37e876cf3ae7f3f (patch) | |
tree | ec9924debbee0151ad0228ee635df08f490fd5ba /include | |
parent | d802032d354778f96851c5ea600249b6cd9411c6 (diff) | |
download | hardware_libhardware-7dd0277085f5d6f0b8bd00d1d37e876cf3ae7f3f.zip hardware_libhardware-7dd0277085f5d6f0b8bd00d1d37e876cf3ae7f3f.tar.gz hardware_libhardware-7dd0277085f5d6f0b8bd00d1d37e876cf3ae7f3f.tar.bz2 |
Multiple LEDs [1/3]: Illumination Bars support
Implement the support of a multiple LEDs settings.
The setting is deactivated by default
and will be ignored by the unimplemented phones.
Current LibLights will simply not use the new variable.
Changes includes :
frameworks/base
hardware/libhardware
packages/Apps/Settings
Change-Id: I5242d1999f351909d284b88a8f14accaeb24ba49
Signed-off-by: AdrianDC <radian.dc@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hardware/lights.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/hardware/lights.h b/include/hardware/lights.h index fccd242..4973829 100644 --- a/include/hardware/lights.h +++ b/include/hardware/lights.h @@ -88,6 +88,11 @@ __BEGIN_DECLS #define BRIGHTNESS_MODE_SENSOR 1 /** + * Light mode allows multiple LEDs + */ +#define LIGHT_MODE_MULTIPLE_LEDS 0x01 + +/** * The parameters that can be set for a given light. * * Not all lights must support all parameters. If you @@ -122,6 +127,12 @@ struct light_state_t { * Currently the values are BRIGHTNESS_MODE_USER and BRIGHTNESS_MODE_SENSOR. */ int brightnessMode; + + /** + * Define the LEDs modes (multiple, ...). + * See the LIGHTS_MODE_* mask constants. + */ + unsigned int ledsModes; }; struct light_device_t { |