Commit graph

18755 commits

Author SHA1 Message Date
Treehugger Robot
1656988ce4 Merge "Fix the failed case for the VtsHalRadioV1_5TargetTest.PerInstance/RadioHidlTest_v1_5# sendCdmaSmsExpectMore/0_slot1" am: 6d4d3a20da
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1325730

Change-Id: I42607322b7f859e8a95b1a53a9dac05f06c1d226
2020-06-16 22:36:58 +00:00
Treehugger Robot
6d4d3a20da Merge "Fix the failed case for the VtsHalRadioV1_5TargetTest.PerInstance/RadioHidlTest_v1_5# sendCdmaSmsExpectMore/0_slot1" 2020-06-16 22:13:04 +00:00
David Zeuthen
2768f74d50 Identity: Statically link VTS test binary. am: baa41d7945
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1333930

Change-Id: Ie74d5d440df425e4b38687b661d5ba16ee1d0e7a
2020-06-15 13:47:26 +00:00
David Zeuthen
baa41d7945 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
Change-Id: Ida85ca8835d0243c47f451ccdfa0d11d29ec1bdb
2020-06-12 14:52:37 -04:00
Henry Fang
98920599d9 Remove the enforce to build 32 binary am: d3fbe19e6b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1329537

Change-Id: I75a3cacaf501dfd3e875de5511390235c5d7030c
2020-06-10 23:46:11 +00:00
Henry Fang
d3fbe19e6b Remove the enforce to build 32 binary
cherry-pick from internal master

bug: 157096583
Test: Manual
Change-Id: Ice58cac7adf46f17606be8c4b2c3fe2e4bf1a472
Merged-In: Ice58cac7adf46f17606be8c4b2c3fe2e4bf1a472
2020-06-10 22:22:05 +00:00
yan.cao
268ddbf5a2 Fix the failed case for the
VtsHalRadioV1_5TargetTest.PerInstance/RadioHidlTest_v1_5#
sendCdmaSmsExpectMore/0_slot1

Sendcdmasexpectmoreresponse to the request sendcdmasexpectmore
did not accept the return parameter responseinfo, which caused
the VTS system to wait for a response until it exceeded 60 seconds,
and the VTS determined No test results.
so we can add parameters to receive the parameters of
sendcdmasexpectmoreresponse,and then make subsequent judgment.

Bug: 158542706
Test: run vts -m VtsHalRadioV1_5TargetTest
Change-Id: I1d6214f58850d707520b80634cb93d0e0cc712bb
2020-06-09 18:12:46 +08:00
Xin Li
75a66030ae [automerger skipped] Merge "Merge QQ3A.200605.002 into master" am: e129db1ac2 -s ours
am skip reason: Change-Id I967cf8d0f42ec2b9745ce7bd95c7762e032c90d0 with SHA-1 8743730642 is in history

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

Change-Id: I1b5feaea48a8f5293b1bc38e510d725d69deaca6
2020-06-08 15:56:54 +00:00
Xin Li
e129db1ac2 Merge "Merge QQ3A.200605.002 into master" 2020-06-06 01:41:11 +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
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
Xin Li
ca126e53d5 Merge QQ3A.200605.002 into master
Bug: 158095402
Merged-In: I967cf8d0f42ec2b9745ce7bd95c7762e032c90d0
Change-Id: I3104c43c60c68ef1206d90858d4aaffa26a860c7
2020-06-03 10:45:04 -07: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
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
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
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
767b4b3c2a Allow unlocked in VTS am: 43dd6e34bd
Change-Id: I91e5f63351c465aee0f4fe829d2fd4c003cd55f1
2020-06-01 04:03:29 +00:00
Bowgo Tsai
43dd6e34bd Allow unlocked in VTS
VTS was running on a userdebug build GSI before Android 10.
Starting from Android 10, VTS is switched to running on top of a
user build GSI image, plus the device-specific boot-debug.img to
allow adb root.

   https://source.android.com/compatibility/vts/vts-on-gsi

So 'ro.build.type' will be 'user' because the value comes from
/system/build.prop. Switching to using 'ro.debuggable' to decide
whether we should check the device is locked or not. Note that
'ro.debuggable' will be '1' for userdebug/eng images or when a
boot-debug.img is used.

Bug: 154449286
Test: atest VtsHalKeymasterV4_0TargetTest
Change-Id: If5a90d62f77489aa58f96e908553a052cf6d1e18
2020-05-29 07:49:11 +00:00
Treehugger Robot
249b63ced6 Merge "Fix GnssMeasurement state range check" am: 43f1d331e3
Change-Id: I245b97dd441e20e59116e3090fd55f3e8ca68307
2020-05-27 22:37:33 +00:00
Treehugger Robot
43f1d331e3 Merge "Fix GnssMeasurement state range check" 2020-05-27 22:22:40 +00:00
Elliott Hughes
95d8258b56 Use libcutils' host implementation directly. am: 69a08536c2
Change-Id: If7529366b4d4ff5d350f544f076d10b171e69f54
2020-05-27 17:06:05 +00:00
Orion Hodson
0f8403f606 Add dependency on jni_headers
Preparation for removing implicit include paths for jni.h from soong.

