Commit Graph

20663 Commits

Author SHA1 Message Date
Xusong Wang
5882d6d911 Fix VTS of fenced execution with zero-sized output.
Fixes: 151441390
Test: 1.3 VTS
Change-Id: I100329e18c34c377d217af155c2abc8e67078778
Merged-In: I100329e18c34c377d217af155c2abc8e67078778
(cherry picked from commit 9fcccf8b85)
2020-03-13 15:15:39 -07:00
Michael Butler
b715967a15 Merge "NNAPI VTS: Add validation for Priority" into rvc-dev 2020-03-13 22:13:12 +00:00
TreeHugger Robot
ae7e3c0765 Merge "Remove duplicated comment section" into rvc-dev 2020-03-13 20:41:29 +00:00
Michael Butler
f0d0616d7c Merge "NNAPI VTS: decouple 1.2 tests from 1.3 types" into rvc-dev 2020-03-13 20:04:25 +00:00
Michael Butler
4876af1ba1 NNAPI VTS: decouple 1.2 tests from 1.3 types
Bug: 141718368
Test: mma
Test: VtsHalNeuralnetworksV1_*TargetTest
Change-Id: Ied7b95e146e4d2d95622642bfbb959cf134b5a7a
2020-03-13 19:59:43 +00:00
Paul Crowley
f06684acab Use a constant-time MAX function
Bug: 146520538
Test: atest HadamardTest
Change-Id: Ife1012c14d697141e6ee0c583dc32eaacdb72b73
Merged-In: Ife1012c14d697141e6ee0c583dc32eaacdb72b73
(cherry picked from commit b0d2062abe)
2020-03-13 15:22:23 +00:00
TreeHugger Robot
e039ebadfd Merge "Clarify supported ranks for new ops in R" into rvc-dev 2020-03-13 11:46:52 +00:00
Anton D. Kachalov
34cdbcde50 Camera: Advertise numbered string ID for external cameras
With current implementation cameraId is part of something like:

  device@3.5/external//dev/video0

This doesn't work well with Camera2 API based apps.

Adding CameraIdOffset tag to Provider as a base offset.

Test: presubmit builds
Bug: 151350336

Merged-In: I6309d16be565616f048fb24a70e9be5b2f5ed480
Change-Id: I6309d16be565616f048fb24a70e9be5b2f5ed480
(cherry picked from commit 4f6022ae5d)
2020-03-12 21:21:09 +00:00
Michael Butler
da1a692880 NNAPI VTS: Add validation for Priority
This CL also cleans up the validation framework code.

Bug: 67828197
Test: mma
Test: VtsHalNeuralnetworksV1_*TargetTest
Change-Id: I84661fb2b8204148788d10425ca0ac986158b15f
2020-03-12 11:29:08 -07:00
Huihong Luo
0d3722f966 Merge "Don't send brightness to car service inside Emulator" into rvc-dev 2020-03-12 16:15:51 +00:00
Lev Proleev
f161cc74a1 Clarify supported ranks for new ops in R
Fix: 151108533
Test: mma
Change-Id: I85b66ab5940d09b2786ecb14bff5bc1c1dee894a
2020-03-12 13:34:18 +00:00
Huihong Luo
034c9bc96e Don't send brightness to car service inside Emulator
This fixes this cts test: android.cts.statsd.atom.UidAtomTests#testScreenBrightness

Bug: 139959479
Test: atest android.cts.statsd.atom.UidAtomTests#testScreenBrightness
Change-Id: I66f858ce7686a90cd395f4e646133e8ea4604be4
Merged-In: I66f858ce7686a90cd395f4e646133e8ea4604be4
(cherry picked from commit 1322465c48d0c3dfa5953573b80a89460b8e7e95)
(cherry picked from commit 5d463fdaaa)
2020-03-11 19:34:00 -07:00
Automerger Merge Worker
a60a366c6d [automerger skipped] Don't send brightness to car service inside Emulator am: 092efbd9f4 -s ours
am skip reason: skipped by user huisinro

