Commit graph

17550 commits

Author SHA1 Message Date
Treehugger Robot
90a34e51e1 Merge "Identity: Move signingKeyBlob from finishRetrieval() to startRetrieval()." 2020-02-28 15:08:40 +00:00
Dan Shi
99b3f37a51 Merge "Push prebuilt libvtswidevine to device for drm HAL tests" 2020-02-27 22:45:10 +00:00
Treehugger Robot
4ce37f131d Merge "HalProxy unit test to expose incorrect numEventsOnPendingQueue" 2020-02-27 20:37:27 +00:00
Treehugger Robot
43e05713c5 Merge "Build HalProxy unit tests with a test library ScopedWakelock" 2020-02-27 20:34:09 +00:00
David Zeuthen
e35797ffca 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
Change-Id: I72ad30ec3ccec0b8161cbea360ef8c9212f8cbbc
2020-02-27 14:31:57 -05:00
Treehugger Robot
ad54253647 Merge "Add parallel linking support for BIDIRECTIONAL_SEQUENCE_{LSTM|RNN}" 2020-02-27 15:51:02 +00:00
Sarah Chin
48da0e3fe2 Merge changes from topics "caps_refactor", "phone-cap-revert", "radioconfig-revert"
* changes:
  Revert "Set up IRadioConfig 1.3 skeleton"
  Revert "PhoneCapabilities changes for device capabilities"
  Revert "Update PhoneCapability to use 1.5 UTRAN bands"
2020-02-27 05:46:08 +00:00
Stan Rokita
2f4ac1599a HalProxy unit test to expose incorrect numEventsOnPendingQueue
Bug: 147912609
Test: run unit test
Change-Id: Ia6fe3cafc1c2adb02463c28481bcf4c723551860
2020-02-26 15:19:17 -08:00
Stan Rokita
8c51fca223 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.

Test: Build and run atest android.hardware.sensors@2.0-halproxy-unit-tests
Change-Id: Ie8d3eb606ccba3825be2c8102b9a7bc6ea033f65
2020-02-26 10:42:14 -08:00
Dan Shi
3d0285b182 Push prebuilt libvtswidevine to device for drm HAL tests
Bug: 143220441
Test: atest VtsHalDrmV1_0TargetTest \
  VtsHalDrmV1_1TargetTest\
  VtsHalDrmV1_2TargetTest
Change-Id: I4ad91c99956525120549321d227aaf6864877c76
2020-02-26 09:24:34 -08:00
Lev Proleev
6be8f3ea67 Add parallel linking support for BIDIRECTIONAL_SEQUENCE_{LSTM|RNN}
Change-Id: I51396f82de8dd7282db85a26b0a1be84b236b8c1
Merged-In: I51396f82de8dd7282db85a26b0a1be84b236b8c1
Fix: 138653129
Test: NNTest_static and VtsHalNeuralnetworksV1_3TargetTest
(cherry picked from commit 13c43c0059)
2020-02-26 10:35:43 +00:00
Slava Shklyaev
d7975bf8d5 Merge changes from topic "nnapi-control-flow"
* changes:
  Add NNAPI loop timeout API
  Add control flow support to NNAPI VTS tests
  Add control flow performance to NNAPI Capabilities
2020-02-26 10:30:31 +00:00
Tianjie Xu
f89784a55f Merge "Move libboot_control to boot_control 1.1" 2020-02-25 21:43:07 +00:00
Selene Huang
93bba950ed Merge "Add attestation certificate generation and identity credential tags." 2020-02-25 21:21:02 +00:00
Steven Moreland
19b9aad80d Merge "Remove String8(StaticLinkage) references." 2020-02-25 17:05:01 +00:00
Slava Shklyaev
775fe5c617 Merge "NNAPI VTS: use max time point instead of uint64_t max" 2020-02-25 15:36:51 +00:00
Steven Moreland
15f04b8af9 Remove String8(StaticLinkage) references.
These are a legacy holdover from when libutils String8 couldn't be used
at static time.

