summaryrefslogtreecommitdiff
path: root/framework/java/android/bluetooth/BluetoothVolumeControl.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-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-08BluetoothVolumeControl: Add missing API implementationŁukasz Rymanowski
Bug: 150670922 Sponsor: @jpawlowski Test: atest CtsBluetoothTestCases:android.bluetooth.cts.BluetoothVolumeControlTest Change-Id: I6d41c13ee0026dfbb841543ff2a20800d864b82c
2022-02-02leaudio: Improve Volume Control APIŁukasz Rymanowski
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)
2021-12-16Remove allowBlocking from all BluetoothProfilesWilliam Escande
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
2021-12-14Copy attributable to BluetoothWilliam Escande
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
2021-06-19Bluetooth: fix comments on Volume Control Profile reviewJakub Pawlowski
Bug: 150670922 Test: compilation Merged-In: I72b36b77aa97aa9501d13ecdfe0b9b7f49bcce2c Change-Id: I72b36b77aa97aa9501d13ecdfe0b9b7f49bcce2c (cherry picked from commit dc50891255ed0168d6068b328b48cc027cd97ca5)
2021-06-18DO NOT MERGE Bluetooth: add Volume Control Profile boilerpalateŁukasz Rymanowski
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
2021-06-18DO NOT MERGE Revert "Bluetooth: add Volume Control Profile boilerpalate"Jakub Pawlowski
This reverts commit 1b3ac7733b50556d440ec8a5453645c074301c7b. Merged-In: Ib20d967fcf6797077abf83b40b0eda526e5ab89d Change-Id: I164fcdeddab6579cf10174c1123984e856fa6f20
2021-06-14Bluetooth: add Volume Control Profile boilerpalateŁukasz Rymanowski
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