Commit Graph

681 Commits

Author SHA1 Message Date
Chienyuan Huang
6327722e10 Merge "Handle review feedback for android.hardware.bluetooth.ranging" into main 2024-01-17 02:34:21 +00:00
Chienyuan Huang
a6daccc3e5 Handle review feedback for android.hardware.bluetooth.ranging
Bug: 318763088
Test: m android.hardware.bluetooth.ranging-update-api
Change-Id: I7f66278328d63ad1882aae87c575be7baaf45718
2024-01-13 07:15:34 +00:00
Bao Do
b487a85993 Fix test run for GSI
GSI used mixed testing procedures, making some HFP session
and LE Audio related functions unavailable when testing with the
latest VTS. This fix enable HAL version checking when testing.

Bug: 315338603
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: Idb0a780a67857c76c93b13f7b3a64436f6fc647f
2024-01-12 11:13:19 +08:00
Treehugger Robot
61ef14ec09 Merge changes Iab6235b5,I19b7d1af,I1806d8a2,I8589ef14 into main
* changes:
  Fix LeAudioCodecProvider failing offload setting file parsing
  Fix the bogus configs default-constructed as a2dp configs
  Fix filling the configuration map
  Skip unsupported functinality tests
2024-01-10 21:28:27 +00:00
Yahav Nussbaum
1f330d6ce8 Merge "Clarify that an EID is a Find My Device network EID" into main 2024-01-08 19:31:57 +00:00
Jakub Tyszkowski
deecabbd9c Fix LeAudioCodecProvider failing offload setting file parsing
ParseFromLeAudioOffloadSettingFile() fails when `GetLeAudioCodecCapabilities()`
was already called in the past and `leAudioCodecCapabilities` vector is already
populated. That makes some of the VTS tests fail on
`IsOffloadOutputProviderInfoSupported()` and just return and PASS  without
actually checking enything.

The doubtful checks check variables set at parsed content verification,
and should not prevent us from parsing the file again.

Bug: 319090769
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: Iab6235b5d265bb254ae6075b8c32d0eae0fc1829
2024-01-08 14:57:45 +00:00
Jakub Tyszkowski
06781c028a Fix the bogus configs default-constructed as a2dp configs
When the xml file contains the "invalid" entry in the scenario record,
which do not refer to any valid config in the 'configurationList`
section, the invalid, default constructed codec configuration (a2dp codec)
was created.

Bug: 319090769
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I19b7d1af81e5f2be3fb7261fba8781b3dc47fa12
2024-01-08 14:57:44 +00:00
Jakub Tyszkowski
0259aafb71 Fix filling the configuration map
Bug: 319090769
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I1806d8a20abb9a9756512ae8d433c6c6ff784159
2024-01-08 14:57:43 +00:00
Jakub Tyszkowski
334bf18f8d Skip unsupported functinality tests
Instead of silently passing the tests when some functionality is
not supported, mark these tests as skipped. This way, when we are sure
that some functionality should be verified in a particular test run,
we are not being falsely reported that all have passed successfully
while in reality, there's an actuall issue in the particular functionality
detection mechanism.

Bug: 319090769
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I8589ef14abfb5af641bc98949de1e1acc21efe1a
2024-01-08 14:57:43 +00:00
Yahav Nussbaum
31f1ad2409 Clarify that an EID is a Find My Device network EID
Bug: 318931934
Test: m android.hardware.bluetooth.finder-update-api
Change-Id: Ie888bc81bd8b91040aa308b9b0d2be4a6137e483
2024-01-06 16:53:01 +00:00
Jakub Tyszkowski
c8a6224831 LeAudio/multicodec: Add the additional VTS test case
Bug: 308428217
Bug: 307258939
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: Idf8ca8c50e61482506c3c1a5bf5e8962c316a045
2024-01-05 18:12:50 +00:00
Jakub Tyszkowski
4856308c50 LeAudio/multicodec: Fix the async data path getter API
Just like the returned data path configurations are split for each direction,
the function arguments should also have the directional context. The vendor
module might need to know which connection handles in the stream map are for
the sink and which are for the source direction, to provide the proper
data path configurations for each direction.

