Commit Graph

28304 Commits

Author SHA1 Message Date
Yomna Nasser
991a680dfa Adds VTS test for getAllowedNetworkTypesBitmap am: 5645ff64b3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1739796

Change-Id: I66728fca5f2469f1d3d65e0974a480f365bc7f1d
2021-06-17 21:22:20 +00:00
Yomna Nasser
5645ff64b3 Adds VTS test for getAllowedNetworkTypesBitmap
Adds VTS test for the new HAL API getAllowedNetworkTypesBitmap

Bug: b/190398554
Test: atest VtsHalRadioV1_6TargetTest
Change-Id: Ida0aff8e239cad324627db83903f4a1adcc479d1
Merged-In: Ida0aff8e239cad324627db83903f4a1adcc479d1
2021-06-17 17:50:04 +00:00
Jakub Pawlowski
b45def320a Bluetooth Audio: Remove WARN log spam in IsSessionReady am: 15410861bf
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1738979

Change-Id: I22d176b6bb270fb73ea0e511d8a804e3b2afea0b
2021-06-17 16:36:47 +00:00
Jakub Pawlowski
15410861bf Bluetooth Audio: Remove WARN log spam in IsSessionReady
Bug: 150670922
Tag: #feature
Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest
Change-Id: Ib3ee17bcdd91e437dd8333c05d31013cb8ac6c9d
2021-06-17 16:34:31 +00:00
Nazanin
cac2bbf9af add sim_err to vts test for setSimCardPower am: 75683b35dd
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1738793

Change-Id: I70777bae53456c5283d48c49cb1db9b7614c65b0
2021-06-17 16:31:59 +00:00
Nazanin
75683b35dd add sim_err to vts test for setSimCardPower
Test: VTS
Bug: 191105273
Change-Id: I73ba86b4f0c93d6467d5af5c430e374cb01435bc
2021-06-16 20:29:24 -07:00
David Drysdale
f0f6682ab5 Merge "VTS tests: check size of byte strings" am: 98949afb70
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1736653

Change-Id: I4d1f029a03d622afe304870c487aff95eabb7541
2021-06-16 07:32:21 +00:00
David Drysdale
24babae302 Merge "KeyMint VTS: extract full vendor patchlevel" am: 52ce52fb1e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1719301

Change-Id: I5d9f6370737ce7bcd1276c0ef0cc25609e0094f6
2021-06-16 07:31:26 +00:00
David Drysdale
98949afb70 Merge "VTS tests: check size of byte strings" 2021-06-16 07:17:53 +00:00
David Drysdale
52ce52fb1e Merge "KeyMint VTS: extract full vendor patchlevel" 2021-06-16 07:17:27 +00:00
Michael Butler
81663327b9 Merge "Simplify NNAPI SharedHandle -- hal" am: 12ec862f4a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1730974

Change-Id: I481070ae4bc9d236e04014a26db80ceb62e3bd76
2021-06-16 04:10:12 +00:00
Michael Butler
12ec862f4a Merge "Simplify NNAPI SharedHandle -- hal" 2021-06-16 02:30:31 +00:00
Eran Messeri
b2178bc9c9 Merge "Use TagType constants" am: 1e6730acec
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1737653

Change-Id: I1e0b0f485cc5fa11a5497e894a297b5140743008
2021-06-15 15:30:57 +00:00
Eran Messeri
1e6730acec Merge "Use TagType constants" 2021-06-15 15:13:51 +00:00
Eran Messeri
a5047720f0 Use TagType constants
Now that the aidl compiler supports it, use constants from TagType to
indicate the type of each tag, rather than duplicating the values of
the constants.

Test: atest VtsAidlKeyMintTargetTest
Bug: 183737811
Change-Id: Ie8af1f00d04fa05c59cfc72692caecbcf2fae483
2021-06-15 14:26:59 +01:00
David Drysdale
9c7fae7e81 KeyMint VTS: extract full vendor patchlevel
The vendor patchlevel is YYYYMMDD not YYYYMM

Bug: 188672564
Bug: 186735514
Test: VtsAidlKeyMintTargetTest
Change-Id: Ia641f8eef84a85aec8f2a0551c192b6874301126
2021-06-15 13:12:07 +01:00
Yomna Nasser
9cb8f92e2e Merge "Adds VTS test for setAllowedNetworkTypesBitmap" am: 8d1e7b9c7c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1729179

Change-Id: Iab90a2f8e978cb856fd198513faeba334b16f619
2021-06-14 23:06:05 +00:00
Marco Nelissen
49c79e3698 Merge "Increase test coverage" am: eecfd6e507
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1736164

Change-Id: I10acd21ffc8fa24ea7da4c0753061d4e9d846370
2021-06-14 23:05:13 +00:00
Yomna Nasser
8d1e7b9c7c Merge "Adds VTS test for setAllowedNetworkTypesBitmap" 2021-06-14 22:43:15 +00:00
Marco Nelissen
eecfd6e507 Merge "Increase test coverage" 2021-06-14 22:41:47 +00:00
Marco Nelissen
111feb10ca Increase test coverage
The VTS Gatekeeper tests never triggered a case where
GateKeeper::DoVerify() failed, so add a test that does that.

