Commit graph

20783 commits

Author SHA1 Message Date
Miao Wang
f118c86ba2 Merge "Add AndroidTest.xml for NNAPI 1.3 VTS and temporarily blacklist failing tests" into rvc-dev 2020-05-15 22:33:33 +00:00
Miao Wang
338acf5c15 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
2020-05-15 13:46:13 -07:00
Lev Proleev
74b04e9649 Merge "NNAPI: Clarify behaviour of REDUCE_* ops" into rvc-dev 2020-05-15 10:28:39 +00:00
Jason Macnak
2540a38771 Merge "Implement lockYCbCr stub for Mapper 4.0" into rvc-dev 2020-05-14 21:06:54 +00:00
Eino-Ville Talvala
6d9c200198 Merge "Camera: Update documentation for rolling shutter skew" into rvc-dev 2020-05-14 16:49:42 +00:00
Dan Shi
e8f9e0959f Merge "Use StopServicesSetup to stop/start framework." into rvc-dev 2020-05-13 22:52:20 +00:00
Yifan Hong
50532954ed Merge "Fix sanitize address after scope" into rvc-dev 2020-05-13 22:21:51 +00:00
TreeHugger Robot
2e59c22326 Merge "Use StopServicesSetup to stop/start framework." into rvc-dev 2020-05-13 21:44:19 +00:00
Eino-Ville Talvala
34bb3064fe Camera: Update documentation for rolling shutter skew
Existing definition was inconsistent, so update it to be consistent
and match what implementations have actually done.

Test: Builds
Bug: 150331548
Change-Id: I5dfbe7c802bf4ac98f0c5556d5ac3af5d79cff7a
2020-05-13 21:13:20 +00:00
Dan Shi
2d11037a0b Use StopServicesSetup to stop/start framework.
Bug: 155774142
Test: none
Change-Id: I3dfec18df478b0a4ae16c454d110e5c05f33cbca
2020-05-13 14:03:24 -07:00
Dan Shi
1a380f7b5b Use StopServicesSetup to stop/start framework.
Bug: 155774142
Test: none
Exempt-From-Owner-Approval: This CL replaces target preparer, shouldn't
change test behavior.

Change-Id: I83cffadfff15e6352a69641c3227efb63e7a34e4
Merged-In: I83cffadfff15e6352a69641c3227efb63e7a34e4
2020-05-13 14:02:04 -07:00
Nate Jiang
7f304d738b Merge "[VTS] Seperate Nan and Rtt from Sap test" into rvc-dev 2020-05-13 20:18:00 +00:00
TreeHugger Robot
e4e9daae6b Merge "Implemented USER_IDENTIFICATION_ASSOCIATION on EmulatedUserHal." into rvc-dev 2020-05-13 19:29:47 +00:00
Yifan Hong
c12c576999 Fix sanitize address after scope
Test: pass
Fixes: 156199719
Change-Id: Icaf1e6d379199eec4d664494819405acc013a003
Merged-In: Icaf1e6d379199eec4d664494819405acc013a003
2020-05-13 17:20:03 +00:00
Lev Proleev
eec7d86b44 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
2020-05-13 15:00:32 +01:00
TreeHugger Robot
ad17ebe23b Merge changes I926887cc,I7def937e,I530f6d89,I393fc3c4 into rvc-dev
* changes:
  gralloc4-vts: Hold fence by unique_fd to avoid leakage
  gralloc4-vts: Restore Lock_YCBCR_420_888 and create Lock_YV12
  gralloc4-vts: Extract YCbCr888 data operation from Lock_YCRCB_420_SP
  gralloc4-vts: Allow YCRCB_420_SP to be unsupported in Lock_YCRCB_420_SP
2020-05-13 09:08:34 +00:00
TreeHugger Robot
caaa36bce0 Merge "wifi: check device capaiblities before running vts tests" into rvc-dev 2020-05-13 07:02:05 +00:00
Nate Jiang
9ecaa48a02 [VTS] Seperate Nan and Rtt from Sap test
Bug: 155372761
Test: atest VtsHalWifiApV1_4TargetTest, VtsHalWifiNanV1_4TargetTest, VtsHalWifiRttV1_4TargetTest
Change-Id: I0af11c01e9d87c0837f45b733010c96b5ba94f04
2020-05-12 23:53:58 -07:00
TreeHugger Robot
bb1c9cefd0 Merge "wifi: skip nan vts tests if nan is not supported" into rvc-dev 2020-05-13 03:40:28 +00:00
Jimmy Chen
8587b8870e wifi: check device capaiblities before running vts tests
Wi-Fi Direct might not be supported, the test runner should
check it first before running tests.

Bug: 155372909
Test: * atest VtsHalWifiSupplicantP2pV1_2TargetTest
      * remove Wi-Fi Direct support in device.mk
        atest VtsHalWifiSupplicantP2pV1_2TargetTest
