Commit Graph

65966 Commits

Author SHA1 Message Date
Devin Moore
68a0d78d58 Merge "Revert^2 "Update HIDL EventFlagBits to have the correct values"" into main 2024-07-17 22:57:36 +00:00
Karuna Wadhera
550caafbfd Merge "Amend tests on GSI that rely on RKP-only props" into main 2024-07-17 14:28:45 +00:00
Karuna Wadhera
0c5b6503ed Amend tests on GSI that rely on RKP-only props
GSI replaces the values for remote_prov_prop properties (since they’re
system_internal_prop properties), so on GSI the properties are not
reliable indicators of whether StrongBox/TEE are RKP-only or not.

Also included is the removal of the helper skipAttestKeyTestIfNeeded()
so the skipping can happen in the tests directly.

Bug: 348159232
Test: VtsAidlKeyMintTargetTest
Change-Id: I2075e1f76ddd0f87620a212e1aa389803139a117
2024-07-17 12:41:51 +00:00
Treehugger Robot
df1c77da2e Merge "Updated fuzz_config in Android.bp file" into main 2024-07-17 04:46:22 +00:00
Treehugger Robot
deb05c9993 Merge "Wait for all results to come before return." into main 2024-07-17 00:01:40 +00:00
Emilian Peev
ca6839888e CameraVTS: build with static libhidlbase
The test may run on older devices and it is possbile that the
android::hardware::isHidlSupported is not available.
So statically link libhidlbase.

Bug: 352683715
Bug: 352486655
Bug: 346693391
Test: cameraservice VTS
Change-Id: I5bad6363fba4ebe3285c64cbaaf722e8da5cafdf
2024-07-16 17:33:18 +00:00
Akhilesh Sanikop
aae715f927 Updated fuzz_config in Android.bp file
Added fuzz_config and its fields like - cc, componentid,
hotlists, description, vector, service_privilege,
users & fuzzed_code_usage.

Bug: 306435930
Test: Build the updated fuzz targets

Change-Id: Ib537f4c4c98860de431e33dedbd106930cf8e45a
2024-07-16 16:17:20 +05:30
Pechetty Sravani (xWF)
9c904707ef Merge "Revert^2 "Workaround Clang hangs indefinitely"" into main 2024-07-16 09:35:19 +00:00
Pechetty Sravani
facd91c1d6 Revert^2 "Workaround Clang hangs indefinitely"
This reverts commit 64a1b6a57d.

Reason for revert: Droidmonitor triggered revert due to build breakage in b/353410480. Will be verifying through ABTD before submission.

Change-Id: Iec3b4303b4f16943c163b36ced0166fb06a51d8f
2024-07-16 05:11:57 +00:00
Liana Kazanova
0480a2e8a2 Merge "Revert "Workaround Clang hangs indefinitely"" into main 2024-07-15 20:53:34 +00:00
Liana Kazanova
64a1b6a57d Revert "Workaround Clang hangs indefinitely"
This reverts commit 38f082f041.

Reason for revert: Droidmonitor triggered revert due to build breakage in b/353213981. Will be verifying through ABTD before submission.

Change-Id: I43482457d1f1ca4bd5cf0812d82b9df91ebc98d4
2024-07-15 18:50:09 +00:00
Yomna Nasser
5cc7f04626 Merge "Check API values only if modem supports APIs" into main 2024-07-15 17:58:59 +00:00
yomna
d4a8add7b0 Check API values only if modem supports APIs
Bug: b/338173836
Test: m
Flag: exempt
Change-Id: Ia6471ac07d37ec9480b27de96241ccf0f8559e66
Merged-In: I62805cdf419553b468a04fe2af6ecbfd6cac810a
2024-07-15 16:35:08 +00:00
Yi Kong
0309dddb6c Merge "Workaround Clang hangs indefinitely" into main 2024-07-15 08:11:54 +00:00
Ryan Prichard
9c94c5c44b Merge "libstagefright_aidl_bufferpool2: avoid list<const T>" into main 2024-07-12 22:15:38 +00:00
Yu Shan
b561e444db Wait for all results to come before return.
Wait for all results from hardware to return before returning
the results to the client. It is not guaranteed that one
callback contains all the results.

Flag: EXEMPT host side component
Test: atest CtsCarTestCases
Bug: 352182279
Change-Id: I01f65a4da391727dc94aff36b52c14f7459b8221
2024-07-12 20:15:06 +00:00
Devin Moore
44e0d476da Revert^2 "Update HIDL EventFlagBits to have the correct values"
This reverts commit 98444463f3.

Reason for revert: needed to be submitted together with libfmq CL

Change-Id: Iad7cce6a38a7750ad88530c7a10521f8ff3d3ef8
Test: atest fmq_test fmq_unit_tests
Bug: 352396902
2024-07-12 01:20:35 +00:00
Steven Moreland
ec0c8a6eb1 Fix the comment of AIBinder_setMinSchedulerPolicy.
The second parameter is the priority, cannot be 20, which would be lower priority than the lowest priority that can exist.

