Commit graph

15054 commits

Author SHA1 Message Date
TreeHugger Robot
d016fd7949 Merge "Camera: VTS: Don't access invalid resources" into qt-dev 2019-07-01 21:55:58 +00:00
TreeHugger Robot
d10841a83d Merge "keymaster: Relax testing under GSI" into qt-dev 2019-06-29 18:27:43 +00:00
nagendra modadugu
f18a8328a1 keymaster: Relax testing under GSI
GSI images do not have AVB verification enabled and therefore lack
several properties the keymaster HAL test depended on.  Selectively
disable those parts of the test that would fail with AVB verification
disabled.  Also disable date format checks under GSI.  When invoked from
GSI the TEE-backed keymaster doesn't use the correct date format.

Bug: 130843899
Test: VtsHalKeymasterV4_0TargetTest
Exempt-From-Owner-Approval: change only affects VTS-on-GSI behavior
Change-Id: Idaafb7b515c41290c766a8132f35d498ca15f48a
2019-06-29 18:27:38 +00:00
TreeHugger Robot
30ecfabab5 Merge "Q matrix: use radio.config@1.2::IRadioConfig" into qt-dev 2019-06-29 05:06:32 +00:00
Yifan Hong
7d350fed1e Q matrix: use radio.config@1.2::IRadioConfig
1.1 IRadioConfig does not exist. radio.config@1.2 is a
minor version uprev that only updates the sub interfaces,
not the top level interface.

Test: builds
Test: on device with target-level 4, w/o this change,
      with radio config 1.1, see test failure on deprecated
      radio config HAL
Test: on this device, with this change, with radio config 1.1,
      deprecated radio config HAL failure goes away.

Bug: 135172251
Change-Id: Id51870a8a757af0895577a27723cff8ee3ba0fdd
2019-06-28 16:28:54 -07:00
Emilian Peev
fd4ce7e76a Camera: VTS: Don't access invalid resources
There is no guarantee that the static metadata
pointer passed in the "DeviceCb" contructor will
be valid after the call completes.  The device
callback instance is expected to be active until
the camera session is open. Clone the required
metadata in "DeviceCb" and manage the lifetime
appropriately by using the "CameraMetadata"
wrapper.

Bug: 135976837
Test: CameraHidlTest#processCaptureRequestPreview
Change-Id: Idd3c6c8c2e5a3fc44a49712e25a04009cbd471b1
2019-06-28 17:03:12 +00:00
Ilya Matyukhin
00bc962dea Update VTS tests to support the latest BiometricsFace.hal
Bug: 134967390
Test: vts-tradefed run commandAndExit vts-hal -m VtsHalBiometricsFaceV1_0Target
Change-Id: Ifbd04d127626315efd8c8ce36636e550cbb843ff
2019-06-27 17:41:36 -07:00
Jimmy Chen
33723f56b5 Merge "p2p: skip MAC randomization vts test if not supported" into qt-dev 2019-06-27 05:19:46 +00:00
TreeHugger Robot
d4686a1a06 Merge "Camera: VTS: Allow unsupported logical/physical combination" into qt-dev 2019-06-26 15:42:57 +00:00
Jimmy Chen
7af5384d2d p2p: skip MAC randomization vts test if not supported
Bug: 135247522
Test: atest VtsHalWifiSupplicantP2pV1_2TargetTest
Change-Id: I1aafcdbe88f93dbf73069d24ae90cad0d395df6e
2019-06-26 14:40:10 +08:00
TreeHugger Robot
6c4e33d079 Merge "Increase leniency of attestation record timestamps" into qt-dev 2019-06-26 06:08:42 +00:00
Steven Moreland
7a605ba87e Merge "compatibility_matrix: specify @1.2::ISap directly" into qt-dev 2019-06-25 20:15:08 +00:00
Prachi Hande
c6d2640d29 Merge "Updated START_SESSION message interpretation" into qt-dev 2019-06-25 18:23:53 +00:00
Steven Moreland
c689517d59 compatibility_matrix: specify @1.2::ISap directly
@1.4::ISap and @1.3::ISap don't exist, so we can't declare a requirement
for them.

