Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70ac1068 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

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
parent 88d18bf4
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -48,6 +48,7 @@ enum Source {
  TOUCH_NAVIGATION = 2097152,
  ROTARY_ENCODER = 4194304,
  JOYSTICK = 16777232,
  HDMI = 33554433,
  SENSOR = 67108864,
  ANY = -256,
}
+5 −0
Original line number Diff line number Diff line
@@ -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,
}