summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothLeBroadcast.java
AgeCommit message (Collapse)Author
2022-06-30Revert "Revert "Reuse SynchronousResultReceivers instead of creating new.""Neha Jain
This reverts commit dd85e91cea26c7f706af36c852e79d5b4ca1f173. Bug: 217366135 Reason for revert: Need this to fix a crash bug in tm-dev Change-Id: I2a94c278edc0681c5b8af6ea0a0171b71d72c650 (cherry picked from commit dbaf406ccb0ed887d4e93057c9ec0d3457f14457) Merged-In: I2a94c278edc0681c5b8af6ea0a0171b71d72c650
2022-06-29Revert "Reuse SynchronousResultReceivers instead of creating new."Neha Jain
This reverts commit 02dcbe72b3564559eaa9c2e2714824e4aac6f18c. Reason for revert: Causing builds to fail b/237471430 Change-Id: I6165d838abf312085050359377f67a68a5f8b51a (cherry picked from commit f5dd42bbd05e68f7763ccaa9fae5642acc4ceba1) Merged-In: I6165d838abf312085050359377f67a68a5f8b51a
2022-06-29Reuse SynchronousResultReceivers instead of creating new.Etienne Ruffieux
Bug: 217366135 Tag: #feature Test: manual Ignore-AOSP-First: to be chery-picked Change-Id: If8ae530a284151888a3f89a51d2c58f2a5cd3644 (cherry picked from commit 02dcbe72b3564559eaa9c2e2714824e4aac6f18c) Merged-In: If8ae530a284151888a3f89a51d2c58f2a5cd3644
2022-04-14broadcaster: Add missing null checks at client sideJakub Tyszkowski
These can be already checked at the frameworks side. Bug: 150670922 Tag: #feature Test: atest CtsBluetoothTestCases:android.bluetooth.cts.BluetoothHapClientTest Sponsor: jpawlowski@ Change-Id: I1b3d68594f5c96343080d4cf693bd41cce8be581
2022-04-01Fix unregistering callbacksJakub Tyszkowski
Bug: 150670922 Tag: #feature Test: atest CtsBluetoothTestCases Sponsor: jpawlowski@ Change-Id: Id0ee8eb31547c7b333619642717ee1d87c3c01fb
2022-03-18Bluetooth: Fix common issue in registerCallback APIsŁukasz Rymanowski
This fixes race if callback is registered before BT is On. Bug: 150670922 Test: compile/manual Sponsor: @jpawlowski Change-Id: If7e9adba30ce0bba57acb503feb0f47c730da5d3
2022-03-11Merge "BluetoothLeAudio: Fix null parameters check"Jack He
2022-03-10Broadcast API adjustmentJack He
* Enforce raw bytes vs. structured value consistency in metadata classes * Enforce required parameters in builder * Rename getMaximumNumberOfBroadcast to getMaximumNumberOfBroadcasts * Added utility method to parse and serialize LTV array Fixes: 218683032 Bug: 218683032 Test: atest BluetoothInstrumentationTests, cts tests Tag: #feature Change-Id: Ia10f414bdc958b75e94276d3f645687f8b9635f9
2022-03-09BluetoothLeAudio: Fix null parameters checkŁukasz Rymanowski
Bug: 218799288 Test: Compile Change-Id: I6ee06113b82d0ade755b3373a25ffe78859afd63
2022-03-03le_broadcast: Initial alignment of service with the APIJakub Tyszkowski
This aligns the .aidl interfaces, adds the callback registration mechanism, exposes profile in the Bluetooth Adapter and stitches together basic API calls with the service implementation. It does not bring the BluetoothLeBroadcastMetadata support yet. Bug: 150670922 Bug: 210985995 Tag: #feature Test: atest BluetoothInstrumentationTests Sponsor: jpawlowski@ Change-Id: Ia454badc4f95a4b9953e57709a680f178ebfea45
2022-02-02Introduce LE audio broadcast system APIsJack He
* Rename BluetoothLeBroadcastSourceInfo to BluetoothLeBroadcastReceiveState so that it matches the name in the Bluetooth specification * Added callbacks to BluetoothLeBroadcast so that caller that wait for asynchronouze operations with reason code in the hope to reduce potential race conditions * Allow multiple broadcast to be set up on the same deivce if the device supports it * Added ScanFilter to searchForSources() method and removed selectSources() method for BluetoothLeBroadcastAssistant so that the Bluetooth stack can automatically handle periodic sync after a Broadcast source is found and only do this for a limited number of devices * Added structural APIs to store Broadcast Source and Group information * Added unknown address type in BluetoothDevice Bug: 208222281 Test: make Tag: #feature Ignore-AOSP-First: Merge conflict in master Change-Id: If4c3af658b5bc1283d76e5d1899485a487ab7626 Merged-In: If4c3af658b5bc1283d76e5d1899485a487ab7626 (cherry picked from commit 4f9d902028fbe271167547884c33fb9ec7601080)
2021-12-05Add BluetoothLeBroadcast profile API.Qasim Javed
Implementation for the APIs will be added later. Bug: 205174140 Bug: 208222281 Tag: #feature Test: gd/cert/run Change-Id: I8781be89cba45a6e7a76fec7df24790a9f02d6a6