Commit Graph

32966 Commits

Author SHA1 Message Date
Treehugger Robot
8656a87385 Merge "In supplicant VTS test setup, make sure that the wifi hal is stopped before starting wifi." into android12-tests-dev am: e6c80028af
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2128497

Change-Id: I9e39d4ed48c0dc653a9ee312021e6e80e351fe00
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-29 03:08:47 +00:00
Treehugger Robot
e6c80028af Merge "In supplicant VTS test setup, make sure that the wifi hal is stopped before starting wifi." into android12-tests-dev 2022-06-29 02:56:21 +00:00
Treehugger Robot
b22f548965 [automerger skipped] [conflict] Merge "vts: fix some tunerhal vts fail without frontend device" into android11-tests-dev am: 6807799ad9 am: 88b7c10cd8 -s ours
am skip reason: skipped by user hgchen

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

Change-Id: I27bdf1d5450ba0599e235fa292ef18ad4bcb0ed5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-23 03:00:47 +00:00
Treehugger Robot
88b7c10cd8 [conflict] Merge "vts: fix some tunerhal vts fail without frontend device" into android11-tests-dev am: 6807799ad9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2003730

Change-Id: I5993b88b7d0831c9b95adfc50ebe501215f40498
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 00:03:16 +00:00
Treehugger Robot
6807799ad9 Merge "vts: fix some tunerhal vts fail without frontend device" into android11-tests-dev 2022-06-18 01:05:53 +00:00
Gabriel Biren
9ea484ffc0 In supplicant VTS test setup, make sure that the
wifi hal is stopped before starting wifi.

Bug: 234853504
Test: atest VtsHalWifiSupplicantV1_0TargetTest # HIDL service
Change-Id: I413c3803a6607a72cc3aa8a5fa208551be1b1032
(cherry picked from commit bfe60cda4d)
2022-06-16 18:01:15 +00:00
David Drysdale
3803a10f9b [conflict] Merge "KeyMint VTS: cope with ATTEST_KEY +/- SIGN" into android12-tests-dev am: bbecb4563f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2117528

Change-Id: I7d5a6e121c3dc1a73382713ef4af9d6ae08ae887
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-16 10:07:17 +00:00
David Drysdale
bbecb4563f Merge "KeyMint VTS: cope with ATTEST_KEY +/- SIGN" into android12-tests-dev 2022-06-16 09:46:37 +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
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
ead5f3e7a5 KeyMint VTS: cope with ATTEST_KEY +/- SIGN
This change is a back-port of http://aosp/1877245 but adapted to allow
for devices that passed the original (but incorrect) version of the VTS
tests.

Bug: 197096139
Bug: 230074335
Test: VtsAidlKeyMintTargetTest
Change-Id: I447e6dc9dc049922725160c48c2406d79a8cffb5
2022-06-06 18:23:04 +01: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
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
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
Mikhail Naganov
f28b308502 VTSHalAudio: Increase test timeout for V6 to 10 minutes am: 2f7d57651a am: bb3b37ec0f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2072111

Change-Id: Ie320a3cc82d4c34834fdb6527f3e5ab4c83e0edb
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 08:21:25 +00:00
Mikhail Naganov
debaac6c18 VTSHalAudio: Increase test timeout for V6, V7.x to 10 minutes am: 3664aad2ac
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2072110

Change-Id: Ib8b4292b5d6238c08df39559f07ecf8c7aea9d20
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 08:21:17 +00:00
Mikhail Naganov
bb3b37ec0f VTSHalAudio: Increase test timeout for V6 to 10 minutes am: 2f7d57651a
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2072111

Change-Id: I7e87765dda2bff174a743940a486aa7b83896e67
Ignore-AOSP-First: this is an automerge
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-25 08:21:13 +00:00
Mikhail Naganov
2f7d57651a VTSHalAudio: Increase test timeout for V6 to 10 minutes
TV devices can list a lot of configurations and have low
performing CPUs which causes the test to run for a significant
amount of time. From b/229824670 it seems that 10 minutes
should be enough.

