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

Commit 67ad9a45 authored by Jinsuk Kim's avatar Jinsuk Kim
Browse files

Use android-cec key conversion in HdmiControlService.sendKeyAction

Change-Id: I8395d0217e2bbcd2cd6148414be8bcde1db168c0
parent 401e3de7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -40,6 +40,8 @@ final class HdmiConstants {
    // Constants related to UI Command Codes.
    // Refer to CEC Table 30 in HDMI Spec v1.4b.
    static final int UI_COMMAND_POWER = 0x40;
    static final int UI_COMMAND_VOLUME_UP = 0x41;
    static final int UI_COMMAND_VOLUME_DOWN = 0x42;
    static final int UI_COMMAND_MUTE = 0x43;
    static final int UI_COMMAND_MUTE_FUNCTION = 0x65;
    static final int UI_COMMAND_RESTORE_VOLUME_FUNCTION = 0x66;
+1 −3
Original line number Diff line number Diff line
@@ -146,8 +146,6 @@ final class SendKeyAction extends FeatureAction {
    // KeyEvent.KEYCODE_TV_BROADCAST_CABLE.
    // The return byte array contains both UI command (keycode) and optional parameter.
    private byte[] getCecKeyCodeAndParam(int keyCode) {
        // TODO: Convert to CEC keycode and (optionally) parameter.
        //       return androidKeyToCecKey(keyCode);
        return EmptyArray.BYTE;
        return HdmiCecKeycodeTranslator.androidKeyToCecKey(keyCode);
    }
}