aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormosimchah <mosimchah@gmail.com>2017-02-23 22:10:43 -0500
committerMoshe Barash <mosimchah@gmail.com>2017-02-24 12:58:28 +0000
commit434fbdf9beec5726c0c63f34410a196ae7790d5f (patch)
tree2d834e2b3000595b8d005f84568c37ef578b6bf1
parent79ed85c1ef925392e00fc79d31b3e962b270bd05 (diff)
improve key layout 1/2
Change-Id: Ic5e3fb47f3257eca3f8a7ac43381d92618b4e969
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml82
1 files changed, 79 insertions, 3 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index ef06505..87f56a9 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -273,7 +273,6 @@
For example, a device with Home, Back and Menu keys would set this
config to 7. -->
<integer name="config_deviceHardwareKeys">103</integer>
-
<!-- Hardware keys present on the device with the ability to wake, stored as a bit field.
This integer should equal the sum of the corresponding value for each
of the following keys present:
@@ -286,7 +285,7 @@
64 - Volume rocker
For example, a device with Home, Back and Menu keys would set this
config to 7. -->
- <integer name="config_deviceHardwareWakeKeys">1</integer>
+ <integer name="config_deviceHardwareWakeKeys">97</integer>
<!-- Disable lockscreen translucent decor by default -->
<bool name="config_enableLockScreenTranslucentDecor">true</bool>
@@ -337,6 +336,83 @@
<item>"ehrpd:4094,87380,1048576,4096,16384,262144"</item>
</string-array>
- <integer name="config_longPressOnHomeBehavior">2</integer>
+ <!-- Control the behavior when the user long presses the home button.
+ 0 - Nothing
+ 1 - Menu key
+ 2 - Recent apps view in SystemUI
+ 3 - Launch assist intent
+ 4 - Voice Search
+ 5 - In-app Search
+ 6 - Launch camera
+ 7 - Sleep
+ 8 - Last app
+ 9 - Toggle split screen
+ This needs to match the constants in
+ policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+ -->
+ <integer name="config_longPressOnHomeBehavior">2</integer>
+
+ <!-- Control the behavior when the user double-taps the home button.
+ 0 - Nothing
+ 1 - Menu key
+ 2 - Recent apps view in SystemUI
+ 3 - Launch assist intent
+ 4 - Voice Search
+ 5 - In-app Search
+ 6 - Launch camera
+ 7 - Sleep
+ 8 - Last app
+ 9 - Toggle split screen
+ This needs to match the constants in
+ policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+ -->
+ <integer name="config_doubleTapOnHomeBehavior">3</integer>
+
+ <!-- Control the behavior when the user long presses the menu button.
+ 0 - Nothing
+ 1 - Menu key
+ 2 - Recent apps view in SystemUI
+ 3 - Launch assist intent
+ 4 - Voice Search
+ 5 - In-app Search
+ 6 - Launch camera
+ 7 - Sleep
+ 8 - Last app
+ 9 - Toggle split screen
+ This needs to match the constants in
+ policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+
+ <integer name="config_longPressOnMenuBehavior">1</integer> -->
+
+ <!-- Control the behavior when the user long presses the app switch button.
+ 0 - Nothing
+ 1 - Menu key
+ 2 - Recent apps view in SystemUI
+ 3 - Launch assist intent
+ 4 - Voice Search
+ 5 - In-app Search
+ 6 - Launch camera
+ 7 - Sleep
+ 8 - Last app
+ 9 - Toggle split screen
+ This needs to match the constants in
+ services/core/java/com/android/server/policy/policy/impl/PhoneWindowManager.java
+ -->
+ <integer name="config_longPressOnAppSwitchBehavior">9</integer>
+
+ <!-- Override the default detection behavior for the framework method
+ android.view.ViewConfiguration#hasPermanentMenuKey().
+ Valid settings are:
+ 0 - No change. Use the default autodetection behavior.
+ 1 - The device DOES have a permanent menu key; ignore autodetection.
+ 2 - The device DOES NOT have a permanent menu key; ignore autodetection. -->
+ <integer name="config_overrideHasPermanentMenuKey">2</integer>
+
+ <!-- Control the behavior when the user triple presses the power button.
+ 0 - Nothing
+ 1 - Toggle theater mode setting
+ 2 - Brightness boost
+ -->
+ <integer name="config_triplePressOnPowerBehavior">2</integer>
</resources>