Commit graph

41802 commits

Author SHA1 Message Date
Chen Baoyu
a2881ffbd0 Fix crash issue on test case RadioHidlTest_v1_5#startNetworkScan.
Bad safe_union access is raised by calling the GET method of
eutranBands(), because in default ctor of safe_union RadioAccessSpecifier::Bands
hidl_d is assigned with hidl_discriminator::geranBands, which conflicts
with hidl_discriminator::eutranBands, and leads to crash.

Should use the SET method of eutranBands(&) for assignment purpose.

Fix: 275077563
Bug: 271642958
Change-Id: Ie241e8968eb7f9a1297203be2ab4e0a1bf738dea
Signed-off-by: Jia Jia <jia.jia@zte.com.cn>
2023-03-24 17:56:53 +00:00
Anthony Stange
2550e7a719 Merge "Sensor:Add sensor type HINGE_ANGLE to function assertTypeMatchStringType" into android13-tests-dev 2023-03-17 14:33:01 +00:00
Jack Yu
87abf6a366 Used LTE bands for network scan
Test with LTE bands, which are supported by every device
in the world.

Bug: 271642958
Test: atest VtsHalRadioTargetTest
Change-Id: Ibc71a69b1a9aeec506a35fac9f64ecad80371155
2023-03-17 00:05:34 +00:00
Dezhi Huang
b5425cb909 Sensor:Add sensor type HINGE_ANGLE to function assertTypeMatchStringType
Function assertTypeMatchStringType does not match the sensor type
HINGE_ANGLE that only exists on folding screen phones. When testing the
VtsAidlHalSensorsTargetTest on a folding screen mobile phone,
it will fail.
So we need add CHECK_TYPE_STRING_FOR_SENSOR_TYPE(HINGE_ANGLE) to
the function assertTypeMatchStringType.

Bug: 270831199
Change-Id: Ib82a1168ff90d851eee6ce025464b11bcda7d5ca
2023-03-16 01:55:31 +00:00
AOYAGI Takako
e760f283cc Fix for VTS test CleanupConnectionsOnInitialize am: 45a15ed8b9 am: c0fd000566 am: 16b926e728
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486695

Change-Id: I9d89b36e50daf41894930baeb7bc59f5d45d27a7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16 00:07:28 +00:00
AOYAGI Takako
16b926e728 Fix for VTS test CleanupConnectionsOnInitialize am: 45a15ed8b9 am: c0fd000566
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486695

Change-Id: I5074deea886829be8ba8988377490f7d2ad2449b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 23:32:36 +00:00
AOYAGI Takako
c0fd000566 Fix for VTS test CleanupConnectionsOnInitialize am: 45a15ed8b9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486695

Change-Id: I105d3e8472f27f2d49a6ab675d173af739fca039
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 22:54:22 +00:00
AOYAGI Takako
45a15ed8b9 Fix for VTS test CleanupConnectionsOnInitialize
Sensor event never occur on DUT that has no sensor.
So, skip this test case on DUT that has no sensor.

Test: run vts -m VtsHalSensorsV2_0TargetTest

Bug: 273383821
Change-Id: I657b74ca3c67c105e40e58a7e4c700370a9db3e3
Signed-off-by: AOYAGI Takako <aoyagi.takako@jp.panasonic.com>
2023-03-15 21:50:31 +00:00
David Zeuthen
04935a3134 [automerger skipped] identity: VTS: allow for multiple interpretations of AuthKey validity. am: 5993719991 am: c6ab70d754 -s ours
am skip reason: Merged-In Iedb9caad933b0df2b190915f5cc7177e507f15b5 with SHA-1 a6fc69d339 is already in history

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

Change-Id: I102eb9702ba55f190cd59c46afabd3f8f9eac738
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 18:04:33 +00:00
David Zeuthen
c6ab70d754 identity: VTS: allow for multiple interpretations of AuthKey validity. am: 5993719991
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2489995

