Commit graph

47704 commits

Author SHA1 Message Date
Treehugger Robot
6b3f886f2f Merge "Support Rust builds of some AIDL interfaces." into main 2023-09-27 09:59:26 +00:00
Kyle Zhang
fac8f01d4e Work around fix for "libvtswidevine32.so" not found am: 720b897783
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2762345

Change-Id: Ib27ff1c5ac57426f9368ef9bf3bf401641925e09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-26 22:18:17 +00:00
Treehugger Robot
d937584b22 Merge "Don't depend on String8 cast to C string [health]" into main 2023-09-26 18:00:21 +00:00
Kyle Zhang
720b897783 Work around fix for "libvtswidevine32.so" not found
Bug: 299290047
Change-Id: I01ef50feaaa8ff237d4d04848f9c9e67a81adc80
2023-09-26 17:13:51 +00:00
Gabriel Biren
bddf425784 Merge "Disable Wi-Fi framework during VTS" into main 2023-09-25 22:34:44 +00:00
Treehugger Robot
87e6b60eb3 Merge "Skip known VTS failures on vendor code till U" into main 2023-09-25 19:24:14 +00:00
Mikhail Naganov
f69e0b6795 Merge "audio: Fix connection between alsa_device_profile and _proxy" into main 2023-09-25 16:00:00 +00:00
Treehugger Robot
7761d90af1 Merge "Updated vehicleManager_fuzzer" into main 2023-09-25 03:21:12 +00:00
Wonsik Kim
bea101032f Merge "media.c2: add apex_available and set minsdk to 31" into main 2023-09-22 22:12:33 +00:00
Ryan Prichard
8d333ff410 Merge "Fix nonce uniqueness tests" into main 2023-09-22 19:43:55 +00:00
Treehugger Robot
542110eebe Merge "audio: Fix Effect worker thread" into main 2023-09-22 16:40:06 +00:00
Treehugger Robot
582a2010d6 Merge "Add dumpstate HAL APEX" into main 2023-09-22 10:53:55 +00:00
Mikhail Naganov
5d2bfbac33 audio: Fix connection between alsa_device_profile and _proxy
alsa_device_proxy keeps a pointer to alsa_device_proxy,
but does not own it. Thus, the lifetime of the proxy must
be no less than of the proxy. In the legacy USB HAL impl
they were stored together (struct alsa_device_info).
Implement an equivalent class (DeviceProxy) in ALSA utils.

Bug: 264712385
Bug: 298712227
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I4e36701752afb3f35664b6f2ad1acda5719be1ea
2023-09-21 17:44:54 -07:00
Ryan Prichard
37d5948144 Merge "Use std::filesystem when libc++ is new enough" into main 2023-09-21 21:46:57 +00:00
Shunkai Yao
697e3f89a7 Merge "Effect AIDL: correct some code format" into main 2023-09-21 20:49:14 +00:00
Andrew Scull
b484308d5c Merge "Select the DICE validation rules based on the VSR" into main 2023-09-21 18:48:49 +00:00
Treehugger Robot
606a406750 Merge "Don't require UNKNOWN_ERROR" into main 2023-09-21 18:30:15 +00:00
Shunkai Yao
8771cecb99 Effect AIDL: correct some code format
Bug: 300735428
Test: atest VtsHalAudioEffectTargetTest
Change-Id: Ic4c925ea14e08418e56ad108468f61b049280f70
2023-09-21 17:58:42 +00:00
Jaideep Sharma
632b1cd048 audio: Fix Effect worker thread
When a effect is closed and reopened from framework,
mExit and mStop states are not reset,that causes
threadloop to exit and eventually blocks framework
as FMQs are never filled from effects HAL.

Reset the state of mExit and mStop on every time when
thread is created, so open->close->open kind of
scenarios can be handled.

Bug: 301214647
Test: run vts-hal-audio

