Commit Graph

488 Commits

Author SHA1 Message Date
Myles Watson
58d8a57469 BluetoothAudio: Statically link HAL dependencies
Bug: 290666670
Bug: 289857524
Bug: 284091286
Bug: 289489060
Test: mma -j32
Change-Id: I2b3c32b133e208ec2cfb1b244ccb24ad249f22df
(cherry picked from commit 44628f38d2)
Merged-In: I2b3c32b133e208ec2cfb1b244ccb24ad249f22df
2023-10-31 18:45:58 +00:00
Bao Do
db7e3027b3 Add a config with test skipping for SDK < 33
Test: atest VtsHalBluetoothAudioTargetTest
Bug: 288598199
Bug: 294466290
Change-Id: I563c8d50b186f2da2cf077dc3631808f8c2a9eee
(cherry picked from commit 00dede017f)
2023-10-12 17:12:44 +00:00
Igor Tolkov
cd47557c62 Move StopServicesSetup later in VtsHalBluetoothV1.0TargetTest am: 8c32f711b5 am: 12320fd071
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2709435

Change-Id: Id19f7f18a9a374e92a5790240adf260aa1f92b4a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-18 07:57:21 +00:00
Igor Tolkov
8c32f711b5 Move StopServicesSetup later in VtsHalBluetoothV1.0TargetTest
Move StopServicesSetup after RunCommandTargetPreparer in
VtsHalBluetoothV1_0TargetTest. RunCommandTargetPreparer requires
settings service, which is not available after StopServicesSetup.

Bug: 293822620
Test: run vts -m VtsHalBluetoothV1_0TargetTest and inspect logs to make
sure no preparer steps fail.

Change-Id: I935d19c5e941bfdb122554d8c413d3095fef27ac
2023-08-16 15:24:25 +08:00
William Escande
29120123a8 Sync wait for the bluetooth to be disabled / enabled
Bluetooth does not handle well conflicting message

Test: VtsHalBluetoothV1_0TargetTest
Test: VtsHalBluetoothV1_1TargetTest
Bug: 262645484
Bug: 262501652
Bug: 293822620
Change-Id: I0aca127fb5e5e33cc0086aaad19a8f1286fc83d6
(cherry picked from commit cd64ee13fb)
2023-07-31 06:40:19 +00:00
William Escande
675946eaed Sync wait for the bluetooth to be disabled / enabled
Bluetooth does not handle well conflicting message

Test: VtsHalBluetoothV1_0TargetTest
Test: VtsHalBluetoothV1_1TargetTest
Bug: 262645484
Bug: 262501652
Bug: 260064452
Change-Id: I0aca127fb5e5e33cc0086aaad19a8f1286fc83d6
(cherry picked from commit cd64ee13fb)
2023-01-04 00:23:59 +00:00
shihchienc
fecec8626d Update Bluetoot Audio HAL Target Test
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
(cherry picked from commit 3ab9f5e2f0)
2022-09-28 22:12:29 +00:00
Xin Li
be8ea4d3a8 Merge android12L-tests-dev@8941410
Change-Id: I39565ad6a87b2fdd6172675441e012943f5376b1
2022-08-17 22:38:00 -07:00
Cheney Ni
7dc143e55a VtsHalBluetoothV1_1: Turn off/on BT at RunCommandTargetPreparer
This change is cherry-picked from 0dc66a2c69 which
uses RunCommandTargetPreparer to turn off/on BT for
all users on VtsHalBluetoothV1_0.

Bug: 226452499
Test: run vts -m VtsHalBluetoothV1_1TargetTest
Change-Id: I5ef42c922a0b0a037d2cf70ca83790fc95196ccb
Merged-In: I5ef42c922a0b0a037d2cf70ca83790fc95196ccb
(cherry picked from commit cf52cb0307)
2022-05-20 10:55:07 +08:00
Karthik Ramakrishnan
94a3a178aa VtsHalBluetoothV1_0: Turn off/on BT for all users
Using the current user for the command to disable
BT before the test and enable after the test.
This ensures the proper command is used for
devices running in secondary user

Bug: 202873250
Bug: 226452499
Test: run vts -m VtsHalBluetoothV1_0TargetTest
          -t PerInstance/BluetoothHidlTest#InitializeAndClose/0_default
