Remove PowerManager.setAutoBrightness()
We will use the System.SCREEN_BRIGHTNESS_MODE Settings value instead. Add SCREEN_BRIGHTNESS_MODE_MANUAL and SCREEN_BRIGHTNESS_MODE_AUTOMATIC constants. Change-Id: I01935be3fcb48cf76392d2c594205cb47babc5b2 Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
@ -34,7 +34,4 @@ interface IPowerManager
|
||||
|
||||
// sets the brightness of the backlights (screen, keyboard, button) 0-255
|
||||
void setBacklightBrightness(int brightness);
|
||||
|
||||
// enables or disables automatic brightness mode
|
||||
void setAutoBrightness(boolean on);
|
||||
}
|
||||
|
@ -1080,6 +1080,18 @@ public final class Settings {
|
||||
*/
|
||||
public static final String SCREEN_BRIGHTNESS_MODE = "screen_brightness_mode";
|
||||
|
||||
/**
|
||||
* SCREEN_BRIGHTNESS_MODE value for manual mode.
|
||||
* @hide
|
||||
*/
|
||||
public static final int SCREEN_BRIGHTNESS_MODE_MANUAL = 0;
|
||||
|
||||
/**
|
||||
* SCREEN_BRIGHTNESS_MODE value for manual mode.
|
||||
* @hide
|
||||
*/
|
||||
public static final int SCREEN_BRIGHTNESS_MODE_AUTOMATIC = 1;
|
||||
|
||||
/**
|
||||
* Control whether the process CPU usage meter should be shown.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user