Commit Graph

763 Commits

Author SHA1 Message Date
Treehugger Robot
4694452909 Merge "Add proposed trendy teams for VTS modules" into main 2024-10-30 03:04:54 +00:00
Henri Chataing
13a74787ee VtsHalBluetoothTargetTest: Remove SCO loopback tests
SCO over HCI is not an explicit VSR requirement
of the Android Bluetooth stack as SCO streams
are always offloaded.

Bug: 352247861
Bug: 297818112
Test: atest VtsHalBluetoothTargetTest
Change-Id: Id6fcec230e07897cb63c80eada47c9c58a869c73
2024-10-17 16:58:59 +00:00
Yihan Dong
d719d219bb Add proposed trendy teams for VTS modules
Change-Id: I4cf8802611eec791420c27432dc7e8b708960736
Test: build locally
Bug: 368362374
2024-10-12 09:05:20 +00:00
Jeremy Wu
cd019230f3 Add support for HFP_SOFTWARE_DATAPATH session type
Bug: 349290628
Bug: 315234036
Test: m packages/modules/Bluetooth
Flag: com::android::bluetooth::flags::is_sco_managed_by_audio and HFP session type only enabled when flag is enabled
Change-Id: I952f8baf347084d57162fdfd767259157f39962e
2024-09-25 02:43:23 +00:00
Henri Chataing
f506e2dc47 VtsHalBluetoothTargetTest: Check API level compatibility
The following requirements apply only when the support API level
is lower than 34:

 - [VSR-5.3.14-001]
 - [VSR-5.3.14-002]
 - [VSR-5.3.14-004]

Bug: 297818112
Test: atest VtsHalBluetoothTargetTest
Change-Id: I278681dfd9c30647110c55634d6e324786c48d73
2024-09-18 21:58:15 +00:00
Yuyang Huang
f1527f5a88 Add support for HFP_HARDWARE_OFFLOAD_DATAPATH session type
Bug: 345303008
Change-Id: I0de7fcfaa64ae94e3a78d03685e661c51416ae64
Test: m packages/modules/Bluetooth
Flag: com::android::bluetooth::flags::is_sco_managed_by_audio and HFP session type only enabled when flag is enabled
2024-08-07 21:29:18 +00:00
Yuyang Huang
9daf187ec6 improve condition check for LE audio session
Bug: 345303008
Change-Id: Ic360f5463dc9515047dc3cdf3e69564809ea06d3
Test: m packages/modules/Bluetooth
Flag: exempt, no logical change
2024-08-07 21:16:53 +00:00
Jakub Tyszkowski
291b5d7510 VTS: Support VERSION_AIDL_V5
Bug: 352454998
Test: atest VtsHalBluetoothAudioTargetTest
Flag: Exempt; test only change
Change-Id: Icfca5680359a8287bd5994de26573a89c70f34da
2024-08-02 13:05:27 +00:00
Jakub Tyszkowski
f5015ce683 Fix matching the results
Trivial fix of using wrong variable name.

Bug: 352454998
Test: atest VtsHalBluetoothAudioTargetTest
Flag: Exempt; trivial fix covered with unit tests
Change-Id: I666c684dbd9f2b58a3d1cbe7449e21af57e55df4
2024-08-02 12:47:58 +00:00
Bao Do
767222af54 Optimize matching logic for multiple requirements at once.
We now prepare all settings that matched with the capabilities,
then find the correct context settings first.
This helps reuse the list of all settings for the next requirement.

Bug: 331490291
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: Ie27a471264f384700b754156b7db894b65b4cd82
2024-07-26 17:14:32 +08:00
Myles Watson
fcd1963a3c Merge "VtsBluetooth: Update advertising set requirements" into main 2024-07-24 22:36:56 +00:00
Myles Watson
864c904897 VtsBluetooth: Update advertising set requirements
The requirements for advertising sets are the same in the
published VSR requirements for TV and other Android devices,
so there should be no difference in the test.

Bug: 353619486
Test: mma -j32
Change-Id: I48189896138da4efacbe1ce8e46f4267e956771f
2024-07-24 14:39:10 -07:00
Bao Do
649569202b New parsing logic and configuration matching for LE Audio
Match the supported allocation channels from the device's capability
and remove loose matching ability.
This helps with choosing the correct configuration respecting
the device's number of ASE.

We also add "name" field for easier debugging.

Bug: 331490291
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: Iefd406fcd913ce553a02242b0a2100cab431476e
2024-07-18 16:59:48 +08:00
Bao Do
f6ce19d697 Update the default set configuration file and format.
New format eliminates the need for allocation and
deduplicates many configurations.
We change the file name of the default set configuration
for intergration with vendor's configuration.

We also support storing the configuration name in
the vendor's metadata for easier debugging.

