summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorNick Armstrong-Crews <strongarm@google.com>2015-09-04 18:04:11 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-09-04 18:04:11 +0000
commit3c8a147c8394a32217bb65672387d69a49a31270 (patch)
treed95dfc3ee3dc8e02b69813e65d8d39a7e9fd590c /include
parentf090d5985a20f13433be632beb45af8a882c0cd0 (diff)
parenta180e855f66db8e4aa4796247e55ca5372d53de2 (diff)
downloadframeworks_native-3c8a147c8394a32217bb65672387d69a49a31270.zip
frameworks_native-3c8a147c8394a32217bb65672387d69a49a31270.tar.gz
frameworks_native-3c8a147c8394a32217bb65672387d69a49a31270.tar.bz2
Merge "Add KEYCODE_SOFT_SLEEP for Ungaze." into cw-e-dev
Diffstat (limited to 'include')
-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 1f55d9f..421abe5 100644
--- a/include/android/keycodes.h
+++ b/include/android/keycodes.h
@@ -735,7 +735,9 @@ enum {
AKEYCODE_MEDIA_SKIP_FORWARD = 272,
AKEYCODE_MEDIA_SKIP_BACKWARD = 273,
AKEYCODE_MEDIA_STEP_FORWARD = 274,
- AKEYCODE_MEDIA_STEP_BACKWARD = 275
+ AKEYCODE_MEDIA_STEP_BACKWARD = 275,
+ /** Put device to sleep unless a wakelock is held. */
+ AKEYCODE_SOFT_SLEEP = 276
// 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 344f2f3..f0a6238 100644
--- a/include/input/InputEventLabels.h
+++ b/include/input/InputEventLabels.h
@@ -311,6 +311,7 @@ static const InputEventLabel KEYCODES[] = {
DEFINE_KEYCODE(MEDIA_SKIP_BACKWARD),
DEFINE_KEYCODE(MEDIA_STEP_FORWARD),
DEFINE_KEYCODE(MEDIA_STEP_BACKWARD),
+ DEFINE_KEYCODE(SOFT_SLEEP),
{ NULL, 0 }
};