aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSinisa (thermskin) <sinisa.sehovic@gmail.com>2016-05-03 21:46:13 +0200
committerSinisa (thermskin) <sinisa.sehovic@gmail.com>2016-05-03 21:46:13 +0200
commite2d7df8f814a09a2835a215f0e08127c91002abd (patch)
treea9251088caafe65664e5bb047a75087504b581fb
parentb5742acbbdd8b4467f612bf944692034b1e51171 (diff)
h815: Add Ambient
Change-Id: Ib3bd1fdca39a98d5d7796018ad63e9998f764f60
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml16
-rw-r--r--overlay/frameworks/base/packages/SystemUI/res/values/config.xml33
2 files changed, 49 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 95e962d..c95cda7 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -31,5 +31,21 @@
<item>"supl"</item>
</string-array>
+ <!-- enable doze powersaving mode -->
+ <bool name="config_enableAutoPowerModes">true</bool>
+
+ <!-- Whether device supports double tap to wake -->
+ <bool name="config_supportDoubleTapWake">true</bool>
+
+ <!-- Ambient Display : Dream of Notifications -->
+ <string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
+ <bool name="config_dozeAfterScreenOff">true</bool>
+ <bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
+
+ <!-- Screen brightness when dozing -->
+ <integer name="config_screenBrightnessDoze">15</integer>
+
+ <!-- Doze: force using accelerometer as pick up sensor
+ <bool name="config_dozeUseAccelerometer">true</bool> -->
</resources>
diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
new file mode 100644
index 0000000..d3d5752
--- /dev/null
+++ b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2013, The Android Open Source Project
+**
+** Licensed under the Apache License, Version 2.0 (the "License");
+** you may not use this file except in compliance with the License.
+** You may obtain a copy of the License at
+**
+** http://www.apache.org/licenses/LICENSE-2.0
+**
+** Unless required by applicable law or agreed to in writing, software
+** distributed under the License is distributed on an "AS IS" BASIS,
+** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+** See the License for the specific language governing permissions and
+** limitations under the License.
+*/
+-->
+
+<!-- These resources are around just to allow their values to be customized
+ for different hardware and product builds. -->
+<resources>
+
+ <!-- Doze: does this device support STATE_DOZE and STATE_DOZE_SUSPEND? -->
+ <bool name="doze_display_state_supported">true</bool>
+
+ <!-- Doze: should the pickup sensor be used as a pulse signal? -->
+ <bool name="doze_pulse_on_pick_up">true</bool>
+
+ <!-- Doze: shake accelerometer threshold -->
+ <integer name="doze_shake_accelerometer_threshold">10</integer>
+
+</resources> \ No newline at end of file