Created
April 27, 2015 09:09
-
-
Save luca020400/0d3289abcb85c50089ce to your computer and use it in GitHub Desktop.
Ambient Display
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From e097fc9e7b87332dd887cf55e3a3b021a284b219 Mon Sep 17 00:00:00 2001 | |
From: luca020400 <luca.stefani.ge1@gmail.com> | |
Date: Mon, 27 Apr 2015 11:08:31 +0200 | |
Subject: [PATCH] msm8226-common: enable ambient display | |
Change-Id: Ic33479b31094e411da9390b1fbbda2ca92b72db7 | |
--- | |
.../frameworks/base/core/res/res/values/config.xml | 20 ++++++++++++++++++++ | |
1 file changed, 20 insertions(+) | |
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml | |
index 5d0e3a6..19cefa5 100644 | |
--- a/overlay/frameworks/base/core/res/res/values/config.xml | |
+++ b/overlay/frameworks/base/core/res/res/values/config.xml | |
@@ -242,4 +242,24 @@ | |
<!-- Whether UI for multi user should be shown --> | |
<bool name="config_enableMultiUserUI">true</bool> | |
+ <!-- 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 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">com.android.systemui/com.android.systemui.doze.DozeService</string> | |
+ | |
+ | |
+ <!-- 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">17</integer> | |
+ | |
+ <!-- If true, the doze component is not started until after the screen has been | |
+ turned off and the screen off animation has been performed. --> | |
+ <bool name="config_dozeAfterScreenOff">true</bool> | |
+ | |
</resources> | |
-- | |
2.1.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment