Commit graph

36930 commits

Author SHA1 Message Date
Michael Butler
bc24c9b37a Merge "Disable TEST_MAPPING for VtsHalNeuralnetworksV1_*TargetTest" 2022-06-15 23:47:08 +00:00
Treehugger Robot
ddc1e4c82d Merge "Add a README for Remote Key Provisioning." 2022-06-15 13:32:46 +00:00
Max Bires
82ed7a42c0 Add a README for Remote Key Provisioning.
This document goes a little more in depth on the motivating factors and
background mechanisms that occur with RKP, that are not appropriate for
direct inclusion in the HAL docs in the .aidl files.

Fixes: 234159998
Test: Readable
Merged-In: I141fb098c536a5468b1113af64dcf6185ea7ae9f
Change-Id: I141fb098c536a5468b1113af64dcf6185ea7ae9f
2022-06-15 05:29:22 -07:00
Treehugger Robot
19410a1fc3 Merge "Update owners for hardware/interfaces." 2022-06-09 22:23:14 +00:00
David Drysdale
543eb71cb6 Merge "KeyMint VTS: check chain size before dereferencing" 2022-06-09 05:27:00 +00:00
Treehugger Robot
7dafb3d92e [automerger skipped] Merge changes from topic "226452499" into android12-tests-dev am: 970cccb939 am: 94755b9007 -s ours
am skip reason: Merged-In I5ef42c922a0b0a037d2cf70ca83790fc95196ccb with SHA-1 cf52cb0307 is already in history

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

Change-Id: I94821cbe35b9f5ba47b196134c3eb9a2b806ff5d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 20:47:59 +00:00
Karthik Ramakrishnan
fc6dc14209 [automerger skipped] VtsHalBluetoothV1_0: Turn off/on BT for all users am: 94a3a178aa -s ours am: 5adad834a9 -s ours
am skip reason: Merged-In Ica83f4959a87b8fb498b535572738e4e790c6ddb with SHA-1 0dc66a2c69 is already in history

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

Change-Id: I0cac368bbc67d96e276a2454e1b10c7c910ddc39
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 20:47:57 +00:00
Treehugger Robot
94755b9007 Merge changes from topic "226452499" into android12-tests-dev am: 970cccb939
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2099117

Change-Id: I00253cc0bcd6158dc24de0f183ca07f711b1db00
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 20:31:52 +00:00
Karthik Ramakrishnan
5adad834a9 [automerger skipped] VtsHalBluetoothV1_0: Turn off/on BT for all users am: 94a3a178aa -s ours
am skip reason: Merged-In Ica83f4959a87b8fb498b535572738e4e790c6ddb with SHA-1 0dc66a2c69 is already in history

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

Change-Id: I1d91810834810314b06dfb14db753af520dac0f0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-08 20:31:50 +00:00
Treehugger Robot
970cccb939 Merge changes from topic "226452499" into android12-tests-dev
* changes:
  VtsHalBluetoothV1_1: Turn off/on BT at RunCommandTargetPreparer
  VtsHalBluetoothV1_0: Turn off/on BT for all users
2022-06-08 20:07:23 +00:00
Michael Butler
e8e7a1018c Disable TEST_MAPPING for VtsHalNeuralnetworksV1_*TargetTest
A sibling change removes the NN HIDL sample drivers from cuttlefish. In
response, this change removes the VtsHalNeuralnetworksV1_*TargetTest
tests from the TEST_MAPPING because they do not test anything without
the NN HIDL sample drivers present.

Note that the NN AIDL sample drivers and NN AIDL VTS test
(VtsHalNeuralnetworksTargetTest) are still present.

Bug: 233665601
Test: mma
Test: croot && cd hardware/interfaces/neuralnetworks && atest
Change-Id: I90bccd843ba9296c27d3010cec652be55a13a225
2022-06-08 10:47:22 -07:00
Bob Badour
829f72e358 [LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces
Added SPDX-license-identifier-Apache-2.0 to:
  boot/aidl/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Change-Id: I2166ff89ef6a370312f902d3d534e11b4006da16
2022-06-08 10:09:09 -07:00
Treehugger Robot
05eb1a279b Merge "vibrator: turn off vibrator after testing ChangeVibrationAmplitude" 2022-06-08 13:48:44 +00:00
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
David Drysdale
a8a888ecf7 KeyMint VTS: check chain size before dereferencing
Test: VtsAidlKeyMintTargetTest
Change-Id: Id5ded31e1120e501dc5eb90b78cad1190a4c3042
2022-06-08 12:44:42 +01: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
Selim Gurun
75d67ca355 Update owners for hardware/interfaces.
evs and vehicle owners are already good, so did not touch.

Test: echo 'in TH we trust!'
Bug: yes, it bugs me

Change-Id: I6168956f7e21488f5fa6c4f0019c0885d074ba0e
2022-06-04 01:43:52 +00: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
Fenglin Wu
a464fb4db6 vibrator: turn off vibrator after testing ChangeVibrationAmplitude
Turn off vibrator explicitly after testing ChangeVibrationAmplitude.

Bug: 232319176
Test: VtsHalVibratorTargetTest
Change-Id: I482ea8266378636340c614eda832f4237d22e005
2022-05-24 09:02:58 +08: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
Cheney Ni
7dc143e55a 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
Merged-In: I5ef42c922a0b0a037d2cf70ca83790fc95196ccb
(cherry picked from commit cf52cb0307)
2022-05-20 10:55:07 +08:00
Karthik Ramakrishnan
94a3a178aa VtsHalBluetoothV1_0: Turn off/on BT for all users
Using the current user for the command to disable
BT before the test and enable after the test.
This ensures the proper command is used for
devices running in secondary user

Bug: 202873250
Bug: 226452499
Test: run vts -m VtsHalBluetoothV1_0TargetTest
          -t PerInstance/BluetoothHidlTest#InitializeAndClose/0_default
Change-Id: Ica83f4959a87b8fb498b535572738e4e790c6ddb
Merged-In: Ica83f4959a87b8fb498b535572738e4e790c6ddb
(cherry picked from commit 0dc66a2c69)
2022-05-20 10:54:55 +08: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