Use android-cec key conversion in HdmiControlService.sendKeyAction

Change-Id: I8395d0217e2bbcd2cd6148414be8bcde1db168c0
This commit is contained in:
Jinsuk Kim
2014-06-16 08:07:45 +09:00
parent 401e3de791
commit 67ad9a4557
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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);
}
}