Change-Id: I5f5a1611de9c6bf9413490ffc4c7631c47819016
2020-03-12 00:40:00 +00:00
Harpreet \"Eli\" Sangha
7aec50208c vibrator: aidl: Apply Compose API Feedback
- Make Thud and Spin optional due to complexity.
- Make "scale" inclusive of zero, which represents minimum "feelable"
  intensity.
- Update VTS tests appropriately.
- Fix typo in VTS test names.

Bug: 151084263
Test: VTS on Flame, Walleye, and Cuttlefish
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
Change-Id: Ib0d046be83ee79ab38e0b9c3fb87a41f23879f8b
2020-03-12 05:49:35 +09:00
Huihong Luo
092efbd9f4 Don't send brightness to car service inside Emulator
This fixes this cts test: android.cts.statsd.atom.UidAtomTests#testScreenBrightness

Bug: 139959479
Test: atest android.cts.statsd.atom.UidAtomTests#testScreenBrightness
Change-Id: I66f858ce7686a90cd395f4e646133e8ea4604be4
Merged-In: I66f858ce7686a90cd395f4e646133e8ea4604be4
(cherry picked from commit 1322465c48d0c3dfa5953573b80a89460b8e7e95)
2020-03-11 10:39:48 -07:00
Henry Fang
b74b76cc5e Merge " Convert VtsHalCasV1_2TargetTest to parameterized gtest" into rvc-dev 2020-03-11 01:31:40 +00:00
TreeHugger Robot
c06301cc5b Merge "vibrator: aidl: Remove Output Checks on Error" into rvc-dev 2020-03-11 00:20:22 +00:00
TreeHugger Robot
68dbdf4a48 Merge "gralloc4-vts: fix GetLargeReservedRegion test" into rvc-dev 2020-03-10 23:05:49 +00:00
Harpreet \"Eli\" Sangha
8922e56088 vibrator: aidl: Remove Output Checks on Error
VTS tests should treat output values as uninitialized when the returns
status is not OK.

Bug: 151174217
Test: Ran on Flame and Walleye
Signed-off-by: Harpreet \"Eli\" Sangha <eliptus@google.com>
Change-Id: I8a3fa77d35265b6dd371caace18ffb810e83a72f
2020-03-11 06:53:39 +09:00
Henry Fang
9347054f3c Convert VtsHalCasV1_2TargetTest to parameterized gtest
bug: 148815882
Test: Manual
Change-Id: I9f8de920867d8eb78819ad6efbe0f0d559c99c60
2020-03-10 14:32:02 -07:00
Valerie Hau
9fe0114a33 Merge "vts: VtsHalGraphicsMapperV2_1TargetTest fixup's" into rvc-dev 2020-03-10 21:21:21 +00:00
TreeHugger Robot
8f3fee6216 Merge "Bugfix: add "override" explicitly to make the compiler happy" into rvc-dev 2020-03-10 20:58:52 +00:00
Jason Macnak
c1b5b52c70 gralloc4-vts: fix GetLargeReservedRegion test
The existing test never assigns a handle to bufferHandle so
mGralloc->getReservedRegion() will always be called with
nullptr and will always return with BAD_BUFFER.

Bug: b/146515640
Test: VtsHalGraphicsMapperV4_0Target
Change-Id: I85dac94956c6b9db5b4a19faeb16fc947f7457e1
2020-03-10 13:39:49 -07:00
TreeHugger Robot
ce3f17e662 Merge "Update audio VTS source code to match the change in AudioPolicyConfig" into rvc-dev 2020-03-10 19:07:24 +00:00
Jason Macnak
b3c511d51d Remove duplicated comment section
The comment section about vendor extensions is already on lines
330-336 and should not appear inside the comment about a specific
non-vendor extension format.

Bug: b/151105493
Test: n/a
Change-Id: I0559b3157f21e2ab23d8c4a53d2a0d74ebb40561
2020-03-10 11:41:01 -07:00
Pierre Couillaud
9894812dd1 vts: VtsHalGraphicsMapperV2_1TargetTest fixup's
1) handles allocated through 'allocate' should be removed through
   'freeBuffer'.

