Commit graph

64347 commits

Author SHA1 Message Date
Nikita Putikhin
3e40dc1656 Make fmq product_available
Vendors already can use these targets on /vendor. This change makes them
available to /product as well.

More about product partitions:
https://source.android.com/docs/core/architecture/partitions/product-partitions

Bug: 336989719
Test: mm
Change-Id: I2cb1817525d4b2b3033e0e633ea2f8e7f5653a6c
2024-05-08 19:38:41 +00:00
Treehugger Robot
75b081dad1 Merge "insecure keymint: in-process initialization ordering" into main 2024-05-08 18:18:04 +00:00
Treehugger Robot
0ed9be7fbf Merge "[Thread] Add VTS config" into main 2024-05-08 02:57:42 +00:00
A. Cody Schuffelen
fbc3089310 insecure keymint: in-process initialization ordering
This creates an ordering of

1. In-memory HALs are initialized
2. Secure AIDL HALs are exposed

There are some dependencies on the information, e.g.

Boot info:
https://cs.android.com/android/platform/superproject/main/+/main:system/keymint/ta/src/keys.rs;l=705;drc=72ed18b226a9944330ecd97d776d57ea1b2eb9e8
https://cs.android.com/android/platform/superproject/main/+/main:system/keymint/ta/src/lib.rs;l=356;drc=4f8cad1bf0b3392414e5735b95a7c5d80d64d6e6
https://cs.android.com/android/platform/superproject/main/+/main:system/keymint/ta/src/rkp.rs;l=75;drc=747e5931be387fb600f6865d2308390646243610

HAL info:
https://cs.android.com/android/platform/superproject/main/+/main:system/keymint/ta/src/rkp.rs;l=79;drc=747e5931be387fb600f6865d2308390646243610

Bug: b/339121782
Test: launch_cvd --resume=false --secure_hals=oemlock:guest_insecure_keymint:guest_insecure_gatekeeper
Change-Id: Ifbe8655bf14c248e886725217d261dae5458e15f
2024-05-07 16:56:42 -07:00
Treehugger Robot
419aa1a845 Merge "Camera: Fix processCaptureRequestBurstISO" into main 2024-05-07 17:45:42 +00:00
Fang Hui
f097c4d9bc Camera: Fix processCaptureRequestBurstISO
android_convertGralloc1To0Usage() is used to convert gralloc1_usage(uint64_t) to gralloc_usage (int32_t),
then passed as a para in allocateGraphicBuffer(). But definition of allocateGraphicBuffer() is as
void CameraAidlTest::allocateGraphicBuffer(uint32_t width, uint32_t height, uint64_t usage, PixelFormat format, buffer_handle_t* buffer_handle).
The type of "usage" is uint64_t. So the convert (uint64_t -> int32_t -> uint64_t) will change usages(31 bit is 1)
such as 0x0000000080020b00 to 0xffffffff80020b00. It's unexpected.

Use ANDROID_NATIVE_UNSIGNED_CAST to fix the issue.

Bug: https://issuetracker.google.com/issues/330051542

Change-Id: I23dfd603be0da6864d1021a57c3c3ce76cb78bda
Signed-off-by: Fang Hui <hui.fang@nxp.com>
2024-05-07 16:49:45 +00:00
Treehugger Robot
27db8f3a13 Merge "Screen wakeup is added in VTS tests setup" into main 2024-05-03 22:10:00 +00:00
shihchienc
9f87974b00 [Thread] Add VTS config
We need to make sure there is no duplicate binder call to HAL layer.
This patch fix this.

Test: atest VtsHalThreadNetworkTargetTest
Bug: 338556737
Change-Id: Ic414ec1099049ba5e7a0c17baffcd467aa910034
2024-05-03 11:26:48 +00:00
Treehugger Robot
756b1b3d88 Merge "Keep only the errors received at SIM present condition" into main 2024-05-03 07:29:13 +00:00
Treehugger Robot
26b5ae0fc2 Merge "Fix formatting around rkp-vm tag" into main 2024-04-30 10:12:18 +00:00
Treehugger Robot
1b20111074 Merge "Explain how to add service_contexts for stable-c mapper" into main 2024-04-30 06:39:34 +00:00
Treehugger Robot
dc1592f4cf Merge "Updated 'cc' field of fuzz_config in Android.bp file" into main 2024-04-30 04:18:57 +00:00
Treehugger Robot
db7bab9eba Merge "Thread HAL: support dynamic radio URLs" into main 2024-04-30 01:22:57 +00: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
Seth Moore
8e57f5e434 Fix formatting around rkp-vm tag
Change-Id: I5d073427204596bc86e11d550e86da4c56745f72
2024-04-29 19:04:20 +00:00
Yakun Xu
c1d3f9a6d2 Thread HAL: support dynamic radio URLs
This commit enables support of dynamic radio URLs, so that the radio
URL can be runtime generated.

