summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Oleg Kibirev <olegk@google.com> 2018-11-27 16:42:20 -0800
committer Oleg Kibirev <olegk@google.com> 2018-11-27 17:08:36 -0800
commit1ade5e42f765a6d1236f4862c655506df5b854b1 (patch)
tree0a831e0682d4e57c578266d84a3ef1343b0b4a09
parent910c0aa1384ee3122a4d3929ca3b94943a3dc539 (diff)
Add thumbs up / thumbs down / profile keycodes to native includes
This was missed in cl/5460930, as changes to generate these key codes are only present in pi-tv-dev branch (there is no hardware with these keys in master yet). Bug: 119202163 Test: Not needed Change-Id: I0a3122e9af288a3683ab2f9300b2eca7507337fc
-rw-r--r--include/android/keycodes.h8
-rw-r--r--include/input/InputEventLabels.h3
2 files changed, 10 insertions, 1 deletions
diff --git a/include/android/keycodes.h b/include/android/keycodes.h
index 59d67f35f2..cfd2b403b5 100644
--- a/include/android/keycodes.h
+++ b/include/android/keycodes.h
@@ -769,7 +769,13 @@ enum {
/** all apps */
AKEYCODE_ALL_APPS = 284,
/** refresh key */
- AKEYCODE_REFRESH = 285
+ AKEYCODE_REFRESH = 285,
+ /** Thumbs up key. Apps can use this to let user upvote content. */
+ AKEYCODE_THUMBS_UP = 286,
+ /** Thumbs down key. Apps can use this to let user downvote content. */
+ AKEYCODE_THUMBS_DOWN = 287,
+ /** Consumed by system to switch current viewer profile. */
+ AKEYCODE_PROFILE_SWITCH = 288
// 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 6d072a3ea5..59d16d15af 100644
--- a/include/input/InputEventLabels.h
+++ b/include/input/InputEventLabels.h
@@ -325,6 +325,9 @@ static const InputEventLabel KEYCODES[] = {
DEFINE_KEYCODE(SYSTEM_NAVIGATION_RIGHT),
DEFINE_KEYCODE(ALL_APPS),
DEFINE_KEYCODE(REFRESH),
+ DEFINE_KEYCODE(THUMBS_UP),
+ DEFINE_KEYCODE(THUMBS_DOWN),
+ DEFINE_KEYCODE(PROFILE_SWITCH),
{ nullptr, 0 }
};