Adapter: Reset adapter connection states when BR/EDR is ready
* Set adapter connection state to BluetoothAdapter.STATE_DISCONNECTED on
in onBluetoothReady() callback
* Reset reference counters for profile states including
mProfilesConnected, mProfilesConnecting, mProfilesDisconnecting and
mProfileConnectionState table
* Log discovery start and cancel event
Bug: 65591907
Bug: 66869063
Test: Turn off Bluetooth while devices are connected
Change-Id: Ia2feabbb155ea167a285b1c321532c0d7f3aa0ea
(cherry picked from commit 577298d63aad0acb987c29e61c008456a747ca79)
2 files changed