Bug: 329188649
Test: presubmit
Change-Id: I11a0d3de47609d59ba50c8b5317c8238f09e18dd
2024-04-29 19:11:42 +08:00
David Drysdale
b2adc861ee Merge "KeyMint: more warnings around non-secure test impl" into main 2024-04-29 07:25:08 +00:00
David Drysdale
33a132f13f KeyMint: more warnings around non-secure test impl
Make it clearer that the default implementation is non-secure in
various ways, most notably because the TA code is running in-process
in the HAL service.

Bug: 314513765
Test: VtsAidlKeyMintTargetTest
Change-Id: I83509110c32a4df8df6c0b288d14659e022442ff
2024-04-29 07:09:34 +01:00
David Drysdale
e4d1d2dec7 Merge "KeyMint: test for unique HMAC results" into main 2024-04-29 06:07:59 +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
62734b79cb Merge "Add VTS requirement for concurrent LE connections." into main 2024-04-25 19:21:35 +00:00
Jooyung Han
2dd88e6c8a Explain how to add service_contexts for stable-c mapper
Stable-c mapper instance should be declared in two ways:
- vintf manifest
- service_contexts

The latter part was missing.

Bug: 336010345
Change-Id: I7bd776bf7d943049ef319c90739dae10071409ab
Test: documentation
2024-04-25 18:48:51 +00:00
David Drysdale
b4598740de KeyMint: test for unique HMAC results
Bug: 218713582
Test: VtsAidlKeyMintTargetTest
Change-Id: I5babfa67e707dc1bf15dd40b1ee4c8c8b97f44a7
2024-04-25 10:00:05 +01:00
Inseob Kim
f9fc955231 Merge "Build media_profiles_V1_0.dtd with Soong" into main 2024-04-25 03:40:19 +00:00
Inseob Kim
af021acc42 Build media_profiles_V1_0.dtd with Soong
Bug: 335369205
Test: build
Change-Id: I217a902688bd9e3b9ecbcce3b869e2958f933cf7
2024-04-25 00:38:59 +00:00
Treehugger Robot
43cc0ce670 [automerger skipped] Merge "Remove the SIM card status condition check and add accepted possible errors" into android14-tests-dev am: fd06d0a042 -s ours
am skip reason: Merged-In I75414ba18be93707310cace21b52508edfc33a20 with SHA-1 8877018da4 is already in history

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

Change-Id: I0db01ce7eb446bdf07f1e80e07ef8381236ca220
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 04:05:18 +00:00
liuxiangjun
7cf31fb471 [automerger skipped] Remove the SIM card status condition check and add accepted possible errors am: 4b7f0175f1 -s ours
am skip reason: Merged-In I75414ba18be93707310cace21b52508edfc33a20 with SHA-1 8877018da4 is already in history

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

Change-Id: I22ca2323fb6943e0910b344fc38070d64c1f9c74
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-24 04:05:15 +00:00
Treehugger Robot
fd06d0a042 Merge "Remove the SIM card status condition check and add accepted possible errors" into android14-tests-dev 2024-04-24 03:55:47 +00:00
Treehugger Robot
ceb60ff408 Merge "Fix component ID for dumpstate OWNERS" into main 2024-04-23 19:23:24 +00:00
Shunkai Yao
f7391d5ac4 Merge "Effect AIDL VTS: relax dynamics processing effect parameter validations" into main 2024-04-22 23:52:06 +00:00
Shunkai Yao
972b465a0e Effect AIDL VTS: relax dynamics processing effect parameter validations
relaxing several parameter checking to align with HIDL
 - no need to have stage in use to set bands/channels
 - band settings no need to be sorted by frequency

Bug: 328012516
Test: atest VtsHalDynamicsProcessingTargetTest
Change-Id: If12d978ee69ee7f087a7e8758513a9c6bacf817f
Merged-In: If12d978ee69ee7f087a7e8758513a9c6bacf817f
2024-04-22 22:44:57 +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
Devin Moore
952bb4ad1f Fix component ID for dumpstate OWNERS
Test: none
Bug: 335336565
Change-Id: I5c8c4ca0c5bff4ff27d298e1ff869e8a9a87f64c
2024-04-22 17:51:47 +00:00
Julie Pan
30da02f704 Merge "Remove chenhaosjtuacm@google.com from automotive/vehicle/OWNERS" into main 2024-04-22 16:19:11 +00:00
Ronish Kalia
98ef872235 Merge "Migrate Test Targets to New Android Ownership Model" into main 2024-04-22 15:01:56 +00:00
Treehugger Robot
53eb12245b Merge "audio: Use more bursts in audio I/O VTS tests" into main 2024-04-19 23:25:33 +00:00
Mikhail Naganov
a2a9fa5003 audio: Use more bursts in audio I/O VTS tests
Some audio outputs use A/V sync and requre mode bursts
in order to start reporting the presentation position.

