OSDN Git Service

Add automatic lighting control framework
authorDan Murphy <D.Murphy@motorola.com>
Thu, 27 Aug 2009 19:59:03 +0000 (14:59 -0500)
committerMike Lockwood <lockwood@android.com>
Tue, 15 Sep 2009 06:29:15 +0000 (02:29 -0400)
commit951764b97010dfa073126f52b43ea1bdf1b35998
treea4385faacb89cb30250d2a8ce0da611d1eefddc2
parent151921a62485f2141ad1316076c196ef00e1b421
Add automatic lighting control framework

Add changes to have the ability to turn on and off the
automatic light sensing for the device.  This is fully configurable
and is by default not  present.  Vendors should override the ALS setting
to enable the automatic lighting controls.

These changes will add a check box to the Brightness settings menu to give control
to the user to allow the device's display lighting to be controlled via the slide bar
or the auto lighting system.

If the user selects auto then the slide bar will become invisible.  Manual mode
will present the slide bar to the user.

Change-Id: I146a6d75b99b08c9b839218ce6b85adf21f9fd73
Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
core/java/android/os/IHardwareService.aidl
core/java/android/provider/Settings.java
core/res/res/values/config.xml
packages/SettingsProvider/res/values/defaults.xml
packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
services/java/com/android/server/HardwareService.java
services/java/com/android/server/PowerManagerService.java
services/jni/com_android_server_HardwareService.cpp