Bug: 229824670
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: Id7fa8eaa98bf2437fd1f676b9e5a7290df260fbd
(cherry picked from commit 0b9b03eb71)
2022-04-22 01:06:09 +00:00
Mikhail Naganov
3664aad2ac VTSHalAudio: Increase test timeout for V6, V7.x to 10 minutes
TV devices can list a lot of configurations and have low
performing CPUs which causes the test to run for a significant
amount of time. From b/229824670 it seems that 10 minutes
should be enough.

Bug: 229824670
Test: atest VtsHalAudioV6_0TargetTest
Test: atest VtsHalAudioV7_0TargetTest
Change-Id: Id7fa8eaa98bf2437fd1f676b9e5a7290df260fbd
(cherry picked from commit 0b9b03eb71)
2022-04-22 01:04:23 +00:00
Xin Li
a74294fe1f Mark ab/8389834 as merged
Bug: 188847863
Merged-In: I890f54f80ff3aca3dcb2c51f20db087d453c2927
Change-Id: Ibd61ea9f788323943ab852a5f8d3f01cb662e7f9
2022-04-01 00:16:12 -07:00
Sneh Bansal
cefd18a941 VTS: Check for "ro.board.first_api_level" in GetBarringInfo()
Some GRF targets launched with S release do not support getBarringInfo()
API.

Check "ro.board.first_api_level" also to return from the test-case
when the response is REQUEST_NOT_SUPPORTED.

Bug: 226017947
Bug: 212384410
Merged-In: I890f54f80ff3aca3dcb2c51f20db087d453c2927
Change-Id: I890f54f80ff3aca3dcb2c51f20db087d453c2927
(cherry picked from commit becb08fac0)
(cherry picked from commit abf00a9309)
2022-03-24 16:58:33 +00:00
junchao yuan
4a9941d7a6 vts: fix some tunerhal vts fail without frontend device
PD#OTT-27646
bug:222020221

Problem:
some tunerhal vts fail without frontend device

Solution:
fix some logic errors without frontend device

verify:
ohm

Change-Id: I611a81400eb21bb52d59281f2266f3a95e015de9
Signed-off-by: junchao yuan <junchao.yuan@amlogic.com>
2022-03-01 16:32:59 +08:00
Yu-Han Yang
c78a2efe33 Fill signalType in GnssClock.referenceSignalTypeForIsb
Test: atest VtsHalGnssTargetTest
Bug: 218923798
Change-Id: I365c12de20684d64431fe4cfd8696e25fa76c0d3
2022-02-11 23:05:20 +00:00
Karthik Ramakrishnan
0dc66a2c69 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
Test: run vts -m VtsHalBluetoothV1_0TargetTest
          -t PerInstance/BluetoothHidlTest#InitializeAndClose/0_default
Change-Id: Ica83f4959a87b8fb498b535572738e4e790c6ddb
2022-02-07 17:37:39 -08:00
David Gross
3b85d64570 Merge changes from topic "fl7-test" into android12-tests-dev
* changes:
  FL7: Refine MIRROR_PAD specification
  FL7: Refine REVERSE specification
  FL7: Add some AIDL_V3 test infrastructure
  Freeze neuralnetworks AIDL version as v3 for FL7
  Add NNAPI specification and infrastructure for FL7.
2022-01-31 23:25:32 +00:00
Mikhail Naganov
8a76d40f99 VTSHalAudio: Increase test timeout for V6 and V7
V6 and V7 use actual device audio configuration
when testing I/O streams functionality. On low-end
TV devices this can cause the test to run for
significant time due to lower CPU speed and the
amount of multichannel configurations.

From testing on real devices, the timeout value
of 5 minutes seems to be adequate.