Bug: 135627722
Test: reproduce error with vts_treble_vintf_test and then test to see
    this change fixes it.
Change-Id: I8e48fcaf56701087d5720d5133ffa9b23a4ea31e
2019-06-25 18:22:04 +00:00
Prachi Hande
af6af767e7 Updated START_SESSION message interpretation
Removed the dependency on the fact that the core's new ID is always >= existing ID.
New ID and the old ID may not have any such relation.

Bug: 135475397
Fixes: 135475397
Test: Updated unit tests in VmsUtilsTest. Ran the tests on Hawk.

Change-Id: I5a7e72f36a84f5bf2d3c7bf1ccb89d27c5c0da97
2019-06-24 17:47:56 -07:00
Garret Kelly
9c0a45795f Increase leniency of attestation record timestamps
The TEE keymaster has been seen to be almost a minute out of sync with
the host clock during attestation.  Increase the leniency window to two
minutes.

Bug: 134408892
Bug: 134408367
Test: VtsHalKeymasterV4_0TargetTest
Change-Id: Ic256a939dcd7e7b108099cfcf237cacde8dde059
2019-06-24 23:28:52 +00:00
Yifan Hong
5a58efedd8 Merge "health storage hal vts test: add more tolerance." into qt-dev 2019-06-24 21:54:27 +00:00
Shuzhen Wang
fa2a909836 Camera: VTS: Allow unsupported logical/physical combination
Multi-camera API requirement is relaxed to allow camera device not
support physical stream combinations. Adjust the test accordingly.

Test: processMultiCaptureRequestPreview
Bug: 135688720
Bug: 135728906
Change-Id: I8c5269c5d3fd7f6eef440c818706629af2233196
2019-06-24 11:30:00 -07:00
Kai Wang
130fad824b Merge "Add Speed_Display_Units property in DefaultHal" into qt-dev 2019-06-22 05:57:33 +00:00
Kai
42a26244ad Add Speed_Display_Units property in DefaultHal
Update properties for DefaultHal and it is also be a code
sample for adding new properties.

Bug: 134988550
Test: flash it and verify property by kitchenSink
Change-Id: Iedf3ea5b288acfe95b3c676d90660435b34ed367
2019-06-22 01:52:02 +00:00
Yifan Hong
6eba01f8f4 health storage hal vts test: add more tolerance.
Test: run on blueline
Bug: 135631007
Change-Id: Ie1770a4a152a045e5f40eaf9cd7b551fe391a0b1
Merged-In: Ie1770a4a152a045e5f40eaf9cd7b551fe391a0b1
(cherry picked from commit ae3d61c2c3)
2019-06-21 15:52:43 -07:00
Valerie Hau
d93c9f0c2d Merge "Wait until old ComposerClient is fully destroyed before recreating" into qt-dev 2019-06-21 22:09:02 +00:00
Prachi Hande
1f968cd87c Merge "Updated a method name in VmsUtils." into qt-dev 2019-06-21 20:19:09 +00:00
Valerie Hau
bf967c9bdb Wait until old ComposerClient is fully destroyed before recreating
Possible race condition where EventCallbacks are registered before
old implementation deregisters on destruction.  Stems from fact that
strong pointer destruction does not mean the object has completely run
its destructor method