Bug: 308428217
Bug: 307258939
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I270b6f4631869e2180580c886f0b58bd777d2123
2024-01-05 14:48:23 +00:00
Yahav Nussbaum
8885605ebd Merge "Make android.hardware.bluetooth.finder apex_avilable for com.android.tethering" into main 2024-01-05 10:27:48 +00:00
Yahav Nussbaum
2f1b39cce9 Make android.hardware.bluetooth.finder apex_avilable for com.android.tethering
Bug: 307897939
Test: m android.hardware.bluetooth.finder-update-api
Change-Id: I7c40cdfc36180d0ab25d9862b29bb4015d03adb0
2024-01-04 22:30:03 +00:00
Mikhail Naganov
a88cf60b87 audio: Fix BT AIDL HAL module implementation
In order to align with legacy behavior, when opening a stream,
the module must suggest the current configuration of the BT session.
For that to work, the BT device proxy must be opened prior
to creating a stream, code moved to ModuleBluetooth.

Fix minor inconsistencies and bugs found during testing.

Bug: 301213930
Bug: 316027906
Test: atest pts-bot
Change-Id: I04ddaf73be82f872a3f32a789563c3cbd648eb61
2023-12-26 16:34:58 -08:00
Hang Shi
549fc869ef Merge "Bluetooth LMP Events: Interface for LMP events" into main 2023-12-19 02:34:53 +00:00
Antoine Soulier
105eddfc75 Merge "Improve A2DP Bits handling" into main 2023-12-15 19:37:24 +00:00
Antoine SOULIER
e55691fdf1 Improve A2DP Bits handling
Test: m
Bug: 316413963
Flag: EXEMPT small improvement non flaggable
Change-Id: I5b6a6bbb130f9c9222373e3927d23908d1f8a351
2023-12-15 18:42:17 +00:00
Limon Mia
09e546a8c6 Merge "BTAudio HAL: Added feature flag for DSA Over LEA" into main 2023-12-15 13:43:58 +00:00
Treehugger Robot
acb835d146 Merge changes from topic "Bluetooth_Ranging_Params_Update" into main
* changes:
  Add CS mode 2 and mode 3 param for Channel Sounding HAL
  Add CS mode 0 params for Channel Sounding HAL
2023-12-15 08:26:32 +00:00
Limon Mia
b58cee4af7 BTAudio HAL: Added feature flag for DSA Over LEA
Test: atest VtsHalBluetoothAudioTargetTest
Bug: 270987427
Change-Id: Ifef0b97d20c7c12001b7d04cc7f8ce9da5fb1920
2023-12-15 05:30:09 +00:00
Venkata Jagadeesh Garaga
9c16dd7cce Add CS mode 2 and mode 3 param for Channel Sounding HAL
- add toneExtentionAntennaIndex in StepTonePct aidl

Bug: 310941161
Test: m android.hardware.bluetooth.ranging-update-api

Change-Id: I9e115480d78a26c8996d5bbd0b482bd173620663
2023-12-14 10:47:55 -08:00
Venkata Jagadeesh Garaga
9aaa752c3e Add CS mode 0 params for Channel Sounding HAL
- add frequencyCompensation in ChannelSoudingRawData
 - add measuredFreqOffset in ChannelSoundingSingleSideData

Bug: 310941161
Test: m android.hardware.bluetooth.ranging-update-api

Change-Id: I88444b76b136c5b45d4298692d5734b44941c5a3
2023-12-14 10:47:43 -08:00
Bao Do
5b2fdab61f Default implementation of getLeAudioBroadcastConfiguration for
LE Audio Offload provider

