Refactor car bluetooth device management code
Bug: b/131751142
Test: Manually build and test. Connect 1-7 devices and test both adapter
toogle and rebooting to make sure connections are fired off in the same
order and the connection status at the end matches the status prior to
all of the disconnections. Check messages, contacts and media to make
sure the proper metadata is appearing in all three. Use dumpsys
car_service or dumpsys settings | grep -e
"name:android.car.KEY_BLUTEOOTH" -e "SECURE SETTINGS" to view the per
user profile priority lists. Additionally, run the new tests with atest.
Change-Id: I993e219644ba9bb7eecf27c8c0ff93f7528622fc
20 files changed