Bug: N/A
Test: N/A
Change-Id: I009b2ca53631509072b4085f3f53c0b94e71b13e
2020-02-24 17:39:51 -08:00
Sarah Chin
98c2c53f8c Revert "Set up IRadioConfig 1.3 skeleton"
This reverts commit b071f8ae53.

Reason for revert: Change will not be supported by vendor, so HAL for RadioConfig is no longer necessary.

Change-Id: I33bf652c6aa2f8516ee6ec1c462a1a575d2a5d27
Merged-In: I2eb83fd2356134ef45a782d99174fdd65f8c5a13
2020-02-24 16:55:00 -08:00
Sarah Chin
6ba3da0d23 Revert "PhoneCapabilities changes for device capabilities"
This reverts commit e1d1b0b92c.

Reason for revert: Change not supported by vendor

Change-Id: I5e2cdf0797124e0a1d272ca4b0525d2425954c3f
Merged-In: I9b268f41614149b5cd55caf3d730b25bb1f885e9
2020-02-24 16:20:36 -08:00
Sarah Chin
7fac7578ca Revert "Update PhoneCapability to use 1.5 UTRAN bands"
This reverts commit f0cfc3ef60.

Reason for revert: Change not supported by vendor

Change-Id: Ie148208a890834b0cd05b0ae4d6190e1a0b5dede
Merged-In: Ief5c5325f51a9bb3921bd2eb6e0ea8c9e7111581
2020-02-24 16:10:46 -08:00
Sarah Chin
f595ab64ca Merge "HAL changes for 1.5 setLinkCapacityReportingCriteria" 2020-02-24 23:32:55 +00:00
Hunter Knepshield
449e8e12c9 Merge "Clean up dumpstate HAL 1.1 VTS test." 2020-02-24 20:41:35 +00:00
Treehugger Robot
e60fc46c56 Merge "NNAPI: Add state outputs for {UNI|BI}DIRECTIONAL_SEQUENCE_{RNN|LSTM}" 2020-02-24 17:56:00 +00:00
Selene Huang
459cb80866 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

Change-Id: I18c5d05d806d4157c9dce42a398cc89421e26907
2020-02-21 16:02:26 -08:00
Janis Danisevskis
7e6517f8e9 Merge "confirmationui: Add portability test" 2020-02-21 19:13:12 +00:00
Sarah Chin
2f8f6c328b HAL changes for 1.5 setLinkCapacityReportingCriteria
Add to IRadio, IRadioResponse, and VTS

Test: make cf_x86_phone-userdebug && mm
Bug: 149112073
Change-Id: I330d5be6bf531c93439f8f1d55718f71ec46c1c3
Merged-In: I330d5be6bf531c93439f8f1d55718f71ec46c1c3
2020-02-20 17:05:39 -08:00
Janis Danisevskis
8d4f06f1f3 confirmationui: Add portability test
Add a test that starts the dialog with some Confirmation strings that
need to be supported to provide portability guarantees.

Bug: 149954317
Test: VtsHalConfirmationUIV1_0TargetTest
Change-Id: Ie6961848d41b7d23d13b85702330682c755a9bbc
2020-02-20 16:38:25 -08:00
Hunter Knepshield
ac0680beb3 Clean up dumpstate HAL 1.1 VTS test.
We separate out per-mode tests into a separate test suite for better
extensibility. If a new DumpstateMode value is added to 1.1, it will no
longer require updating a macro in the test.

All tests still run the same and if they're per-mode, still include the
actual mode string in their final name. No material behavior changes.

Test: atest VtsHalDumpstateV1_1TargetTest on cuttlefish
Change-Id: Ifefae981705e564c10ee450851d3d2320f8206f3
2020-02-20 15:05:48 -08:00
Hunter Knepshield
84dbf58f3c IDumpstateDevice 1.1 tweak: "device" -> "verbose"
Pixel has been dumping some non-sensitive information in bug reports
using IDumpstateDevice for a long time, and requiring nothing to be
dumped on user builds by default suddenly changes behavior.