Bug: 160731903
Test: run test with instrumented build
Change-Id: Ibcc51371e496f893c18ed9e8cdc53dfef8f4e4ad
2021-06-14 11:29:21 -07:00
Eran Messeri
49f82b2558 Merge "Test validity of device-unique attestation chain" am: 14bb840731
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1730430

Change-Id: Ic5b9256e388ab03037ed4111c898843d9b1044d0
2021-06-14 11:30:37 +00:00
Eran Messeri
14bb840731 Merge "Test validity of device-unique attestation chain" 2021-06-14 11:14:12 +00:00
David Drysdale
fd1b38dc66 VTS tests: check size of byte strings
Bug: 181883620
Test: VtsAidlSecureClockTargetTest, VtsAidlSharedSecretTargetTest
Change-Id: I9ea8687e0c9e89140bcddfefcc2a6177c99b2e4d
2021-06-14 09:52:48 +01:00
Mikhail Naganov
188d6412b0 audio: Fix parsing of arguments in the APM config update script am: b9e244dfc7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1734893

Change-Id: Ieeac633e6b3034ed4e2c0da4704787116950c2c0
2021-06-11 21:54:36 +00:00
Mikhail Naganov
b9e244dfc7 audio: Fix parsing of arguments in the APM config update script
The regex for finding "-h[elp]" argument wasn't correct.
As a result, a file name containing "-h" would match.
Fix the regex by requiring that "-h" must appear at the
beginning of the line.

Test: h/i/audio/7.0/config/update_audio_policy_config.sh -h
Test: h/i/audio/7.0/config/update_audio_policy_config.sh -help
Test: h/i/audio/7.0/config/update_audio_policy_config.sh test-help.xml
Change-Id: Ibdf191e95baacc8600daa8b2f19ddc8338f182eb
2021-06-11 08:52:39 -07:00
Treehugger Robot
b358dd9da1 Merge "bluetooth.audio@2.1: add handle IsSessionReady for LE offload encoder" am: 05e6b870a4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1729161

Change-Id: I224390449b7aadced9c436e2081b688680dfa03d
2021-06-10 07:39:05 +00:00
Treehugger Robot
05e6b870a4 Merge "bluetooth.audio@2.1: add handle IsSessionReady for LE offload encoder" 2021-06-10 07:21:19 +00:00
David Drysdale
16d7e387a1 Merge "KeyMint: sync all attestation tags" am: ba8e44599c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1719302

Change-Id: I202ad313e7dd128d013f07924a49ece9183cfd76
2021-06-09 06:05:25 +00:00
David Drysdale
ba8e44599c Merge "KeyMint: sync all attestation tags" 2021-06-09 05:49:33 +00:00
Michael Butler
e52a77efaa Simplify NNAPI SharedHandle -- hal
Prior to this CL, the NNAPI represented SharedHandle as a collection of
file descriptors and a vector of ints to act as metadata. This struct
mirrored Android's native_handle_t. However, the NNAPI only uses
SharedHandle to hold a single file descriptor to hold a single cache
file.

A sibling CL simplifies the SharedHandle by changing it to be a single
ref-counted file descriptor. This CL makes changes to the HAL utility
code in response to the SharedHandle change.

Bug: N/A
Test: mma
Test: NeuralNetworksTest_static
Change-Id: Ib390ad76bcdadffd85f8c2c502189aaa7da483e4
2021-06-08 20:14:52 -07:00
Eran Messeri
cb238ffdad Test validity of device-unique attestation chain
Test the validity of the chain produced when device-unique attestation
is requested.

When the caller requests that the key attestation be signed using the
device-unique attestation key, the chain will look different than
a chain signed by the batch key (common case):
(1) The chain is exactly of length 2.
(2) The root is self-signed and is unique to the device.

Test that the chain is correctly signed in this change. The root is not
currently correctly self-signed, so don't test (2) yet.

Bug: 189425310
Bug: 187803288
Test: atest VtsHalKeymasterV4_1TargetTest:PerInstance/DeviceUniqueAttestationTest
Change-Id: I91578eb2b7588685cc86c467423e9394c3f3c262
2021-06-08 11:42:54 +01:00
Alice Kuo
6f3b351269 bluetooth.audio@2.1: add handle IsSessionReady for LE offload encoder
Bug: 150670922
Tag: #feature
Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest
Change-Id: I5d5ca0cb63b2801b3ad1351754ebd9f5da73ac1e
2021-06-08 17:47:23 +08:00
Yomna Nasser
079b9233b0 Adds VTS test for setAllowedNetworkTypesBitmap
Adds a VTS test for setAllowedNetworkTypesBitmap, the newly
defined HAL radio API.

Bug: b/190398554
Test: atest VtsHalRadioV1_6TargetTest

