summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-01-20 18:36:40 -0800
committerDianne Hackborn <hackbod@google.com>2012-01-23 12:01:00 -0800
commitd9ea468d6a9cb6018ce33d3dcf9db72f02773af1 (patch)
treeb04a38183228b5f2c8ee6706522ddd0b89697b8f /core
parent30f1312b3cb584c14eba60e6809d4eeed5d906bf (diff)
downloadframeworks_base-d9ea468d6a9cb6018ce33d3dcf9db72f02773af1.zip
frameworks_base-d9ea468d6a9cb6018ce33d3dcf9db72f02773af1.tar.gz
frameworks_base-d9ea468d6a9cb6018ce33d3dcf9db72f02773af1.tar.bz2
New brightness setting to adjust auto-brightness mode.
Change-Id: Icfec22be99d8c79e9ff5720b80fb9dacbba36134
Diffstat (limited to 'core')
-rw-r--r--core/java/android/os/IPowerManager.aidl1
-rw-r--r--core/java/android/provider/Settings.java7
2 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/os/IPowerManager.aidl b/core/java/android/os/IPowerManager.aidl
index 9a53d76..270e9be 100644
--- a/core/java/android/os/IPowerManager.aidl
+++ b/core/java/android/os/IPowerManager.aidl
@@ -45,4 +45,5 @@ interface IPowerManager
// sets the brightness of the backlights (screen, keyboard, button) 0-255
void setBacklightBrightness(int brightness);
void setAttentionLight(boolean on, int color);
+ void setAutoBrightnessAdjustment(float adj);
}
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 0202c47..ba9046c 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -1401,6 +1401,12 @@ public final class Settings {
public static final String SCREEN_BRIGHTNESS_MODE = "screen_brightness_mode";
/**
+ * Adjustment to auto-brightness to make it generally more (>0.0 <1.0)
+ * or less (<0.0 >-1.0) bright.
+ */
+ public static final String SCREEN_AUTO_BRIGHTNESS_ADJ = "screen_auto_brightness_adj";
+
+ /**
* SCREEN_BRIGHTNESS_MODE value for manual mode.
*/
public static final int SCREEN_BRIGHTNESS_MODE_MANUAL = 0;
@@ -1927,6 +1933,7 @@ public final class Settings {
SCREEN_OFF_TIMEOUT,
SCREEN_BRIGHTNESS,
SCREEN_BRIGHTNESS_MODE,
+ SCREEN_AUTO_BRIGHTNESS_ADJ,
VIBRATE_ON,
MODE_RINGER,
MODE_RINGER_STREAMS_AFFECTED,