Bug: 300735639
Bug: 328010709
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Icad0942f2ba1dcd6f030a7dc4f37e22fdbd6dd71
2024-04-19 21:56:00 +00:00
Treehugger Robot
0dccb6e265 Merge changes Icd33f3cb,I737479d8 into main
* changes:
  audio: Fix AudioPatchTest/AudioModulePatch#UpdateInvalidPatchId VTS test
  audio: Skip stream I/O test for "echo reference" input device
2024-04-19 01:44:52 +00:00
Mikhail Naganov
5e6d99b424 Merge "audio: Update 'PauseSync' scenario in AudioStreamIoOutTest" into main 2024-04-18 23:19:40 +00:00
Mikhail Naganov
22e17d43bd audio: Update 'PauseSync' scenario in AudioStreamIoOutTest
According to the definition of the 'PAUSED' state
in StreamDescriptor.aidl, s/w (the client) stops
writing once the buffer is filled up. That means, it is
allowed for an output stream not to consume data
from the MQ while in the paused state, so allow that
in the test.

Also, update the state transition sequence in the test
to flush any data after making a burst while in the 'PAUSED'
state.

Bug: 328010709
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Icb5fd02ca4ede63d7ae33613ab66cb96f3e6df29
2024-04-18 14:36:50 -07:00
Mikhail Naganov
8dd96d4c41 audio: Fix AudioPatchTest/AudioModulePatch#UpdateInvalidPatchId VTS test
The test was using '0' as an "invalid" patch ID value, however
this value is valid in the context of 'IModule.setAudioPatch'
method and means "create a new patch and allocate and ID for it".

Bug: 328010709
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Icd33f3cbd1602ec5aa162fa72fc3ddd59ccffbef
2024-04-18 13:23:05 -07:00
Mikhail Naganov
a62c5df181 audio: Skip stream I/O test for "echo reference" input device
This is aligned with the HIDL implementation VTS. The echo reference
device can't provide any input until certain preconditions are met,
and modeling these preconditions in the test is not trivial.

Also, add the information into the mix port into the trace scope
for easier identification on test failure.

Bug: 328010709
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I737479d8ef1961791ac3bd82aeb779453d2e49f4
2024-04-18 13:22:32 -07:00
Bruno Carneiro
0af575b2f1 [automerger skipped] Improve OpenAfterOpen VTS test am: 8d3cb52ead -s ours
am skip reason: Merged-In Idd78c0dae944e3d39a6828b43db5a608adbaf1d9 with SHA-1 056aa140ca is already in history

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

Change-Id: I04959cdfd8c40c3c289ffb3e675db9678286cdec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-18 18:25:48 +00:00
Bruno Carneiro
8d3cb52ead Improve OpenAfterOpen VTS test
A callback should be executed every time the NFC interface is opened,
even in OpenAfterOpen scenarios. If a callback is not executed, a
crash may occur where the NfcService hangs while waiting for an
OPEN_CPLT event.

Bug: 327582461
Merged-In: Idd78c0dae944e3d39a6828b43db5a608adbaf1d9
Change-Id: Idd78c0dae944e3d39a6828b43db5a608adbaf1d9
Signed-off-by: Bruno Carneiro <bccunha@motorola.com>
(cherry picked from commit 056aa140ca)
2024-04-18 04:21:08 +00:00
Jiawei Li
5c93471127 [automerger skipped] Update VTS SupplicantStaIfaceAidlTest#SetCountryCode to US am: 59aeb3182b -s ours
am skip reason: Merged-In Idad4127ce26188145c7b07d60d5e6ce40a80aa5b with SHA-1 73e55bdbcf is already in history

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

Change-Id: I6b5eba0db4184caf5ffe4822d3dc6b9e4c6de974
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-17 23:27:00 +00:00
Mikhail Naganov
403040b952 Merge "audio: Fix IStreamIn.getActiveMicrophones test" into main 2024-04-17 23:15:45 +00:00
Mikhail Naganov
eee5499ba8 audio: Fix IStreamIn.getActiveMicrophones test
Since "active" means "used by the stream for acquiring data,"
it was unreasonable to expect the list of active microphones
to be non-empty prior to actually starting data acquisition.
This change adds running of 'burst' commands before calling
'getActiveMicrophones'.

To reuse existing code some refactorings have been made.
Added 'AudioInputFlags::HOTWORD_TAP' to the list of port
config flags for which I/O testing is not performed.

Bug: 328010709
Bug: 328362233
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I876c0b6d7365e104ec9ed8cf5033a83f822006b6
2024-04-17 14:47:16 -07:00
Akshata Kadam
491ffdc372 Updated 'cc' field of fuzz_config in Android.bp file
corrected cc field in fuzz_config

Bug: 306435930
Test: Build automotiveCanV1.0_fuzzer

Change-Id: Ib463bc4e08b036b75397a03ec0ef6340da45b3fe
2024-04-17 10:06:10 +00:00