Commit graph

64355 commits

Author SHA1 Message Date
Shunkai Yao
e26729ae76 Merge "Improve effect AIDL HAL logging" into main 2024-05-10 01:43:23 +00:00
Shunkai Yao
fbb29ced9f Improve effect AIDL HAL logging
Bug: 333407024
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: Ie983c4360488a6047bd284c20bf9899d38b4273e
2024-05-09 22:34:10 +00:00
Shunkai Yao
61f9dd21bd Update VTS to open Spatializer with supported input channel layout
Bug: 338040049
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts
Change-Id: I2e3457771617ff9425672f4db5e151658e47c827
2024-05-09 20:28:08 +00:00
Mikhail Naganov
2222e7d599 Merge "audio: Abort on data FMQ pointer corruption" into main 2024-05-09 16:54:31 +00:00
Shunkai Yao
94b3cbced9 Merge "Use customized event flag for data FMQ not_empty to avoid conflict" into main 2024-05-09 16:28:20 +00:00
Hunsuk Choi
04dbd06bb5 Fix test of triggerEmergencyNetworkScan am: 2b4c6387d3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3080044

Change-Id: I3422587ee52737abc2932caa102ceb24a68f5a24
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-09 06:00:33 +00:00
Shunkai Yao
ef683a9c60 Use customized event flag for data FMQ not_empty to avoid conflict
also update VTS data path test skipping for offload effects

Bug: 335547630
Test: atest --test-mapping hardware/interfaces/audio/aidl/vts:presubmit
Change-Id: Ie92f04091658e210dccb7a2d60ebbab14c49fb58
Merged-In: Ie92f04091658e210dccb7a2d60ebbab14c49fb58
2024-05-09 01:07:34 +00:00
Mikhail Naganov
7b6951eed8 audio: Abort on data FMQ pointer corruption
Issue a fatal error when the data FMQ detects internal pointers
corruption. This condition indicates some low level problems
and should be diagnosed as fast as possible.

Bug: 338974476
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I962eba620149c7169f0f0a2dad4c4064232966d7
2024-05-08 16:50:01 -07:00
Hunsuk Choi
2b4c6387d3 Fix test of triggerEmergencyNetworkScan
triggerEmergencyNetworkScan needs to be triggered after
setEmergencyMode.

Bug: 336706719
Test: atest VtsHalRadioTargetTest:PerInstance/RadioNetworkTest#triggerEmergencyNetworkScan/0_android_hardware_radio_network_IRadioNetwork_slot1 -- --abi arm64-v8a
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:df7692133547c051389a7eda5a134f8e82dfa163)
Merged-In: If32d594525bea3a4a4562e2b1070ef646744513f
Change-Id: If32d594525bea3a4a4562e2b1070ef646744513f
2024-05-08 23:26:49 +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