Commit graph

36912 commits

Author SHA1 Message Date
David Drysdale
0526ce5a58 [automerger skipped] Specify KeyMint EC keys by curve not size am: bd3d12a377 am: 09afca29d3 -s ours
am skip reason: Merged-In Ia6b7d86a387cfc06db05e4ba6ff8f331e9c6345f with SHA-1 915ce253a8 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2102924

Change-Id: I77aca69512167b855d0e037ca7d25d1052d26faa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 13:46:18 +00:00
David Drysdale
09afca29d3 Specify KeyMint EC keys by curve not size am: bd3d12a377
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2102924

Change-Id: I06027489aca2b079ce0581cb71d8a43679384401
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 13:36:16 +00:00
Kelvin Zhang
c056242bdf Add AIDL definitions for IBootControl
Test: th
Bug: 227536004

Change-Id: Ic27f41e640927639bf5b901c2b592224f9d8308b
2022-06-06 16:09:03 -07:00
Shawn Willden
22fb9c16fc Implement KeyMint2 test for VSR13
Test: VtsAidlKeyMintTargetTest & VtsHalKeymasterV4_0TargetTest
Change-Id: Ie10b705bb06990a2a2c6223fcce28f5fde6bf3f3
2022-06-06 09:10:17 -06:00
Treehugger Robot
f1a7cc01ea Merge "Implement alternate SE RoT provisioning" 2022-06-01 08:47:51 +00:00
David Drysdale
5adaa1e899 Merge "Add EncryptionOperationsTest.AesCbcZeroInputSuccess" 2022-06-01 05:36:27 +00:00
Jordan Abrahams-Whitehead
13a42ed14d Merge "vts: Upsize 8bit uniform_int_distribution" 2022-05-31 22:31:58 +00:00
Shawn Willden
4315e135c6 Implement alternate SE RoT provisioning
Bug: 219076736
Test: VtsAidlKeyMintTargetTest
Change-Id: Ia696d7765f316d35eba1b4e65acae6c1072987b1
2022-05-31 14:14:54 -06:00
David Drysdale
bd3d12a377 Specify KeyMint EC keys by curve not size
Future addition of extra curves means that key size is not enough to
identify the particular EC curve required. Use the EcCurve enum instead.

Bug: 226270116
Test: VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: Ia6b7d86a387cfc06db05e4ba6ff8f331e9c6345f
Merged-In: Ia6b7d86a387cfc06db05e4ba6ff8f331e9c6345f
(cherry picked from commit 915ce253a8)
2022-05-31 20:13:34 +00:00
Tommy Chiu
ee70569078 Add EncryptionOperationsTest.AesCbcZeroInputSuccess
Check if the zero input data with AES-CBC-[NONE|PKCS7] padding mode
generates correct output data and length.

Bug: 200553873
Test: VtsHalKeymasterV4_0TargetTest, VtsAidlKeyMintTargetTest
Merged-In: I729c2bad65e9d8b194422032346e5ee3c4b0dce5
Change-Id: I729c2bad65e9d8b194422032346e5ee3c4b0dce5
2022-05-31 13:37:55 +01:00
Jordan R Abrahams-Whitehead
745c351b8b vts: Upsize 8bit uniform_int_distribution
uniform_int_distribution<a> for types sizeof(a) < 2 are
not valid by the C++ library standard. Newer versions of LLVM
(particularly spurred on by ChromeOS toolchain changes)
require at least std::uniform_int_distribution<uint16_t>.

This is a required change for rolling LLVM to r458507.
This is necessary, but may not be sufficient to resolve
the issue.

Bug: 231351802
Test: mma
Change-Id: I04c3cc91507f3467c432b9a25effdac3f5fb56f3
2022-05-30 22:30:54 +00:00
Joseph Jang
a3e3ab14cc identity: Add AndroidTest.xml to customize tradefed test config
Bug: 228806698
Change-Id: I8cc5ce1ad138fab751847725026f49c963c47a6d
2022-05-27 06:32:22 +00:00
David Drysdale
7fc26b99d3 KeyMint VTS: abandon tests when Begin fails
Test: VtsAidlKeyMintTargetTest
Change-Id: Id8bb29b3e2c3771d6033fe85c58c9cbd34e024fb
2022-05-25 15:34:05 +01:00
David Gross
bde33e2b87 [automerger skipped] Freeze neuralnetworks AIDL version as v2 for FL6 am: 96e9eeb19d -s ours
am skip reason: Merged-In I35dbd32695acdffc552790dc7396bc8c724e9242 with SHA-1 2a889d50b7 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2103847

