Commit Graph

22893 Commits

Author SHA1 Message Date
Brian Duddie
f6c5f764a4 Add support for IAllocator/IMapper v4.0 in sensors VTS am: 97f1a3aeaa am: b3cda9ef6d
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11744993

Change-Id: I91d85a478ce628fc80232d3caa6bf47a7217ff55
2020-06-05 14:52:17 +00:00
Brian Duddie
b3cda9ef6d Add support for IAllocator/IMapper v4.0 in sensors VTS am: 97f1a3aeaa
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11744993

Change-Id: I1a8a23e483aacbe58ae8a49647051c92e5b83dcd
2020-06-05 14:38:38 +00:00
Treehugger Robot
947f444710 Merge "Update Identity Credential VTS tests." am: 17ec80b638 am: c31600a243 am: 698f52a983
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1322407

Change-Id: Ie6da6d5701b8ee11ce7a37b2778ffd5b8d371871
2020-06-05 14:19:28 +00:00
Treehugger Robot
698f52a983 Merge "Update Identity Credential VTS tests." am: 17ec80b638 am: c31600a243
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1322407

Change-Id: I46c29e7555a33bba6b392bf8cda4d4e13b893304
2020-06-05 14:02:52 +00:00
Treehugger Robot
c31600a243 Merge "Update Identity Credential VTS tests." am: 17ec80b638
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1322407

Change-Id: I6ff5d40629c6754897f8eb3f11010966dfb93190
2020-06-05 13:50:24 +00:00
Treehugger Robot
17ec80b638 Merge "Update Identity Credential VTS tests." 2020-06-05 13:36:47 +00: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
Automerger Merge Worker
5fe5f24247 Merge "Reduce the number of iterations in PreEnrollTest am: 744b028807 am: 798629af9e" into rvc-d1-dev-plus-aosp 2020-06-04 21:10:14 +00:00
Ilya Matyukhin
345df22f0d Reduce the number of iterations in PreEnrollTest am: 744b028807 am: 798629af9e
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11712201

Change-Id: I6cf72d6fafc0ba2b5532b8004dd2fbca15c40443
2020-06-04 21:10:08 +00:00
Ilya Matyukhin
6ada775429 Reduce the number of iterations in PreEnrollTest am: 744b028807 am: f80eb3cb9e
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11712201

Change-Id: Iec4c3608f11fcf3244c7902775cbda48c6051294
2020-06-04 21:10:03 +00:00
Ilya Matyukhin
798629af9e Reduce the number of iterations in PreEnrollTest am: 744b028807
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11712201

Change-Id: I83175791dd8538ff1e4c7846835a01ebfb0c9a75
2020-06-04 20:56:25 +00:00
Ilya Matyukhin
f80eb3cb9e Reduce the number of iterations in PreEnrollTest am: 744b028807
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11712201

Change-Id: I6672c27bd5f37171a0e4de13befcfc90c37e4d7b
2020-06-04 20:56:19 +00:00
David Zeuthen
ef7395127f 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
Change-Id: I11b79dbd57b1830609c70301fea9c99f9e5080cb
2020-06-04 16:46:54 -04:00
Xusong Wang
ebacc94dc9 [automerger skipped] Add checks of output shapes when OUTPUT_INSUFFICIENT_SIZE. am: 91521ab86b am: 8743730642 -s ours am: f2361e9262 -s ours
am skip reason: Change-Id I934d084c7665160a98da9828604ce8297fef73b8 with SHA-1 d454751e00 is in history

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

Change-Id: Ic6ab5bf0647ea63ec8536f471a606e0fc8607aeb
2020-06-03 01:33:27 +00: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
Xusong Wang
f2361e9262 [automerger skipped] Add checks of output shapes when OUTPUT_INSUFFICIENT_SIZE. am: 91521ab86b am: 8743730642 -s ours
am skip reason: Change-Id I934d084c7665160a98da9828604ce8297fef73b8 with SHA-1 d454751e00 is in history

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

Change-Id: I3305b9c9ac2a58c6375fe17d55a7504edb24a26e
2020-06-03 01:05:47 +00:00
Xusong Wang
8743730642 Add checks of output shapes when OUTPUT_INSUFFICIENT_SIZE. am: 91521ab86b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1308498

Change-Id: I967cf8d0f42ec2b9745ce7bd95c7762e032c90d0
2020-06-03 00:51:43 +00:00
Xusong Wang
91521ab86b Add checks of output shapes when OUTPUT_INSUFFICIENT_SIZE.
Add checks that all returned output dimensions must be at
least as fully specified as the union of the information about the
corresponding operand in the model and in the request.