Bug: 211945822
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: Ie233e014f9f3650f58319c4d5f5a836cfdea87ba
(cherry picked from commit 57633e5a78)
Merged-In: Ie233e014f9f3650f58319c4d5f5a836cfdea87ba
2022-01-25 01:43:38 +00:00
Mikhail Naganov
a84a1266bf VTSHalAudio: Increase test timeout for V6 and V7
V6 and V7 use actual device audio configuration
when testing I/O streams functionality. On low-end
TV devices this can cause the test to run for
significant time due to lower CPU speed and the
amount of multichannel configurations.

From testing on real devices, the timeout value
of 5 minutes seems to be adequate.

Bug: 211945822
Test: atest VtsHalAudioV6_0TargetTest
Change-Id: Ie233e014f9f3650f58319c4d5f5a836cfdea87ba
(cherry picked from commit 57633e5a78)
2022-01-24 18:21:02 +00:00
David Gross
810aaa0a8d FL7: Refine MIRROR_PAD specification
Test: N/A

Bug: 202280925
Merged-In: If19d45d806f6ba33f9aa6c7af9bc411957cdc706
Change-Id: If19d45d806f6ba33f9aa6c7af9bc411957cdc706
(cherry picked from commit 4718025a6c)
2022-01-19 14:27:06 -08:00
David Gross
146b38685a FL7: Refine REVERSE specification
Test: N/A

Bug: 202280925

Merged-In: Iae1f177254023c750c701e6594a61f3958de538c
Change-Id: Iae1f177254023c750c701e6594a61f3958de538c
(cherry picked from commit 91a30c1cea)
2022-01-19 14:27:06 -08:00
David Gross
da4682aa6f FL7: Add some AIDL_V3 test infrastructure
Test: atest VtsHalNeuralnetworksTargetTest -- --test-arg com.android.tradefed.testtype.GTest:native-test-flag:"--gtest_filter=*abs*:*floor*:*log*:*rsqrt*:*sin*:*sqrt*"

Bug: 202280925
Merged-In: I848add0ddb94e1500a5d4d6af5d51ddf5ebba045
Change-Id: I848add0ddb94e1500a5d4d6af5d51ddf5ebba045
(cherry picked from commit 8e9fbfc592)
2022-01-19 14:27:05 -08:00
David Gross
061d3411c8 Freeze neuralnetworks AIDL version as v3 for FL7
$ m android.hardware.neuralnetworks-update-api
$ m android.hardware.neuralnetworks-freeze-api

(This cherry pick required hand editing to ensure makefile
references are changed from
android.hardware.neuralnetworks-V2-ndk_platform to
android.hardware.neuralnetworks-V3-ndk_platform.)

Bug: 202280925

Test: adb shell NeuralNetworksTest_static
Test: atest VtsHalNeuralnetworksTargetTest
Merged-In: I2b2755d7376bb847b15b395e280bf352b5b9ef55
Change-Id: I2b2755d7376bb847b15b395e280bf352b5b9ef55
(cherry picked from commit 68e4300c72)
2022-01-19 14:26:19 -08:00
David Gross
88ec0799db Add NNAPI specification and infrastructure for FL7.
Adds operations MIRROR_PAD and REVERSE.
Extends RSQRT to support QUANT8_ASYMM and QUANT8_ASYMM_SIGNED.

DOES NOT include tests or CPU reference implementation.

(This is a slightly non-trivial cherry pick that had to be
hand-edited to compensate for the fact that certain nn::Version
changes and makefile restructurings are absent from the target branch.)

Bug: 202280917

Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksTargetTest

Merged-In: I0b2133346b996849faac00c46885e3633c78f024
Change-Id: I0b2133346b996849faac00c46885e3633c78f024
(cherry picked from commit 04ed8595b5)
2022-01-19 14:20:48 -08:00
Shuzhen Wang
2b2846855f Camera: VTS: Remove GRF MultiCamera for Android 12
Certain OEMs' new S launches with vendor freeze cannot implement
multi-camera API.