Bug: 135210708
Test: build, boot, VtsHalGraphicsComposerV2_1TargetTest
Change-Id: I0851f1197d8341854f5bdac5fbb08553fc32b710
2019-06-21 11:10:17 -07:00
Hsin-Yi Chen
5927a9b1f1 Merge "Move main function out of namespace" into qt-dev 2019-06-21 01:58:43 +00:00
Valerie Hau
29594d2d02 Merge "Adding support for different Mapper versions in IComposer VTS tests" into qt-dev 2019-06-20 16:03:05 +00:00
TreeHugger Robot
6a660a6d7b Merge "VTS: stop network scan once trigger network scan success" into qt-dev 2019-06-20 06:01:03 +00:00
Prachi Hande
a9c6df2ba9 Updated a method name in VmsUtils.
Corrected "CreateDataMessageWithLayerPublisherInfo" to "createDataMessageWithLayerPublisherInfo"

Bug: 135051289
Fixes: 135051289
Test: Updated tests in VmsUtilsTest. Ran the tests on Hawk.

Change-Id: Ie5e130e125b90689d13a3f9bb8fa1f2f8a2bcbe0
2019-06-19 19:11:29 -07:00
Valerie Hau
dca469c180 Adding support for different Mapper versions in IComposer VTS tests
Bug: 135139498
Test: build, boot, VtsHalGraphicsComposerV2_<1,2,3>TargetTest,
Change-Id: I05e2832c64d4c06eb4afd64c3323d7edbd19a5f4
Merged-In: I05e2832c64d4c06eb4afd64c3323d7edbd19a5f4
2019-06-19 17:14:24 -07:00
TreeHugger Robot
981693f6ff Merge "Camera: fix unknown bufId issue" into qt-dev 2019-06-19 23:03:53 +00:00
TreeHugger Robot
be19a50010 Merge "Notify HAL when events are read" into qt-dev 2019-06-19 21:44:39 +00:00
Prachi Hande
20ee67c070 Merge "VMS Utils: Fixed createDataMessage method." into qt-dev 2019-06-19 21:11:56 +00:00
Yin-Chia Yeh
aba88c6cbc Camera: fix unknown bufId issue
It's legit to have bufId 0 in processCaptureResult with HAL buffer
manager, but not for returnStreamBuffers.

Test: the failed test can now pass
Bug: 135565913
Change-Id: I05947bc159bb9ba00a670b98d4622f685b4ac760
2019-06-19 11:51:48 -07:00
Brian Duddie
441842e38e Notify HAL when events are read
As defined in the HAL specification, the client of the HAL (framework or
VTS) needs to set the EVENTS_READ flag when it fetches samples out of
the FMQ, to support blocking write mode.

Bug: 135442877
Test: run VTS on a device supporting HAL 2.0
Change-Id: Ic7755e869b999b638086275e4e579a84600be314
2019-06-19 02:14:51 +00:00
terrycrhuang
a2affa6636 VTS: stop network scan once trigger network scan success
For some vendors do not supports independent radios, if
there is one manual search ongoing, another manual search
on other SIM is not supported. So sending stop network scan
request once trigger network scan completed to exclude this
modem limitation.

Bug: 135005200
Test: atest RadioHidlTest_v1_2#startNetworkScan

Change-Id: Iacfd59ac2ad4d44e763ee03697c1f8f57162ce38
2019-06-19 00:53:29 +00:00
Brian Duddie
5c654f3fc6 Merge "Add guidance for avoiding race in Sensors HAL 2.0" into qt-dev 2019-06-18 23:44:20 +00:00
Hsin-Yi Chen
88eaae6913 Move main function out of namespace
Bug: 135473483
Test: adb shell /data/local/tmp/VtsHalPowerStatsV1_0TargetTest \
      --list_registered_services
Test: vts-tradefed run vts -m VtsHalPowerStatsV1_0Target
Change-Id: I01084afbf48cff268288a8cce23328a2e4d1e4a0
2019-06-18 16:09:36 +08:00
TreeHugger Robot
16b2c77456 Merge "Removing an extraneous test" into qt-dev 2019-06-17 21:21:04 +00:00
Prachi Hande
258c7c2504 VMS Utils: Fixed createDataMessage method.
Before, it used to process only the payload but now it also
takes in VMS layer info and publisher ID.