Bugs: me
Change-Id: Ic990d0f365fb907fe252944991362e8729664562
Test: N/A
2024-07-11 22:39:09 +00:00
Priyanka Advani
249a9d065c Merge "Revert "Update HIDL EventFlagBits to have the correct values"" into main 2024-07-11 22:19:43 +00:00
Priyanka Advani
98444463f3 Revert "Update HIDL EventFlagBits to have the correct values"
This reverts commit 3df20dea31.

Reason for revert: Droidmonitor triggered revert due to b/352430316. Will be verifying through ABTD before submission.

Change-Id: I1c61ec1e341cb30e25088eb1201525236ccf764c
2024-07-11 21:09:41 +00:00
Changyeon Jo
044c250b7c Verify EVS extended information properly am: 9cf7c9f12b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3013053

Change-Id: I4d11e02f4302fd0fba26455349eb0d0c8e1079ba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-11 19:07:40 +00:00
Changyeon Jo
9cf7c9f12b Verify EVS extended information properly
setExtendedInfo() and getExtendedInfo() are methods that allow our
partners to implement custom commands / metadata. Because id and value
of extended information are opaque to the EVS service, behaviors of EVS
API handling the extended information need to be verified conditionally;
for example, when a test succeeds to set a value, it must be able to
read it back with the same id.

Bug: 329373218
Test: atest VtsHalEvsTargetTest
Change-Id: I965447abca8d1986057dc4a850d8af3f901aaf29
2024-07-11 17:15:32 +00:00
Treehugger Robot
553e9ecec5 Merge "audio: Increase test timeout for VtsHalAudioTargetTest" into main 2024-07-10 23:47:17 +00:00
Devin Moore
3df20dea31 Update HIDL EventFlagBits to have the correct values
These values are swapped from the internal libfmq values.

Test: atest fmq_test
Bug: 352396902
Change-Id: Ib6d444e043fd38daabf51bd3cc3458d0c38fd133
2024-07-10 22:30:20 +00:00
Mikhail Naganov
842106a030 audio: Increase test timeout for VtsHalAudioTargetTest
Some tests in `VtsHalAudioCoreTargetTest` may run for a long
time because they test all combinations of stream configurations.
As a result, the test was timing out on partners' devices.
The partner has confirmed that increasing the timeout to
30 minutes fixes the problem.

Bug: 350998390
Test: atest VtsHalAudioCoreTargetTest
Change-Id: I5eddd19f14d49e88b71134d040ebfb06a1f2d375
2024-07-10 13:02:55 -07:00
Treehugger Robot
92f359013c Merge "vts: skip data path reverb tests on offload effects" into main 2024-07-10 15:51:54 +00:00
Weilin Xu
0d032f1a63 Fix crash after running broadcast radio VTS am: dc81760779
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3162860

Change-Id: I8dd715ed2783958e4099c427dc38ef2c6ec5b536
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-09 19:06:23 +00:00
Treehugger Robot
a75f34c2c4 Merge "Use AAOS side timestamp for VehiclePropValue." into main 2024-07-09 18:58:33 +00:00
Weilin Xu
dc81760779 Fix crash after running broadcast radio VTS
Config broadcast radio VTS not to change framework status, such as
registering new tuner callback, to avoid radio service crash due to
no tuner callback registered after VTS completes.

Bug: 246866675
Test: atest VtsHalBroadcastradioAidlTargetTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:f39ac7f62bcb38329f9c39a8ae31048405612afa)
Merged-In: If8d1d26a860acdfc77eed5803926035224ad2d2a
Change-Id: If8d1d26a860acdfc77eed5803926035224ad2d2a
2024-07-09 18:18:36 +00:00
Yu Shan
abd92c1fcf Use AAOS side timestamp for VehiclePropValue.
Update the timestamp set by the host-side VHAL proxy server with
the Android-side timestamp at AAOS VHAL side. This makes sure that
we always expose VehiclePropValue that is perfectly synced with
Android elapsedRealtimeNano. This CL also adds logic to deal with
cases when a property update event or a get value result is outdated.

This CL updates the unit test to cover more cases and remove the flaky
test case that requires starting a local GRPC server.

Flag: EXEMPT HAL change
Test: atest GRPCVehicleHardwareUnitTest
Bug: 349678711
Change-Id: I5e2c07e77869f7286a438cb2a04d1b6c130c3c36
2024-07-09 11:14:39 -07:00
Treehugger Robot
891c9a2066 Merge "Added keymint_rkpsupport_fuzzer" into main 2024-07-09 05:48:27 +00:00
Treehugger Robot
c730739872 Merge "Add max-level to android.hardware.cas manifest files" into main 2024-07-09 00:52:25 +00:00
Devin Moore
fe12f3a282 Add max-level to android.hardware.cas manifest files
These services are deprecated as of FCM level 8, so don't declare them
in devices targetting 8+.

Test: m
Bug: 350652676
Bug: 351837261
Change-Id: Ieb18b116c4b95dc9caac3b992cc547ac5806a3f0
2024-07-08 17:27:29 +00:00
Treehugger Robot
4f76feda1f Merge "Added keymint_remote_prov_fuzzer" into main 2024-07-08 11:04:15 +00:00
Jaideep Sharma
120aa0837f vts: skip data path reverb tests on offload effects
Skip the data path tests for offloading reverb, as offloading
effects don't publish fmqs and don't actually process the data.

