summaryrefslogtreecommitdiff
path: root/input
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2022-01-26 21:26:52 -0800
committerSiarhei Vishniakou <svv@google.com>2022-01-28 12:19:51 -0800
commit70ac10680d30a68c7f7eaf83d350537fc9784012 (patch)
tree91f6527b014b3b0764bf0e341fe2bc748576fced /input
parent88d18bf4bde504220312a3726002aa6dc0298270 (diff)
Add HDMI to Source
HDMI was actually part of InputDevice.java API, and it was later added into native as part of another CL. This got left out of the original input.common HAL because the history of the API was unclear at the time. Bug: 214604719 Test: none Change-Id: If9855ed6aea1848b646fe8b34e3f8da29a73b632
Diffstat (limited to 'input')
-rw-r--r--input/common/aidl/aidl_api/android.hardware.input.common/current/android/hardware/input/common/Source.aidl1
-rw-r--r--input/common/aidl/android/hardware/input/common/Source.aidl5
2 files changed, 6 insertions, 0 deletions
diff --git a/input/common/aidl/aidl_api/android.hardware.input.common/current/android/hardware/input/common/Source.aidl b/input/common/aidl/aidl_api/android.hardware.input.common/current/android/hardware/input/common/Source.aidl
index 24d02cdbdc..396e06de97 100644
--- a/input/common/aidl/aidl_api/android.hardware.input.common/current/android/hardware/input/common/Source.aidl
+++ b/input/common/aidl/aidl_api/android.hardware.input.common/current/android/hardware/input/common/Source.aidl
@@ -48,6 +48,7 @@ enum Source {
TOUCH_NAVIGATION = 2097152,
ROTARY_ENCODER = 4194304,
JOYSTICK = 16777232,
+ HDMI = 33554433,
SENSOR = 67108864,
ANY = -256,
}
diff --git a/input/common/aidl/android/hardware/input/common/Source.aidl b/input/common/aidl/android/hardware/input/common/Source.aidl
index 7eb6d66d64..c6a825a4d6 100644
--- a/input/common/aidl/android/hardware/input/common/Source.aidl
+++ b/input/common/aidl/android/hardware/input/common/Source.aidl
@@ -38,6 +38,11 @@ enum Source {
TOUCH_NAVIGATION = (1 << 21) | SourceClass.NONE,
ROTARY_ENCODER = (1 << 22) | SourceClass.NONE,
JOYSTICK = (1 << 24) | SourceClass.JOYSTICK,
+ /**
+ * The input source is a device connected through HDMI-based bus.
+ * The keys come in through HDMI-CEC or MHL signal line.
+ */
+ HDMI = (1 << 25) | SourceClass.BUTTON,
SENSOR = (1 << 26) | SourceClass.NONE,
ANY = 0xFFFFFF00,
}