Bug: 331490291
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I0f6cfbdad1da05c35d7c758c69d7030527e1f46a
2024-07-18 13:46:16 +08:00
Treehugger Robot
31b4c4f88d Merge "Migrate all related audio component to media.audio.common.types V4" into main 2024-06-26 20:23:51 +00:00
Treehugger Robot
1eb0f93535 Merge "Remove Bluetooth.a2dp@1 HIDL HAL" into main 2024-06-26 18:28:35 +00:00
François Gaffie
dab7ab0807 Migrate all related audio component to media.audio.common.types V4
-Change latest
-Unfreeze deps
-Update next compatibility matrix
-add opt sounddose v3 to fcm compat exclusions

Flag: EXEMPT HAL interface change
Bug: 307310023
Test: build & boot
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
Merged-In: I3929603471d9543febca76ef6e2959063393194f
Change-Id: I3929603471d9543febca76ef6e2959063393194f
2024-06-26 18:13:56 +00:00
Henri Chataing
aaacaed825 Remove Bluetooth.a2dp@1 HIDL HAL
Support for the HAL android.hardware.bluetooth.a2dp@1.0 has been
removed by Ie0c624ca8e917af8e06208871a5353382fe3aada

Bug: 280901009
Test: TreeHugger
Change-Id: I745d6e0b4977fae9301b7ee344c72a63ed6c871d
2024-06-26 17:02:05 +00:00
Treehugger Robot
d93a9c9043 Merge "LeAudio: Verify codec frame blocks pers SDU parameter" into main 2024-06-26 01:48:17 +00:00
Jakub Tyszkowski
11178a6e8e LeAudio: Verify codec frame blocks pers SDU parameter
Bug: 308428644
Bug: 346568041
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I6567950d24d1df8cabec2855c907c5611ca5bf6d
2024-06-24 11:11:27 +00:00
Patrick Liao
c7f79e0450 Turn on 48kHz sampling rate in offload's AAC codec capability
Bug: 331941704
Flag: exempt, only turn on capability does not effect stack behavior
Test: m com.android.btservices
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I36bf1e2183f237988cc77465a486e70b942409f5
2024-06-19 06:08:52 +00:00
Bao Do
85991941ad Remove VTS test for High Quality broadcast am: 7f89d61751
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3119572

Change-Id: I83b33a8bf7c5d1443c18b56b1ef16d96ef586e08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-07 13:21:09 +00:00
Bao Do
7f89d61751 Remove VTS test for High Quality broadcast
Not all target device support high quality broadcast config.

Bug: 342672142
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I87508c8deec994defb5653e51e75a00a8efcb873
2024-06-07 16:59:52 +08:00
Myles Watson
3dbf2ea7fb Merge changes I9fd5e4cb,I59872b1a into main am: 66f0636c0e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3114545

Change-Id: I0a504961e3ad350cd69fdbce4c43ccc3a362a41d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-07 06:00:53 +00:00
Myles Watson
66f0636c0e Merge changes I9fd5e4cb,I59872b1a into main
* changes:
  HCI: Prefer the requested hci_interface
  HCI: Return the interface from EV_INDEX_ADDED
2024-06-07 05:45:36 +00:00
Ted Wang
a7942bf9ec Merge "Replace all keys in sendEids" into main am: 20aea225f1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3105841

Change-Id: I5a63ad058fd7a1597c3e6a82f06f1c0203a79683
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 06:27:08 +00:00
Ted Wang
20aea225f1 Merge "Replace all keys in sendEids" into main 2024-06-06 06:14:38 +00:00
Bao Do
aa1b56973e Merge changes I15075455,I03f322e8 into main am: 1cb6465c10
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3109159

Change-Id: I970647e0bdffd9a6f1ebf42c448298fae02bf053
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-06 06:01:00 +00:00
Myles Watson
1f0e88bff9 HCI: Prefer the requested hci_interface
Bug: 345058678
Test: mma -j32
      Connect passthrough mode with AAOS
Change-Id: I9fd5e4cba1e14e6260f485f56f473ce506f18437
2024-06-05 13:39:54 -07:00
Myles Watson
f7986f1a31 HCI: Return the interface from EV_INDEX_ADDED
Bug: 345058678
Test: mma -j32
      Connect passthrough mode with AAOS
Change-Id: I59872b1a5f84401c19106ebb0ffe1dbcc72f6aff
2024-06-05 13:39:10 -07:00
Bao Do
81092bb791 Additional broadcast config logic for LEA multi-codec
Broadcast settings matching now base on context to
populate configurations

Bug: 306225778
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I150754558ceb74f19888ef63210e2a42b3f00cd8
2024-06-05 19:18:33 +08:00
Ted Wang
fbf30ae2db Replace all keys in sendEids
Bug: 343604097
Test: vts
Change-Id: I3dd03e24384899a9a4eb104ce0c81932b9c6fefc
2024-06-05 08:20:06 +00:00
Bao Do
57861bdd0c Additional context matching logic for LEA multi-codec
When we match with the remote capabilities, we don't filter by
preferred audio context, since they are suggestion.

Instead, we populate settings into 2 separated vector:
- Matched settings with matched preferred context,
- Matched settings,

We then filter by the first vector, then by the second vector.