Change-Id: Ica83f4959a87b8fb498b535572738e4e790c6ddb
Merged-In: Ica83f4959a87b8fb498b535572738e4e790c6ddb
(cherry picked from commit 0dc66a2c69)
2022-05-20 10:54:55 +08:00
Omer Osman
b229ac5fd1 Merge "Add Opus to BT Audio HAL and update version to V2" into tm-dev 2022-05-13 16:54:28 +00:00
Jakub Pawłowski
11daf7e4f8 Merge "Add 32kHz as supported setting" into tm-dev 2022-05-12 16:30:05 +00:00
Omer Osman
a2587da5b2 Add Opus to BT Audio HAL and update version to V2
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-12 05:56:08 +00:00
Łukasz Rymanowski
4d14c1edba Add 32kHz as supported setting
Bug: 230550335
Test: Build, test audio
Change-Id: I94c4c54092d0afb71aee555fa46936e228397444
(cherry picked from commit 12f82bb40c)
Merged-In: I94c4c54092d0afb71aee555fa46936e228397444
2022-05-12 12:03:51 +08:00
Jakub Pawlowski
780d8c5ab6 Bluetooth LE Audio: pass the 24 bit stream as unpacked through HAL
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-11 08:49:12 +02:00
Patty Huang
bdf65ba94f Support 24k and 32k config for LE Audio Offload
Bug: 230402180
Test: Manual
Change-Id: If4931999009b27423adeab3af50238dd6d8c8637
(cherry picked from commit f4e3551eb1)
Merged-In: If4931999009b27423adeab3af50238dd6d8c8637
2022-05-04 17:31:51 +08:00
Treehugger Robot
6e0cc925d2 Merge "Build with upstream lld: Fix incorrect static dependencies" am: 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-13 22:46:59 +00:00
Pirama Arumuga Nainar
cef135a3d2 Build with upstream lld: Fix incorrect static dependencies
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-11 20:08:40 +00:00
Treehugger Robot
d667e6583e Merge "BtAudio: Prevent unlink dead binder" am: dc1a419baf am: 6afd301d16 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-07 20:32:30 +00:00
Treehugger Robot
dc1a419baf Merge "BtAudio: Prevent unlink dead binder" 2022-04-07 18:56:44 +00:00
Josh Wu
08255b45d9 BtAudio: Prevent unlink dead binder
Tag: #stability
Bug: 227029886
Test: manually kill bt process
Change-Id: Ic976a33feb5a3636ab828637faf0ba109f5948ce
2022-04-07 09:02:20 -07:00
Jiyong Park
703e97920e Freeze AIDL APIs for TM
Bug: 225941299
Test: m
Change-Id: Ie41cc0797710f813f92c65c387f247c7806d8394
2022-03-31 12:01:39 +09:00
Alice Kuo
41a19de276 Merge "Add A2dp decode software and offload session type" am: 0dac5667f5 am: 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-30 00:44:22 +00:00
Alice Kuo
0dac5667f5 Merge "Add A2dp decode software and offload session type" 2022-03-29 23:49:37 +00:00
Alice Kuo
adcceec9ad Add A2dp decode software and offload session type
1. Add the interface
2. Add the default implementation
3. Add VTS

Bug: 206601670
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I54d8037eeb09312c9f1fb75d2167cc50ac7cae8c
2022-03-29 15:09:50 +08:00
Karthik Ramakrishnan
2a4ed0d3a0 VtsHalBluetoothV1_0: Turn off/on BT for all users am: 0dc66a2c69
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-29 01:52:05 +00:00
Chen Chen
a5e8da7b94 Merge "SpatialAudio: fix crashes in BluetoothAudioSession" am: 8673f8c28f am: 81edd99b87 am: a16a0ece1a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2025663

Change-Id: I12ec3fe8490489a202195cb05e7cc5a4ee6d9435
2022-03-15 19:33:07 +00:00
Chen Chen
a16a0ece1a Merge "SpatialAudio: fix crashes in BluetoothAudioSession" am: 8673f8c28f am: 81edd99b87
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2025663

Change-Id: I25913e948f137e057899e30b5e665e0673e3207b
2022-03-15 18:28:11 +00:00
Chen Chen
3b46c05d95 SpatialAudio: fix crashes in BluetoothAudioSession
Bug: 224578221
Bug: 214615268
Test: build
Change-Id: I0fd7e0887200e39dc996b0d84de421ec13897e94
2022-03-14 18:04:27 -07:00
TreeHugger Robot
4e102c0854 Merge "Clear apex.go entries for bluetooth libs" into tm-dev 2022-03-15 00:58:00 +00:00
Treehugger Robot
acebb3ccd4 Merge "SpatialAudio: Export LatencyMode functions to BluetoothAudioSession" am: 26423c74aa am: 57d941c663
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2014835

