diff options
| author | AdrianDC <radian.dc@gmail.com> | 2015-07-14 10:48:37 +0200 |
|---|---|---|
| committer | AdrianDC <radian.dc@gmail.com> | 2015-09-12 00:02:20 +0200 |
| commit | 229d66576db0065fe02dca47ad266022731c544e (patch) | |
| tree | 5cab021b13917c9a04ef8bb68f8fa9f07b49705e | |
| parent | a4b99b751f0f530cbcc8930fe4c5b683fe16c95a (diff) | |
Multiple LEDs [1/3]: Illumination Bars supportlp5.1
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>
| -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 fccd2420..49738292 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 { |