Bug: 189053514
Bug: 211709637
Change-Id: I71b46f1e8343a5848cbe3fa55bbcd427c87b05dd
(cherry picked from commit 30a198ded0)
2022-01-19 19:28:45 +00:00
Shuzhen Wang
30a198ded0 Camera: VTS: Remove GRF MultiCamera for Android 12
Certain OEMs' new S launches with vendor freeze cannot implement
multi-camera API.

Bug: 189053514
Bug: 211709637
Change-Id: I71b46f1e8343a5848cbe3fa55bbcd427c87b05dd
2022-01-19 00:39:08 +00:00
Kalesh Singh
4847855f2b Allow atrace hal tracefs access
Add atrace hal to the readtracefs group

Bug: 214591300
Test: adb shell perfetto (Use config with atrace_categories)
Change-Id: Id9e06f88539b59480d5cf57a4ba67cef4676c1d5
Merged-In: Id9e06f88539b59480d5cf57a4ba67cef4676c1d5
2022-01-14 23:43:08 +00:00
Sneh Bansal
abf00a9309 VTS: Check for "ro.board.first_api_level" in GetBarringInfo()
Some GRF targets launched with S release do not support getBarringInfo()
API.

Check "ro.board.first_api_level" also to return from the test-case
when the response is REQUEST_NOT_SUPPORTED.

Bug: 212384410
Merged-In: I890f54f80ff3aca3dcb2c51f20db087d453c2927
Change-Id: I890f54f80ff3aca3dcb2c51f20db087d453c2927
(cherry picked from commit becb08fac0)
2022-01-13 22:32:33 +00:00
Ian Hua
2d2c69d21f Merge changes from topic "nnapi-fl6-android12-vts" into android12-tests-dev
* changes:
  Freeze neuralnetworks AIDL version as v2 for FL6
  Add FL6 spec tests to AIDL VTS.
  Add PACK operation to NNAPI feature level 6.
  AIDL interface changes for NNAPI feature level 6.
2022-01-11 19:08:18 +00:00
Kui1 Wu
df417d2808 fix VtsHalGraphicsComposerV2_2TargetTest timeout failed
run VtsHalGraphicsComposerV2_2TargetTest will timeout failed
when there is dual displays. use `std::unordered_set` Display type,
`std::vector<Display>(mDisplays.begin(), mDisplays.end())` as
getDisplays return value, mDisplays elements order may not be
same as the order of hotplug events during boot matters.
We should store `mDisplays` as `std::vector`, since the order of
hotplug events during boot matters in determining the primary display.

Bug: 209409863
Test: run vts -m VtsHalGraphicsComposerV2_2TargetTest

Signed-off-by: Kui1 Wu <wukui1@xiaomi.com>
Change-Id: I628ad593640f28fb8a916822a91ac2c578cc299d
2022-01-05 21:18:51 +00:00
Shinru Han
7ed10b0839 Allow negative value for CorrelationVector#samplingStartM
Bug: 195934893
Test: on cuttlefish
Change-Id: Ief1514c8d8e48c9c3f13b93c3d2c355a508a84a7
2021-12-27 12:25:10 +08:00
Treehugger Robot
41ab883603 Merge "Config the number of live modems based on current multisim number." into android12-tests-dev 2021-12-22 23:31:53 +00:00
Treehugger Robot
c3eafbf1b3 Merge "Merge "VTS: fix some logic errors for tuner HAL vts [1/1]" into android11-tests-dev am: 0638fc1ede" into android12-tests-dev 2021-12-20 22:33:03 +00:00
Treehugger Robot
1b1c772ac6 Merge "fix VtsHalGraphicsComposerV2_2TargetTest timeout failed" into android12-tests-dev 2021-12-20 18:28:33 +00:00
Treehugger Robot
3595647dfd Merge "VTS: fix some logic errors for tuner HAL vts [1/1]" into android11-tests-dev am: 0638fc1ede
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1919318

Change-Id: Ida7b10a22c9c72ac9bc0fffc97750aaf27860fd7
2021-12-17 00:51:00 +00:00