summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothHapClient.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-05hap: Fix missing null device checksJakub Tyszkowski
Bug: 150670922 Tag: #feature Test: atest BluetoothHapClientTest Sponsor: jpawlowski@ Change-Id: Ia0e0d7b8892f202a8b3bef01dab0f64ff09a0c51
2022-04-01Fix unregistering callbacksJakub Tyszkowski
Bug: 150670922 Tag: #feature Test: atest CtsBluetoothTestCases Sponsor: jpawlowski@ Change-Id: Id0ee8eb31547c7b333619642717ee1d87c3c01fb
2022-03-21Merge "Bluetooth: Fix common issue in registerCallback APIs"Jakub Pawłowski
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-17HAP: Split reason and error IntDefs for each callbackJack He
* So that it is clear what reason code will be returned by each callback Bug: 218616250 Test: make Tag: #feature Change-Id: If66248f27cff5984d1c5f6a2128c9d3c5c36e5fd
2022-03-15hap: Remove HAP features callbackJakub Tyszkowski
The non-@SystemApi cannot be implemented by the app on error-prone build, but has to be implemented in the regular build. To compile the app on both this has to be removed. Bug: 150670922 Tag: #feature Test: atest CtsBluetoothTestCases:android.bluetooth.cts.BluetoothHapClientTest BluetoothInstrumentationTests Sponsor: jpawlowski@ Change-Id: I7ee01d74726f39320f56b36895a1d80a26852014
2022-03-10hap: Fix missing preset change reasonJakub Tyszkowski
Bug: 150670922 Bug: 218616250 Tag: #feature Test: atest CtsBluetoothTestCases:android.bluetooth.cts.BluetoothHapClientTest BluetoothInstrumentationTests Sponsor: jpawlowski@ Change-Id: I11896b46bc9bc607eede4be6aaaf02a888cc45b6
2022-03-10hap: Align callback names to match API callsJakub Tyszkowski
This change was requested in b/218616250 Bug: 150670922 Bug: 218616250 Tag: #feature Test: atest CtsBluetoothTestCases:android.bluetooth.cts.BluetoothHapClientTest Sponsor: jpawlowski@ Change-Id: I4ef0b8b5d345e717a6c6cfc9bb3663bb11c170ac
2022-03-10hap: Use IntDef for the feature valuesJakub Tyszkowski
Bug: 150670922 Bug: 218616250 Tag: #feature Test: atest CtsBluetoothTestCases:android.bluetooth.cts.BluetoothHapClientTest Sponsor: jpawlowski@ Change-Id: I8b1655e7abf85524bed89f1051d0c888be06beb2
2022-03-08hap: Improve callback registration mechanismJakub Tyszkowski
Improves input parameters verification by throwing NPE as requested in b/218616250. Adjusts the doc accordingly. Bug: 150670922 Bug: 218616250 Tag: #feature Test: atest CtsBluetoothTestCases:android.bluetooth.cts.BluetoothHapClientTest Sponsor: jpawlowski@ Change-Id: I828d578ca53678a2642bc4e73d57b7b481feb88b
2022-02-18hap: Support multiple callbacks per AppJakub Tyszkowski
Bug: 150670922 Tag: #feature Test: atest BluetoothInstrumentationTests Sponsor: jpawlowski@ Change-Id: I343ff48ce0eeb01c7641e2cb4b8a5666cf590eac
2022-02-18hap: Refactor service to match the new APIJakub Tyszkowski
Bug: 150670922 Bug: 216639668 Fixes: 216639668 Tag: #feature Test: atest BluetoothInstrumentationTests Sponsor: jpawlowski@ Change-Id: I4b1ecf818a9b9bd75b1d17abeadfcea7c3c2548b
2022-02-02LE Audio: Expose more system APIsJakub Tyszkowski
* Expose two intentss: * ACTION_LE_AUDIO_ACTIVE_DEVICE_CHANGED * ACTION_LE_AUDIO_GROUP_NODE_STATUS_CHANGED * Settings and Telecom are interested in the group node status information, therefore lets expose the API as a SystemApi * Reduce scope of HAP connection state API to system API * Expose more system APIs for HAP client * To select different hearing presets * To get notified about changes in hearing presets * To get all available hearing presets * Expose more system APIs for CSIP * To make error codes more visible for the API caller * Expose GROUP_ID_INVALID to public API for getGroupId() Bug: 150670922 Test: atest BluetoothInstrumentationTests Tag: #feature Sponsor: siyuanh@ Ignore-AOSP-First: earlier change merged on internal Change-Id: If87e0863f23b989632603ac1253e4a77bfff028d Merged-In: If87e0863f23b989632603ac1253e4a77bfff028d (cherry picked from commit a89f2e1a02f986de04078ee399f39ad09d0c53f8)
2022-02-02hap: Add initial implementationJakub Tyszkowski
Implements Hearing Access Profile client. Bug: 150670922 Tag: #feature Test: atest BluetoothInstrumentationTests bluetooth_has_test bluetooth_has_test Sponsor: jpawlowski@ Change-Id: If3cc9f2146d08326800eb922d7e2f795cf110e7d Merged-In: If3cc9f2146d08326800eb922d7e2f795cf110e7d (cherry picked from commit 8e723645df2f56f0edc346302c9c1e5a39f82795)