Bug: 154054474
Test: VTS
Change-Id: I934d084c7665160a98da9828604ce8297fef73b8
Merged-In: I934d084c7665160a98da9828604ce8297fef73b8
(cherry picked from commit d454751e00)
2020-06-02 16:52:56 -07:00
Midas Chien
081dec5496 Merge "composer: vts: send refresh frame even composition changes" into rvc-dev am: ac4ee96268 am: 8c79371377
Original change: undetermined

Change-Id: I82727d687f64f9ba35605763fa26ca87d6c053fd
2020-06-02 17:16:52 +00:00
Midas Chien
8ed6b58680 Merge "composer: vts: send refresh frame even composition changes" into rvc-dev am: ac4ee96268 am: e01dd849b6
Original change: undetermined

Change-Id: Iaf2ac21883d6661dc925d2b4fbe2b4a74ddd8b32
2020-06-02 17:16:25 +00:00
Midas Chien
8c79371377 Merge "composer: vts: send refresh frame even composition changes" into rvc-dev am: ac4ee96268
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11631145

Change-Id: Ie92e8d7df9f0622c5f4fa23b0244ba433cc55e54
2020-06-02 16:57:19 +00:00
Midas Chien
e01dd849b6 Merge "composer: vts: send refresh frame even composition changes" into rvc-dev am: ac4ee96268
Original change: undetermined

Change-Id: If93e963db13577f8171320d5c95a40bc37c1e9db
2020-06-02 16:57:13 +00:00
TreeHugger Robot
a9ca8aae73 Merge "Disable framework for some VTS tests" into rvc-dev am: 615e726ebc am: e724855ce7
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/11666719

Change-Id: I221d26d58c9e090700704b8083b594925ec90fa0
2020-06-02 16:52:31 +00:00
TreeHugger Robot
3443325d6d Merge "Disable framework for some VTS tests" into rvc-dev am: 615e726ebc am: 2306ac264f
Original change: undetermined

Change-Id: Icd25e356ceeb598435e133e4c32000f1dd3223ec
2020-06-02 16:52:01 +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
e724855ce7 Merge "Disable framework for some VTS tests" into rvc-dev am: 615e726ebc
Original change: undetermined

Change-Id: I7d72fe8e87aeee60b5527684c9636e7681d693e3
2020-06-02 16:39:41 +00:00
TreeHugger Robot
2306ac264f Merge "Disable framework for some VTS tests" into rvc-dev am: 615e726ebc
Original change: undetermined

Change-Id: If63717d2790ca018909d5be70d6f8c5806e3e69c
2020-06-02 16:39:31 +00:00
TreeHugger Robot
615e726ebc Merge "Disable framework for some VTS tests" into rvc-dev 2020-06-02 16:21:46 +00:00
Shawn Willden
d56a9c3b63 [automerger skipped] Fix delivery of earlyBootEnded to KM4.1 am: a2a6a33ea9 am: 5ffa73290d -s ours am: 8883f515b1 -s ours
am skip reason: Change-Id I752b44f5cc20d85bf819188ccaaf0813a5607ba5 with SHA-1 08c7e71236 is in history

Original change: undetermined

Change-Id: Idecdd2ae286b1448bd90688b005dfd5ed536e75d
2020-06-02 04:32:51 +00:00
Shawn Willden
8883f515b1 [automerger skipped] Fix delivery of earlyBootEnded to KM4.1 am: a2a6a33ea9 am: 5ffa73290d -s ours
am skip reason: Change-Id I752b44f5cc20d85bf819188ccaaf0813a5607ba5 with SHA-1 08c7e71236 is in history

Original change: undetermined

Change-Id: I4d28a2a9cb0cb34a42601c7e54857033a6159025
2020-06-02 04:19:20 +00:00
Shawn Willden
5ffa73290d Fix delivery of earlyBootEnded to KM4.1 am: a2a6a33ea9
Original change: undetermined

Change-Id: I80dfc835a8d4b92561e090375ea6343c11734bb8
2020-06-02 04:01:17 +00:00
TreeHugger Robot
190fd86742 [automerger skipped] Merge "Implemented CREATE_USER and REMOVE_USER on VHAL reference implementation." into rvc-dev am: d7940ccf2f -s ours am: 0c448001a3 -s ours
am skip reason: skipped by user felipeal

Original change: undetermined

Change-Id: I56a22f1a32284c7db68cdebfaca5dc9c8444a04e
2020-06-02 01:26:56 +00:00
TreeHugger Robot
f9aa2393c1 Merge "Implemented CREATE_USER and REMOVE_USER on VHAL reference implementation." into rvc-dev am: d7940ccf2f am: b2402c7664
Original change: undetermined

