Use android-cec key conversion in HdmiControlService.sendKeyAction
Change-Id: I8395d0217e2bbcd2cd6148414be8bcde1db168c0
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user