Change-Id: I748b95684fe0aab5bfce9b0fa1571e272cc423d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-23 23:58:32 +00:00
Ian Hua
03abd0b743 [automerger skipped] Add FL6 spec tests to AIDL VTS. am: 5dde02c7f6 -s ours
am skip reason: skipped by user miaowang

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2103846

Change-Id: I9a47605a912490c8ddccda693abb49e1c994f0d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-23 23:58:31 +00:00
David Gross
2276e93f87 [automerger skipped] Add PACK operation to NNAPI feature level 6. am: a8cf3aefd8 -s ours
am skip reason: Merged-In Ic15d047b70c62437b4f0db6f2ca10127591ae07c with SHA-1 0af4ac2ec4 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2103845

Change-Id: Iae095527635b0212d5bc99a02f4a8ea9d80f389f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-23 23:58:29 +00:00
Ian Hua
7890f1f9db [automerger skipped] AIDL interface changes for NNAPI feature level 6. am: b0cf0db3b0 -s ours
am skip reason: Merged-In Iabe45c57e2306d61055f711eda03b80b9cbe906d with SHA-1 aaeda0e84f is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2103844

Change-Id: I2e9fde9fac6ce809446218fef8a809176d2be244
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-23 23:58:27 +00:00
David Gross
96e9eeb19d Freeze neuralnetworks AIDL version as v2 for FL6
$ m android.hardware.neuralnetworks-update-api
$ m android.hardware.neuralnetworks-freeze-api

Cherrypicked from I35dbd32695acdffc552790dc7396bc8c724e9242

Bug: 206089870

Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksTargetTest
Change-Id: I35dbd32695acdffc552790dc7396bc8c724e9242
Merged-In: I35dbd32695acdffc552790dc7396bc8c724e9242
(cherry picked from commit 2a889d50b7)
2022-05-23 13:30:56 -07:00
Ian Hua
5dde02c7f6 Add FL6 spec tests to AIDL VTS.
Also skip FL6 (AIDL_V2) tests for older AIDL drivers.

Cherrypicked from I689fef0945428f6548977628e3c43628dd1e5bf7

Bug: 206089870
Test: VtsHalNeuralnetworksTargetTest
Specifically, for old driver such as AIDL_V1 sample driver, it can pass
HIDL tests and skip AIDL_V2 tests. For new driver such as AIDL_V2
sample driver, it can pass all tests.

Change-Id: I689fef0945428f6548977628e3c43628dd1e5bf7
(cherry picked from commit 23d4e5e298)
2022-05-23 13:06:30 -07:00
David Gross
a8cf3aefd8 Add PACK operation to NNAPI feature level 6.
Cherrypicked from Ic15d047b70c62437b4f0db6f2ca10127591ae07c

Bug: 206089870

Test: m -j NeuralNetworksTest_static
Test: VtsHalNeuralnetworksTargetTest

Change-Id: Ic15d047b70c62437b4f0db6f2ca10127591ae07c
Merged-In: Ic15d047b70c62437b4f0db6f2ca10127591ae07c
(cherry picked from commit 0af4ac2ec4)
2022-05-23 13:06:04 -07:00
Ian Hua
b0cf0db3b0 AIDL interface changes for NNAPI feature level 6.
- Add BATCH_MATMUL operation
- Support TENSOR_INT32 for RESHAPE operation.

Also update "current" version snapshot and use
android.hardware.neuralnetworks-V2-ndk since AIDL v1 has been frozen.

Cherrypicked from Iabe45c57e2306d61055f711eda03b80b9cbe906d

Bug: 206089870
Test: mm
Change-Id: Iabe45c57e2306d61055f711eda03b80b9cbe906d
Merged-In: Iabe45c57e2306d61055f711eda03b80b9cbe906d
(cherry picked from commit aaeda0e84f)
2022-05-23 13:05:06 -07:00
Treehugger Robot
ace4b2577b Merge "VtsHalBluetoothV1_1: Turn off/on BT at RunCommandTargetPreparer" 2022-05-19 21:20:25 +00:00
Treehugger Robot
40800aa0cb Merge "Update Mapper4 SetBadMetadata VTS test for optional metadata" 2022-05-19 20:22:26 +00:00
Mikhail Naganov
961fe47997 [automerger skipped] Update VtsHalAudioPolicyV1_0TargetTest to match XML changes am: afff851110 -s ours
am skip reason: Merged-In Id581e290740a3c00ba3719a339c9bc47d730f35c with SHA-1 e01186e117 is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2099439

