Loading include/android/keycodes.h +7 −1 Original line number Diff line number Diff line Loading @@ -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. Loading include/input/InputEventLabels.h +3 −0 Original line number Diff line number Diff line Loading @@ -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 } }; Loading Loading
include/android/keycodes.h +7 −1 Original line number Diff line number Diff line Loading @@ -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. Loading
include/input/InputEventLabels.h +3 −0 Original line number Diff line number Diff line Loading @@ -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 } }; Loading