Bug: 135051289
Fixes: 135051289
Test: Updated unit tests in VmsUtilsTest. Ran the tests on Hawk.
Change-Id: I6c11f95a815af5d7b9fc9288692285766d2ca98f
2019-06-17 13:47:50 -07:00
Mark Tabry
977d275a9a Merge "Move START_SESSION definition to bottom of VmsMessageType." into qt-dev 2019-06-17 19:43:29 +00:00
Max Bires
cf9daece29 Removing an extraneous test
Test: VTS passes
Bug: 133316458
Change-Id: I98d73ff025515a89e2743ed20950c840aedb5114
(cherry picked from commit b28e69f37e)
2019-06-17 15:32:05 +00:00
Brian Duddie
a69036fbfe Add guidance for avoiding race in Sensors HAL 2.0
Bug: 135216821
Test: n/a, comment change only
Change-Id: Iad491c5e221c86a2724d4074ac645b8ee6e9af6f
2019-06-15 00:49:05 +00:00
Steven Moreland
a27c627f51 Merge "libhidltransport users user libhidlbase" into qt-dev 2019-06-14 22:54:21 +00:00
Mark Tabry
56ff57b4ce Move START_SESSION definition to bottom of VmsMessageType.
Bug: 130313799
Test: N/A
Change-Id: Iaa1be8f047c58491970b5aaa0dfab4e418164dee
2019-06-14 10:34:43 -07:00
Steven Moreland
085a82ecb1 libhidltransport users user libhidlbase
libhidltransport symbols are being moved into libhidlbase in order to
optimize linking/memory usage. libhidltransport will no longer be
required in the future (however removing references to it will come
separately).

Bug: 134961554
Test: boot
Change-Id: Ibcc2db32d3bec1a786b60e11d4820ecd0605f403
2019-06-12 13:49:19 -07:00
Tim Lin
9c93b3500a Fix RadioConfig 1.1 vts test
Bug: 134645639
Test: VtsHalRadioConfigV1_0Target
      VtsHalRadioConfigV1_1Target
      VtsHalRadioConfigV1_2Target

Change-Id: I0c3171bf50de4f320b53d73962a4a5013a9c72e4
2019-06-12 16:44:07 +08:00
Brian Duddie
b6b28e58c4 Fix null deref in sensors 2.0 VTS teardown
Avoid attempting to clean up resources that were never initialized, e.g.
if the target device doesn't support the version of the HAL in question.

Fixes: 134911861
Test: run VtsHalSensorsV2_0Target on device that only supports HAL v1.0
Change-Id: I6b529fae13b1347d533a19e04f1c7748bcda961b
2019-06-11 17:43:22 +00:00
Shuzhen Wang
22f6dcec7e Camera: Use original dataspace/format for 3.5 device
Starting from CameraDeviceSession 3.5, for IMPLEMENTATION_DEFINED pixel
format, configureStreams call uses original format and dataspace instead
of the overridden value.

This makes sure the HAL interface behavior is consistent between first
and subsequent processCaptureRequest() calls.

Test: Camera CTS and partner testing
Bug: 131864007
Change-Id: Id701141d2c11089ef063fd3f32444212855f84ab
2019-06-06 07:50:50 -07:00
Baranidharan Muthukumaran
8457060338 Merge "Skip NoUserConfirmation VTS test for Strongbox" into pie-vts-dev am: f1a67b301f
am: a29da54690

Change-Id: Ie49cf6b134ac8975b164639326758ab9eb2414e4
2019-06-04 18:35:39 -07:00
Baranidharan Muthukumaran
a29da54690 Merge "Skip NoUserConfirmation VTS test for Strongbox" into pie-vts-dev
am: f1a67b301f

Change-Id: If7dab84389f3a3bd0922faa00209561b71b739da
2019-06-04 17:53:26 -07:00