Commit Graph

58957 Commits

Author SHA1 Message Date
Shikha Panwar
6ba95073eb Merge "Secretkeeper: improve VTS tests" into main 2023-12-15 12:10:42 +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
Jooyung Han
83a9d7f74c Merge "Remove features from sensors APEX" into main 2023-12-15 04:08:00 +00:00
Treehugger Robot
5ed8cbd40b [automerger skipped] Merge "Test: Don't check results when no type-c ports" into android13-tests-dev am: 6ec8db6abe am: dc0acfbbfe -s ours
am skip reason: Merged-In Ibf599038b542d5d81a2af9ab2097f2f868be0447 with SHA-1 392d530a64 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2635482

Change-Id: I97f3a44f69ef0b64ce3123d0e6480aaec663a680
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-15 03:52:53 +00:00
Treehugger Robot
dc0acfbbfe Merge "Test: Don't check results when no type-c ports" into android13-tests-dev am: 6ec8db6abe
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2635482

Change-Id: I4e6ecc5d9ac4da453d58d0f09e19c4a4bde090b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-12-15 03:18:16 +00:00
Treehugger Robot
6ec8db6abe Merge "Test: Don't check results when no type-c ports" into android13-tests-dev 2023-12-15 02:41:47 +00:00
Mikhail Naganov
177b9f71bd Merge "Add remote submix direct paths" into main 2023-12-14 23:15:41 +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
Shikha Panwar
1c6aa92299 Merge "[Secretkeeper] Add maintenance methods" into main 2023-12-14 18:05:48 +00:00
Bob Wang
141967eed6 Merge "[uwb-chip] Send DeviceResetCmd and poll rsp and ntf before hal is closed." into main 2023-12-14 17:40:51 +00:00
Dean Wheatley
ce9767a966 Add remote submix direct paths
Explicitly reject remote submix non PCM input or output streams.

Bug: 311830316
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I3da9282d0f4ecb91dea65f784294e94436765538
2023-12-14 16:06:40 +11:00
ziyiw
49aa335f8c [uwb-chip] Send DeviceResetCmd and poll rsp and ntf before hal is closed.
Bug: 315324807
Test: manual
Change-Id: I802551f77e031a32b04b49ab5d3134356dd1cd46
2023-12-14 04:23:08 +00:00
Bao Do
435d7f42a2 Merge changes from topics "leaudio-multicodec", "leaudio-multicodec-base" into main
* changes:
  Default implementation of getLeAudioBroadcastConfiguration for LE Audio Offload provider
  Add VTS for LE multi-codec
  Default implementation of getLeAudioAseQosConfiguration for LE Audio Offload provider
  Default implementation of getLeAudioAseConfiguration for LE Audio Offload provider
  Add template functions and implement setCodecPriority for LE Audio offloading provider
  Parse LE Audio Set Configuration into LeAudioAseConfiguration
  Template and schemas for parsing LE Audio Set Configuration.
  Add LE Audio getProviderInfo information
  LeAudio: Add empty audio provider implementation
  bluetooth: LE Audio multi-codec extensibility - broadcast
  bluetooth: LE Audio multi-codec extensibility - unicast
2023-12-14 02:09:23 +00:00
Jooyung Han
7549431359 Remove features from sensors APEX
Just found that each device wants to install a different set of sensors
via LOCAL_SENSOR_FILE_OVERRIDES. Instead of providing a default list in
the apex, which would make things difficult to configure, let's not
hard-code the list in the apex.

Bug: 315089092
Test: cvd start && dumpsys sensorservice
Change-Id: Ie7ddbe6657d5afc06ca009ac37e3a54a5b26ad7d
2023-12-14 10:22:11 +09:00
Treehugger Robot
0d3349c717 Merge "AHAL: add API to notify the HAL module about disconnecting device." into main 2023-12-13 18:40:21 +00:00
Mikhail Naganov
fb29f53f53 Merge "audio: Fix remote submix behavior with multiple inputs" into main 2023-12-13 17:45:13 +00:00
David Drysdale
38174301c6 Secretkeeper: improve VTS tests
- Look for either /default or /nonsecure instances.
- Only run a `deleteAll()` test on a /nonsecure instance.
- Delete IDs on client drop to ensure a consistent state.
- Use a config that ensures tests are run single-threaded, to ensure a
  consistent state.
- Shift to using types not raw arrays.
- Add a macro for common test setup.
- Add helper methods to reduce the amount of copy-pasta in the VTS
  tests.
- Use these helpers to create some additional tests.

Test: VtsSecretkeeperTargetTest
Bug: 291224769
Change-Id: Icff0bba1bcdd66b18398ed4b64ebd2c6bc0de7e7
2023-12-13 13:12:28 +00:00
David Drysdale
1357b92dbc [Secretkeeper] Add maintenance methods
Also move error codes from separate `ErrorCode.aidl` file to be inline
ERROR_ constants instead.

Bug: 291224769
Test: VtsSecretkeeperTargetTest
Change-Id: I1b0f3f3b5a7c5e891da3022444bf6c7925850550
2023-12-13 13:08:10 +00: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
Treehugger Robot
71f56141e7 Merge "Audio AIDL : Pick PreProcessing library for 2 audio effects" into main 2023-12-13 06:55:11 +00:00
David Drysdale
57b7d0bc7b Merge "Secretkeeper: add message encryption" into main 2023-12-13 05:25:50 +00:00
Treehugger Robot
e35fd5922b Merge "Update OWNERS file." into main 2023-12-13 01:28:25 +00:00
Yu Shan
bdd4c1aaea Update OWNERS file.
Test: None
Bug: None
Change-Id: I0c2b9bba98c0543ed44cf7c5ad1a350e195b7b29
2023-12-12 17:24:42 -08:00
jiabin
dd23b0e58e AHAL: add API to notify the HAL module about disconnecting device.
When external device is about to disconnect, the audio framework will
notify the HAL module about the coming device disconnection so that the
HAL module could abort any active read/write operations on drivers to
avoid problems with the HW interfaces.