Change-Id: Ic57404ef21a5e8b14be6352f81179992f5d45191
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-05-19 06:44:28 +00:00
Cheney Ni
cf52cb0307 VtsHalBluetoothV1_1: Turn off/on BT at RunCommandTargetPreparer
This change is cherry-picked from 0dc66a2c69 which
uses RunCommandTargetPreparer to turn off/on BT for
all users on VtsHalBluetoothV1_0.

Bug: 226452499
Test: run vts -m VtsHalBluetoothV1_1TargetTest
Change-Id: I5ef42c922a0b0a037d2cf70ca83790fc95196ccb
2022-05-19 10:08:06 +08:00
David Zeuthen
52a6780b93 identity: Remove test to check if Identity Credential is implemented.
This requirement has been punted to Android 14.

Bug: 217197568
Test: N/A
Change-Id: I93f6db2a32a6bf093c1af53e0ae2f4a8a49aca53
2022-05-17 16:48:24 -04:00
Treehugger Robot
d90f067c24 Merge "Clean up description of IRemotelyProvisionedComponent uniqueId" 2022-05-17 15:36:21 +00:00
Mikhail Naganov
afff851110 Update VtsHalAudioPolicyV1_0TargetTest to match XML changes
There was a proposal for a backward-compatible XML schema change
(https://android-review.googlesource.com/q/I1bf31c6bf6c57c9b79f0d5751601aa77780f1f80)
which had a mistake. Express the change correctly to match
the implementation.

Bug: 231929160
Test: atest VtsHalAudioPolicyV1_0TargetTest
Change-Id: Id581e290740a3c00ba3719a339c9bc47d730f35c
Merged-In: Id581e290740a3c00ba3719a339c9bc47d730f35c
(cherry picked from commit e01186e117)
2022-05-16 23:56:58 +00:00
Seth Moore
97f58ffff5 Clean up description of IRemotelyProvisionedComponent uniqueId
The identifier is to be used in telemetry to identify problematic
implementations. Thus, it needs to be globally consistent, at least
within a given device type.

Test: None -- doc only changes
Bug: 231495834
Change-Id: Ia55db336fa099d8e1196f6bfe2bafb6fa5ead329
Merged-In: Ia55db336fa099d8e1196f6bfe2bafb6fa5ead329
2022-05-16 15:59:37 -07:00
Treehugger Robot
01ef00b0a8 Merge "Update VtsHalAudioPolicyV1_0TargetTest to match XML changes" 2022-05-16 22:57:01 +00:00
Lais Andrade
f1b4dd3f1d Check primitive duration is positive for supported primitives
Bug: 203629838
Fix: 231486866
Test: VtsHalVibratorTargetTest
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I2e534f4589c9f594884385a99051c06f518103f7
Merged-In: I2e534f4589c9f594884385a99051c06f518103f7
2022-05-16 16:14:46 +08:00
Treehugger Robot
cff8c9fb9e Merge "KeyMint: Test Ecdsa key generation without curve" 2022-05-13 09:56:16 +00:00
Hamzeh Zawawy
5c04494c60 Merge "Add an AIDL fuzzer for health service" 2022-05-12 19:59:15 +00:00
Mikhail Naganov
e01186e117 Update VtsHalAudioPolicyV1_0TargetTest to match XML changes
There was a proposal for a backward-compatible XML schema change
(https://android-review.googlesource.com/q/I1bf31c6bf6c57c9b79f0d5751601aa77780f1f80)
which had a mistake. Express the change correctly to match
the implementation.

Bug: 231929160
Test: atest VtsHalAudioPolicyV1_0TargetTest
Change-Id: Id581e290740a3c00ba3719a339c9bc47d730f35c
Merged-In: Id581e290740a3c00ba3719a339c9bc47d730f35c
2022-05-12 18:16:04 +00:00
Treehugger Robot
e3b10a1f84 Merge "Add 32kHz as supported setting" 2022-05-12 04:01:03 +00:00
Jason Macnak
3f4276f4a9 Update Mapper4 SetBadMetadata VTS test for optional metadata
The common decode function for optional gralloc4 metadata
`android::gralloc4::decodeOptionalMetadata()` treats an empty
input `hidl_vec<uint8_t>` as `std::nullopt` and not a bad
value. aosp/1907915 previously tried to update the encoding
and decoding of optional metadata in order to distinguish
this case but the change broke GRF. Instead, let's update the
SetBadMetadata test to use some actual incorrect data for the
optional metadata tests instead of an empty vec.

Bug: b/207388558
Test: cvd start
Test: VtsHalGraphicsMapperV4_0TargetTest
Change-Id: I87c20930cb701e87c89489bd0359cce0522cfe44
2022-05-11 21:56:30 +00:00
Sadaf Ebrahimi
3096c58650 Merge "Track libxml2 API changes." 2022-05-11 21:07:48 +00:00
Treehugger Robot
e25b3b1753 Merge "Correct the PWLE valid duration" 2022-05-11 10:23:18 +00:00
Treehugger Robot
a172a2309c Merge "Specify EcCurve when generating keys" 2022-05-11 09:08:22 +00:00
chasewu
22cb901d1a Correct the PWLE valid duration
Getting the maximum duration from HAL to avoid
different supported duration under different devices.

Fix: 231486866
Test: atest VtsHalVibratorTargetTest
Signed-off-by: chasewu <chasewu@google.com>
Change-Id: I02e96869d9a8e6d5143ae64e3a077bf90dcdb43e
Merged-In: I02e96869d9a8e6d5143ae64e3a077bf90dcdb43e
2022-05-11 15:58:46 +08:00
Treehugger Robot
7e3f8470c2 Merge "Bluetooth LE Audio: pass the 24 bit stream as unpacked through HAL" 2022-05-11 06:40:21 +00:00
Alix Espino
5440b3663c Merge changes I07c0f96d,I8734474f
* changes:
  Deleted clang property in Android.bp files
  autogenerated reformatting by bpfmt
2022-05-10 23:01:12 +00:00
Elliott Hughes
2aa03ce7bd Track libxml2 API changes.
This function is now deprecated upstream, and their advice is to just
not call it; xmlCleanupParser() will do this stuff anyway.

Test: treehugger
Change-Id: I38a80d1f77c1beb2c1c8088a9e0df3bb0cbd9496
2022-05-10 14:20:21 -07:00
hamzeh
34b47964d5 Add an AIDL fuzzer for health service
Bug: 228862320
Test: SANITIZE_TARGET=hwaddress make android.hardware.health-service.aidl_fuzzer
Change-Id: I917441738a7a9d18d7c4fcbe0212bdaf77fe265e
2022-05-10 12:23:11 -07:00
Jakub Pawlowski
7230958c05 Bluetooth LE Audio: pass the 24 bit stream as unpacked through HAL
LC3 encoder/decoder expects unpacked 24 bit stream

Bug: 230578655
Test: use 24_2 configuration to play over LE Audio
Change-Id: I298d6d3a0cd9786581730de88487c982e1fa9d9d
2022-05-10 15:40:44 +02:00
David Drysdale
53cf63d1fd Merge "KeyMint VTS: x25519 pubkey as SubjectPublicKeyInfo" 2022-05-10 10:19:56 +00:00
Tommy Chiu
ec83644fab Specify EcCurve when generating keys
EC_CURVE is a mandatory tag which is specified in the keymint HAL when
generating EC keys.

Bug: 232056693
Change-Id: Ibe2b85744d7e555b7c7b48aa9e57ce45bb19ef89
2022-05-10 16:31:22 +08:00
David Drysdale
a410b770e9 KeyMint VTS: x25519 pubkey as SubjectPublicKeyInfo
The data for a key agreement operation should always send in the
SubjectPublicKeyInfo structure, not a raw key for X25519.

Test: VtsAidlKeyMintTargetTest
Bug: 231959070
Change-Id: Ib5157da6a986d957162fab60dbe927017cfdd703
2022-05-09 17:38:35 +01:00
Treehugger Robot
0ba8531279 Merge "Updated the description on Root of Trust Binding." 2022-05-09 16:36:54 +00:00
Treehugger Robot
e003ed061b Merge "Update ProtectedData DKCertChain to use X.509" 2022-05-09 16:34:08 +00:00