Commit Graph

32152 Commits

Author SHA1 Message Date
Lajos Molnar
7f8fb92524 omx: validate only standard OMX roles
Test uses ::android::GetComponentRole to get OMX role for media type
that only supports standard types (on GSI where VTS is run).

Bug: 164550113
Bug: 171536493
Bug: 194827876
Test: atest VtsHalMediaOmxV1_0TargetStoreTest
Change-Id: Ia9e64c8d887518f6c7d8c650a942bad7ce3457f0
2021-08-11 17:10:38 +00:00
Marin Shalamanov
b2239ad43f Merge "Increase timeout for VtsHalGraphicsComposerV2_4TargetTest" into sc-dev 2021-08-10 15:33:08 +00:00
TreeHugger Robot
4f8d0ea1ad Merge "Set the minSampleRate > 0 for continuous properties on the AAOS emulator." into sc-dev 2021-08-10 03:07:36 +00:00
Marin Shalamanov
e7a2d287b2 Increase timeout for VtsHalGraphicsComposerV2_4TargetTest
The current timout of 5 mins is not enough for
setActiveConfigWithConstraints to complete on devices
which have ~30 display modes and which can't do seamless
switching. The test needs 8 mins to complete locally --
increasing the timeout to 15 to have some margin.

Bug: 188686850
Test: atest VtsHalGraphicsComposerV2_4TargetTest
Change-Id: I07cf1825c23e2467852d5cd93436eb9dee23b408
2021-08-09 17:57:33 +02:00
Tyler Trephan
d1705d569a Set the minSampleRate > 0 for continuous properties on the AAOS
emulator.

Test: atest CarPropertyManagerTest
Bug: 194680297
Change-Id: I3b9c359885d173c89e825b206b629ed9dfa38d13
2021-08-09 08:44:55 -07:00
TreeHugger Robot
fa0fb43978 Merge "wifi: use 1.4 ISupplicant object for 1.4 vts tests" into sc-dev 2021-08-06 02:38:32 +00:00
Jimmy Chen
237a6ea5ea wifi: use 1.4 ISupplicant object for 1.4 vts tests
This would ensure that 1.4 vts tests are run with
ISupplicant 1.4 support.

Bug: 194979754
Test: atest VtsHalWifiSupplicantV1_4TargetTest
Change-Id: Ifaa3e1bb27f1df350b83fb7a4c05b6251a7c2d10
2021-08-05 11:32:17 +08:00
TreeHugger Robot
bdc4eebc1a Merge "Update EVS VTS test case" into sc-dev 2021-08-03 18:30:33 +00:00
TreeHugger Robot
cee75918e2 Merge "KeyMaster 4.0 VTS: fix GSI detection" into sc-dev 2021-08-02 02:44:32 +00:00
TreeHugger Robot
b56f08714e Merge "BluetoothAudio: Refine the FMQ size for A2DP software encoding" into sc-dev 2021-08-02 02:14:54 +00:00
Cheney Ni
53ba71df99 BluetoothAudio: Refine the FMQ size for A2DP software encoding
For those high-resolution codecs, they are 24 or 32 bits per sample, so
the buffer size must be the LCM of 16, 24, and 32.

Bug: 194980528
Test: A2DP playing with aptX and / or LDAC
Change-Id: I788e185496dea4a1b40fa369e032a4f8491b835b
Merged-In: I788e185496dea4a1b40fa369e032a4f8491b835b
(cherry picked from commit a0cc24730e)
2021-07-30 10:13:14 +08:00
Tyler Trephan
6ac46d6bf2 Fixed failing CTS tests related vehicle properties on the AAOS emulator.
-Added supported gears to CURRENT_GEAR config.
-Changed INFO_EXTERIOR_DIMENSIONS to int32 array

Test: atest CarPropertyManagerTest
Bug: 194182294
Change-Id: I96d241d0c388b8fc397af9f45a8a8072a05ee8d1
2021-07-29 16:49:39 -07:00
Seth Moore
8aee4a857c Allow uninstantiated remote provisioning tests
Not all devices have an IRemotelyProvisionedComponent HAL, so on those
devices 0 of the tests in VtsRemotelyProvisionedComponentTests will be
run.

Fixes: 194770385
Test: Ran tests on two devices: one with and one without the HAL.
Change-Id: I8624096158f29058189dfab7cd876804ae178e60
2021-07-27 14:20:17 -07:00
TreeHugger Robot
de4d1e954f Merge changes from topic "fix-IFace-enroll" into sc-dev
* changes:
  IFace: update VTS test to pass std::nullopt for previewSurface
  IFace: update default implementation to use optional previewSurface
  IFace: annotate the previewSurface as @nullable in enroll