Bug: 279824103
Test: atest VtsHalAudioCoreModuleTargetTest
Change-Id: I9f960b8ae5df11a764e70bd63f98c0f8b8386c34
Merged-In: I9f960b8ae5df11a764e70bd63f98c0f8b8386c34
2023-12-13 01:02:21 +00:00
Mikhail Naganov
7b234d483f audio: Fix remote submix behavior with multiple inputs
Align the behavior of the new implementation with the legacy
implementation in the case when the client opens multiple
input streams on the same remote submix device.

Reduce the HAL buffer size to match legacy behavior.

Bug: 264712385
Test: atest CtsVirtualDevicesTestCases --test-filter=".*VirtualAudioTest.*"
(cherry picked from commit a83c8a5518)
Change-Id: I6f5e6a2c133059c66269b1bdd8a30392db282c4d
2023-12-12 15:55:22 -08:00
Shunkai Yao
829179e29c Merge "Revert "audio: Fix remote submix behavior with multiple inputs"" into main 2023-12-12 23:20:48 +00:00
Shunkai Yao
0347f0eff0 Revert "audio: Fix remote submix behavior with multiple inputs"
Revert submission 2862771-cuttlefish_aidl_audio-2

Reason for revert: b/316027906

Reverted changes: /q/submissionid:2862771-cuttlefish_aidl_audio-2

Change-Id: I68932be8dad4b4fd4214d0ae6fc01202727f1658
2023-12-12 22:55:59 +00:00
Jayachandran C
983041b502 Merge "Update OWNER for IRadio" into main 2023-12-12 22:47:59 +00:00
Mikhail Naganov
79f7fd088d Merge "audio: Fix remote submix behavior with multiple inputs" into main 2023-12-12 21:11:55 +00:00
David Anderson
c601ec2ff5 Merge "health: Query new properties from BatteryMonitor." into main 2023-12-12 20:22:31 +00:00
Treehugger Robot
1fd753023f Merge "Fix the path to IR HAL" into main 2023-12-12 16:31:41 +00:00
David Drysdale
bef8d3ae89 Secretkeeper: add message encryption
All request messages are encrypted, but response messages have an outer
unencrypted layer, with an inner response (and the result values inside
that).

Make the SecretManagement.cddl file clearer to reflect that, and make
the schema valid along the way.

Move the outer (unencrypted) error code values into `ErrorCode.aidl` and
use them as service-specific error codes, thus reducing the number of
error types from 3 to 2.

Bug: 291228560
Test: VtsSecretkeeperTargetTest
Test: validate CDDL with https://atacama.informatik.uni-bremen.de/
Change-Id: I46c5bfd7e40b03919d7d3779b265b3bb3ff1ce1e
2023-12-12 16:03:04 +00:00
Shikha Panwar
cbad9a37d3 Test store & get Secret functionality
Test Store/Get api of SecretManagement HAL. We use a hard coded
hypothetical chain & a dice policy (which the dice chain matches
against) for testing the store/get functionality.

This patch also adds required error codes in SecretManagement.cddl

Bug: 291224769
Test: atest VtsSecretkeeperTargetTest
Change-Id: I0aa2dfc7413791e9de62a6e753bda4ab2f813d2c
2023-12-12 14:24:14 +00:00
Shikha Panwar
2759df0d3c [Secretkeeper] In-memory KeyValueStore
We introduce InMemoryStore, an implementation of KeyValueStore trait.
This can be used for implementing backends that VTS can run against.

Bug: 291224769
Test: atest VtsSecretkeeperTargetTest
Change-Id: Id109ee3bd38ec0979953b6285019c97d418172ef
2023-12-12 14:24:14 +00:00
Sneha Patil
71b814c4b7 Audio AIDL : Pick PreProcessing library for 2 audio effects
Bug: 305866207
Test: atest VtsHalAECTargetTest
Test: atest VtsHalNSTargetTest
Change-Id: I4fcd95abe6834dec13e570ad2ecb5cd4f1bdc1d3
2023-12-12 17:51:00 +05:30
Treehugger Robot
3d3dab4875 Merge "HDMI Connection Fuzzer Fix" into main 2023-12-12 12:20:20 +00:00
Jooyung Han
f65ce603ae Fix the path to IR HAL
The .rc file is used by IR HAL binary. So the path should be
/vendor/bin instead of /apex. The apex version of .rc file is generated
by a soong rule.

This fixes the IR HAL in -next- configuration.

Bug: 315827315
Test: atest vts_treble_vintf_vendor_test
Change-Id: I1644660f6734bb4452fd7c6fd897ca31e2447dd5
2023-12-12 18:06:34 +09:00
Jayachandran C
779268e142 Update OWNER for IRadio
Change-Id: Iaeeba97a183e9821b4c5e530cca84c461f90b10e
2023-12-12 08:03:20 +00:00
Chienyuan Huang
e608eb8d34 Merge "Add VTS for Channel Sounding" into main 2023-12-12 05:38:02 +00:00