Change-Id: I1b7d85ddd70a2d116a3b54a10d168c20804f2524
Merged-In: I1b7d85ddd70a2d116a3b54a10d168c20804f2524
2021-06-07 22:21:54 +00:00
Jakub Pawlowski
560e842d71 bluetooth.audio@2.1: add internal HW offloading data path routing am: c8861ece90
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1724672

Change-Id: Ia5937d02049aea3b1840c05cc48a945ade94e444
2021-06-07 21:49:57 +00:00
Jakub Pawlowski
c8861ece90 bluetooth.audio@2.1: add internal HW offloading data path routing
Bug: 150670922
Tag: #feature
Test: vts-tradefed run vts -m VtsHalBluetoothAudioV2_1TargetTest
Change-Id: Id18b269a3a6ebcd56ba39158edc336c176cd2c16
2021-06-07 21:29:37 +00:00
Xusong Wang
6bd5b9bbd6 Test readonly request input in AIDL VTS. am: 378a93819b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1729571

Change-Id: I352a107c3dda288cbb58bf4d88e2bbd31118c17a
2021-06-07 21:21:48 +00:00
Xusong Wang
39bb7666ad Fix a bug in reusable burst execution. am: 5e0459576c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1729570

Change-Id: Ica707685590b243f5649ef752507fbb82d3d189e
2021-06-07 21:20:44 +00:00
Xusong Wang
378a93819b Test readonly request input in AIDL VTS.
This CL modifies the AIDL generated tests to use readonly memory pool
for request inputs.

Bug: 188104713
Test: VtsHalNeuralnetworksTargetTest
Change-Id: I9e62f1cdeb501bf29bcb9c56317a452c9105b272
Merged-In: I9e62f1cdeb501bf29bcb9c56317a452c9105b272
(cherry picked from commit dfc013adaa)
2021-06-07 11:25:54 -07:00
Xusong Wang
5e0459576c Fix a bug in reusable burst execution.
The reusable burst execution incorrectly holds a reference to memory
identifier tokens.

Bug: 188568523
Test: NNT_static and inspect logcat
Change-Id: Ic8fb8be12bf579a316e7df8480ab3ccdc5c0e635
Merged-In: Ic8fb8be12bf579a316e7df8480ab3ccdc5c0e635
(cherry picked from commit 2082b871ab)
2021-06-07 11:25:33 -07:00
David Drysdale
83b0b9a2fc Merge "KeyMint VTS: better early boot key tests" am: f3374d4237
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1719303

Change-Id: I26a928e5603c91b8737c1ff797cd0dd2a890a890
2021-06-07 16:23:52 +00:00
David Drysdale
f3374d4237 Merge "KeyMint VTS: better early boot key tests" 2021-06-07 16:05:23 +00:00
David Drysdale
93c72cef92 KeyMint: sync all attestation tags
Get description of ASN.1 schema in HAL and the keymint support library
in sync with each other.  Change code to always list tags in the same
order (by numeric tag).

Bug: 188672564
Bug: 186735514
Test: VtsAidlKeyMintTargetTest
Change-Id: I620f54ba4a265ea69d174f6f44765a8508bfe803
2021-06-07 13:46:49 +01:00
Treehugger Robot
f5eb250c29 Merge "Improve unique attestation docs & tests" am: 0872e42bec
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1719304

Change-Id: I429c8c7833d63a43c96af862ff71beb7f881c8bb
2021-06-07 11:36:55 +00:00
Treehugger Robot
0872e42bec Merge "Improve unique attestation docs & tests" 2021-06-07 11:22:48 +00:00
Bruno Demartino
971a412edb Merge "broadcastradio@2.0 VTS uses DAB frequency invalid in some regions" am: b49e67dca7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1722752

Change-Id: I4e4f1edf8b197be00999a21acca8df3d4bcdf66a
2021-06-07 11:08:25 +00:00
Bruno Demartino
b49e67dca7 Merge "broadcastradio@2.0 VTS uses DAB frequency invalid in some regions" 2021-06-07 10:48:04 +00:00
Jan Kowal
7aa628d4de broadcastradio@2.0 VTS uses DAB frequency invalid in some regions
DAB frequency 178352kHz hardcoded in the test is used in EU region
(channel 5C) but it is not valid in others (e.g. Korea and China).

Therefore DabTune test was modified to use one of supported
frequencies reported via getDabRegionConfig method.

Test: run VtsHalBroadcastradioV2_0TargetTest on hardware units
configured for Europe, China and Korea DAB tuner regions.

Bug: b/190136847

Change-Id: Icd71e42a9242528465ac1358465d8b6d6d4896bf
2021-06-07 06:17:14 +00:00
Sarah Chin
78647cdbd2 Merge "Update test to TEST_P" am: ecb916bae2
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1727510

Change-Id: Id8e14d6b16f277b70a0ec13e121779f2a0f8110f
2021-06-04 18:57:45 +00:00
Sarah Chin
ecb916bae2 Merge "Update test to TEST_P" 2021-06-04 18:38:38 +00:00