summaryrefslogtreecommitdiff
path: root/bluetooth
AgeCommit message (Collapse)Author
2022-11-10Add BluetoothLeAudioCodecsProvider Unit Testshihchienc
Add unit test for BluetoothLeAudioCodecsProvider and simplify the public interface of BluetoothLeAudioCodecsProvider class Bug: 253569201 Test: atest VtsHalBluetoothAudioTargetTest Test: atest BluetoothLeAudioCodecsProviderTest Test: manual test Change-Id: I064eb4058b129a571cf9dbb91b85bafe7236b735 Merged-In: I064eb4058b129a571cf9dbb91b85bafe7236b735 (cherry picked from commit d7f565a943c5c6bf08a16c22ea15c2c6b628a00e)
2022-09-28Update Bluetoot Audio HAL Target Testshihchienc
Since we change the design of loading LE Audio Capabilities in BT Audio HAL, we update the VTS test to make sure no matter a device supports LE Audio Offload or not, it can pass all tests that they should pass. Also, update vts test to match C++ coding style. Bug: 248181252 Test: atest VtsHalBluetoothAudioTargetTest Change-Id: Ie46c86663e0a22627c324f96360063cd4d4874e4 Merged-In: Ie46c86663e0a22627c324f96360063cd4d4874e4 (cherry picked from commit 3ab9f5e2f0b7510c7488e04e7a13a9ef855f120b)
2022-09-20Add soft_audio_configuration_changed_cb_ to handle the streamMap changedAlice Kuo
Based on the stream status and Bluetooth Audio Session to switch the different configuration_changed_cb_ notifcation. audio_configuration_changed_cb_ for the context type handover case soft_audio_configuration_changed_cb_ for the streamMap changed during media stream case Bug: 231084798 Test: LE audio offload later join and disappear with downmix enable Change-Id: I199c2b765b128875fb2c66abb1a500e4a6c820b7 Merged-In: I199c2b765b128875fb2c66abb1a500e4a6c820b7 (cherry picked from commit 851ef342ede367375ea46215cfdf3a449e7b8ef4)
2022-09-14Expose different offload audio capabilities by projectshihchienc
The current LE audio offload capabilities is hardcode in the Bluetooth audio HAL. It has the limitation that all the project would expose the same capabilities. As the newer project comes, if the ADSP or the controller could handle more configuration with higher quality or higher bandwidth. It would impact older project may not work on it. So we plan the feature to make the le audio offload support to be more flexible. Bug: 238983662 Test: 1. atest VtsHalBluetoothAudioTargetTest 2. make sure offload capabilities can be supported with those devices having config XML file Change-Id: Id82581fdcd22e38108f17c7942bca997b53bab35 Merged-In: Id82581fdcd22e38108f17c7942bca997b53bab35 (cherry picked from commit 8ed901a977a9180b8edc79cd291be054c6e228b0)
2022-08-09le_audio_offload: Support two sources for conversationalPatty
Tag: #feature Bug: 241775706 Test: atest VtsHalBluetoothAudioTargetTest Change-Id: I1bc59d09ec2ad3a8e65712c2fa099e806cce3c2d Merged-In: I1bc59d09ec2ad3a8e65712c2fa099e806cce3c2d (cherry picked from commit 51f165b314fb40b6a58007a81e707734a211f11f)
2022-07-14Supoort audio configuration update to audio HAL for broadcast offloadAlice Kuo
Bug: 210987580 Test: start the broadcast offload, check log Change-Id: Iadae625d10ad179089b952ac94ff66ae90a6236e Merged-In: Iadae625d10ad179089b952ac94ff66ae90a6236e (cherry picked from commit 36a879796bb046a5261d9862a69776f2bba94466)
2022-07-13Bluetooth audio hal check broadcast configuraiton for the broadcast offloadAlice Kuo
The patch contains the following changes 1. Check the broadcast audio configuration as starting broadcast offload session 2. Update audio configuration checker for broadcast offload 3. Remove the IsOffloadLeAudioConfigurationValid function that the audio configuraiton is invalid as session started, so we don't need to check it at that time Bug: 210987580 Test: start the offload broadcast stream, and check the session status Change-Id: I60b1b506051873f6d942f2febace6562634fc12a Merged-In: I60b1b506051873f6d942f2febace6562634fc12a (cherry picked from commit ee398a93f564e515051932dfd3801081426b1ae8)
2022-05-13Merge "Add Opus to BT Audio HAL and update version to V2" into tm-devOmer Osman
2022-05-12Merge "Add 32kHz as supported setting" into tm-devJakub Pawłowski
2022-05-12Add Opus to BT Audio HAL and update version to V2Omer Osman
This CL adds Opus as a supported A2DP codec to the BT Audio HAL and updates HAL compatibility matrix. Bug: 226441860 Test: A2DP sink device using bds-dev Change-Id: I21249e3e7e76412af7ed62a3fc9ec133434cf963
2022-05-12Add 32kHz as supported settingŁukasz Rymanowski
Bug: 230550335 Test: Build, test audio Change-Id: I94c4c54092d0afb71aee555fa46936e228397444 (cherry picked from commit 12f82bb40c5afebfb43a6622da7bd0453edfc0b0) Merged-In: I94c4c54092d0afb71aee555fa46936e228397444
2022-05-11Bluetooth LE Audio: pass the 24 bit stream as unpacked through HALJakub Pawlowski
LC3 encoder/decoder expects unpacked 24 bit stream Bug: 230578655 Test: use 24_2 configuration to play over LE Audio Merged-In: I298d6d3a0cd9786581730de88487c982e1fa9d9d Change-Id: I298d6d3a0cd9786581730de88487c982e1fa9d9d
2022-05-04Support 24k and 32k config for LE Audio OffloadPatty Huang
Bug: 230402180 Test: Manual Change-Id: If4931999009b27423adeab3af50238dd6d8c8637 (cherry picked from commit f4e3551eb14038563665f7bc274be5fb588b1fe8) Merged-In: If4931999009b27423adeab3af50238dd6d8c8637
2022-04-13Merge "Build with upstream lld: Fix incorrect static dependencies" am: ↵Treehugger Robot
9e8d756311 am: 9485f0ffb4 am: 94dde8238f Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2061769 Change-Id: Ib3d6d667e4478e2006bf97ca112535032e72042a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-11Build with upstream lld: Fix incorrect static dependenciesPirama Arumuga Nainar
Bug: http://b/197965342 Remove unnecessary `static_libs` dependencies or move them to `shared_libs` to build with upstream LLD. See b/197965342#comment1 (internal) for rationale. Some info is available externally at https://github.com/llvm/llvm-project/issues/42899. Per go/android-lld-static-lib-fix, OWNERS are added for visibility. No action is needed if the change looks good. This change will be merged after two business days with Global Approvers. Test: Build modules with aosp/2036867 in addition to presubmit Change-Id: I12ffa45755b3055117fa87aae2110b125b60fd54
2022-04-07Merge "BtAudio: Prevent unlink dead binder" am: dc1a419baf am: 6afd301d16 ↵Treehugger Robot
am: 31a6eb814c Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2046266 Change-Id: I3f0ad7c0c535bd1312871e1b53bc2cf0597a2434 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-07Merge "BtAudio: Prevent unlink dead binder"Treehugger Robot
2022-04-07BtAudio: Prevent unlink dead binderJosh Wu
Tag: #stability Bug: 227029886 Test: manually kill bt process Change-Id: Ic976a33feb5a3636ab828637faf0ba109f5948ce
2022-03-31Freeze AIDL APIs for TMJiyong Park
Bug: 225941299 Test: m Change-Id: Ie41cc0797710f813f92c65c387f247c7806d8394
2022-03-30Merge "Add A2dp decode software and offload session type" am: 0dac5667f5 am: ↵Alice Kuo
67fa92a1e5 am: 4e90fa8ecd Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2046263 Change-Id: I99e1bd5c9ba176b4b56cb88f2cd503804d559853 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-29Merge "Add A2dp decode software and offload session type"Alice Kuo
2022-03-29Add A2dp decode software and offload session typeAlice Kuo
1. Add the interface 2. Add the default implementation 3. Add VTS Bug: 206601670 Test: atest VtsHalBluetoothAudioTargetTest Change-Id: I54d8037eeb09312c9f1fb75d2167cc50ac7cae8c
2022-03-29VtsHalBluetoothV1_0: Turn off/on BT for all users am: 0dc66a2c69Karthik Ramakrishnan
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16810781 Change-Id: I8d8483a32fa39a783a159d4269300bbbb88ac3a2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-03-15Merge "SpatialAudio: fix crashes in BluetoothAudioSession" am: 8673f8c28f ↵Chen Chen
am: 81edd99b87 am: a16a0ece1a Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2025663 Change-Id: I12ec3fe8490489a202195cb05e7cc5a4ee6d9435
2022-03-15Merge "SpatialAudio: fix crashes in BluetoothAudioSession" am: 8673f8c28f ↵Chen Chen
am: 81edd99b87 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2025663 Change-Id: I25913e948f137e057899e30b5e665e0673e3207b
2022-03-14SpatialAudio: fix crashes in BluetoothAudioSessionChen Chen
Bug: 224578221 Bug: 214615268 Test: build Change-Id: I0fd7e0887200e39dc996b0d84de421ec13897e94
2022-03-15Merge "Clear apex.go entries for bluetooth libs" into tm-devTreeHugger Robot
2022-03-08Merge "SpatialAudio: Export LatencyMode functions to BluetoothAudioSession" ↵Treehugger Robot
am: 26423c74aa am: 57d941c663 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2014835 Change-Id: I16ba154591d405d4865b5a1d00ae1080cb606d0c
2022-03-08SpatialAudio: Export LatencyMode functions to BluetoothAudioSessionCheney Ni
BluetoothAudioSession utility supports latency control functions, so audio_bluetooth_hw can get / set the LatencyMode easily. Bug: 214615268 Bug: 218708371 Test: build Tag: #feature Change-Id: Ia85581c74fc91f406309539755d60d36c173f5e0
2022-03-02Clear apex.go entries for bluetooth libsWilliam Escande
Test: Build + TH + boot phone & use bluetooth Bug: 216433795 Change-Id: Ib1f9fee90006c73e5726a208e6cba8647967f5f4
2022-02-24Merge "SpatialAudio: Init codec and buffer size from startStream()" am: ↵Chen Chen
3b04e113e6 am: 92fbebc89f Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1989506 Change-Id: I1e686443d67be139c10733dba26e910bbc859734
2022-02-24Merge "SpatialAudio: Init codec and buffer size from startStream()"Chen Chen
2022-02-24SpatialAudio: Init codec and buffer size from startStream()Chen Chen
Bug: 214615268 Test: build Tag: #feature Change-Id: I26d82da0dfc82fcb6cab6b879bced8e892e8cf44
2022-02-24Merge "Add timed out test files to tidy_timeout_srcs" am: ff54f73b4f am: ↵Chih-hung Hsieh
fa83970b3a Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1992232 Change-Id: I26b2d04160013fec26fdaadf56caeb919ff4d5bd
2022-02-24Merge "Add timed out test files to tidy_timeout_srcs"Chih-hung Hsieh
2022-02-22Remove bluetooth.audio@2.2 default implementation and utils handles am: ↵Alice Kuo
921760d9a7 am: d3f8b39e76 Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1959014 Change-Id: I8a61f053b89b3f8e6d8b3ecad1e7ee4f55981030
2022-02-22Remove bluetooth.audio@2.2 interface am: 13c3701537 am: af1c5194a5Alice Kuo
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1962885 Change-Id: I3f01cf0179a50d51cd8e9aec69a18f6a7e3ed52f
2022-02-21Remove bluetooth.audio@2.2 default implementation and utils handlesAlice Kuo
Bug: 204585486 Test: a2dp software/offload, le audio software/offload verified pass Change-Id: I7c8f32dd294562052ff5af73e6f3c48642c03fe4
2022-02-21Remove bluetooth.audio@2.2 interfaceAlice Kuo
Bug: 204585486 Test: A2dp software/offload, le audio software offload verified pass Change-Id: Icca0d0e0f5f074fc3f68742722a8c268e8289558
2022-02-18Add timed out test files to tidy_timeout_srcsChih-Hung Hsieh
* Timed out runs do not show any warning messages. * These test files cannot finish clang-tidy runs with the following settings: TIDY_TIMEOUT=90 WITH_TIDY=1 CLANG_ANALYZER_CHECKS=1 * When TIDY_TIMEOUT is set, in Android continuous builds, tidy_timeout_srcs files will not be compiled by clang-tidy. When developers build locally without TIDY_TIMEOUT, tidy_timeout_srcs files will be compiled. * Some of these test modules may be split into smaller ones, or disable some time consuming checks, and then enable clang-tidy to run within limited time. Bug: 201099167 Test: make droid tidy-hardware-interfaces_subset Change-Id: I1de28f1572fff368f67eab512fffec9f2e5c2a9b
2022-02-18BtAudio: Enable LE Audio software encoding VTS am: 3202eab88a am: 0ecae80b26Josh Wu
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1991530 Change-Id: Id3c02d098a1c0b513713be10f3e798428a414560
2022-02-18VtsHalBluetoothV1_0: Turn off/on BT for all users am: 0dc66a2c69 am: f26e49bf49Karthik Ramakrishnan
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16810781 Change-Id: I6efe72364cbaab2bf5968704263f703ff9f41bee
2022-02-17BtAudio: Enable LE Audio software encoding VTSJosh Wu
Test: atest VtsHalBluetoothAudioTargetTest Bug: 203490261 Change-Id: I0ef572dbc7983e2c9939e1b6a3540d88a21743d9
2022-02-16SpatialAudio: Fix VTS for the new parameter in AIDL. 2 more VTSChen Chen
functions was added while the AIDL was changed so they are not included in the CL of changing AIDL Bug: 214615268 Bug: 219977932 Test: Build Change-Id: Ifbbfe2f9091367609b63fbb6ee118c44d447ec98
2022-02-16Merge "SpatialAudio: Set low latency allowed signal at startSession The ↵Chen Chen
logic is that to send FREE and LOW_LATENCY to audio at startSession, if bt receives setLowLatencyModeAllowed(true) before start session. If the parameter false, or bt doesn't receive the signal at all, then bt sends FREE to audio."
2022-02-16Merge "BtAudio: Iterate reference in VTS helper"Treehugger Robot
2022-02-16Merge changes I3642c6eb,I0cf9c1ceTreehugger Robot
* changes: Minor fix for the session type in the comments Add LE audio broadcast offload vts test cases
2022-02-16Merge "BtAudio: Handle dataInterval in LeAudioSW VTS"Treehugger Robot
2022-02-16Merge "BtAudio: Handle bcast hw offloading codecs"Treehugger Robot
2022-02-16Minor fix for the session type in the commentsAlice Kuo
Test: atest VtsHalBluetoothAudioTargetTest Bug: 203490261 Change-Id: I3642c6eba3024fd1959e82057a4fdd108a09aa56