Commit graph

20878 commits

Author SHA1 Message Date
Mayank Garg
ffb1ffdd0e Added DISABLED flag to users flag for HAL
Bug: 158681378
Test: m (successful build)
Change-Id: I46af767c2cb4716bfbe45f51f59f9c670d6c0a0b
2020-06-16 12:07:24 -07:00
Robin Jacob
ad15d6c05a Merge "Add a delay between tests to make them more robust" into rvc-dev 2020-06-15 17:34:42 +00:00
TreeHugger Robot
2e5dd7ab32 Merge changes Ic0d7b4d2,I3441e630,Ie504e687 into rvc-dev
* changes:
  gralloc4-vts: Test metadata is consistent in cloned buffers
  gralloc4-vts: Test layout and component info of RAW12
  gralloc4-vts: Test layout and component info of RAW10
2020-06-15 03:25:50 +00:00
Amy Zhang
1fb7d06712 Merge "Enable frontend input loop when FrontendTune happens before Demux is configured." into rvc-dev 2020-06-12 23:16:38 +00:00
Jordan Liu
2482177cec Merge "Fix bad merge of aosp/1220298" into rvc-dev 2020-06-12 22:27:15 +00:00
Jordan Liu
9ed871fc20 Fix bad merge of aosp/1220298
Bug: 158872011
Test: atest
Change-Id: Ife92d607df5442febab86ed61c3edc24d904b36b
2020-06-12 14:43:22 -07:00
jicheol.shin
dc8403be7a Fix issues for Japan model. am: c1e9656422 am: 4597fcc545 am: d1a977b771 am: 6e8a31191a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1318339

Change-Id: I3954d7f2009faf7da4b5bd0021743c7fbc7ae093
2020-06-12 20:19:41 +00:00
TreeHugger Robot
bde68f5a1d Merge "Identity: Statically link VTS test binary." into rvc-dev 2020-06-12 20:16:04 +00:00
Amy Zhang
e0422236e2 Enable frontend input loop when FrontendTune happens before Demux is
configured.

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 153366959
Change-Id: I6fa98e367a7530e308ea2a74e7efeb6ed4d3a56b
2020-06-12 13:05:24 -07:00
jicheol.shin
6e8a31191a Fix issues for Japan model. am: c1e9656422 am: 4597fcc545 am: d1a977b771
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1318339

Change-Id: I03ff4595a9c922e483fc89fbe4b15c4328bdd027
2020-06-12 20:01:46 +00:00
TreeHugger Robot
abd049609d Merge "Move testing ts on Cuttlefish under /data/ directory" into rvc-dev 2020-06-12 19:51:48 +00:00
jicheol.shin
d1a977b771 Fix issues for Japan model. am: c1e9656422 am: 4597fcc545
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1318339

Change-Id: I02d1d0b112e4514129477299bd002dda8feda7cb
2020-06-12 19:50:51 +00:00
jicheol.shin
4597fcc545 Fix issues for Japan model. am: c1e9656422
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1318339

Change-Id: I345b7ab6043fc3e40a9aecd025b01522f0d99214
2020-06-12 19:27:28 +00:00
David Zeuthen
45eb940d74 Identity: Statically link VTS test binary.
The VTS test was dynamically linking some libraries not normally
present on an Android system. Statically link these libraries instead.

Bug: 158150767
Test: atest VtsHalIdentityTargetTest
Merged-In: Ida85ca8835d0243c47f451ccdfa0d11d29ec1bdb
Change-Id: If11fe0812bf367400f5c8e894e636937ee191d3f
2020-06-12 14:56:49 -04:00
TreeHugger Robot
0e6850ee68 Merge "Camera: add new VTS test config file" into rvc-dev 2020-06-12 18:09:29 +00:00
Amy Zhang
6bda6397cc Move testing ts on Cuttlefish under /data/ directory
/data directory is a proper place for test pusher to adb push the ts
during run time. It saves image size comparing to bundle the ts during
compiling.