Bug: 306225778
Test: mmm hardware/interfaces/bluetooth/audio/aidl/default
Change-Id: I5bfb4a84a8222603c64ac51a28b5962825182676
2023-12-13 09:57:34 +00:00
Bao Do
c36897dbd8 Add VTS for LE multi-codec
Bug: 308548462
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: Ia74da644eb8e62bdf0709ba7f375a7e35ccf0936
2023-12-13 07:38:35 +00:00
Bao Do
c4adf243fe Default implementation of getLeAudioAseQosConfiguration
for LE Audio Offload provider

Bug: 306225778
Test: mmm hardware/interfaces/bluetooth/audio/aidl/default
Change-Id: Idffad1de0d06b4892dec1907e42ef1697fe54d60
2023-12-13 07:38:35 +00:00
Bao Do
867af60a77 Default implementation of getLeAudioAseConfiguration
for LE Audio Offload provider

Bug: 306225778
Test: mmm hardware/interfaces/bluetooth/audio/aidl/default
Change-Id: Ic09a1cbd8c85aa33375e8e1521ec03964117ac3a
2023-12-13 07:38:35 +00:00
Bao Do
6112bda436 Add template functions and implement setCodecPriority
for LE Audio offloading provider

Bug: 306225778
Test: mmm hardware/interfaces/bluetooth/audio/aidl/default
Change-Id: I440a007ba3ed148834db1c3874af780b454aae39
2023-12-13 07:38:35 +00:00
Bao Do
be99419521 Parse LE Audio Set Configuration into LeAudioAseConfiguration
Bug: 306225778
Test: mmm hardware/interfaces/bluetooth/audio/utils
Change-Id: Ia08568322e1cee1834e08172781cc77342cbd025
2023-12-13 07:38:35 +00:00
Bao Do
fbc99e05c6 Template and schemas for parsing LE Audio Set Configuration.
Bug: 306225778
Test: mmm hardware/interfaces/bluetooth/audio/utils
Change-Id: I20482faf20a41f04c39e1314db45a07cb5f9956b
2023-12-13 07:38:34 +00:00
Bao Do
6aeb5d7217 Add LE Audio getProviderInfo information
Bug: 306225778
Test: mmm hardware/interfaces/bluetooth/audio/aidl/default
Change-Id: Ieb03a1a3096dbeb6a4e2ac4774ece6d3ef3e33be
2023-12-13 07:38:34 +00:00
Jakub Tyszkowski
ccceb2f3b3 LeAudio: Add empty audio provider implementation
Empty implementation required for sucessfull build.

Bug: 308428217
Bug: 307258939
Test: make
Change-Id: I7ad578f3451edca89233652e331ef5d532925188
2023-12-13 07:38:34 +00:00
Jakub Tyszkowski
8edc51bbbd bluetooth: LE Audio multi-codec extensibility - broadcast
Bug: 308428217
Bug: 307258939
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I50c07be7bd947f095824f3cf4630c0d640921f9a
2023-12-13 07:38:34 +00:00
Jakub Tyszkowski
c11ac5844b bluetooth: LE Audio multi-codec extensibility - unicast
Bug: 308428217
Bug: 307258939
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I9a40c24212cc36829a11b54977d313bef5e652ca
2023-12-13 07:38:34 +00:00
Chienyuan Huang
a1020f0dcd Add VTS for Channel Sounding
Bug: 312862898
Test: atest VtsHalBluetoothRangingTargetTest
Change-Id: I38e84dca07dd3c995875471b0bd0a823d5d7b325
2023-12-11 08:24:56 +00:00
Chienyuan Huang
64930a6379 Merge changes from topic "Bluetooth_Ranging" into main
* changes:
  Add default implementation for Channel Sounding
  Add HAL interface for Channel Sounding
2023-12-11 03:43:57 +00:00
Antoine Soulier
8024b94e6d Merge changes from topic "codec_extensibility" into main
* changes:
  Codec Extensibility A2DP HAL Reference Implementation
  Codec Extensibility A2DP Specific AIDL