Change-Id: If54c8fa62827e5f28e620dd841d638028149b1b8
2023-09-21 03:11:00 +00:00
Jooyung Han
aefc0473b8 Merge "Add bootcontrol HAL APEX" into main 2023-09-21 02:17:32 +00:00
Jooyung Han
cf81ef375b Merge "Add contexthub HAL APEX" into main 2023-09-21 02:16:51 +00:00
Alisher Alikhodjaev
59107ad386 Merge "Temporary disable one of the transmit checks" into main 2023-09-20 23:37:44 +00:00
Wonsik Kim
98faf55896 media.c2: add apex_available and set minsdk to 31
Test: m
Change-Id: Id5c266823f99a810cc69b31fff8e8be727c74031
2023-09-20 16:36:18 -07:00
Tri Vo
7b565c4e7b Don't require UNKNOWN_ERROR
Negative test cases should not expect UNKNOWN_ERROR from Keymint since
the exact cause of failure is known.

In general, we should avoid UNKNOWN_ERROR because it makes error
attribution difficult.

To avoid adding retroactive requirements KM implementation, relax the
check to expect any error.

Bug: 298194325
Test: VtsAidlKeyMintTargetTest
Change-Id: I136fb6d36ae92c9e3722ffefe9a067d3515dcbf9
2023-09-20 19:31:48 -04:00
Ryan Prichard
b2c9d5c9a6 Fix nonce uniqueness tests
std::unique consolidates the unique nonces at the start of the `nonces`
vector, but it doesn't modify nonces.size(), so these tests weren't
actually verifying that the nonces were unique. Add a vector::erase
call to shrink the vector.

After upgrading libc++, std::unique is [[nodiscard]] and this bug is
a compiler error.

Bug: 175635923
Test: treehugger
Test: m VtsAidlSharedSecretTargetTest VtsHalKeymasterV4_0TargetTest
Change-Id: I7fd8c40a3920bf3a8988c8065503c78ba36dc742
2023-09-20 16:11:35 -07:00
Alisher Alikhodjaev
d0ed43bb7e Temporary disable one of the transmit checks
The transmit without openning a channel passes on some platforms,
because a basic channel can be opened by external applications
and the state is maintained in the HAL.

Bug: 300502872
Test: run vts -m VtsHalSecureElementTargetTest
Change-Id: If727c613e8575802b99604f7242e16cf85fc97a0
2023-09-20 15:15:38 -07:00
Ryan Prichard
680fd80663 Use std::filesystem when libc++ is new enough
_LIBCPP_VERSION in external/libcxx is 8000. When _LIBCPP_VERSION is
newer, assume it's the new libc++ toolchain prebuilt, which has a
finalized std::filesystem, and use std::filesystem instead. To make
Soong happy, keep the android.hardware.automotive@libc++fs library for
now but stub out the C++ source files and make the
android::hardware::automotive::filesystem namespace an alias for
std::filesystem.

Bug: 152067309
Bug: 175635923
Test: treehugger
Test: m android.hardware.automotive.can@1.0-service
Test: m android.hardware.automotive@libc++fs
Change-Id: I7aede74cda0122434d972a075d7c7a9933845450
2023-09-20 14:46:18 -07:00
Treehugger Robot
4f2a709416 Merge "Effect AIDL: Skipping vts test case if its not supported by effect" into main 2023-09-20 16:57:23 +00:00
Andrew Scull
1ca978f373 Select the DICE validation rules based on the VSR
Check the VSR of the device to select the DICE validation rules that
will be appropriate to use for VTS.

Test: TH
Change-Id: Iff19debd1e442a0b318da1a4d8a08d470efba0ae
2023-09-20 14:30:48 +00:00
Shunkai Yao
92cd748451 Effect AIDL: Skipping vts test case if its not supported by effect
Check audioModeIndication/audioSourceIndication/volume flags and only
test if they are supported