Bug: 152482542
Test: Apply future soong change && m checkbuild
Change-Id: I880eb1f307d995cbd4f0f19e8f8d22c20fc36bef
Merged-In: I880eb1f307d995cbd4f0f19e8f8d22c20fc36bef
Exempt-From-Owner-Approval: build clean-up
(cherry picked from commit 43c1a6a41c)
2020-05-27 17:29:42 +01:00
Yu-Han Yang
4f21df3b44 Fix GnssMeasurement state range check
Bug: 157463010
Test: atest VtsHalGnssV2_0TestTarget
Change-Id: I72f4bf1f09d6271ac6367abc3972ee7747b18155
(cherry picked from commit 51d8defb3c)
Merged-In: I72f4bf1f09d6271ac6367abc3972ee7747b18155
2020-05-26 21:22:42 +00:00
Elliott Hughes
69a08536c2 Use libcutils' host implementation directly.
Also remove the tests of the mock property functions themselves, and
rely on the libcutils/libbase testing.

Bug: http://b/151789258
Test: treehugger
Change-Id: I455ef0c2e4f19f6e69b8f65a3b6d4595717c81cd
2020-05-20 09:18:12 -07:00
Lev Proleev
92b20695bc NNAPI: Clarify behaviour of ops that reduce dimensions am: d90a5de791
Change-Id: I91af2c87ab99e4e2d44ebe70b16a6d4045e3a544
2020-05-20 01:04:47 +00:00
Miao Wang
7826dead97 Add AndroidTest.xml for NNAPI 1.3 VTS and temporarily blacklist failing tests am: 4749010554
Change-Id: Ie5fa9cbd309aeb3d64a50041ac0e3833d7c3a7dc
2020-05-20 01:04:45 +00:00
Lev Proleev
7f872effec NNAPI: Clarify behaviour of REDUCE_* ops am: 4b2917a5ed
Change-Id: I17f4e08fc2bf43c05b2679d51556ff4a5772dfd3
2020-05-20 01:04:44 +00:00
Miao Wang
b759b4abf4 Filter out failing NNAPI validation tests am: e1c1e7e2f6
Change-Id: I4ca995b406b424796869a300cd28a3101ddecc26
2020-05-20 01:04:41 +00:00
Miao Wang
626a022fed Add AndroidTest.xml for NNAPI 1.0 VTS and blacklist failing tests am: f904bb11d2
Change-Id: I6e210b479bee9a123d1da93deb7ab4878c802278
2020-05-20 01:04:38 +00:00
Miao Wang
2880abe014 Add AndroidTest.xml for NNAPI 1.2 VTS and blacklist failing tests am: 398adea8b6
Change-Id: I4923c06eafc89ee8df9c7d8cd19aab17ac989719
2020-05-20 01:04:37 +00:00
Lev Proleev
d90a5de791 NNAPI: Clarify behaviour of ops that reduce dimensions
Clarify behaviour of the following ops in the case when inputs would
cause an output to have an empty shape:
* MEAN
* ARGMIN/ARGMAX
* STRIDED_SLICE

Bug: 155508675
Bug: 155660285
Bug: 155508675
Bug: 155238914
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: I92d1c3866a462a99b4eed7782b72f62bb6a076c6
Merged-In: I92d1c3866a462a99b4eed7782b72f62bb6a076c6
(cherry picked from commit d4bba83f6a)
2020-05-19 13:39:26 -07:00
Miao Wang
4749010554 Add AndroidTest.xml for NNAPI 1.3 VTS and temporarily blacklist failing tests
- Also adds TEST_MAPPING filters here to make sure sample driver tests
  are still being filtered out.
  - There may still be failing tests, but should not cause OOM in test harness.

Bug: 156691406
Test: mm
Test: atest VtsHalNeuralnetworksV1_3TargetTest
Change-Id: Ie05350d71dede04967d94dad4147bd3ed3435f7d
Merged-In: Ie05350d71dede04967d94dad4147bd3ed3435f7d
(cherry picked from commit 338acf5c15)
2020-05-19 13:38:28 -07:00
Lev Proleev
4b2917a5ed NNAPI: Clarify behaviour of REDUCE_* ops
Add a clarification on the behaviour of REDUCE_* ops when all dimensions
of an input tensor are reduced.

Bug: 155508675
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: I3a67225c3af80af40a11362ca5d0f55350cbfa05
Merged-In: I3a67225c3af80af40a11362ca5d0f55350cbfa05
(cherry picked from commit eec7d86b44)
2020-05-19 13:38:00 -07:00
Miao Wang
e1c1e7e2f6 Filter out failing NNAPI validation tests
Bug: 155577050
Test: atest VtsHalNeuralnetworksV1_*TargetTest
Change-Id: Id8d497dddd5521670689ff2ea08610c3aaeaf748
Merged-In: Id8d497dddd5521670689ff2ea08610c3aaeaf748
(cherry picked from commit 4429d856cd)
2020-05-19 13:35:55 -07:00
Miao Wang
f904bb11d2 Add AndroidTest.xml for NNAPI 1.0 VTS and blacklist failing tests
- Also adds TEST_MAPPING filters here to make sure sample driver tests
  are still being filtered out.

Bug: 155577050
Test: mm
Test: atest VtsHalNeuralnetworksV1_0TargetTest
Change-Id: Ic8f556a957e6af340d500e2c4696b41b2a6e8516
Merged-In: Ic8f556a957e6af340d500e2c4696b41b2a6e8516
(cherry picked from commit 8ebe2a04c5)
2020-05-19 13:35:42 -07:00
Miao Wang
398adea8b6 Add AndroidTest.xml for NNAPI 1.2 VTS and blacklist failing tests
- Also adds TEST_MAPPING filters here to make sure sample driver tests
  are still being filtered out.

Bug: 155674368
Test: mm
Test: atest VtsHalNeuralnetworksV1_2TargetTest
Change-Id: I5f5d272742d4cdd6a8cc87ec035b5e2508eaa98f
Merged-In: I5f5d272742d4cdd6a8cc87ec035b5e2508eaa98f
(cherry picked from commit f7c55d5f9b)
2020-05-19 13:35:29 -07:00
David Anderson
f37dbbc570 Re-enable boot HAL tests and make sure they restore previous slot flags. am: d028b91f4a
Change-Id: I1e5c42c592419c097e678bd966b3ee3b26efd3c9
2020-05-19 06:18:19 +00:00
David Anderson
d028b91f4a Re-enable boot HAL tests and make sure they restore previous slot flags.
Bug: 154667790
Test: set slot to a
      run SetActiveBootSlot/SetSlotAsUnbootable tests
      fastboot reboot bootloader
      fastboot getvar current-slot shoud be a
      repeat on b slot
Change-Id: Icff45d3949d0ad76d22bdf8830c0903e81027b6e
2020-05-18 18:00:49 +00:00
Shuo Qian
ea208bd23e Merge "Skip voice call VTS for devices that don't support voice call with new Util" am: 41084e7ef4
Change-Id: I8011920a2bc136470d233940ed4dc335504bf82b
2020-05-16 03:07:01 +00:00
Shuo Qian
41084e7ef4 Merge "Skip voice call VTS for devices that don't support voice call with new Util" 2020-05-16 02:52:07 +00:00
Shuo Qian
f2ed9ffcb9 Skip voice call VTS for devices that don't support voice call with new Util
Bug: 154867827
Test: VtsHalRadio1_4Target
Change-Id: I888d4d4ffbff5d24bfe2b9b3cb878eb5f1e1762f
Merged-In: I888d4d4ffbff5d24bfe2b9b3cb878eb5f1e1762f
(cherry picked from commit 4e866a3020)
2020-05-16 01:29:07 +00:00
Treehugger Robot
09ed9b977e Merge "[VTS] Ignore tests of setting Active Boot Slot." am: b77ff497cd
Change-Id: I14fbffe44e7c48cf9386ac7aca92b430a6b66c13
2020-05-15 08:21:04 +00:00
Treehugger Robot
b77ff497cd Merge "[VTS] Ignore tests of setting Active Boot Slot." 2020-05-15 08:12:44 +00:00
Steven Moreland
d8321fdc3b Merge "Freeze audiocontrol@1.0::types." am: d0094c65f8
Change-Id: Ida4021747727bd6dd49e8b4e2d6427fdcd4fa31c
2020-05-15 00:03:48 +00:00
Steven Moreland
d0094c65f8 Merge "Freeze audiocontrol@1.0::types." 2020-05-14 22:11:32 +00:00
nelsonli
000d823eba [VTS] Ignore tests of setting Active Boot Slot.
Skip the test of SetActiveBootSlot and SetSlotAsUnbootable to avoid
booting problem if bootloader image doesn't exist in slot-B

Bug: 154667790
Test: atest VtsHalBootV1_0TargetTest
Change-Id: I80600a3312ccffe9471135198706ce068edc67f1
2020-05-14 16:33:53 +08:00
Treehugger Robot
1589363857 Merge "Fix sanitize address after scope" am: ff132d5cc7
Change-Id: I08534133ad666ddcffd760f1639e17535045217f
2020-05-13 20:24:40 +00:00