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

Commit 0df4f34d authored by Paul Colta's avatar Paul Colta
Browse files

HDMI: Use HAL physical address in OneTouchPlayAction

HdmiDeviceInfo's known PA might be invalid when device triggers OTP. We use HAL known PA in this action.

Bug: 377497593
Test: atest com.android.server.hdmi
Flag: EXEMPT bugfix
Change-Id: I07527f65d3e4f92d55f6e0805f8cd90d04a0cab0
parent 636b7ab6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -303,6 +303,10 @@ abstract class HdmiCecFeatureAction {
        return mSource.getDeviceInfo().getPhysicalAddress();
    }

    protected final int getServicePath() {
        return mService.getPhysicalAddress();
    }

    protected final void sendUserControlPressedAndReleased(int targetAddress, int uiCommand) {
        mSource.sendUserControlPressedAndReleased(targetAddress, uiCommand);
    }
+2 −1
Original line number Diff line number Diff line
@@ -152,7 +152,8 @@ final class OneTouchPlayAction extends HdmiCecFeatureAction {
        // If the device wasn´t the active source yet,
        // this makes it the active source and wakes it up.
        mSource.mService.setAndBroadcastActiveSourceFromOneDeviceType(
                mTargetAddress, getSourcePath(), "OneTouchPlayAction#broadcastActiveSource()");
                mTargetAddress, getServicePath(),
                "OneTouchPlayAction#broadcastActiveSource()");
        // When OneTouchPlay is called, client side should be responsible to send out the intent
        // of which internal source, for example YouTube, it would like to switch to.
        // Here we only update the active port and the active source records in the local