Change-Id: I5c8b99b8027b5ec10ace323d872cd85f9a0d4177
2020-06-02 00:54:28 +00:00
TreeHugger Robot
0c448001a3 [automerger skipped] Merge "Implemented CREATE_USER and REMOVE_USER on VHAL reference implementation." into rvc-dev am: d7940ccf2f -s ours
am skip reason: skipped by user felipeal

Original change: undetermined

Change-Id: I3b52b9397ea4be7853efe6fdb4e575a48d298a68
2020-06-02 00:53:02 +00:00
TreeHugger Robot
b2402c7664 Merge "Implemented CREATE_USER and REMOVE_USER on VHAL reference implementation." into rvc-dev am: d7940ccf2f
Original change: undetermined

Change-Id: Ied7f3e3938ce9ee321f9f7907f73d5eaf20b3560
2020-06-02 00:32:14 +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
ed66086cb4 Merge changes from topic "vts-secure-only-camera" into rvc-dev am: ec37ce4947 am: 46a82de871
Original change: undetermined

Change-Id: I11bd0f3806fcd7dfa8cb3f8b8611248350e6763e
2020-06-01 23:18:46 +00:00
Jayant Chowdhary
db10799329 Merge changes from topic "vts-secure-only-camera" into rvc-dev am: ec37ce4947 am: 1487a9ebb3
Original change: undetermined

Change-Id: I7428b76dc741998cd79ec4a457e4c37b0d2521fd
2020-06-01 23:17:24 +00:00
Jayant Chowdhary
46a82de871 Merge changes from topic "vts-secure-only-camera" into rvc-dev am: ec37ce4947
Original change: undetermined

Change-Id: I7f99fe08f74082881ecdbe38daa8b21ebbc8dacd
2020-06-01 23:02:55 +00:00
Jayant Chowdhary
1487a9ebb3 Merge changes from topic "vts-secure-only-camera" into rvc-dev am: ec37ce4947
Original change: undetermined

Change-Id: I59590798e81bf9f87ef3d598aa333cb89a13dbbf
2020-06-01 23:02:39 +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
Shawn Willden
a2a6a33ea9 Fix delivery of earlyBootEnded to KM4.1
Bug: 152932559
Test: Boot and observe that Strongbox gets the message
Merged-In: I752b44f5cc20d85bf819188ccaaf0813a5607ba5
Change-Id: I752b44f5cc20d85bf819188ccaaf0813a5607ba5
2020-06-01 14:08:39 -06: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
Jayant Chowdhary
83b724a23f camera vts: Skip regular vts tests for secure only cameras.
Bug: 156749607

Test: fake mark a camera id as a secure only, see that it doesn't get
      tested unless a test calls getCameraDeviceNames with addSecure = true

Test: VtsHalCameraProviderV2_4TargetTest passes on device without any secure only
      cameras

Change-Id: Ibe428b663bd8024f46f0273ed5dfaa108a90dd43
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2020-06-01 12:14:47 -07:00
Orion Hodson
fd5f4b8f74 Merge "Add dependency on jni_headers" am: d2985135d6 am: 28c170427e am: 293821e269
Change-Id: I60bbe02e69aa0aa9eba9d91ac8f83f84256cbea4
2020-06-01 10:14:48 +00:00
Orion Hodson
293821e269 Merge "Add dependency on jni_headers" am: d2985135d6 am: 28c170427e
Change-Id: I71d75eda1c74b7bfb43b243980dfe188094ea6ce
2020-06-01 09:58:44 +00:00
Orion Hodson
28c170427e Merge "Add dependency on jni_headers" am: d2985135d6
Change-Id: Ibd4542573f6cb148141b2834b16178cc09102a0f
2020-06-01 09:39:14 +00:00
Orion Hodson
d2985135d6 Merge "Add dependency on jni_headers" 2020-06-01 09:20:10 +00:00
Bowgo Tsai
ac9d129893 Allow unlocked in VTS am: 43dd6e34bd am: 767b4b3c2a am: 40eb1a490b
Change-Id: Iddd7169bc181f2d0b7df5fe3a786b066b5cc4ccb
2020-06-01 04:36:59 +00:00
Bowgo Tsai
40eb1a490b Allow unlocked in VTS am: 43dd6e34bd am: 767b4b3c2a
Change-Id: Ia559b9083b1ac7960b93f710fc5cb2d5390dfac7
2020-06-01 04:25:02 +00:00