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>
This commit is contained in:
parent
a58556d7d8
commit
baf21439df
1 changed files with 16 additions and 0 deletions
|
@ -71,6 +71,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.
|
||||
*
|
||||
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue