Commit graph

20905 commits

Author SHA1 Message Date
felipeal
1972df27b9 Fixed EmulatedUserHal::get(USER_IDENTIFICATION_ASSOCIATION).
It must set the requestId in the response.

Test: adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --set 299896587 a 1 i 666 i 1 i 1 i 2 && \
      adb shell cmd car_service get-user-auth-association --hal-only KEY_FOB
Fixes: 159497444
Bug: 159498909

Change-Id: Ib3f87b45714883c3e5b72464813df24ec4124dbb
2020-06-22 16:06:19 -07:00
TreeHugger Robot
5f86b51408 Merge "Reserves memory for external buffers" into rvc-dev 2020-06-22 18:16:48 +00:00
TreeHugger Robot
da96bb5226 Merge "OMX VTS: Use GetComponentRole from OMXUtils" into rvc-dev 2020-06-22 03:35:20 +00:00
TreeHugger Robot
7e5c3f0240 Merge "Camera: Fix insensitive language in comments and names" into rvc-dev 2020-06-21 22:53:20 +00:00
Pawin Vongmasa
922654fc4d OMX VTS: Use GetComponentRole from OMXUtils
Test: atest VtsHalMediaOmxV1_0TargetMasterTest

Bug: 159410244
Change-Id: Iba2a7259ddc5fc634b22d8c5954178dede6b71d5
2020-06-21 05:19:14 -07:00
Eino-Ville Talvala
d6346872c6 Camera: Fix insensitive language in comments and names
Test: Builds
Bug: 159480149
Change-Id: Ic048071867b69e5c2d337f59f697980a6a64587f
2020-06-19 15:25:01 -07:00
Changyeon Jo
fda881504a Merge "Adds a EvsEvent type for general streaming error" into rvc-dev 2020-06-19 04:31:42 +00:00
Changyeon Jo
523e37e638 Reserves memory for external buffers
This change adds a line to reserve memory to hold externally
allocated EVS frame buffers for CameraStreamExternalBuffering test.

Fix: 159399273
Test: vts-tradefed run commandAndExit -m VtsHalEvsV1_1TargetTest
Change-Id: I9e6b29580ac8357efd32b8fec434456e40cbaa58
2020-06-18 21:06:19 -07:00
TreeHugger Robot
110f2bef7f Merge "Added DISABLED flag to users flag for HAL" into rvc-dev 2020-06-19 01:42:15 +00:00
TreeHugger Robot
86aa285936 Merge "gralloc4-vts: Correct the ownership of fence fd" into rvc-dev 2020-06-19 01:00:05 +00:00
Hao Chen
c539468f28 Merge "Add server library build rules for both host and target" into rvc-dev 2020-06-18 22:06:24 +00:00
TreeHugger Robot
3de961d7bf Merge "Camera: Allow HAL not call notify() with ERROR_BUFFER" into rvc-dev 2020-06-18 22:00:11 +00:00
Changyeon Jo
e98bce8cec Adds a EvsEvent type for general streaming error
Bug: 142891447
Test: m -j android.hardware.automotive.evs@1.1
Change-Id: I102c48e689cd567701bc33e379f545e8aff880e9
2020-06-18 13:51:23 -07:00
David Zeuthen
d7066d0cca Identity: More static linking of 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: I0000ae199b4a4917e70056aadf4ae907e7fa97f7
2020-06-18 12:05:56 -04:00
Jing-yan, Jang
4200c3b5d3 Merge "Identity Credential: Add some support functions for mDL oem Hal." into rvc-dev 2020-06-18 06:47:03 +00:00
Shuzhen Wang
ce9d001076 Camera: Allow HAL not call notify() with ERROR_BUFFER
The new framework implementation derives capture buffer loss
notification from other information, and treats HAL notify() with
ERROR_BUFFER as no-op.

Test: Build
Bug: 155353799
Change-Id: Ia7ea52ee2750c7404b657467e1cfda4c05e6cc78
2020-06-17 23:34:16 -07:00
Hao Chen
c324db992e Add server library build rules for both host and target
Bug: 157603385
Test: build and create Acloud local instance
Change-Id: I80951eb4192360c62a5f72902d20e2dee84d97ad
2020-06-17 14:14:12 -07:00
Slava Shklyaev
a6d65ad073 Merge "Log NNAPI VTS test case to logcat" into rvc-dev 2020-06-17 12:08:45 +00:00
Slava Shklyaev
8c8efd68e8 Log NNAPI VTS test case to logcat
Sample output:

    I VtsHalNeuralnetworksV1_2TargetTest: [Test Case] TestGenerated/GeneratedTest.Test/nnapi_sample_all_add BEGIN
    ...
    I VtsHalNeuralnetworksV1_2TargetTest: [Test Case] TestGenerated/GeneratedTest.Test/nnapi_sample_all_add END

Bug: 159060565
Test: VtsHalNeuralnetworksV1_0TargetTest (inspected logcat output)
Test: VtsHalNeuralnetworksV1_1TargetTest (inspected logcat output)
Test: VtsHalNeuralnetworksV1_2TargetTest (inspected logcat output)
Test: VtsHalNeuralnetworksV1_3TargetTest (inspected logcat output)
Change-Id: Ic1a0c90e0853ca84dd925d0f7df65e159bb284aa
2020-06-17 12:10:00 +01:00
Sarah Chin
27c9426eb1 Merge "Fix the failed case for the VtsHalRadioV1_5TargetTest.PerInstance/RadioHidlTest_v1_5#sendCdmaSmsExpectMore/0_slot1" into rvc-dev 2020-06-17 02:04:22 +00:00
TreeHugger Robot
c55a62bc79 Merge "Remove temporary test filters" into rvc-dev 2020-06-16 23:15:47 +00:00
yan.cao
62ffe870a2 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
Merged-In: I1d6214f58850d707520b80634cb93d0e0cc712bb
2020-06-16 15:14:11 -07:00
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
Xusong Wang
af814cf022 Merge "Allow compilations in TOCTOU tests to fail with GENERAL_FAILURE." into rvc-dev 2020-06-16 17:22:28 +00:00
Miao Wang
eeb0068015 Remove temporary test filters
Bug: 155577050
Test: mm
Change-Id: Ibe8a3ed79f640249ba54f94bdde9649f156383ea
2020-06-16 15:31:24 +00:00
josephjang
4821cee9a3 Identity Credential: Add some support functions for mDL oem Hal.
Add following crypto APIs to for mDL oem Hal.
ecPrivateKeyToKeyPair()
signEcDsaDigest()
certificateSignedByPublicKey()
coseSignEcDsaWithSignature()
ecdsaSignatureDerToCose()
ecdsaSignatureCoseToDer()
coseSignGetSignature()
coseSignGetAlg()
coseMacWithDigest()
certificateFindPublicKey()
certificateTbsCertificate()
certificateFindSignature()
createAttestationForEcPublicKey()

Bug: 136506289
Test: atest VtsHalIdentityTargetTest
Change-Id: Ib40de4a3ad7e791ff4d82f77292c621653c1a3f3
2020-06-16 14:04:43 +00:00
Yichi Chen
448369c954 gralloc4-vts: Correct the ownership of fence fd
Gralloc::lock takes the ownership of acquireFence and closes the fence
by itself. The patch changes the behavior of fence to transfer the
ownership by unique_fd::release.

Bug: 157534008
Test: VtsHalGraphicsMapperV4_0TargetTest
Change-Id: Ie4ee9cd9c3b148cab9187fa07a4e52cbf9ad798a
2020-06-16 17:26:18 +08:00
Xusong Wang
362dfd64d5 Allow compilations in TOCTOU tests to fail with GENERAL_FAILURE.
A compilation failure is not related to the security aspect of the
TOCTOU test, but it will skip one iteration of security testing. This CL
allows the compilation to fail with GENERAL_FAILURE in TOCTOU tests, and
issues a retry once it happens to ensure enough test coverage.

Bug: 157489048
Test: 1.2/1.3 VTS
Change-Id: Idc88e0365c5d2799187093b6fd7b4abf8f8b463d
2020-06-15 13:22:27 -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