To account for this use case, we instead change the meaning of the
toggle to control *verbose* logging, specifically anything with privacy,
storage, or battery impact.

VTS tests are updated appropriately.

Bug: 143183758
Bug: 143184495
Test: atest VtsHalDumpstateV1_1TargetTest
Change-Id: Ib71ce43e9168d82fd9ee0564db813c5a3538c459
Merged-In: Ib71ce43e9168d82fd9ee0564db813c5a3538c459
(cherry picked from commit 09c8b5ba59)
2020-02-20 12:48:55 -08:00
David Zeuthen
6a83338df9 Merge "Port IdentityCredential HAL to AIDL." 2020-02-19 21:14:41 +00:00
Slava Shklyaev
a96ab7407d Add NNAPI loop timeout API
Bug: 145906499
Bug: 136735929
Test: NNT_static
Change-Id: Ie40c248b174964676985403f9f1a5127b408a00a
Merged-In: Ie40c248b174964676985403f9f1a5127b408a00a
(cherry picked from commit f034bf9c92)
2020-02-19 11:58:35 +00:00
Slava Shklyaev
0fff59b961 Add control flow support to NNAPI VTS tests
See change I98a3edd1.

Bug: 148077633
Bug: 148601177
Bug: 136735929
Test: VtsHalNeuralnetworksV1_0TargetTest
Test: VtsHalNeuralnetworksV1_1TargetTest
Test: VtsHalNeuralnetworksV1_2TargetTest
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: I1e436cdba404b68026a45797ac4fb3a34f8be76a
Merged-In: I1e436cdba404b68026a45797ac4fb3a34f8be76a
(cherry picked from commit 1f98e2e929)
2020-02-19 11:58:34 +00:00
Slava Shklyaev
315e9b8924 Add control flow performance to NNAPI Capabilities
Bug: 139181916
Test: m
Change-Id: I62696a6519191e33568c9664c0047fb57426b99f
Merged-In: I62696a6519191e33568c9664c0047fb57426b99f
(cherry picked from commit 8a9b306571)
2020-02-19 11:58:32 +00:00
Michael Butler
36902cbc2f NNAPI VTS: use max time point instead of uint64_t max
Bug: 149441015
Test: mma
Test: VtsHalNeuralnetworksV1_3TargetTest
Change-Id: Ic74f83242cbe04a4cec47adbfc51002fdf8bb47d
Merged-In: Ic74f83242cbe04a4cec47adbfc51002fdf8bb47d
(cherry picked from commit 79d6bb1ad2)
2020-02-19 11:58:30 +00:00
Lev Proleev
17689aa67d NNAPI: Add state outputs for {UNI|BI}DIRECTIONAL_SEQUENCE_{RNN|LSTM}
Fix: 138443991
Test: NNTest_static and VtsHalNeuralnetworksV1_3TargetTest
Change-Id: I0a3af22826d438f6f38de1f64042a50f98265e2d
Merged-In: I0a3af22826d438f6f38de1f64042a50f98265e2d
(cherry picked from commit 188a8f90f0)
2020-02-19 11:58:27 +00:00
Mike Ma
294cfe01fc Merge "Add proto dumpstate mode" 2020-02-19 00:30:48 +00:00
Mike Ma
6165e2dd30 Add proto dumpstate mode
Add a "PROTO" dumpstate mode to request a protobuf dump from
IDumpstateDevice HAL, primarily used by incidentd to get
device-specific state as a proto for automated issue reporting and
debugging.
Since the format of these states can vary across vendors and devices,
the proto schema will not be defined in AOSP.