Change-Id: I89b208ea35edc6a487d38ced395ae62bcc549019
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 17:30:25 +00:00
David Zeuthen
5993719991 identity: VTS: allow for multiple interpretations of AuthKey validity.
Bug: 271948315
Test: atest VtsHalIdentityTargetTest
(cherry picked from https://android-review.googlesource.com/q/commit:719920700e0e8c0849ef25eeaad8de2bf2442b6e)
Merged-In: Iedb9caad933b0df2b190915f5cc7177e507f15b5

Change-Id: I6599499e08db91729fe6898dbfa5ecb77450d11e
2023-03-15 14:01:50 +00:00
Treehugger Robot
fee45b6dbb Merge "Add ATSC support in the vts" into android12-tests-dev am: 333df15518 am: 368ca264f2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2471289

Change-Id: I384cfc0e1dc70275f87e10997a29b14225690105
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 00:38:23 +00:00
Treehugger Robot
368ca264f2 Merge "Add ATSC support in the vts" into android12-tests-dev am: 333df15518
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2471289

Change-Id: If47be0aaa310c6e3bbcddeffcc1c2a201654a0f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-15 00:01:42 +00:00
Treehugger Robot
333df15518 Merge "Add ATSC support in the vts" into android12-tests-dev 2023-03-14 23:24:36 +00:00
Wei
d4dcef21e7 Add ATSC support in the vts
ATSC configuration isn't supported in current config reader.
Add it in this CL.

Bug: 271933206
Test: manual

Change-Id: I7a1f5356c33d6576d6ae6c71fd4af171b5ad30ac
2023-03-14 19:51:22 +00:00
Zhang Yuan
399c257ece Add REQUEST_NOT_SUPPORTED and INVALID_ARGUMENTS to be allowed.
For those devices which does not support GSM, returning is not
supported or invalid arguments are the expected behavior.

Bug: 271642958
Test: atest VtsHalRadioTargetTest
Merged-In: I3ac7407fdee82348411db99d340613e62f36a277
Change-Id: I3ac7407fdee82348411db99d340613e62f36a277
Signed-off-by: Jia Jia <jia.jia@zte.com.cn>
(cherry picked from commit 5bf6d5777a)
2023-03-14 19:08:46 +00:00
stanley-ct.chen
f7bd18c7c6 Fix google vts dead lock am: 33a593ab59 am: 18738f2a5c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486875

Change-Id: I1518cdc4eaa836569ab470edb73ceaa408d8d502
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 19:01:31 +00:00
stanley-ct.chen
18738f2a5c Fix google vts dead lock am: 33a593ab59
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2486875

Change-Id: I5b81aa26e0e5823309345e09a2238b09d3fa767c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-14 18:42:08 +00:00
stanley-ct.chen
33a593ab59 Fix google vts dead lock
[Description]
Fix google vts dead lock

Bug: 271400402
Test:
1. AC on/off PASS
2. UHDTV Scan PASS
3. UHDTV Switch PASS

Change-Id: Ic198224309636c83d533a24bb15519e67931b6d1
2023-03-14 11:38:29 +08:00
David Zeuthen
a6fc69d339 identity: VTS: allow for multiple interpretations of AuthKey validity.
Bug: 271948315
Test: atest VtsHalIdentityTargetTest
Change-Id: Iedb9caad933b0df2b190915f5cc7177e507f15b5
(cherry picked from https://android-review.googlesource.com/q/commit:719920700e0e8c0849ef25eeaad8de2bf2442b6e)
Merged-In: Iedb9caad933b0df2b190915f5cc7177e507f15b5
2023-03-13 18:46:52 +00:00
dheda.shin
93945c1d25 Patch for VTS
we changed to store event information in bitmap format
so that overlapping events can be handled.

Bug: 270650316
Test: startPublishRequest_1_6
Change-Id: I6f3cb8026d54dfa692bfd6eb64b24005ba663a1f
Signed-off-by: dheda.shin <dheda.shin@samsung.com>
2023-03-07 13:45:47 +09:00
Wonsik Kim
86e97b5f11 VtsHalMediaOmx: fix OmxCodecAllowedTest to match requirement
Bug: 249043823
Bug: 251553217
Test: atest VtsHalMediaOmxV1_0TargetStoreTest
Change-Id: I8015d559d8e7d88a32d1970102167fe4d7566c51
(cherry picked from commit db13ce5daf)
Merged-In: I8015d559d8e7d88a32d1970102167fe4d7566c51
2023-02-28 22:28:44 +00:00
Mikhail Naganov
f38d908d43 audio: Remove InputStreamTest#getCapturePosition test
The test was created based on assumptions and the current
HAL behavior. There is no actual requirement in the HIDL
interface for a stream to have a zero capture position
prior to start. In fact, some streams may be created by
the HAL "pre-loaded" with data if audio has already been
captured by the DSP and needs to be passed to the framework.

Bug: 270478574
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: Ied6a71b73bff403365dd85fe6a212cfa4a5b284d
(cherry picked from commit afe90852d4)
2023-02-24 20:58:42 +00:00
Shuzhen Wang
74a4696d56 Merge "Camera VTS: Override RotateAndCrop metadata" into android13-tests-dev 2023-02-22 20:17:33 +00:00
Michelle Ho
388d4ffb3b Camera VTS: Override RotateAndCrop metadata
Per camera metadata definition, ROTATE_AND_CROP_AUTO will never be sent
to the HAL, as camera service takes reponsibility of translating AUTO to
specific rotation value. So for VTS tests, we should always override
the metadata in CaptureRequest.

Bug: 270052579
Test: Run VtsAidlHalCameraProvider_TargetTest
Change-Id: I96f4992e145da25c463b0b406aa2a371af30f41f
2023-02-22 10:19:13 +00:00
Alec Mouri
960c14db22 Check the correct sysprop for P010 support for gralloc 3 and 4.
We need to check the first api level that the vendor shipped with.

Also check P010 support in the preamble of the relevant test rather than in allocate(), since otherwise either allocate() may incorrectly skip some tests or allocate() may succeed but with the wrong layout information.

Bug: 257442231
Test: VtsHalGraphicsMapperV4_0TargetTest
Change-Id: I00ae5aa01117704158c38f0689e91df99473e208
Merged-In: I00ae5aa01117704158c38f0689e91df99473e208
2023-02-16 23:16:14 +00:00
Blair Prescott
d696599f99 Wifi: P2P VTS tests fail with no P2P support am: c4f8e466e6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2432472

Change-Id: Ifdaf2ba4c16712720eb4a04ae3d35799150f1db1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-13 23:50:33 +00:00
Blair Prescott
c4f8e466e6 Wifi: P2P VTS tests fail with no P2P support
Skip P2P tests if P2P is not supported.

Bug: 200064365
Test: run vts -m VtsHalWifiSupplicantP2pV1_4TargetTest
Change-Id: I6ba23bb27f24700980cab28d1ff806e5efc65ec9
(cherry picked from commit b676061cd5)
(cherry picked from commit 4d81b6562dca69a3334bcb87756539fbdaedcd2d)
2023-02-13 15:12:30 +00:00
Treehugger Robot
ff3de20b90 Merge "Fix setupDataCall tests for osAppid" into android13-tests-dev 2023-02-09 16:25:05 +00:00
Sarah Chin
91e2e5196f Fix setupDataCall tests for osAppid
Test: atest VtsHalRadioTargetTest
Bug: 265830733
Change-Id: I1b342bb7a829585607db4518bf4017e28b6db84f
Merged-In: I1b342bb7a829585607db4518bf4017e28b6db84f
2023-02-09 09:22:56 +00:00
Treehugger Robot
ca60e0b71f Merge "Camera VTS: Remove unnecessary test of Y16 depth format" into android13-tests-dev 2023-02-09 00:44:15 +00:00
Shuzhen Wang
cd3c483ab0 Camera VTS: Remove unnecessary test of Y16 depth format
getAvailableOutputStreams() shouldn't unconditionally add Y16 stream
configurations. Instead, if the threshold being passed in is valid,
getAvailableOutputStreams() should use the threshold's format
instead.

Test: Run VTS on pixel; vendor testing.
Bug: 265984260
Change-Id: I3c8119c6032141bb6e2f95f060f014a13340d16b
2023-02-08 21:56:51 +00:00
Treehugger Robot
c3702f8e5b Merge "Fix AttestKeyTest failures in KeyMint VTS" into android13-tests-dev 2023-02-06 17:09:32 +00:00
Treehugger Robot
221de90c16 Merge "VtsHalRadioV1_4Target.setPreferredNetworkTypeBitmap" into android12L-tests-dev am: 78cdf668a8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2375494

Change-Id: I9a4715bfea07ec34c9cb0fe8f31360c778e172c8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-02-04 01:35:00 +00:00
Treehugger Robot
78cdf668a8 Merge "VtsHalRadioV1_4Target.setPreferredNetworkTypeBitmap" into android12L-tests-dev 2023-02-04 00:43:31 +00:00
Robert Shih
9049fc93a8 DrmHalTest: null check for skipped test
Bug: 253168737
Change-Id: I0dea0d2482d607eecff433ffb901eba02a39770f
Test: VtsAidlHalDrmTargetTest
2023-02-01 16:39:18 +00:00
Benjamin Grimberg
981c9c2236 Fix AttestKeyTest failures in KeyMint VTS
Skip attestation key tests if the feature
FEATURE_KEYSTORE_APP_ATTEST_KEY is disabled on device,
as done in KeyMint CTS.

Bug: 244460948
Bug: 265740739

Test: VtsAidlKeyMintTargetTest
Change-Id: I8199e5c7570b10b71f127c7439b889c0b3327865
2023-01-31 08:12:27 -07:00
David Drysdale
b7d44a2eef Add check_feature helper
Test: VtsAidlKeyMintTargetTest
Change-Id: I4a5b2a41172c15ae29efb5b177eb86cea5527b4e
Merged-In: I4a5b2a41172c15ae29efb5b177eb86cea5527b4e
(cherry picked from commit 3d2ba0a137)
2023-01-31 08:11:33 -07:00
Shubhangi Pawar
05f5fd842d Merge "drm aidl vts: proper skip tests without vendor module" into android13-tests-dev 2023-01-26 03:45:22 +00:00
Treehugger Robot
ceeef2d2bf Merge "Camera VTS: Keep buffer ids and frame numbers consistent" into android13-tests-dev 2023-01-25 22:25:06 +00:00
Emilian Peev
470d138062 Camera VTS: Keep buffer ids and frame numbers consistent
In case we have a camera device that doesn't support the
Hal buffer management mode, services are required to use
the frame number and stream id to deduce the specific
buffer id and Hals are not mandated to return valid
buffer ids as part of the capture result.

Bug: 265092659
Test:adb shell
/data/nativetest64/VtsAidlHalCameraProvider_TargetTest/VtsAidlHalCameraProvider_TargetTest
--gtest_filter=PerInstance/CameraAidlTest.process10BitDynamicRangeRequest/0_android_hardware_camera_provider_ICameraProvider_internal_0

Change-Id: I3b10e91d38a13afcca45f26712cc5d5c241c2a32
2023-01-25 11:07:37 -08:00
Treehugger Robot
1c4170754f Merge "Camera VTS: Fix AIDL status typo" into android13-tests-dev 2023-01-25 02:11:46 +00:00
Yu-Han Yang
5da610c660 Skip TestGnssPowerIndication if capability is not supported
Bug: 263354944
Test: atest VtsHalGnssTargetTest
Change-Id: I372ca2f2fb4cb5d4cafbacc1bde1cc0f0f2077dd
2023-01-20 22:08:53 +00:00
Emilian Peev
7195938fe2 Camera VTS: Fix AIDL status typo
"physicalCameraDeviceStatusChange" returns a default
ScopedAStatus that will not include a valid AStatus instance.
This will result in binder instabilities once the status
is being parceled.
Return "ScopedAStatus::ok" instead.

Bug: 253993253
Test: adb shell VtsAidlHalCameraProvider_TargetTest
Change-Id: I219f608a04aaec0631e3de58a7e0d47a30294e52
2023-01-20 13:57:17 -08:00
Treehugger Robot
2f27d9e80c Merge "Add an exception for QTI SM8550" into android13-tests-dev 2023-01-18 00:29:00 +00:00
Treehugger Robot
7aeaa3a0a2 Merge "Sync wait for the bluetooth to be disabled / enabled" into android13-tests-dev 2023-01-13 18:13:42 +00:00
Kyle Zhang
6da64e6ba2 Merge "Fix OfflineLicenseTest not provisioned" into android13-tests-dev 2023-01-12 01:15:01 +00:00
Netajee Shubash Chand Miriyala
c9fa6a8ef3 Fix: BroadcastradioHalTest.DabTune case failure am: 58eeec5925
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2379191

Change-Id: I077044dd855a3b090e63c8f625e72344f6756130
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-01-09 19:22:28 +00:00
Shubhangi Pawar
3e1907ae4a Merge "composer: vts: Init display dimension using active config" into android13-tests-dev 2023-01-09 18:59:00 +00:00
HyunKyoung
37b3413684 composer: vts: Init display dimension using active config
Dimension was initialized to the size of the last config that is in the config list.
VTS didn't change the dimension in the readback test and allocated buffer
for the readback with the dimension size.
However it was different with actual display size.
This change initializes display dimension to the actual display size.

Bug: 259155172
Change-Id: I64fec02f5386eb6ca1f41ab376be193231810b93
Merged-In: I64fec02f5386eb6ca1f41ab376be193231810b93
Signed-off-by: HyunKyoung <hk310.kim@samsung.com>
2023-01-09 04:56:06 +00:00