2021-07-27 00:21:27 +00:00
garysungang
97d1039dfd Update EVS VTS test case
Update test case - CameraStreamExternalBuffering
Use native resolution instead of fixed test buffer 640x320

Bug: 190127973
Test: Manually run VTS on seahawk
Change-Id: I11043af4215fb9c5a2658591e9bdf9e468542a1b
2021-07-26 10:25:19 -07:00
Ilya Matyukhin
70b9c17191 Merge "Update comments for IBiometricsFingerprint@2.3" into sc-dev 2021-07-24 02:54:13 +00:00
Yu-Han Yang
63133733c1 Merge "Report GnssStatusValue when GNSS start/stop" into sc-dev 2021-07-24 01:02:33 +00:00
Marin Shalamanov
5c6c68ab0b Merge "VTS: Validate that getDisplayIdentificationData returns EDID" into sc-dev 2021-07-23 10:15:17 +00:00
Ilya Matyukhin
ac11a2e824 Update comments for IBiometricsFingerprint@2.3
This CL adds a comment that discourages use of this interface. The AIDL
interface, IFingerprint, should be used instead.

Bug: 160189286
Test: hidl-gen -L check android.hardware.biometrics.fingerprint@2.3::IBiometricsFingerprint
Change-Id: Ifafb191ac16e03e60d677fce6dc9e41e87bad0c0
2021-07-22 19:39:21 -07:00
Ilya Matyukhin
9581a89057 Merge changes Ia90c6390,I5b3ed1b8 into sc-dev
* changes:
  IFace: fix default implementation to pass VTS
  IFace: fix VTS test to match the interface contract
2021-07-22 18:47:40 +00:00
Ilya Matyukhin
88796f4992 IFace: update VTS test to pass std::nullopt for previewSurface
Bug: 194346408
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: I1e945d821d4b91b9a9ea8f74ae6f817ef04a0f85
2021-07-21 22:55:31 -07:00
Ilya Matyukhin
bde61ca1d3 IFace: update default implementation to use optional previewSurface
Bug: 194346408
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: I72d3d6d638a1662ebd1a53a7029ea3bf200efe48
2021-07-21 19:01:55 -07:00
Ilya Matyukhin
5beafca660 IFace: annotate the previewSurface as @nullable in enroll
Bug: 194346408
Test: android.hardware.biometrics.face-update-api
Change-Id: Id8809b27f121a738a41abeee66f5c1fd3840cc44
2021-07-21 18:58:15 -07:00
Ilya Matyukhin
9208a09568 IFace: fix default implementation to pass VTS
Bug: 193849101
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: Ia90c639074a6a9ed270f7c499c8816a8c7224b7f
2021-07-21 23:13:43 +00:00
Ilya Matyukhin
61a6d8d72e IFace: fix VTS test to match the interface contract
Bug: 193849101
Test: atest VtsHalBiometricsFaceTargetTest
Change-Id: I5b3ed1b87244d6265d23c15ef2c2efe4f6155973
2021-07-21 23:12:17 +00:00
Aaron Tsai
db3c830bc8 Waiting 10s at the beginning of getBarringInfo test if not yet in-service.
If the previous setRadioPower_1_5_emergencyCall_cancelled test has just finished.
Due to radio restarting, modem may need a little more time to acquire network service.
Otherwise, the barring info will be empty.

Bug: 191866257
Test: atest VtsHalRadioV1_5TargetTest

Change-Id: I9ae4e7a07b9f47353554ffb63a23b6518aa344b7
2021-07-21 04:33:28 +00:00
Yu-Han Yang
703ac9601c Report GnssStatusValue when GNSS start/stop
Also add carrier frequencies to the mock GnssStatus and GnssAntennaInfo

Bug: 194117673
Test: atest GnssStatusTest
Change-Id: Ib22aefe8e4dc8389a933e9009e36872287546c7b
2021-07-20 18:22:41 -07:00
TreeHugger Robot
5fb5afe821 Merge "Ensure non-empty SvInfo is received" into sc-dev 2021-07-21 00:33:21 +00:00
Seth Moore
643a794172 Add VtsRemotelyProvisionedComponentTests config
VtsHalRemotelyProvisionedComponentTargetTest was picking up the same
config file (AndroidTest.xml) as VtsAidlKeyMintTargetTest. When atest or
TF was used to run VtsHalRemotelyProvisionedComponentTargetTest, it
actually ran VtsAidlKeyMintTargetTest.

Add a separate test config file so that we run the correct test binary.