2) make use of intended buffer handle in GetTransportSizeBadBuffer.

Bug: 146444563
Test: build, boot, VtsHalGraphicsMapperV2_1TargetTest
Change-Id: I6c1a67fc36dbc653ec2ada6a335d685d21e82800
Signed-off-by: Pierre Couillaud <pierre.couillaud@broadcom.com>
2020-03-10 08:33:01 -07:00
TreeHugger Robot
39d306fc44 Merge "VTS: Fix IRadio.nvResetConfig" into rvc-dev 2020-03-10 07:52:12 +00:00
TreeHugger Robot
d2a36d278a Merge "Update doc of proxyAppPackageName" into rvc-dev 2020-03-10 01:19:06 +00:00
TreeHugger Robot
2cc31a6f4a Merge "Identity: Statically link additional libraries in VtsHalIdentityTargetTest." into rvc-dev 2020-03-10 00:10:39 +00:00
Mikhail Naganov
20a3e395bf Update audio VTS source code to match the change in AudioPolicyConfig
Use getInputDevices instead of getAvailableInputDevices.

Bug: 149854039
Test: atest VtsHalAudioV5_0TargetTest
Change-Id: I0fed71eba8d031465ef98da2bf6be16c2fbfb5ff
2020-03-09 23:31:29 +00:00
TreeHugger Robot
42a5bfd93d Merge "graphics-common: fix documentation typo" into rvc-dev 2020-03-09 23:05:23 +00:00
Jakub Pawlowski
9aa930f8be Merge "bluetooth: Reference Bluetooth core specification 5.2" into rvc-dev 2020-03-09 22:54:49 +00:00
TreeHugger Robot
81e68c71d7 Merge "Identity: Move signingKeyBlob from finishRetrieval() to startRetrieval()." into rvc-dev 2020-03-09 22:07:45 +00:00
TreeHugger Robot
a3cdc5697b Merge "Fix a resource clean-up routine" into rvc-dev 2020-03-09 22:05:19 +00:00
TreeHugger Robot
8206c95347 Merge "Use Google-style C++ loggers" into rvc-dev 2020-03-09 21:58:30 +00:00
Alain Michaud
b19aac8c96 bluetooth: Reference Bluetooth core specification 5.2
Test: None
Bug: 151089119
Change-Id: I5c4ade22cda7bb8592625c6d0b7ec4aaf481aadd
2020-03-09 20:12:20 +00:00
Hao Chen
25cf3b5b9c Bugfix: add "override" explicitly to make the compiler happy
Test: build

Bug: 148877226
Change-Id: I90806ee2c2302ce9cc5dc8f82754aa807c2ec7ef
2020-03-09 12:53:23 -07:00
David Zeuthen
18be965c7e Identity: Statically link additional libraries in VtsHalIdentityTargetTest.
The problem was that VtsHalIdentityTargetTest was dynamically linking
libraries that (currently) only are pulled in by the default IC HAL
implementaiton. This caused linking problems when copying
VtsHalIdentityTargetTest onto a device a running it.

Fix this by only dynamically linking libbinder and libcrypto.

Bug: 150475275
Test: VtsHalIdentityTargetTest runs on a device without Identity Credential.
Merged-In: I4162cc81ade0373c31c96008f3a2bc95684fd2c2
Change-Id: I7a55a6e602b9902bd725190aa5631644f7639b95
2020-03-09 15:47:01 -04:00
David Zeuthen
b790d97f45 Identity: Move signingKeyBlob from finishRetrieval() to startRetrieval().
The implementation of the Identity Credential TA in constrained
environments may need to incrementally update the HMAC-SHA256 of
DeviceAuthencation CBOR to avoid keeping the entire CBOR structure in
memory. To do this they need to calculate the derived key before
starting to build the CBOR so they need access to the signingKey
earlier on.

Bug: 150390415
Test: atest android.security.identity.cts
Test: VtsHalIdentityTargetTest
Merged-In: I72ad30ec3ccec0b8161cbea360ef8c9212f8cbbc
Change-Id: I95e28dd46b35bc31dec8d77ee14b5a1b3b5c0391
2020-03-09 15:45:21 -04:00
Yu-Han Yang
e8286f04b8 Update doc of proxyAppPackageName
Fixes: 151088537

