17 #ifndef ANDROID_LIGHTS_INTERFACE_H
18 #define ANDROID_LIGHTS_INTERFACE_H
21 #include <sys/cdefs.h>
22 #include <sys/types.h>
24 #include <hardware/hardware.h>
31 #define LIGHTS_HARDWARE_MODULE_ID "lights"
39 #define LIGHT_ID_BACKLIGHT "backlight"
40 #define LIGHT_ID_KEYBOARD "keyboard"
41 #define LIGHT_ID_BUTTONS "buttons"
42 #define LIGHT_ID_BATTERY "battery"
43 #define LIGHT_ID_NOTIFICATIONS "notifications"
44 #define LIGHT_ID_ATTENTION "attention"
51 #define LIGHT_ID_BLUETOOTH "bluetooth"
52 #define LIGHT_ID_WIFI "wifi"
58 #define LIGHT_FLASH_NONE 0
66 #define LIGHT_FLASH_TIMED 1
72 #define LIGHT_FLASH_HARDWARE 2
77 #define BRIGHTNESS_MODE_USER 0
82 #define BRIGHTNESS_MODE_SENSOR 1
136 #endif // ANDROID_LIGHTS_INTERFACE_H
unsigned int color
The color of the LED in ARGB.
The parameters that can be set for a given light.
int flashMode
See the LIGHT_FLASH_* constants.
int(* set_light)(struct light_device_t *dev, struct light_state_t const *state)
Set the provided lights to the provided values.
int brightnessMode
Policy used by the framework to manage the light's brightness.
struct hw_device_t common