audio policy: handle errors for usb broadcast device connection
When the USB is quickly connected and then disconnected, the broadcast device may not have enough time to read the USB info, preventing the dynamic profile from being created and causing routing errors. Therefore, when the usb broadcast device connection fails, setDeviceConnectionState will be interrupted
Bug: 360284877
Test:
Atest AudioPolicyManagerTestDeviceConnectionFailed
Change-Id: I3bd31f1455cfaf9f1041cf079b92b6b407c3a74e
3 files changed