OSDN Git Service

Declare KEYCODE_SLEEP and KEYCODE_WAKEUP.
authorJeff Brown <jeffbrown@google.com>
Fri, 7 Mar 2014 21:57:59 +0000 (13:57 -0800)
committerJeff Brown <jeffbrown@google.com>
Fri, 7 Mar 2014 21:57:59 +0000 (13:57 -0800)
Bug: 12938999
Change-Id: I544661b3887332998d703b7b2df9e56c23ab48c4

include/android/keycodes.h
include/input/KeycodeLabels.h

index 1ca1332..b6a5f4c 100644 (file)
@@ -266,6 +266,8 @@ enum {
     AKEYCODE_BRIGHTNESS_DOWN = 220,
     AKEYCODE_BRIGHTNESS_UP   = 221,
     AKEYCODE_MEDIA_AUDIO_TRACK = 222,
+    AKEYCODE_SLEEP           = 223,
+    AKEYCODE_WAKEUP          = 224,
 
     // 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.
index 19582e9..a8d63da 100644 (file)
@@ -247,6 +247,8 @@ static const KeycodeLabel KEYCODES[] = {
     { "BRIGHTNESS_DOWN", 220 },
     { "BRIGHTNESS_UP", 221 },
     { "MEDIA_AUDIO_TRACK", 222 },
+    { "SLEEP", 223 },
+    { "WAKEUP", 224 },
 
     // 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.