diff options
author | Mike Lockwood <lockwood@android.com> | 2009-11-10 11:59:57 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2009-11-10 11:59:57 -0800 |
commit | ecc3bfa61756bfef583f98bca0a697dd160adaec (patch) | |
tree | 539343f40177648fdcd958f2756a6a43fbb96c76 | |
parent | 97bba480178ce49460bbcb6089ed5a536506426e (diff) | |
parent | baf21439df7b4e641dfa990f12c287dc53c40f09 (diff) | |
download | libhardware-ecc3bfa61756bfef583f98bca0a697dd160adaec.tar.gz |
am baf21439: Add brightnessMode field to light_state_t
Merge commit 'baf21439df7b4e641dfa990f12c287dc53c40f09' into eclair-mr2
* commit 'baf21439df7b4e641dfa990f12c287dc53c40f09':
Add brightnessMode field to light_state_t
-rwxr-xr-x | include/hardware/lights.h | 16 |
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 { |