Test: doc only and builds
Change-Id: If0c4c6d879a1a35293739838702a33ec770b0ed3
2020-03-09 11:43:36 -07:00
Selene Huang
ee37ee9252 Add attestation certificate generation and identity credential tags.
Bug: 149908474
Test: atest android.security.identity.cts.AttestationTest
Test: atest VtsHalIdentityCredentialTargetTest
Test: atest android.hardware.identity-support-lib-test
Merged-In: I18c5d05d806d4157c9dce42a398cc89421e26907
Change-Id: Ifaffef3606a6398613e33982ff5db81ade1af0b2
2020-03-09 12:30:11 -04:00
Hsiaoan Hsu
6e8b33a127 VTS: Fix IRadio.nvResetConfig
- IRadio.nvResetConfig:
IRadio.nvResetConfig with ResetNvType ERASE cause radio restart.
The subsuquent test cases fail with RADIO_NOT_AVAILABLE.
Fix to use ResetNvType FACTORY_RESET which does not restart the radio.

Test: run vts -m VtsHalRadioV1_0Target
Bug: 147831226
Change-Id: I45e5cbcf9144c3ace987ac8e047e40fbee403734
2020-03-09 12:12:33 +08:00
TreeHugger Robot
c5a652431f Merge "Configstore is optional on updating devices." into rvc-dev 2020-03-07 04:25:34 +00:00
Yifan Hong
e344d05818 Configstore is optional on updating devices.
Dropping requirement of configstore on devices
launching before or at P.

Test: pass
Bug: 150981985
Change-Id: I1c08bd7b18fe6006ee1555c39072e75ec4fb3210
Merged-In: I1c08bd7b18fe6006ee1555c39072e75ec4fb3210
2020-03-06 17:48:31 -08:00
TreeHugger Robot
d183abf853 Merge "Fix deadlock in cuttlefish/default implementation" into rvc-dev 2020-03-07 01:13:38 +00:00
TreeHugger Robot
239d63164f Merge "Update 1.5 IRadio interface with missing structs/functions" into rvc-dev 2020-03-07 00:35:49 +00:00
Yu-Han Yang
f3cb5562b2 Fix deadlock in cuttlefish/default implementation
Bug: 150830099

Test: atest LocationManagerFineTest#testRegisterGnssMeasurementsCallback
-c --iterations 100

Change-Id: I70aec19a481781d924ed3008765ca624a7eeb950
Merged-In: I70aec19a481781d924ed3008765ca624a7eeb950

(cherry picked from commit 3d652709ed)
2020-03-06 22:57:25 +00:00
Robert Shih
94f97bdf1b Merge "drm@1.3 vts: link dynamic libcrypto.so to pass FIPS" into rvc-dev 2020-03-06 19:35:33 +00:00
Changyeon Jo
fae91b1bb9 Fix a resource clean-up routine
When a test case is being terminated, VTS framework calls TearDown() to
clean up all resources.  VtsHalEvsV1_1TargetTest stores weak references
to opened hardware cameras for this and tries to close them explicitly
when it can promote them.  However, it was observed that VirtualCamera's
destructor is not called yet even it fails to promote.

Therefore, this change modifies a container to hold a strong pointer and
explictly removes it after a test case calls closeCamera().

Also, this change corrects a bug in checking setExtendedInfo_1_1()
results.

Bug: 150893461
Test: vts-trafed VtsHalEvsV1_1_TargetTest
Change-Id: I23b55b2f2282834fb5a9d364f4eb176060027de1
2020-03-05 17:52:16 -08:00
Changyeon Jo
e6477dc808 Use Google-style C++ loggers
This change replaces ALOG* usages in VtsHalEvsV1_1 with Google-style
C++ loggers.

Bug: 150893461
Test: Run VtsHalEvsV1_1TargetTest
Change-Id: Ia93c5a00d580bae99d15a7a893e57e0f1e2397d5
2020-03-05 17:12:54 -08:00