Test: atest VtsAidlKeyMintTargetTest
Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Fixes: 192824779
Change-Id: I7ba0f8d364690209722f9a06c6c0ce2957781beb
2021-07-20 15:47:03 -07:00
TreeHugger Robot
997554db63 Merge "Audio VTS: Make the active microphone query test more robust in V7" into sc-dev 2021-07-20 16:52:02 +00:00
David Li
183f6190a8 Merge "audio: make sure to set back to AudioMode::NORMAL after the test case" into sc-dev 2021-07-20 08:20:47 +00:00
Mikhail Naganov
e4ce86bfb7 Audio VTS: Make the active microphone query test more robust in V7
Prior to V7 the test which exercises
IStreamIn.getActiveMicrophones was using a hardcoded
configuration for the input stream. This configuration no longer
works for some of new devices. To fix that, the part of the test
which calls getActiveMicrophones has been moved into a separate
test--a descendant of InputStreamTest which is parametrized
using the actual configuration of the DUT.

Tests for HAL versions prior to V7 are not affected
because they don't use a full parser for the DUT config.

Bug: 193849687
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: I00fe8fedb6bfc6e034387b35c88f954cb2638dfa
2021-07-19 23:04:15 +00:00
Yu-Han Yang
70082bb983 Ensure non-empty SvInfo is received
Bug: 193806881
Test: atest VtsHalGnssV2_1TargetTest
Change-Id: I79f0c7041af51403ec5a2d17a430cac6d7a88b80
2021-07-19 11:42:13 -07:00
David Li
238fbcc61a audio: make sure to set back to AudioMode::NORMAL after the test case
If the major version is greater than or equal to 6, the test tries
to set the mode to AudioMode::CALL_SCREEN. However, it doesn't set
back to AudioMode::NORMAL. Replace all ASSERT with EXPECT to ensure the
test can reach to the explicit call to reset to AudioMode::NORMAL.

Bug: 194022995
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: Ib9b6e310965a85b016853b72c60716fa054641c6
2021-07-19 16:26:42 +08:00
Kalesh Singh
78fb95c57f Merge "Memtrack HAL: Report global total GPU-private memory" into sc-dev 2021-07-15 17:21:49 +00:00
Kalesh Singh
eeac52c8f1 Memtrack HAL: Report global total GPU-private memory
Update memtrack hal documentation to allow reporting the global
total GPU-private memory from the getMemory() API.

Specify how to handle unsupported memtrack operations.

Bug: 193226716
Bug: 193465681
Bug: 192621117
Test: N/A
Change-Id: I6fcebd16fafdc34cc662137784e86750ee907eee
2021-07-14 21:15:46 +00:00
TreeHugger Robot
afb4bfa127 Merge "Update vibrator VTS to only validate support from required primitives" into sc-dev 2021-07-14 16:14:17 +00:00
David Drysdale
1c93999d3d KeyMaster 4.0 VTS: fix GSI detection
Commit f18a8328a1 ("keymaster: Relax testing under GSI") disabled
some tag checks for devices running with GSI, but detected GSI by
looking for an absence of the ro.boot.vbmeta.device_state property.

This property is currently present on GSI, so instead detect GSI using
the existing is_gsi() helper, which checks ro.product.system.name
against "mainline".

Bug: 192513934
Test: atest VtsHalKeymasterV4_0TargetTest:PerInstance/AttestationTest
Change-Id: If3c7d84a9e091b9b0842e4d8919453600bc239ea
Ignore-AOSP-First: manual merge to aosp/master to follow
2021-07-14 16:57:35 +01:00
Jayant Chowdhary
b4d21c8e80 Merge "camera: Clarify that ANDROID_JPEG_MAX_SIZE applies to default sensor pixel mode." into sc-dev 2021-07-13 23:22:55 +00:00
Mikhail Naganov
4e2a9b4e7b [automerger skipped] audio HAL - fix UAFs am: 9f6d6ae26c -s ours am: 2b04128539 -s ours am: 290e356e20 -s ours am: 06f896205f -s ours am: 38565fed01 -s ours
am skip reason: Merged-In I5ec70b098a00746108e10ab39e966607d78c84ae with SHA-1 bd78085f08 is already in history

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

Change-Id: I3f0be31f10d37bb02cbd9dbdde305fce8c17eb2f
2021-07-13 22:50:04 +00:00
Mikhail Naganov
021f8b3d25 [automerger skipped] audio HAL - fix UAFs am: bd78085f08 -s ours am: 358f0174a5 -s ours am: d1a8e6c2ab -s ours am: f95892e056 -s ours am: 693ef009de -s ours am: 582762856b -s ours
am skip reason: skipped by user smoreland

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