Bug: 300735428
Test: atest VtsHalAudioEffectTargetTest
Change-Id: I539b408fcdb73c25984ec8f39b401475a3ccab69
2023-09-19 21:31:22 +00:00
Jooyung Han
20ef2394d8 Add dumpstate HAL APEX
The HAL implementation is used by cuttlefish and goldfish now. To not
break the usage in goldfish, the HAL binary is kept unchanged.

Bug: 297467444
Test: VtsHalDumpstateTargetTest
Change-Id: I1474128e653c5df1068f33dfae8d3f2762e9cb47
2023-09-19 23:48:35 +09:00
Eran Messeri
801c76b13e Merge "Enable EcdsaAttestationIdTags VTS for GSI" into main 2023-09-19 10:55:45 +00:00
Jooyung Han
798af3b38d Add contexthub HAL APEX
It's typical to make the HAL binary to link its dependencies statically
to make the resulting APEX smaller. Will do it as a follow-up.

Bug: 297467264
Test: VtsAidlHalContextHubTargetTest
Change-Id: Icbc558d81a473b5ea01d2d0b5f7090fcb5365085
2023-09-19 15:43:37 +09:00
Jooyung Han
ac5383d204 Add bootcontrol HAL APEX
To make the binary(and the apex) smaller, refactored dependency types.
The binary in the apex is now statically linked to its dependencies
if possible.

Bug: 297467553
Test: VtsHalBootAidlTargetTest
Change-Id: I4052c802cf0b6cd9ace4cd87bce6d5531a259237
2023-09-19 15:19:55 +09:00
Treehugger Robot
65747f7ccb Merge "audio: Match the r_submix configuration to the legacy impl" into main 2023-09-19 01:49:27 +00:00
Jooyung Han
d67ffc4b89 Merge "Revert^2 "Add CAS HAL APEX"" into main 2023-09-19 01:18:07 +00:00
Mikhail Naganov
21d4b9608a audio: Match the r_submix configuration to the legacy impl
The legacy configuration was interesting because although the
xml config file only listed 48000 Hz SR and
AUDIO_CHANNEL_OUT_STEREO channel mask, the implementation
allowed a range of SRs and MONO channel mask. The framework was
liberally allowing requests for other SRs to go to the r_submix
HAL, even without having them listed in the xml config
file. However, since libaudiohal@aidl is more strict in matching
configuration requests to port capabilities, we need to list all
channels masks and SRs suported by the legacy HAL explicitly.

However, we need to limit the amount of profiles to avoid
extra load when passing them via AudioPolicyService.listAudioPorts,
thus remove other PCM types.

Also, to match the hard limit on the number of routes in the legacy
implementation, set "maxOpen/ActiveStreamCount" for mix ports.

Bug: 286914845
Bug: 300990644
Test: atest VtsHalAudioCoreTargetTest
Test: atest android.media.audio.cts.AudioPlaybackCaptureTest
Change-Id: I4a8c7d016662d92ab5e73bc67d94aaac6570e59a
2023-09-18 17:35:52 -07:00
Mikhail Naganov
049a82e5d9 Merge "audio: Improve testing of point-to-point connections" into main 2023-09-18 16:32:39 +00:00
David Drysdale
a2d3f2499c Merge "KeyMint: clarify EC_CURVE on import" into main 2023-09-18 15:00:57 +00:00
Treehugger Robot
607f7e7ff7 Merge "Camera VTS: Verify high speed video configurations" into main 2023-09-18 07:28:16 +00:00
Jooyung Han
eb98a19968 Merge "Add memtrack HAL APEX" into main 2023-09-18 01:36:33 +00:00
Mikhail Naganov
fe47b00628 audio: Improve testing of point-to-point connections
Point-to-point connections (analog, HDMI, SPDIF) do not use
a device address. Reflect that in `GenerateUniqueDeviceAddress`.
Add an analog headset into the test configuration.