2023-12-07 23:51:48 +00:00
Hongguang Chen
13c04c29cc Merge "Allow non-zero HCI interface numbers" into main 2023-12-07 23:29:23 +00:00
Chienyuan Huang
a9a2717670 Add default implementation for Channel Sounding
Bug: 312865139
Test: m android.hardware.bluetooth.ranging-service.default

Change-Id: I4324693ba6b7d0b6eef171e72acc5e7c30a2f35b
2023-12-07 22:06:26 +00:00
Chienyuan Huang
d74aedc9df Add HAL interface for Channel Sounding
Bug: 310941161
Test: m android.hardware.bluetooth.ranging-update-api
Change-Id: I4b0d103b851c546c9cb7277ae0c828d740367b63
2023-12-07 22:03:25 +00:00
Antoine SOULIER
4e34d05b7b Codec Extensibility A2DP HAL Reference Implementation
Test: m
Bug: 297037759
Change-Id: I84b32c2ef22da8c3e920e497501b9f16feaf803c
2023-12-07 16:51:57 +00:00
Antoine SOULIER
33c4e5a629 Codec Extensibility A2DP Specific AIDL
Test: m
Bug: 297037759
Change-Id: If9a73d2791781ad948ce76b55b9d29f7eba655e4
2023-12-07 16:51:01 +00:00
Bao Do
7239943cb5 Add VTS for HFP sessions
Contains VTS tests for HFP software encoding / decoding
and HFP hardware sessions.

Bug: 265057196
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: I4bbdc07a0afa0a889a8cf34019c6685ebd4fa0a0
2023-12-07 05:57:26 +00:00
Yuyang Huang
aa70c11126 Add HFP to BluetoothAudioSession
Test: m .
Bug: 265057196
Change-Id: I0e2e9d0f34ebf3f732c4f2da799c4c30f52bdeef
2023-12-07 05:54:59 +00:00
Yuyang Huang
91d7f8b916 Add HFP default implementation
Bug: 265057196
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I712eb4db0d776b465436ae54730ad883ecaf40a0
2023-12-07 05:54:59 +00:00
Yuyang Huang
e50be86fd4 Add HFP AIDL design
Bug: 265057196
Test: m android.hardware.bluetooth.audio-update-api
Change-Id: I066c8c0db7516da8709c32558fe3b21ddbd91054
2023-12-07 05:54:58 +00:00
yanggang.yang
c59d2d80ee Allow non-zero HCI interface numbers
[Description]
when driver re-register hci device, it may register hci 1
[Root Cause]
In the kernel mechanism, there may be a timing issue. when driver re-register hci device,kernel may not completely unregister hci 0.But aidl only open hci 0.
[Solution]
assign a value to the hci interface based on the device node found by AIDL

[Test Report]
Insert the bt chip into the usb 2.0 port, and then suspend the TV. The bt chip will be disconnected due to the USB power outage. And then quickly resume the TV,check whether the Bluetooth state is on. Suspend and resume for several times, check for bt state.

Change-Id: I57fd4a22c956e0cf2b4a516247c258493163e51a
BUG: 314149416
2023-12-07 02:07:58 +00:00
kuanyuhuang
81e941fef5 Bluetooth Finder: fix typo android.hardware.bluetooth.finder-service.default
Bug: 314360499
Test: atest vts_treble_vintf_vendor_test
Change-Id: I4de7d83a4fad133d1471ffd17d5a41b3db413ff2
2023-12-06 11:23:09 +00:00
Antoine SOULIER
8c90f1f7b5 Codec Extensibility Base AIDL
Test: m
Bug: 297037759
Change-Id: I3f440a75aeada6c8739b89f89a6d942488c8ce77
2023-12-04 18:51:16 +00:00
Jakub Rotkiewicz
e70014de66 Upgrade VNDK version to 4
Change-Id: I5566a1ef857f7db6c1dc04fcf16aa16fb6e1063a
2023-12-04 17:52:18 +00:00