Framework should wait for the device to report physical address when the

device is just plugged in.

Note that we don't want to flood the CEC bus so we should not do device
discovery everytime when there is device plugged in. We can wait for the
device to report its own system info then add it to the remote device
list. We update TIF after getting this information.

Test: manual
Change-Id: I72f8638d50d2c14826b52d9693fdedc6ee108b05
(cherry picked from commit 4568823bf7d3532789a2e1d8f99d827e3fe35a88)
This commit is contained in:
Amy
2019-02-12 11:23:00 -08:00
committed by Amy Zhang
parent 05ad6df98a
commit 1e2dbdb614

View File

@@ -248,12 +248,8 @@ public class HdmiCecLocalDeviceAudioSystem extends HdmiCecLocalDeviceSource {
}
if (mService.getPortInfo(portId).getType() == HdmiPortInfo.PORT_OUTPUT) {
mCecMessageCache.flushAll();
} else {
if (connected) {
launchDeviceDiscovery();
} else {
// TODO(amyjojo): remove device from mDeviceInfo
}
} else if (!connected){
// TODO(amyjojo): remove device from mDeviceInfo
}
}