Bug: 300648357
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Id1d0b1b60df40c2474fe3151067152b8e0a261c3
2023-09-15 18:58:17 -07:00
Sarah Chin
baf5a2c4ff [automerger skipped] Update VTS tests with EUTRAN instead of GERAN am: e6c4be215a -s ours
am skip reason: Merged-In Ib36b171e33451bf0c9adc0b065a4c74df357e77e with SHA-1 947f486737 is already in history

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

Change-Id: I88b4a1d105a917aafef1256fb0e63a06af00ef6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-16 00:19:51 +00:00
Sarah Kim
481316f2d6 Merge "Update VTS tests with EUTRAN instead of GERAN" into main 2023-09-15 21:59:58 +00:00
Sarah Chin
6b5472fa72 [automerger skipped] Fix broken and flaky VTS tests am: d3f69217e0 -s ours
am skip reason: Merged-In Ic7188f9d8ccfcd90d844b45e3b370a3be3c515d6 with SHA-1 7f3bd1792f is already in history

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

Change-Id: I03dbd0f596081c528978214a3888c82f72e4e3a3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-15 21:38:45 +00:00
Sarah Chin
e6c4be215a Update VTS tests with EUTRAN instead of GERAN
These tests were created for IRadio 1.2 when all devices supported GSM,
and REQUEST_NOT_SUPPORTED was valid for devices that didn't support GSM. Change the VTS logic to test EUTRAN instead of GERAN.
Remove REQUEST_NOT_SUPPORTED for tests now without GERAN and add REQUEST_NOT_SUPPORTED for all GERAN-specific tests.

Test: atest VtsHalRadioTargetTest
Bug: 294965245
Change-Id: Ib36b171e33451bf0c9adc0b065a4c74df357e77e
Merged-In: Ib36b171e33451bf0c9adc0b065a4c74df357e77e
2023-09-15 21:10:07 +00:00
Sarah Chin
947f486737 Update VTS tests with EUTRAN instead of GERAN
These tests were created for IRadio 1.2 when all devices supported GSM,
and REQUEST_NOT_SUPPORTED was valid for devices that didn't support GSM. Change the VTS logic to test EUTRAN instead of GERAN.
Remove REQUEST_NOT_SUPPORTED for tests now without GERAN and add REQUEST_NOT_SUPPORTED for all GERAN-specific tests.

Test: atest VtsHalRadioTargetTest
Bug: 294965245
Change-Id: Ib36b171e33451bf0c9adc0b065a4c74df357e77e
Merged-In: Ib36b171e33451bf0c9adc0b065a4c74df357e77e
2023-09-15 21:10:01 +00:00
Sarah Chin
d3f69217e0 Fix broken and flaky VTS tests
1. nvResetConfig takes some time to reset the modem, causing subsequent
   tests to fail with a timeout since the modem is unavailabe.
   Add a timeout after nvResetConfig to allow the modem to be up again
   before running the next test.
2. Remove invalid errors for start/stopKeepalive. These tests should
   fail due to invalid arguments, so remove NONE as a possible error.
   RADIO_NOT_AVAILABLE should also be removed.
3. Fix incorrect startNetworkScan_InvalidInterval tests, since we only
   check the interval when the scan type is PERIODIC.
4. Save and reset the previous allowed network type bitmap after the
   test. Combine get/set into one test that tests both behaviors.
5. Fix checks for MCC/MNC in getDataRegistrationState

Bug: 277626718
Bug: 240953393
Bug: 264913330
Bug: 259674407
Bug: 242801688
Test: atest VtsHalRadioTargetTest
Change-Id: Ic7188f9d8ccfcd90d844b45e3b370a3be3c515d6
Merged-In: Ic7188f9d8ccfcd90d844b45e3b370a3be3c515d6
(cherry picked from commit ddaea2e5a4)
2023-09-15 20:08:27 +00:00
David Drysdale
2ef3749cba Merge "KeyMint VTS: re-order auth failure arms" into main 2023-09-15 10:36:47 +00:00
David Drysdale
c91d05699f Merge "KeyMint: check missing EC_CURVE on v3+" into main 2023-09-15 09:59:25 +00:00