summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothCodecConfig.java
diff options
context:
space:
mode:
authorSonny Sasaka <sonnysasaka@google.com>2022-03-07 18:11:04 -0800
committerSonny Sasaka <sonnysasaka@google.com>2022-03-07 23:54:28 -0800
commit65ff9dac4c71144c8b10b96a88d17bdf665b81a0 (patch)
treea41ef00039c6d5f1aaeff0438ef550128a173c20 /framework/java/android/bluetooth/BluetoothCodecConfig.java
parent33d07faedee7bf1a696459fe489432798f04bb82 (diff)
Floss: Cancel discovery before BREDR pairing/connection
If BREDR connection is to be executed, e.g. in create_bond and connect_all_enabled_profiles, we should cancel discovery first because some of the connection-related HCI commands may be rejected by the Bluetooth controller when Inquiry is in progress. With background scanning migration to LE Scan API, the Discovery API is redefined to not guarantee continuous discovery forever, but instead clients are notified via callbacks when discovery is stopped by the stack. Because of this simplification of the API, we don't need to resume discovery after connection or pairing is complete. Bug: 211127013 Tag: #floss Test: Manual - Perform pairing with BREDR device via UI Change-Id: I6f4d8ecbbeb1b7a7a9dc3193431edba2b4e05e51
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothCodecConfig.java')
0 files changed, 0 insertions, 0 deletions