summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJason Monk <jmonk@google.com>2015-03-31 16:46:39 -0400
committerJason Monk <jmonk@google.com>2015-05-12 10:12:32 -0400
commit27bbb2d0a1c8a3bb38768511ac840c3388b0fb03 (patch)
treec074e5bc25f04f5a5e1d0217bc8b856aef3c42c1 /core
parentbb9d9278aa6fe3ba3d4c21b03d3e3da4543a974c (diff)
downloadframeworks_base-27bbb2d0a1c8a3bb38768511ac840c3388b0fb03.zip
frameworks_base-27bbb2d0a1c8a3bb38768511ac840c3388b0fb03.tar.gz
frameworks_base-27bbb2d0a1c8a3bb38768511ac840c3388b0fb03.tar.bz2
Add control for double tap to wake setting
Bug: 16875464 Change-Id: Ic1ad910dd38acbc68ef040b2acdf3696ec2c2e4e
Diffstat (limited to 'core')
-rw-r--r--core/java/android/provider/Settings.java9
-rwxr-xr-xcore/res/res/values/config.xml3
-rwxr-xr-xcore/res/res/values/symbols.xml1
3 files changed, 12 insertions, 1 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index dc70d7b..d3a5561 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -5517,6 +5517,12 @@ public final class Settings {
public static final String APP_IDLE_DURATION = "app_idle_duration";
/**
+ * Controls whether double tap to wake is enabled.
+ * @hide
+ */
+ public static final String DOUBLE_TAP_TO_WAKE = "double_tap_to_wake";
+
+ /**
* This are the settings to be backed up.
*
* NOTE: Settings are backed up and restored in the order they appear
@@ -5571,7 +5577,8 @@ public final class Settings {
MOUNT_UMS_PROMPT,
MOUNT_UMS_NOTIFY_ENABLED,
UI_NIGHT_MODE,
- SLEEP_TIMEOUT
+ SLEEP_TIMEOUT,
+ DOUBLE_TAP_TO_WAKE,
};
/**
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index 7270b2c..690fd28 100755
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -2141,4 +2141,7 @@
<!-- This config is ued to determine whether animations are allowed in low power mode. -->
<bool name="config_allowAnimationsInLowPowerMode">false</bool>
+
+ <!-- Whether device supports double tap to wake -->
+ <bool name="config_supportDoubleTapWake">false</bool>
</resources>
diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml
index e54a0b2..8f949e1 100755
--- a/core/res/res/values/symbols.xml
+++ b/core/res/res/values/symbols.xml
@@ -2261,4 +2261,5 @@
<java-symbol type="layout" name="chooser_row" />
<java-symbol type="color" name="chooser_service_row_background_color" />
<java-symbol type="id" name="target_badge" />
+ <java-symbol type="bool" name="config_supportDoubleTapWake" />
</resources>