summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSujith Ramakrishnan <sujithrk@google.com>2017-07-18 18:54:15 -0700
committerSujith Ramakrishnan <sujithrk@google.com>2017-08-30 22:18:56 +0000
commit734239185fdbc430196aca7ade7b322c169f9ee2 (patch)
treeeae45d330f4011ddcad176e0dbb33b816035a326
parent56cca289ccdb357c3acc63adcf78d556b6e7e091 (diff)
downloadnative-734239185fdbc430196aca7ade7b322c169f9ee2.tar.gz
Add a new keycode for TV (ALL_APPS)
- KEYCODE_ALL_APPS: Launches all apps. For TV, this checks for launcher package in system image. Test: Manual: ALL_APPS: adb shell input keyevent 284 Test: also tested with --longpress for these keys Bug: 38496261 Change-Id: I2e50a569533f01d93c020adde672c842540f0193
-rw-r--r--include/android/keycodes.h4
-rw-r--r--include/input/InputEventLabels.h1
2 files changed, 4 insertions, 1 deletions
diff --git a/include/android/keycodes.h b/include/android/keycodes.h
index e202060f16..2164d6163e 100644
--- a/include/android/keycodes.h
+++ b/include/android/keycodes.h
@@ -765,7 +765,9 @@ enum {
/** fingerprint navigation key, left. */
AKEYCODE_SYSTEM_NAVIGATION_LEFT = 282,
/** fingerprint navigation key, right. */
- AKEYCODE_SYSTEM_NAVIGATION_RIGHT = 283
+ AKEYCODE_SYSTEM_NAVIGATION_RIGHT = 283,
+ /** all apps */
+ AKEYCODE_ALL_APPS = 284
// NOTE: If you add a new keycode here you must also add it to several other files.
// Refer to frameworks/base/core/java/android/view/KeyEvent.java for the full list.
diff --git a/include/input/InputEventLabels.h b/include/input/InputEventLabels.h
index 20154eb10e..c282cf0b22 100644
--- a/include/input/InputEventLabels.h
+++ b/include/input/InputEventLabels.h
@@ -323,6 +323,7 @@ static const InputEventLabel KEYCODES[] = {
DEFINE_KEYCODE(SYSTEM_NAVIGATION_DOWN),
DEFINE_KEYCODE(SYSTEM_NAVIGATION_LEFT),
DEFINE_KEYCODE(SYSTEM_NAVIGATION_RIGHT),
+ DEFINE_KEYCODE(ALL_APPS),
{ NULL, 0 }
};