Change-Id: Ie32b5fb831eebba818b83a9b9855e8a66b929e3d
2020-05-13 10:49:47 +08:00
Jason Macnak
26b2e0b708 Merge "Adds a lock method to HandleImporter w/ access region" into rvc-dev 2020-05-12 20:41:53 +00:00
Jason Macnak
eda6dca45c Implement lockYCbCr stub for Mapper 4.0
(Includes bpfmt changes from repo hook)

Bug: b/146515640
Test: cts -m CtsCameraTestCases
Change-Id: Ibd882db1883e0976c2baf95257e51c29de6e6853
2020-05-12 11:40:20 -07:00
Jason Macnak
f2c9ed1309 Adds a lock method to HandleImporter w/ access region
... to allow locking 2D regions of non-BLOB buffers.

Bug: b/146515640
Test: cts -m CtsCameraTestCases
Change-Id: Ia68abf96ffe15891520833921e103efa3f7a80c5
2020-05-12 11:33:55 -07:00
TreeHugger Robot
501169a9fb Merge "Minor clarificaton on USER_IDENTIFICATION_ASSOCIATION doc." into rvc-dev 2020-05-12 17:05:45 +00:00
kumachang
d6bd3cf761 wifi: skip nan vts tests if nan is not supported
Bug: 155372909
Test: atest VtsHalWifiNanV1_0TargetTest
Change-Id: I20c90509395788a72999cd6029573502004d1815
2020-05-12 19:46:49 +08:00
Yichi Chen
5bec8ba8a2 gralloc4-vts: Hold fence by unique_fd to avoid leakage
There was fd leakage when fence was assigned to other values without
releasing previous file descriptor. The patch introduces unique_fd to
hold the fence without leaking fd.

Bug: 150461327
Bug: 152510209
Test: VtsHalGraphicsMapperV4_0Target

Change-Id: I926887ccd2c626da2d2c1a6b9d7cd433f9d5b717
2020-05-12 08:58:16 +08:00
Yichi Chen
ad8b9ad68c gralloc4-vts: Restore Lock_YCBCR_420_888 and create Lock_YV12
The patch adds back Lock_YCBCR_420_888 and also creates Lock_YV12 to
verify planner format with the checks on subsampling, chroma step, and
CbCr offsets.

Bug: 150461327
Bug: 152510209
Test: VtsHalGraphicsMapperV4_0Target

Change-Id: I7def937e9b65e99569a3dc2230e7e929477c06eb
2020-05-12 08:58:16 +08:00
Yichi Chen
f4d374a758 gralloc4-vts: Extract YCbCr888 data operation from Lock_YCRCB_420_SP
The patch extracts the common operation on YCbCr888 data to allow a
better reuse in tests with other YCbCr color formats

Bug: 150461327
Bug: 152510209
Test: VtsHalGraphicsMapperV4_0Target

Change-Id: I530f6d895c338fb041f7705aa9a4fd36931a1588
2020-05-12 08:58:16 +08:00
Yichi Chen
c6394fffa8 gralloc4-vts: Allow YCRCB_420_SP to be unsupported in Lock_YCRCB_420_SP
Some devices may not support the legacy YCRCB_420_SP format. To allow
the test can pass through such devices, the patch adds the flexibility
when UNSUPPORTED is returned from buffer allocation.

Bug: 150461327
Bug: 152510209
Test: VtsHalGraphicsMapperV4_0Target

Change-Id: I393fc3c4a7d2421f07eeff88915041c92e8cdf05
2020-05-12 08:58:08 +08:00
Valerie Hau
f207cca044 Merge "Allow for failure in allocation for MapperVts" into rvc-dev 2020-05-11 23:34:30 +00:00
Andy Hung
425e365256 Merge "AudioMetadata: Add documentation" into rvc-dev 2020-05-11 21:38:11 +00:00
Valerie Hau
7b4e37a989 Allow for failure in allocation for MapperVts
Bug: 155942443
Test: build, boot
Change-Id: I8698e4cf117d54a6d2ff128cc2e503308188c7e6
2020-05-11 14:18:46 -07:00
Jimmy Chen
b494f07e59 Merge "vts: test setting WAPI psk hex" into rvc-dev 2020-05-11 07:01:22 +00:00
Miao Wang
4429d856cd Filter out failing NNAPI validation tests
Bug: 155577050
Test: atest VtsHalNeuralnetworksV1_*TargetTest
Change-Id: Id8d497dddd5521670689ff2ea08610c3aaeaf748
2020-05-10 19:38:17 -07:00
felipeal
5a944183d6 Implemented USER_IDENTIFICATION_ASSOCIATION on EmulatedUserHal.
Bug: 150409351

Test: adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --set 299896587  a 1 i 666 i 1 i 101 i 2
Test: adb shell lshal debug android.hardware.automotive.vehicle@2.0::IVehicle/default --get 299896587