Files under the /data directory could only be passed around by fd
instead of directly opening. This CL also changes the way the DVR VTS
reads the ts.

Also for virtual frontend, to read the shell data file, we need the
DVR playback to input the data when testing frontend.
This CL also changes the way default implementation reads the data -
from the dvr playback fmq.

Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 153366959
Change-Id: I72a98e4c4c0328206da106fb1c3459745c1644b7
2020-06-11 19:29:19 -07:00
Amy Zhang
aaff02f469 Merge "Add TimeFilter test in Tuner VTS" into rvc-dev 2020-06-11 22:47:17 +00:00
Jayant Chowdhary
416e3d94f9 Merge "Add some updates to documentation regarding concurrent camera operation." into rvc-dev 2020-06-11 20:25:10 +00:00
Jayant Chowdhary
ed8ec83813 Add some updates to documentation regarding concurrent camera operation.
- Add documentation about giving hints to camera HAL about concurrent
  operation before configuring sessions

- Limitations on ZOOM_RATIO_RANGE during concurrent operation.

Bug: 151891611

Test: builds

Change-Id: I79d0bd8be1ed9aa29a1ba080d01833f16eff580c
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-06-10 20:07:07 -07:00
Amy Zhang
7e4859ce4a Add TimeFilter test in Tuner VTS
Test: VtsHalTvTunerV1_0TargetTest
Bug: 150953857
Change-Id: I5509f4d368a44a7cb9bbe1b2499a4b4760b510b6
2020-06-10 14:28:53 -07:00
TreeHugger Robot
d5a237964f Merge "Fixed EmulatedUserHal so it doesn't reply to a LEGECY_ANDROID_LEGACY request." into rvc-dev 2020-06-10 20:35:19 +00:00
Yin-Chia Yeh
12ef3c9929 Camera: add new VTS test config file
The old config file is no longer being used. Adding new config
file that has the proper 30 minutes timeout.

Test: atest VtsHalCameraProviderV2_4TargetTest on Pixel 4
Bug: 156007290
Change-Id: I97b0fff967f87712f8f96ed06b628c70ad30dde4
2020-06-09 14:15:52 -07:00
TreeHugger Robot
6841c3e5e8 Merge "Fix subsampling doc in PlaneLayout.aidl" into rvc-dev 2020-06-09 14:24:59 +00:00
TreeHugger Robot
b35c0cd494 Merge "Clarified that USER_IDENTIFICATION_ASSOCIATION is optional." into rvc-dev 2020-06-08 21:25:31 +00:00
TreeHugger Robot
de47235b01 Merge "Stop location to avoid timing issue (VTS 2.0)" into rvc-dev 2020-06-08 20:38:11 +00:00
TreeHugger Robot
154d45d77e Merge "Add getLnbByName Test in Tuner VTS" into rvc-dev 2020-06-08 19:29:17 +00:00
TreeHugger Robot
ff07d31be0 Merge "Allow unlocked in VTS" into rvc-dev 2020-06-08 19:15:07 +00:00
felipeal
04b84ed8b2 Clarified that USER_IDENTIFICATION_ASSOCIATION is optional.
Test: none
Bug: 157938045

Change-Id: Ie010a0452ce545457ff06223ebfe24cf6522f04a
2020-06-08 12:11:41 -07:00
Shuzhen Wang
ee71769ebc Merge "Camera: Clarify ERROR_REQUEST callback" into rvc-dev 2020-06-08 19:07:04 +00:00
felipeal
7a3d7c96fc Fixed EmulatedUserHal so it doesn't reply to a LEGECY_ANDROID_LEGACY request.
Bug: 158336360
Test: m -j android.hardware.automotive.vehicle@2.0-service && adb push $OUT/vendor/bin/hw/android.hardware.automotive.vehicle@2.0-service /vendor/bin/hw/ && adb shell kill `pid android.hardware.automotive.vehicle`

