Remove playback device handling from source device routing control

Redundant since handleRoutingChange and handleRoutingInformation are
overridden in HdmiCecLocalDevicePlayback.

Bug: 153950818
Test: atest HdmiCecLocalDevicePlaybackTest
Change-Id: Id09ab99c082546027e8d15f06ea42b2488b768b1
This commit is contained in:
Nathalie Le Clair
2020-09-28 12:30:56 +02:00
parent 78dfa03b6f
commit 549a3edd8e

View File

@@ -190,12 +190,6 @@ abstract class HdmiCecLocalDeviceSource extends HdmiCecLocalDevice {
mService.maySendFeatureAbortCommand(message, Constants.ABORT_REFUSED);
return true;
}
// if the current device is a pure playback device
if (!mIsSwitchDevice
&& physicalAddress == mService.getPhysicalAddress()
&& mService.isPlaybackDevice()) {
setAndBroadcastActiveSource(message, physicalAddress);
}
handleRoutingChangeAndInformation(physicalAddress, message);
return true;
}
@@ -214,12 +208,6 @@ abstract class HdmiCecLocalDeviceSource extends HdmiCecLocalDevice {
mService.maySendFeatureAbortCommand(message, Constants.ABORT_REFUSED);
return true;
}
// if the current device is a pure playback device
if (!mIsSwitchDevice
&& physicalAddress == mService.getPhysicalAddress()
&& mService.isPlaybackDevice()) {
setAndBroadcastActiveSource(message, physicalAddress);
}
handleRoutingChangeAndInformation(physicalAddress, message);
return true;
}