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

Commit 0ad1202e authored by Jinsuk Kim's avatar Jinsuk Kim Committed by Android Git Automerger
Browse files

am dfa931b4: am 5f23693b: am 3f6755f5: CEC: Check command type for power status monitor action

* commit 'dfa931b4':
  CEC: Check command type for power status monitor action
parents 596be3ac dfa931b4
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -64,11 +64,12 @@ public class PowerStatusMonitorAction extends HdmiCecFeatureAction {

    @Override
    boolean processCommand(HdmiCecMessage cmd) {
        if (mState != STATE_WAIT_FOR_REPORT_POWER_STATUS) {
            return false;
        }
        if (mState == STATE_WAIT_FOR_REPORT_POWER_STATUS
                && cmd.getOpcode() == Constants.MESSAGE_REPORT_POWER_STATUS) {
            return handleReportPowerStatus(cmd);
        }
        return false;
    }

    private boolean handleReportPowerStatus(HdmiCecMessage cmd) {
        int sourceAddress = cmd.getSource();