Change-Id: Icb9fc63189bdcd4da6b21945a6d44a0af3129303
2021-07-13 22:47:09 +00:00
Edwin Wong
6a8cf103f1 [automerger skipped] Merge "[RESTRICT AUTOMERGE] Fix CryptoPlugin use after free vulnerability." into oc-mr1-dev am: c73a52277f -s ours am: 583a32b6c4 -s ours am: 79754b8dbb -s ours am: ea107f75ac -s ours am: ea7913adf1 -s ours am: 8200116264 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I9c750160a3d3d380d1a4c838f1e66398d5d5f12a
2021-07-13 22:47:04 +00:00
Edwin Wong
05d7544450 [automerger skipped] [RESTRICT AUTOMERGE] Fix CryptoPlugin use after free vulnerability. am: ae1c624ba4 -s ours am: 2d3819de76 -s ours am: 08cc801065 -s ours am: 0d39675734 -s ours am: e27f543b7a -s ours
am skip reason: subject contains skip directive

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

Change-Id: I00f70d4d37cac5d0180d993280e6e2c670fc10fc
2021-07-13 22:46:32 +00:00
Edwin Wong
cc68e65325 [automerger skipped] [RESTRICT AUTOMERGE] Fix potential decrypt destPtr overflow. am: d468101f14 -s ours am: ef66293e9a -s ours am: 932ee80a22 -s ours am: a6825483b4 -s ours am: cee994fd5c -s ours am: 12703b3ac1 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I3569001af2678d88481ec07fa909a6e8dd9a9ab7
2021-07-13 22:36:53 +00:00
Edwin Wong
f69e34fa04 [automerger skipped] Merge "[RESTRICT AUTOMERGE] Fix potential decrypt destPtr overflow." into pi-dev am: 0dc3f03835 -s ours am: e17031023f -s ours am: bc0c22c343 -s ours am: 6c942475ba -s ours am: 32cad96ae5 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I9657a39d922f0f023e85b6c295a50dc969c8a041
2021-07-13 22:33:20 +00:00
Mikhail Naganov
33e304782a [automerger skipped] audio HAL - fix UAFs am: 9f6d6ae26c -s ours am: 2b04128539 -s ours am: 290e356e20 -s ours am: 06f896205f -s ours am: 4dd47f50c1 -s ours
am skip reason: Merged-In I5ec70b098a00746108e10ab39e966607d78c84ae with SHA-1 bd78085f08 is already in history

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

Change-Id: I85f34dbaa53e8d34dfe01ca2c804de94bb6e8c84
2021-07-13 22:29:35 +00:00
Mikhail Naganov
2df535ab12 [automerger skipped] audio HAL - fix UAFs am: bd78085f08 -s ours am: 358f0174a5 -s ours am: d1a8e6c2ab -s ours am: f95892e056 -s ours am: 693ef009de -s ours am: 80a32475e3 -s ours
am skip reason: skipped by user smoreland

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

Change-Id: If49a26f3000863644d0e91b94c357c67416b1a7c
2021-07-13 22:29:29 +00:00
Edwin Wong
0916c1b8b2 [automerger skipped] Merge "[RESTRICT AUTOMERGE] Fix CryptoPlugin use after free vulnerability." into oc-mr1-dev am: c73a52277f -s ours am: 583a32b6c4 -s ours am: 79754b8dbb -s ours am: ea107f75ac -s ours am: ea7913adf1 -s ours am: 814a34003d -s ours
am skip reason: subject contains skip directive

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

Change-Id: I306dbee8ccfd47f98b6526766bf62913d4d627c2
2021-07-13 22:29:21 +00:00
Edwin Wong
9584ef12b8 [automerger skipped] [RESTRICT AUTOMERGE] Fix CryptoPlugin use after free vulnerability. am: ae1c624ba4 -s ours am: 2d3819de76 -s ours am: 08cc801065 -s ours am: 0d39675734 -s ours am: a19de5a59f -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ieb6330c5f09071bea940beeeed758f98da9514c9
2021-07-13 22:29:13 +00:00
Edwin Wong
06d20864f4 [automerger skipped] [RESTRICT AUTOMERGE] Fix potential decrypt destPtr overflow. am: d468101f14 -s ours am: ef66293e9a -s ours am: 932ee80a22 -s ours am: a6825483b4 -s ours am: cee994fd5c -s ours am: 402a0d9e6d -s ours
am skip reason: subject contains skip directive

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

Change-Id: Id2cee1cbb5e2a3596271ed965dcc9c4bf2ed0d31
2021-07-13 22:28:49 +00:00