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

Commit 6b595640 authored by Sherry Huang's avatar Sherry Huang
Browse files

HDMI: Feature Discovery feature patch

Based on the documentation, <Report Features> are new messages for Version 2.0; thus, it should be made available only for HDMI 2.0 +.
Bug: 296356402
Test: test com.android.server.hdmi.HdmiControlServiceTest#setRcProfile[menu_name]_reportFeatureBroadcast and atest com.android.server.hdmi.HdmiControlServiceTvTest#setRcProfileTv_reportFeatureBroadcast

Change-Id: Ieab8f6c56b3689b6a0657ee0cd44552e5b0728fe
parent 8946f2de
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1029,6 +1029,10 @@ public class HdmiControlService extends SystemService {

    /** Helper method for sending feature discovery command */
    private void reportFeatures(boolean isTvDeviceSetting) {
        // <Report Features> should only be sent for HDMI 2.0
        if (getCecVersion() < HdmiControlManager.HDMI_CEC_VERSION_2_0) {
            return;
        }
        // check if tv device is enabled for tv device specific RC profile setting
        if (isTvDeviceSetting) {
            if (isTvDeviceEnabled()) {