diff options
author | Jeff Brown <jeffbrown@google.com> | 2014-02-20 18:05:03 -0800 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2014-02-20 18:05:03 -0800 |
commit | 10102e4c0e501333a12b38a5cfe709d1558d84dd (patch) | |
tree | 6b4b3b43c1e55d3812664a8530d7d72f633d596d /core/res | |
parent | 1a405db22a2ade6b745f3e1cf93ba0c54b048d95 (diff) | |
parent | baaa080b625f2448758d87dadc2706d0e2335a86 (diff) | |
download | frameworks_base-10102e4c0e501333a12b38a5cfe709d1558d84dd.zip frameworks_base-10102e4c0e501333a12b38a5cfe709d1558d84dd.tar.gz frameworks_base-10102e4c0e501333a12b38a5cfe709d1558d84dd.tar.bz2 |
resolved conflicts for merge of baaa080b to master
Change-Id: I3ee12321e298f7a2ea577a99f30c49f3bb497fae
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/res/values/config.xml | 69 | ||||
-rw-r--r-- | core/res/res/values/symbols.xml | 8 |
2 files changed, 77 insertions, 0 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index b1b1f42..519e2ae 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -658,6 +658,11 @@ Must be in the range specified by minimum and maximum. --> <integer name="config_screenBrightnessSettingDefault">102</integer> + <!-- Screen brightness used to dim the screen while dozing in a very low power state. + May be less than the minimum allowed brightness setting + that can be set by the user. --> + <integer name="config_screenBrightnessDoze">1</integer> + <!-- Screen brightness used to dim the screen when the user activity timeout expires. May be less than the minimum allowed brightness setting that can be set by the user. --> @@ -1089,6 +1094,70 @@ <!-- ComponentName of the default dream (Settings.Secure.SCREENSAVER_COMPONENT) --> <string name="config_dreamsDefaultComponent">com.google.android.deskclock/com.android.deskclock.Screensaver</string> + <!-- Are we allowed to dream while not plugged in? --> + <bool name="config_dreamsEnabledOnBattery">false</bool> + <!-- Minimum battery level to allow dreaming when powered. + Use -1 to disable this safety feature. --> + <integer name="config_dreamsBatteryLevelMinimumWhenPowered">-1</integer> + <!-- Minimum battery level to allow dreaming when not powered. + Use -1 to disable this safety feature. --> + <integer name="config_dreamsBatteryLevelMinimumWhenNotPowered">15</integer> + <!-- If the battery level drops by this percentage and the user activity timeout + has expired, then assume the device is receiving insufficient current to charge + effectively and terminate the dream. Use -1 to disable this safety feature. --> + <integer name="config_dreamsBatteryLevelDrainCutoff">5</integer> + + <!-- ComponentName of a dream to show whenever the system would otherwise have + gone to sleep. When the PowerManager is asked to go to sleep, it will instead + try to start this dream if possible. The dream should typically call startDozing() + to put the display into a low power state and allow the application processor + to be suspended. When the dream ends, the system will go to sleep as usual. + Specify the component name (Settings.Secure.SCREENSAVER_COMPONENT) or an + empty string if none. + + Note that doze dreams are not subject to the same start conditions as ordinary dreams. + Doze dreams will run whenever the power manager is in a dozing state. --> + <string name="config_dozeComponent"></string> + + <!-- Power Management: Specifies whether to decouple the auto-suspend state of the + device from the display on/off state. + + When false, autosuspend_disable() will be called before the display is turned on + and autosuspend_enable() will be called after the display is turned off. + This mode provides best compatibility for devices using legacy power management + features such as early suspend / late resume. + + When true, autosuspend_display() and autosuspend_enable() will be called + independently of whether the display is being turned on or off. This mode + enables the power manager to suspend the application processor while the + display is on. + + This resource should be set to "true" when a doze component has been specified + to maximize power savings but not all devices support it. + + Refer to autosuspend.h for details. + --> + <bool name="config_powerDecoupleAutoSuspendModeFromDisplay">false</bool> + + <!-- Power Management: Specifies whether to decouple the interactive state of the + device from the display on/off state. + + When false, setInteractive(..., true) will be called before the display is turned on + and setInteractive(..., false) will be called after the display is turned off. + This mode provides best compatibility for devices that expect the interactive + state to be tied to the display state. + + When true, setInteractive(...) will be called independently of whether the display + is being turned on or off. This mode enables the power manager to reduce + clocks and disable the touch controller while the display is on. + + This resource should be set to "true" when a doze component has been specified + to maximize power savings but not all devices support it. + + Refer to power.h for details. + --> + <bool name="config_powerDecoupleInteractiveModeFromDisplay">false</bool> + <!-- Base "touch slop" value used by ViewConfiguration as a movement threshold where scrolling should begin. --> <dimen name="config_viewConfigurationTouchSlop">8dp</dimen> diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index e574e8d..b1bf781 100644 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -1500,6 +1500,7 @@ <java-symbol type="integer" name="config_screenBrightnessSettingMaximum" /> <java-symbol type="integer" name="config_screenBrightnessSettingDefault" /> <java-symbol type="integer" name="config_screenBrightnessDim" /> + <java-symbol type="integer" name="config_screenBrightnessDoze" /> <java-symbol type="integer" name="config_shutdownBatteryTemperature" /> <java-symbol type="integer" name="config_undockedHdmiRotation" /> <java-symbol type="integer" name="config_virtualKeyQuietTimeMillis" /> @@ -1604,11 +1605,18 @@ <java-symbol type="xml" name="storage_list" /> <java-symbol type="bool" name="config_dreamsSupported" /> <java-symbol type="bool" name="config_dreamsEnabledByDefault" /> + <java-symbol type="bool" name="config_dreamsEnabledOnBattery" /> <java-symbol type="bool" name="config_dreamsActivatedOnDockByDefault" /> <java-symbol type="bool" name="config_dreamsActivatedOnSleepByDefault" /> + <java-symbol type="integer" name="config_dreamsBatteryLevelMinimumWhenPowered" /> + <java-symbol type="integer" name="config_dreamsBatteryLevelMinimumWhenNotPowered" /> + <java-symbol type="integer" name="config_dreamsBatteryLevelDrainCutoff" /> <java-symbol type="string" name="config_dreamsDefaultComponent" /> + <java-symbol type="string" name="config_dozeComponent" /> <java-symbol type="string" name="enable_explore_by_touch_warning_title" /> <java-symbol type="string" name="enable_explore_by_touch_warning_message" /> + <java-symbol type="bool" name="config_powerDecoupleAutoSuspendModeFromDisplay" /> + <java-symbol type="bool" name="config_powerDecoupleInteractiveModeFromDisplay" /> <java-symbol type="layout" name="resolver_list" /> <java-symbol type="id" name="resolver_list" /> |