Use setCommunicationDevice to connect hearing aid BT devices.
Currently we can't switch audio routes when connect to a hearing aid BT
device and can't continue playing music via hearing aid BT device
automatically after a call. Use setCommunicationDevice API same as LE
audio device to solve this.
Also fix minor bug for LE audio BT device to make sure these device
won't be disabled unintentionally.
Bug: 229358080
Bug: 232360337
Test: TelecomUnitTestCases, manually test the audio route can switch
properly in a call initially routed via hearing aid BT device and can
play music properly after the call.
Change-Id: I7ff35d5eada34335fafa6f0aeaff019803541b51
Merged-In: I7ff35d5eada34335fafa6f0aeaff019803541b51
5 files changed