Bug: 140521164
Test: VtsHalDumpstateV1_1TargetTest
Change-Id: I1d586c99b654471db5028039792c3d9e6e2184bb
Merged-In: I1d586c99b654471db5028039792c3d9e6e2184bb
2020-02-18 15:13:35 -08:00
Treehugger Robot
6a4ab26005 Merge "Add UNSUPPORTED to health 2.1 types" 2020-02-18 20:45:15 +00:00
Treehugger Robot
eef384a88e Merge "Fix VTS fail for GraphicsMapperHidlTest" 2020-02-18 19:45:04 +00:00
Stephane Lee
0b6542c17b Add UNSUPPORTED to health 2.1 types
Test: lshal debug android.hardware.health@2.1::IHealth/default
Bug: 149429835
Change-Id: I084d225d49eada022e3f2504bacdb67c0c241697
2020-02-15 17:25:18 -08:00
Treehugger Robot
0935243c44 Merge "Fix VTS test for health HAL 2.1" 2020-02-16 00:16:05 +00:00
Treehugger Robot
a36ef09893 Merge "power: Make AIDL HAL mandatory for new devices" 2020-02-15 18:33:25 +00:00
Stephane Lee
32c4ec09d4 Fix VTS test for health HAL 2.1
Latest update on the ticket to use hard coded thresholds

Test: atest VtsHalHealthV2_1TargetTest
Bug: 149428646
Change-Id: Id7f86ba05a203a926e8d316bf7af4d24c7e0e2f0
2020-02-14 15:30:17 -08:00
Stephane Lee
45f8ab3477 Fix logging in Health HAL 2.0
Bug: 149577800
Test: Ensure logging works as expected
Change-Id: I79b78593ee6bdbda59e49a27e70076184a30668d
2020-02-14 11:56:48 -08:00
David Zeuthen
81603155a9 Port IdentityCredential HAL to AIDL.
This includes add a partial types-only HAL for KeyMaster for
HardwareAuthToken.

Bug: 111446262
Test: atest android.security.identity.cts
Test: VtsHalIdentityTargetTest
Test: android.hardware.identity-support-lib-test
Change-Id: I7a6254d33200bfd62269aed1957cbb2a84b16272
2020-02-14 13:48:55 -05:00
mtk07406
e308ceb1e9 Fix VTS fail for GraphicsMapperHidlTest
VTS_10 testing item VtsHalGraphicsMapperV2_1Target fail due to
Gralloc0 HAL do not have return value : BAD_VALUE and BAD_BUFFER
so add Error::BAD_VALUE and Error::BAD_BUFFER as return value to
fix this VTS fail.

Bug: 146034198
Test: ran VtsHalGraphicsMapperV2_1Target 10 times and it all pass.
Change-Id: I792830ddf98cbf59de7d3a7b4dd4cf5f72269244
2020-02-14 10:25:19 +08:00
Treehugger Robot
25c2de29b9 Merge "Use design capacity instead of full charge capacity" 2020-02-14 01:35:16 +00:00
Dan Stoza
a35e3bb452 Merge "power: Add DPF and update imminent hints to AIDL" 2020-02-14 00:48:43 +00:00
Stephane Lee
34714688d5 Use design capacity instead of full charge capacity
Full charge capacity is already included as part of
health HAL 1.0. Concluded in b/149121450 to add a value
that is valuable.

Bug: 149428646
Bug: 149121450
Test: lshal debug android.hardware.health@2.1::IHealth/default
Change-Id: Iadf3c14850df57034378dcc10cdbab0eb43c3aae
2020-02-13 15:19:56 -08:00
Dan Stoza
8fa535c78e power: Make AIDL HAL mandatory for new devices
Makes the AIDL Power HAL mandatory for new devices. As almost all of
the power hints are already optional, this is effectively just
requiring FIXED_PERFORMANCE mode, which is necessary for game tuning
and performance profiling.

Bug: 136285293
Test: N/A
Change-Id: Ie4c01f13661b2388d8c905159d957f9996c41ee6
2020-02-13 14:50:34 -08:00