Change-Id: I0b506ba5a4b53ada94bc4afc081d3e4222f5e92d
2020-06-08 12:06:16 -07:00
Yu-Han Yang
4e5ffc2231 Stop location to avoid timing issue (VTS 2.0)
Before setting constellation blacklist, the location report should
be stopped first. Otherwise, the sv status which contains blacklist
constellation is still reporting and may be counted in checking
SvList. According to the comments of this case, location should be
turned off as 2a step.

Also adding another test that a blacklist request that comes in
while tracking is started, takes effect after a stop/start cycle.

Bug: 144675840
Test: on device
Change-Id: I0a5030cbeeb4bbc45000157414582117d8abbae9
2020-06-08 10:58:46 -07:00
TreeHugger Robot
f45b3cac4a Merge "Update Identity Credential VTS tests." into rvc-dev 2020-06-08 13:26:38 +00:00
Yichi Chen
35d97d5417 gralloc4-vts: Test metadata is consistent in cloned buffers
GetMetadataClonedHandle checks the metadata can be gotten after a native
handle is cloned. SetMetadataClonedHandle checks the metadata can be set
on a cloned native handle.

Bug: 155224585
Test: VtsHalGraphicsMapperV4_0TargetTest
Change-Id: Ic0d7b4d21a64822f2f1dbeca8d48c450711ed494
2020-06-08 16:43:55 +08:00
layog
26ddd0125c gralloc4-vts: Test layout and component info of RAW12
Bug: 157534008
Test: VtsHalGraphicsMapperV4_0TargetTest
Change-Id: I3441e630b18f3d6e0f5cbcecf8a54dc1b42faa84
2020-06-08 16:43:53 +08:00
Yichi Chen
0809466b61 gralloc4-vts: Test layout and component info of RAW10
To ensure the correctness of the plane layout and layout component on
RAW10 format, the patch creates the test case to check corresponding
data.

Bug: 157534008
Test: VtsHalGraphicsMapperV4_0TargetTest
Change-Id: Ie504e687e149ee4f4fb3f715ee0de7d7ec31952a
2020-06-08 16:42:39 +08:00
Amy Zhang
71a50c311d Add getLnbByName Test in Tuner VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 157955950
Change-Id: I69f5c37a63543ebde2b85f57d1301b4498183627
2020-06-05 14:43:21 -07:00
Amy Zhang
cda23ea38e Add Broadcast and Record tests for Frontend with Lnb
Test: VtsHalTvTunerV1_0TargetTest
Bug: 157955950
Change-Id: I71d33b9d481e44879867094a519d7a6c444bc10a
2020-06-05 14:43:06 -07:00
Amy Zhang
e5a9da2e17 Add ILnb VTS tests
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 157955950
Change-Id: Icc2fca6f65e48a05c916a9629913cc7b18a8fd80
2020-06-05 14:39:24 -07:00
TreeHugger Robot
738334a656 Merge "Add filter linkage test to the Tuner VTS" into rvc-dev 2020-06-05 21:12:22 +00:00
David Zeuthen
d16d0fa609 Update Identity Credential VTS tests.
These updates are based on input/experiences implementing this
HAL. There are no API changes.

 - Specify that the validity for credentialKey certificate shall be
   from current time and expire at the same time as the attestation
   batch certificate.

 - Require challenge passed to getAttestationCertificate() is
   non-empty.

 - Fix bug in VTS tests where the startPersonlization() result was not
   checked.

 - Remove verifyStartPersonalizationZero test since it cannot be
   completed.

 - Ensure secureUserId is non-zero if user authentication is needed.

 - Specify format for signingKeyBlob in generateSigningKeyPair() same
   way we do for credentialData in finishAddingEntries().

 - Modify EndToEndTest to decrypt/unpack credentialData to obtain
   credentialPrivKey and storageKey and do cross-checks on these.

 - Modify EndToEndTest to decrypt/unpack signingKeyBlob to obtain
   signingKeyPriv and check it matches the public key in the returned
   certificate.

 - Add new VTS tests for user and reader authentication.

 - Relax unnecessary requirements about SessionTranscript structure -
   just require it has X and Y of the ephemeral key created earlier.

 - Allow calls in VTS tests to v2 HAL to fail - this should allow
   these VTS tests to pass on a compliant v1 HAL.