Change-Id: I16ba154591d405d4865b5a1d00ae1080cb606d0c
2022-03-08 18:50:44 +00:00
Cheney Ni
6ecbc76603 SpatialAudio: Export LatencyMode functions to BluetoothAudioSession
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-08 11:55:41 +08:00
William Escande
d9d513fd47 Clear apex.go entries for bluetooth libs
Test: Build + TH + boot phone & use bluetooth
Bug: 216433795
Change-Id: Ib1f9fee90006c73e5726a208e6cba8647967f5f4
2022-03-02 20:27:06 +01:00
Chen Chen
973e5eb558 Merge "SpatialAudio: Init codec and buffer size from startStream()" am: 3b04e113e6 am: 92fbebc89f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1989506

Change-Id: I1e686443d67be139c10733dba26e910bbc859734
2022-02-24 20:17:53 +00:00
Chen Chen
3b04e113e6 Merge "SpatialAudio: Init codec and buffer size from startStream()" 2022-02-24 19:39:33 +00:00
Chen Chen
0a68a920cc SpatialAudio: Init codec and buffer size from startStream()
Bug: 214615268
Test: build
Tag: #feature
Change-Id: I26d82da0dfc82fcb6cab6b879bced8e892e8cf44
2022-02-24 18:40:27 +00:00
Chih-hung Hsieh
581616e658 Merge "Add timed out test files to tidy_timeout_srcs" am: ff54f73b4f am: fa83970b3a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1992232

Change-Id: I26b2d04160013fec26fdaadf56caeb919ff4d5bd
2022-02-24 01:04:34 +00:00
Chih-hung Hsieh
ff54f73b4f Merge "Add timed out test files to tidy_timeout_srcs" 2022-02-24 00:21:18 +00:00
Alice Kuo
e6d27b4463 Remove bluetooth.audio@2.2 default implementation and utils handles am: 921760d9a7 am: d3f8b39e76
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1959014

Change-Id: I8a61f053b89b3f8e6d8b3ecad1e7ee4f55981030
2022-02-22 11:55:35 +00:00
Alice Kuo
4416aa8071 Remove bluetooth.audio@2.2 interface am: 13c3701537 am: af1c5194a5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1962885

Change-Id: I3f01cf0179a50d51cd8e9aec69a18f6a7e3ed52f
2022-02-22 11:55:32 +00:00
Alice Kuo
921760d9a7 Remove bluetooth.audio@2.2 default implementation and utils handles
Bug: 204585486
Test: a2dp software/offload, le audio software/offload verified pass
Change-Id: I7c8f32dd294562052ff5af73e6f3c48642c03fe4
2022-02-21 10:52:39 +08:00
Alice Kuo
13c3701537 Remove bluetooth.audio@2.2 interface
Bug: 204585486
Test: A2dp software/offload, le audio software offload verified pass
Change-Id: Icca0d0e0f5f074fc3f68742722a8c268e8289558
2022-02-21 10:52:20 +08:00
Chih-Hung Hsieh
ad1bf31b78 Add timed out test files to tidy_timeout_srcs
* 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-18 17:25:41 -08:00
Josh Wu
381b56aed2 BtAudio: Enable LE Audio software encoding VTS am: 3202eab88a am: 0ecae80b26
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1991530

Change-Id: Id3c02d098a1c0b513713be10f3e798428a414560
2022-02-18 04:57:40 +00:00
Karthik Ramakrishnan
136142007d VtsHalBluetoothV1_0: Turn off/on BT for all users am: 0dc66a2c69 am: f26e49bf49
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/16810781

Change-Id: I6efe72364cbaab2bf5968704263f703ff9f41bee
2022-02-18 02:12:35 +00:00
Josh Wu
3202eab88a BtAudio: Enable LE Audio software encoding VTS
Test: atest VtsHalBluetoothAudioTargetTest
Bug: 203490261
Change-Id: I0ef572dbc7983e2c9939e1b6a3540d88a21743d9
2022-02-17 18:09:05 -08:00
Chen Chen
60d52e48fa SpatialAudio: Fix VTS for the new parameter in AIDL. 2 more VTS
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-16 12:19:17 -08:00
Chen Chen
5cde687f02 Merge "SpatialAudio: Set low latency allowed signal at startSession The 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-16 19:38:24 +00:00
Treehugger Robot
76adba3e27 Merge "BtAudio: Iterate reference in VTS helper" 2022-02-16 07:22:55 +00:00
Treehugger Robot
687ffed8f6 Merge changes I3642c6eb,I0cf9c1ce
* changes:
  Minor fix for the session type in the comments
  Add LE audio broadcast offload vts test cases
2022-02-16 06:47:35 +00:00