Test: VtsHalEnvironmentalReverbTargetTest
Bug: 351751648

Change-Id: Ib5f37c4568d405c6c597eb27fe216e6e345a2eae
2024-07-08 14:55:53 +05:30
Yu Shan
53d2ebb001 Fix Vts VUR test case.
It is not guaranteed that VHAL will send the initial value event
if VUR is on. In fact, car property service explicitly calls getValue
to generate the initial value event. Hence, if VUR is on, our test
case should allow situation where no event is generated.

Test: atest VtsHalAutomotiveVehicle_TargetTest
Bug: 334803613
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:bb7e7ae36c82dbdd6e4188ce01e2748e002d1377)
Merged-In: Id924fdd2a407b1a076102c4dd57efc6043cde359
Change-Id: Id924fdd2a407b1a076102c4dd57efc6043cde359
2024-07-03 18:56:04 +00:00
Akhilesh Sanikop
ee2196d155 Added keymint_rkpsupport_fuzzer
exec/s: 30
Test: ./keymint_rkpsupport_fuzzer
Bug: 337985606

Change-Id: Ib6955d188351ce3fc598a0f27ad626f718d542b8
2024-07-03 15:07:54 +05:30
Akhilesh Sanikop
ddbaa66bbc Added keymint_remote_prov_fuzzer
exec/s: 12
Test: ./keymint_remote_prov_fuzzer
Bug: 337985606

Change-Id: Ifaa5c32616904c1aa5b6d8a21c566a014ed882cf
2024-07-03 15:07:33 +05:30
Treehugger Robot
ab18a3b5a7 Merge "Convert hardware/interfaces/keymaster/3.0/default/Android.mk to Android.bp" into main 2024-07-03 06:47:32 +00:00
yangbill
c6d62986bf Convert hardware/interfaces/keymaster/3.0/default/Android.mk to Android.bp
Convert android.hardware.keymaster@3.0-impl and
android.hardware.keymaster@3.0-service from
hardware/interfaces/keymaster/3.0/default/Android.mk

Bug: 347641032
Test: m android.hardware.keymaster@3.0-impl
      m android.hardware.keymaster@3.0-service
Change-Id: I717a47b2c3ad0b261f5de0a89b38cfab478b40dc
2024-07-03 05:56:27 +00:00
Cheng Gu
974ff63e65 Make some common libs apex_available
Makes some common libs available to "anyapex".

Bug: 318597144
Bug: 350759487
Test: make
Change-Id: I26d80d1358bf2fccf4cc6f95885d36d19b94d5ff
2024-07-02 20:18:26 +00:00
Treehugger Robot
6435b744d7 Merge "Add NID_secp384r1 support on parsing UDS public key" into main 2024-07-02 03:01:51 +00:00
Tommy Chiu
10ee304f01 Add NID_secp384r1 support on parsing UDS public key
It used to be hard coded to secp256.

Bug: 330791928
Test rkp_factory_extraction_tool64

Change-Id: I759d94a7112bb9fb50906b8e0d45b851f82c898f
2024-07-02 02:01:29 +00:00
Treehugger Robot
af7df71799 Merge "Fix invalid access on nullptr" into main 2024-07-01 21:29:05 +00:00
Tommy Chiu
2165de0046 Fix invalid access on nullptr
Should return when there's no content be parsed.

Bug: 330791928
Test: rkp_factory_extraction_tool64
Change-Id: I45302ec20a0a931d2f44a7e36f613858c10fe21e
2024-07-01 06:43:30 +00:00
Ryan Prichard
9f160cb807 libstagefright_aidl_bufferpool2: avoid list<const T>
A container of const T uses std::allocator<const T>, which was an
undocumented libc++ extension that has been removed.

See https://github.com/llvm/llvm-project/pull/96319.

Bug: 349681543
Test: m libstagefright_aidl_bufferpool2
Change-Id: I6491377d6275c5d18cd91b40184d6f05cff7cb9a
2024-06-28 00:52:38 -07:00
Treehugger Robot
f28b8e809c Merge "audio: fix mmap output" into main 2024-06-27 01:07:49 +00:00
Kuowei Li
53a8d4d62e audio: fix mmap output
1. add createMmapBuffer() for vendor to override and create mmap fd.
2. add refineMmapPosition() for vendor to override and update
latency in mmap case.
3. fix testcases position check in mmap case.

Bug: 274456992
Bug: 345591089
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ie63fdd47c0ddc563d84699dfdf6d4e9b72b5af43
2024-06-26 16:51:31 -07:00
Treehugger Robot
31b4c4f88d Merge "Migrate all related audio component to media.audio.common.types V4" into main 2024-06-26 20:23:51 +00:00
Treehugger Robot
1eb0f93535 Merge "Remove Bluetooth.a2dp@1 HIDL HAL" into main 2024-06-26 18:28:35 +00:00