Bug: 156911917
Bug: 158107945
Test: atest VtsHalIdentityTargetTest
Test: atest android.security.identity.cts
Merged-In: I11b79dbd57b1830609c70301fea9c99f9e5080cb
Change-Id: I93003389012e69c6df23e1bcebeafde8281caf9c
2020-06-05 09:59:01 -04:00
Amy Zhang
f4c09fbbd0 Add filter linkage test to the Tuner VTS
Test: atest VtsHalTvTunerV1_0TargetTest
Bug: 150953857
Change-Id: Ic98cf1655551623fdc4e4f7e6784faf814adfda5
2020-06-04 18:48:50 -07:00
Brian Duddie
97f1a3aeaa Add support for IAllocator/IMapper v4.0 in sensors VTS
Also, pull in the static libs associated with the graphics HALs to
VtsHalSensorsTargetTestUtils so that the VTS binaries that depend on it
don't need to all pull them in themselves.

Fixes: 158018963
Test: VtsHalSensorsV2_0TargetTest on a device supporting the v4.0 HALs
Change-Id: Idc47ffb8cacd1ac84d45b979cd45fe630b6808f6
2020-06-04 16:33:09 -07:00
layog
96c0c3705e Fix subsampling doc in PlaneLayout.aidl
A subsampling value of 1 is a valid value indicating no subsampling

Fix: 158067777
Test: Compiles
Change-Id: I58f20df0b61e3637cb01a69f28ecef414f88a27d
2020-06-04 15:26:57 +08:00
Ilya Matyukhin
744b028807 Reduce the number of iterations in PreEnrollTest
The current number of iterations is too high and results in a timeout
from the testing framework.

The goal of the test is to make sure that the generated challenges are
different on every run. It's impossible to test whether any two
challenges will ever be the same for any number of iterations. Hence,
since a 1000 iterations doesn't provide much more value over 10
iterations, 10 was chosen because of its better performance.

Bug: 155844206
Test: "atest VtsHalBiometricsFingerprintV2_1TargetTest" on a blueline
Change-Id: I5db887bdcfed8fb0e44fcedcf9e99dd185d395c3
2020-06-03 01:09:22 +00:00
Midas Chien
ac4ee96268 Merge "composer: vts: send refresh frame even composition changes" into rvc-dev 2020-06-02 16:47:55 +00:00
TreeHugger Robot
615e726ebc Merge "Disable framework for some VTS tests" into rvc-dev 2020-06-02 16:21:46 +00:00
TreeHugger Robot
d7940ccf2f Merge "Implemented CREATE_USER and REMOVE_USER on VHAL reference implementation." into rvc-dev 2020-06-02 00:06:56 +00:00
Jayant Chowdhary
ec37ce4947 Merge changes from topic "vts-secure-only-camera" into rvc-dev
* changes:
  Camera VTS: Add a minimal test for secure only cameras.
  camera vts: Skip regular vts tests for secure only cameras.
2020-06-01 22:52:53 +00:00
Shuzhen Wang
643dd41944 Camera: Clarify ERROR_REQUEST callback
Allow partial result to be generated in the case of ERROR_REQUEST.

Test: Build
Bug: 155353799
Change-Id: I6ade958cac773e854d669aec3caf99191a875ec7
2020-06-01 12:28:28 -07:00
Jayant Chowdhary
a80974ca8c Camera VTS: Add a minimal test for secure only cameras.
Bug: 156749607

Test: VtsHalCameraProviderV2_4TargetTest
      --gtest_filter=PerInstance/CameraHidlTest.processSecureCaptureRequest* on device which
      SECURE_IMAGE_DATA.

Change-Id: I57f6210b69b383dc4f43cc4ee8272050a0432541
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-06-01 12:15:58 -07:00