aboutsummaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothVolumeControl.java
Commit message (Collapse)AuthorAgeFilesLines
* Reuse SynchronousResultReceivers instead of creating new.Etienne Ruffieux2022-06-221-10/+10
| | | | | | | | Bug: 217366135 Tag: #feature Test: manual Ignore-AOSP-First: to be chery-picked Change-Id: If8ae530a284151888a3f89a51d2c58f2a5cd3644
* Bluetooth: Fix common issue in registerCallback APIsŁukasz Rymanowski2022-03-181-1/+8
| | | | | | | | | This fixes race if callback is registered before BT is On. Bug: 150670922 Test: compile/manual Sponsor: @jpawlowski Change-Id: If7e9adba30ce0bba57acb503feb0f47c730da5d3
* BluetoothVolumeControl: Add missing API implementationŁukasz Rymanowski2022-03-081-12/+142
| | | | | | | Bug: 150670922 Sponsor: @jpawlowski Test: atest CtsBluetoothTestCases:android.bluetooth.cts.BluetoothVolumeControlTest Change-Id: I6d41c13ee0026dfbb841543ff2a20800d864b82c
* leaudio: Improve Volume Control APIŁukasz Rymanowski2022-02-021-7/+116
| | | | | | | | | | | | | | | | | | | | | On the Le Audio device absolute volume is set via BluetoothLeAudio.setVolume API. LeAudioService knows which group is the active group and using BluetoothVolumeControl.setVolumeGroup() API apply absolute volume. Each LeAudio device is a part of the group. In order to support audio balance between e.g. left and right earbud setVolumeOffset should be use per each device. This change also allows user to register for the callback which will be invoked when the volume offset changes on the remote device. Bug: 150670922 Tag: #feature Sponsor: @jpawlowski Test: atest BluetoothInstrumentationTests Change-Id: I3692e45d285d55d946ae0de187aa1d5261f825b8 Merged-In: I3692e45d285d55d946ae0de187aa1d5261f825b8 (cherry picked from commit 470384a052a972bebe52483de0099d9d0f47b343)
* Remove allowBlocking from all BluetoothProfilesWilliam Escande2021-12-161-51/+77
| | | | | | | | | | | | | Since Bluetooth is becoming a mainline module, it can no longer call the allowBlocking hidden api. Instead, all interface are moved to be oneway and use a synchronous data to handle the return value. Bug: 200200870 Test: Build + start Bt and play something on speaker Tag: #refactor Merged-In: I776a6322faadca1504bce24f2b6b041e756b6448 Change-Id: I776a6322faadca1504bce24f2b6b041e756b6448
* Copy attributable to BluetoothWilliam Escande2021-12-141-2/+0
| | | | | | | | | | Attributable is called by bluetooth and it's hidden. By copying into bluetooth we are now allowed to call it Bug: 210467788 Test: build Tag: #refactor Change-Id: I73ea07c9439988ab5477c82799f718c6d81513be
* Bluetooth: fix comments on Volume Control Profile reviewJakub Pawlowski2021-06-191-42/+0
| | | | | | | | Bug: 150670922 Test: compilation Merged-In: I72b36b77aa97aa9501d13ecdfe0b9b7f49bcce2c Change-Id: I72b36b77aa97aa9501d13ecdfe0b9b7f49bcce2c (cherry picked from commit dc50891255ed0168d6068b328b48cc027cd97ca5)
* DO NOT MERGE Bluetooth: add Volume Control Profile boilerpalateŁukasz Rymanowski2021-06-181-0/+355
| | | | | | | | | | | This is very simple API to allow Android to connect VCP profile. Bug: 150670922 Test: compilation Sponsor: jpawlowski@ CTS-Coverage-Bug: 190833351 Merged-In: Ib20d967fcf6797077abf83b40b0eda526e5ab89d Change-Id: Ib20d967fcf6797077abf83b40b0eda526e5ab89d
* DO NOT MERGE Revert "Bluetooth: add Volume Control Profile boilerpalate"Jakub Pawlowski2021-06-181-320/+0
| | | | | | | This reverts commit 1b3ac7733b50556d440ec8a5453645c074301c7b. Merged-In: Ib20d967fcf6797077abf83b40b0eda526e5ab89d Change-Id: I164fcdeddab6579cf10174c1123984e856fa6f20
* Bluetooth: add Volume Control Profile boilerpalateŁukasz Rymanowski2021-06-141-0/+320
This is very simple API to allow Android to connect VCP profile. Bug: 150670922 Test: compilation Sponsor: jpawlowski@ CTS-Coverage-Bug: 190833351 Change-Id: Ib20d967fcf6797077abf83b40b0eda526e5ab89d Merged-In: Ib20d967fcf6797077abf83b40b0eda526e5ab89d