Bug: 306225778
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I03f322e8de509127d218a9de6b41dd39b2ebdcba
2024-06-04 14:00:32 +08:00
Xin Li
64e598ce2b Merge Android 24Q2 Release (ab/11526283) to aosp-main-future
Bug: 337098550
Merged-In: I53a278f1317f5307441103dc42dc5be6f20d7075
Change-Id: I3a53ebf7339cdb886d3c1b733b8eee1847f8832a
2024-05-24 08:28:04 -07:00
Silen Sun
92b27fb6a3 Merge "flag: add leaudio_report_broadcast_ac_to_hal" into main 2024-05-24 01:04:40 +00:00
Silen Sun
9534a2dc4c Merge "Report broacast audio config to HAL" into main 2024-05-24 01:04:40 +00:00
Bao Do
740301ed52 Merge changes I478fc99b,I2150459b into main
* changes:
  Multi-directional support for matching ASE configuration
  Extend VtsHalBluetoothAudioTargetTest
2024-05-22 02:42:16 +00:00
silens
1f19688ec0 Report broacast audio config to HAL
Bug: 321168976
Bug: 339121774
Test: atest --host bluetooth_test_broadcaster
Change-Id: I8eaeb72d027b9b01f83458f560d23770c8005b78
2024-05-21 17:37:41 +08:00
Mikhail Naganov
4fe8021f09 bluetooth: Add 'defaults' for 'android_hardware_bluetooth_audio'
Add defaults for the case when the library is used
from within 'target/android'.

Also, switch 'BluetoothLeAudioCodecsProviderTest' to use
'defaults' instead of hardcoding the interface module version.

Bug: 307310023
Test: m
Change-Id: I7e5e70efe6a733367a8b5cbe5cffbfddf610cc6b
2024-05-16 20:00:49 -07:00
silens
a59700bbba flag: add leaudio_report_broadcast_ac_to_hal
Report broacast audio config to HAL

Bug: 321168976
Bug: 339121774
Test: atest --host bluetooth_test_broadcaster
Change-Id: I02778ed7ac5d756d89fe6d6538e2f806b7e857bc
2024-05-14 01:40:47 +00:00
Bao Do
91d7ca2b67 Multi-directional support for matching ASE configuration
Bug: 320259251
Test: ateast VtsHalBluetoothAudioTargetTest
Tag: feature
Change-Id: I478fc99bb02debd78f660dc27e9600ef3afdc2a9
2024-05-09 14:21:29 +08:00
Łukasz Rymanowski
5a43cb90d8 Extend VtsHalBluetoothAudioTargetTest
This increase number of test cases for new Multicodec feature

Bug: 320259251
Test: ateast VtsHalBluetoothAudioTargetTest
Tag: feature
Change-Id: I2150459bea53b522fe8da43ceed4c20eaeba7b16
2024-05-09 11:05:49 +08:00
Ted Bauer
80698b0302 Merge "Add deps for new aconfig flagging storage" into main 2024-04-30 01:20:21 +00:00
Ted Bauer
da93213b2d Add deps for new aconfig flagging storage
Aconfig flagging storage is migrating to a new underlying storage, which
has new dependencies. Add the dependencies as a defaults.

Bug: 328444881
Test: m
Change-Id: Idca333a4f4198ac5c8724a9696a9f68433a5f39b
2024-04-29 20:21:04 +00:00
Ted Wang
6857ff20a9 Merge "Revert "Test that the Bluetooth Finder property is set."" into main 2024-04-26 06:14:17 +00:00
Ted Wang
8a7e803ff6 Revert "Test that the Bluetooth Finder property is set."
This reverts commit 41a33e5b1c.

Reason for revert: b/324922580

Change-Id: Id2a1ab99f686ee8a3ca0af1b4604a26a864ce024
2024-04-26 02:31:51 +00:00
Omair Kamil
84a95be33b Add VTS requirement for concurrent LE connections.
Bug: 334200772
Test: atest VtsHalBluetoothTargetTest
Change-Id: I07c72ee077f67858764cbcfc8a1ea34c5d4454e3
2024-04-22 13:30:25 -07:00
William Escande
ac0f34f6cd Bluetooth vts hal: Restore to 2s startup
1s should really be the max limit, but it requires time to investigate
the failures and optimize this

Bug: 327273567
Fix: 332815453
Test: atest VtsHalBluetoothTargetTest
Change-Id: I43767b5241d967cb643401711fd7b2e015e99455
2024-04-11 09:06:31 -07:00
Henri Chataing
11c3782296 VtsHalBluetoothTargetTest: Link with libbluetooth_log
Test: m VtsHalBluetoothTargetTest
Bug: 305066880
Change-Id: Id16fa4557a4152c5972fa6a3a71626840414ebf0
2024-03-29 17:16:11 +00:00
Doug Ferraz
eff7b9102f Bluetooth HCI: Add VTS requirement for HCI 4.2 - Annotations
Bug: 285456310
Test: atest VtsHalBluetoothV1_1TargetTest
Test: atest VtsHalBluetoothV1_0TargetTest
Test: atest VtsHalBluetoothTargetTest
Change-Id: I5a910d2a7d778b2e64a524d0a389b911c080e189
2024-03-25 20:04:19 -04:00