This updates the client of HdmiControlService so that CEC devices
will disappear when thd CEC control is disabled.
Bug:
16467361
Change-Id: If6fad3be0aa3335aa7f955c0586040250e9c0e06
@ServiceThreadOnly
private void clearDeviceInfoList() {
assertRunOnServiceThread();
+ for (HdmiCecDeviceInfo info : mSafeExternalInputs) {
+ mService.invokeDeviceEventListeners(info, false);
+ }
mDeviceInfos.clear();
updateSafeDeviceInfoList();
}
disableSystemAudioIfExist();
disableArcIfExist();
+ clearDeviceInfoList();
checkIfPendingActionsCleared();
}