Commit Graph

20342 Commits

Author SHA1 Message Date
TreeHugger Robot
68dbdf4a48 Merge "gralloc4-vts: fix GetLargeReservedRegion test" into rvc-dev 2020-03-10 23:05:49 +00: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
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
TreeHugger Robot
d6f4acf514 Merge "Move Multi-HAL 2.0 to the common directory" into rvc-dev 2020-03-05 07:02:59 +00:00
Enrico Granata
7bb7ec3df4 Merge changes from topic "rvc-dev-trout" into rvc-dev
* changes:
  Merge nested namesapces
  Split client and server impl
  Split vehicle client and server interface header
  Add headers and macros for building VHAL server for AGL
2020-03-05 03:55:40 +00:00
Miao Wang
3930e63791 Merge changes from topic "executeFenced_tests" into rvc-dev
* changes:
  Add tests to make sure executeFenced validate unspecified output shapes
  Add more tests exercising IPreparedModel::executeFenced API
2020-03-05 03:33:54 +00:00
TreeHugger Robot
d3eb82f2a2 Merge "vibrator: Document the source of always-on source IDs." into rvc-dev 2020-03-05 00:57:07 +00:00
Miao Wang
fa161c7a0a Add tests to make sure executeFenced validate unspecified output shapes
Bug: 148979873
Test: mm
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: Ib4960c71ca46ca034777cc7b02d7d2885a98691d
2020-03-04 14:56:46 -08:00
Hao Chen
f724a227b0 Merge nested namesapces
fix the nits in ag/10318156

Bug: 150791171

Test: build
Change-Id: I44609f8c7cbeffcb02cb9f2e2f56f3a829de17f6
Merged-In: I44609f8c7cbeffcb02cb9f2e2f56f3a829de17f6
2020-03-04 22:20:03 +00:00
Hao Chen
a6d6fa3d9d Split client and server impl
Some of the code in VHAL client implementation contains Android-specific
code, and some of the server operations only works in the native case.
So we split them up so that the AGL VHAL server can selectivly pick the
parts it needs.

It won't change the logic of native VHAL.

Bug: 148877226
Bug: 150791171

Test: Build

Change-Id: Ie142b19a5c435a0b4252ffd297504bde69eb44b0
(cherry picked from commit 7e9e37fa0a)
Merged-In: Ie142b19a5c435a0b4252ffd297504bde69eb44b0
2020-03-04 22:19:56 +00:00
Hao Chen
2f2b3bbef6 Split vehicle client and server interface header
Since vehicle client may contains some Android-specific types/headers
that may not exist on AGL, we split the header into "client" and "server".
It won't change the logic of Android codes.

Bug: 148877226
Bug: 150791171
Test: build

Change-Id: I550034b071ca6a7ca322fb26b61d76ed4a7307ee
(cherry picked from commit 8dfac92fee)
Merged-In: I550034b071ca6a7ca322fb26b61d76ed4a7307ee
2020-03-04 22:19:48 +00:00
Hao Chen
d599096596 Add headers and macros for building VHAL server for AGL
It won't change the logic of Android codes.

Bug: 148877226
Bug: 150791171

Test: Android build won't break

Change-Id: I07006a4a3e20900a2fa90b84167d114f9ac45cfe
(cherry picked from commit 080963546a)
Merged-In: I07006a4a3e20900a2fa90b84167d114f9ac45cfe
2020-03-04 22:18:03 +00:00
TreeHugger Robot
25ec65fa67 Merge "Convert VtsHalConfirmationUIV1_0TargetTest to parameterized test" into rvc-dev 2020-03-04 21:57:57 +00:00
TreeHugger Robot
0dad3a6381 Merge "HalProxy unit test to expose incorrect numEventsOnPendingQueue" into rvc-dev 2020-03-04 21:47:07 +00:00
TreeHugger Robot
89fe74560d Merge "Build HalProxy unit tests with a test library ScopedWakelock" into rvc-dev 2020-03-04 21:43:00 +00:00
TreeHugger Robot
e3b6f5bb26 Merge "Fix Sensors HAL 1.0 VTS tests" into rvc-dev 2020-03-04 20:40:51 +00:00
Anthony Stange
05d7496e4c Move Multi-HAL 2.0 to the common directory
Sensors Multi-HAL 2.0 will soon have a shared implementation for both
Sensors HAL 2.0 and 2.1 and moving the files to the common directory
first will minimize the diff in upcoming CLs.

Bug: 149758467
Test: compile
Change-Id: I15f84a7aaa302d83d4f4b1ffe357f515e36d6382
2020-03-04 15:09:58 -05:00
Stan Rokita
14499028cf HalProxy unit test to expose incorrect numEventsOnPendingQueue
Bug: 147912609
Test: run unit test
Merged-In: Ia6fe3cafc1c2adb02463c28481bcf4c723551860
Change-Id: Ia6fe3cafc1c2adb02463c28481bcf4c723551860
2020-03-04 14:56:07 -05:00
Stan Rokita
d5d021b380 Build HalProxy unit tests with a test library ScopedWakelock
Unit tests do not currently build because they cannot find the
ScopedWakelock shared object. Make a test library version of
ScopedWakelock for them.

Bug: 147912609
Test: Build and run atest android.hardware.sensors@2.0-halproxy-unit-tests
Merged-In: Ie8d3eb606ccba3825be2c8102b9a7bc6ea033f65
Change-Id: Ie8d3eb606ccba3825be2c8102b9a7bc6ea033f65
2020-03-04 14:55:59 -05:00
Anthony Stange
e969e81bee Fix Sensors HAL 1.0 VTS tests
HAL 1.0 VTS tests need to detach the polling thread or it will never
exit on its own. Additionally, the poll() methods return status needs to
be checked or HIDL will assert and cause the program to crash.

Bug: 150475314
Test: atest VtsHalSensorsV1_0TargetTest VtsHalSensorsV2_0TargetTest
Change-Id: I626b7aa064a1f258c968d1787872b9c67786dede
2020-03-04 18:44:06 +00:00
Automerger Merge Worker
098aae3c96 Camera: Fix possible ExifUtils heap corruption am: aa5673385a am: 711ebe64dd am: f4481c4d98
Change-Id: I4b5e0308f7a5af5e0aaa4b85e458f0e90b4fac7b
2020-03-04 18:28:55 +00:00
Automerger Merge Worker
f4481c4d98 Camera: Fix possible ExifUtils heap corruption am: aa5673385a am: 711ebe64dd
Change-Id: I4a423ed76e117f2809aeed53a5ce1ba4d6919fdc
2020-03-04 18:16:17 +00:00
Automerger Merge Worker
711ebe64dd Camera: Fix possible ExifUtils heap corruption am: aa5673385a
Change-Id: I209742be498ea65b6763cf673514e74241b75717
2020-03-04 17:58:31 +00:00