summaryrefslogtreecommitdiff
path: root/include/hardware/lights.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hardware/lights.h')
-rwxr-xr-xinclude/hardware/lights.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/hardware/lights.h b/include/hardware/lights.h
index e8b22943..2cf55193 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 {