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

Commit 189bff29 authored by Jungshik Jang's avatar Jungshik Jang Committed by Android (Google) Code Review
Browse files

Merge "Do no send <Feature Abort> as response of <Feature Abort>" into lmp-dev

parents 75df3bf9 1827fdcb
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
@@ -506,8 +506,14 @@ final class HdmiCecController {
                && mService.handleCecCommand(message)) {
            return;
        }
        if (message.getDestination() == Constants.ADDR_BROADCAST) {
            return;
        }
        if (message.getOpcode() == Constants.MESSAGE_FEATURE_ABORT) {
            Slog.v(TAG, "Unhandled <Feature Abort> message:" + message);
            return;
        }

        if (message.getDestination() != Constants.ADDR_BROADCAST) {
        int sourceAddress = message.getDestination();
        // Reply <Feature Abort> to initiator (source) for all requests.
        HdmiCecMessage cecMessage = HdmiCecMessageBuilder.buildFeatureAbortCommand(
@@ -515,7 +521,6 @@ final class HdmiCecController {
                Constants.ABORT_REFUSED);
        sendCommand(cecMessage);
    }
    }

    @ServiceThreadOnly
    void sendCommand(HdmiCecMessage cecMessage) {