aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothHapClient.java
Commit message (Collapse)AuthorAgeFilesLines
* Reuse SynchronousResultReceivers instead of creating new.Etienne Ruffieux2022-06-221-14/+14
| | | | | | | | Bug: 217366135 Tag: #feature Test: manual Ignore-AOSP-First: to be chery-picked Change-Id: If8ae530a284151888a3f89a51d2c58f2a5cd3644
* hap: Fix missing null device checksJakub Tyszkowski2022-04-051-1/+3
| | | | | | | | Bug: 150670922 Tag: #feature Test: atest BluetoothHapClientTest Sponsor: jpawlowski@ Change-Id: Ia0e0d7b8892f202a8b3bef01dab0f64ff09a0c51
* Fix unregistering callbacksJakub Tyszkowski2022-04-011-1/+1
| | | | | | | | Bug: 150670922 Tag: #feature Test: atest CtsBluetoothTestCases Sponsor: jpawlowski@ Change-Id: Id0ee8eb31547c7b333619642717ee1d87c3c01fb
* Merge "Bluetooth: Fix common issue in registerCallback APIs"Jakub Pawłowski2022-03-211-4/+8
|\
| * Bluetooth: Fix common issue in registerCallback APIsŁukasz Rymanowski2022-03-181-4/+8
| | | | | | | | | | | | | | | | | | This fixes race if callback is registered before BT is On. Bug: 150670922 Test: compile/manual Sponsor: @jpawlowski Change-Id: If7e9adba30ce0bba57acb503feb0f47c730da5d3
* | HAP: Split reason and error IntDefs for each callbackJack He2022-03-171-18/+86
|/ | | | | | | | | * So that it is clear what reason code will be returned by each callback Bug: 218616250 Test: make Tag: #feature Change-Id: If66248f27cff5984d1c5f6a2128c9d3c5c36e5fd
* hap: Remove HAP features callbackJakub Tyszkowski2022-03-151-23/+0
| | | | | | | | | | | | 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
* hap: Fix missing preset change reasonJakub Tyszkowski2022-03-101-7/+10
| | | | | | | | | | Bug: 150670922 Bug: 218616250 Tag: #feature Test: atest CtsBluetoothTestCases:android.bluetooth.cts.BluetoothHapClientTest BluetoothInstrumentationTests Sponsor: jpawlowski@ Change-Id: I11896b46bc9bc607eede4be6aaaf02a888cc45b6
* hap: Align callback names to match API callsJakub Tyszkowski2022-03-101-13/+13
| | | | | | | | | | | 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
* hap: Use IntDef for the feature valuesJakub Tyszkowski2022-03-101-27/+40
| | | | | | | | | Bug: 150670922 Bug: 218616250 Tag: #feature Test: atest CtsBluetoothTestCases:android.bluetooth.cts.BluetoothHapClientTest Sponsor: jpawlowski@ Change-Id: I8b1655e7abf85524bed89f1051d0c888be06beb2
* hap: Improve callback registration mechanismJakub Tyszkowski2022-03-081-15/+13
| | | | | | | | | | | | 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
* hap: Support multiple callbacks per AppJakub Tyszkowski2022-02-181-55/+152
| | | | | | | | | Bug: 150670922 Tag: #feature Test: atest BluetoothInstrumentationTests Sponsor: jpawlowski@ Change-Id: I343ff48ce0eeb01c7641e2cb4b8a5666cf590eac
* hap: Refactor service to match the new APIJakub Tyszkowski2022-02-181-378/+198
| | | | | | | | | | | Bug: 150670922 Bug: 216639668 Fixes: 216639668 Tag: #feature Test: atest BluetoothInstrumentationTests Sponsor: jpawlowski@ Change-Id: I4b1ecf818a9b9bd75b1d17abeadfcea7c3c2548b
* LE Audio: Expose more system APIsJakub Tyszkowski2022-02-021-105/+383
| | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* hap: Add initial implementationJakub Tyszkowski2022-02-021-0/+1030
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)