Change-Id: I4890ae5c0cea22bf024b1d7429449390237ab244
2020-05-08 19:04:40 -07:00
Valerie Hau
7b25582017 Merge "Fix Mapper Protected test" into rvc-dev 2020-05-08 21:36:15 +00:00
Andy Hung
e6b9c77789 AudioMetadata: Add documentation
Update comments only for IStreamOutEventCallback::onCodecFormatChanged

Test: compiles, this is a comment change only.
Bug: 150175043
Change-Id: I1895c737997fbf3cb509b4078b545658d11df198
2020-05-08 13:43:56 -07:00
TreeHugger Robot
9a3f5f02e9 Merge "Register VHAL to car watchdog" into rvc-dev 2020-05-08 17:58:15 +00:00
Valerie Hau
2b4caee38a Fix Mapper Protected test
Bug: 155942443
Test: build, boot
Change-Id: Ie258184981615d714878b108f2e00452fbf95358
2020-05-08 10:17:49 -07:00
felipeal
00134a22c2 Minor clarificaton on USER_IDENTIFICATION_ASSOCIATION doc.
Test: none
Bug: 150409351
Change-Id: I4c8e11c118a503998736acb37259eb6aaea1c542
2020-05-08 09:48:29 -07:00
Eric Jeong
908101a9d9 Register VHAL to car watchdog
- For health checking, the car watchdog client attemps to get
PERF_VEHICLE_SPEED.
- If successful, it regards VHAL is healhty and responds to the car
watchdog daemon. Otherwise, VHAL will be killed by the daemon.

Bug: 154367059
Bug: 154262220
Test: dumpsys android.automotive.watchdog.ICarWatchdog/default and check
if vehicle hal is registered as a client

Change-Id: I2eb466550c56f25ba550ebbd35dc8fde9681ea59
2020-05-07 15:10:43 -07:00
Ahmad Rahmati
91c5deafc3 Merge "Add SCOPED_TRACE to VTS tests that loop over all sensors" into rvc-dev 2020-05-07 22:02:24 +00:00
Jimmy Chen
9003d20916 vts: test setting WAPI psk hex
Bug: 139257562
Test: atest VtsHalWifiSupplicantV1_3TargetTest
Change-Id: Id7b181f7d9280926c441ac6fbf7420f17a857c02
2020-05-08 02:56:46 +08:00
TreeHugger Robot
30c37f1eb7 Merge "Fixed USER_IDENTIFICATION_ASSOCIATION structs and documentation." into rvc-dev 2020-05-07 17:53:53 +00:00
TreeHugger Robot
2023afbe66 Merge "Round off attestation tests." into rvc-dev 2020-05-07 16:26:29 +00:00
TreeHugger Robot
ba1a4c7f6d Merge "Fix StrongBoxOnly test" into rvc-dev 2020-05-07 16:11:50 +00:00
Midas Chien
6191c0abe2 Merge "composer: vts: send a frame after call setActiveConfig" into rvc-dev 2020-05-07 05:17:40 +00:00
Ahmad Rahmati
8276a3bb02 Add SCOPED_TRACE to VTS tests that loop over all sensors
SCOPED_TRACE enables the error message contains enough detail to
easily narrow down the root cause

Bug: 154357354
Test: atest VtsHalSensorsV2_0Target VtsHalSensorsV2_1Target
Change-Id: Id6dbbe8bd8617776efec383d5276e9e12006f27d
2020-05-07 02:45:30 +00:00
Steven Moreland
0b4b27183c Radio tests: root before multi-sim preparation.
These tests assumed that they were rooted before running, and due to
a combination of b/152655658 and b/154638140, these appeared to work
when a device already happened to be rooted and the test failures showed
up as problems with the test rather than as problems with the target
preparer.

This is the same workaround being used elsewhere.

Fixes: 154445273 # specifically about VtsHalSapV1_0TargetTest
Test: atest VtsHalSapV1_0TargetTest # passes 100%

The following tests, I confirm MultiSimTargetPreparer works, although my
test device has no SIM so I cannot get fully useful results.
Test: atest VtsHalRadioV1_0TargetTest # slot2 cases can now pass
Test: atest VtsHalRadioV1_1TargetTest # slot2 cases can now pass
Test: atest VtsHalRadioV1_2TargetTest # slot2 cases can now pass
Test: atest VtsHalRadioV1_3TargetTest # fully passes
Test: atest VtsHalRadioV1_4TargetTest # fully passes

Change-Id: Id62cb2e1b7a95552b560ab1d4ff2f63c0a7569a3
2020-05-06 14:17:05 -07:00
felipeal
4dda37e0d0 Fixed USER_IDENTIFICATION_ASSOCIATION structs and documentation.
Bug: 150409351
Test: m
Test: atest UserHalServiceTest UserHalHelperTest

Change-Id: I121b47f1cc0889259210de96007c3c0f82985e8c
2020-05-06 12:34:47 -07:00