Merge "Change checking rule in startArcAction(false) for HDMI CTS"

This commit is contained in:
Austin Shin
2020-02-25 08:17:07 +00:00
committed by Gerrit Code Review

View File

@@ -1092,10 +1092,11 @@ final class HdmiCecLocalDeviceTv extends HdmiCecLocalDevice {
HdmiDeviceInfo avr = getAvrDeviceInfo(); HdmiDeviceInfo avr = getAvrDeviceInfo();
if (avr != null if (avr != null
&& (avrAddress == avr.getLogicalAddress()) && (avrAddress == avr.getLogicalAddress())
&& isConnectedToArcPort(avr.getPhysicalAddress()) && isConnectedToArcPort(avr.getPhysicalAddress())) {
&& isDirectConnectAddress(avr.getPhysicalAddress())) {
if (enabled) { if (enabled) {
return isConnected(avr.getPortId()) && isArcFeatureEnabled(avr.getPortId()); return isConnected(avr.getPortId())
&& isArcFeatureEnabled(avr.getPortId())
&& isDirectConnectAddress(avr.getPhysicalAddress());
} else { } else {
return true; return true;
} }