Commit graph

32953 commits

Author SHA1 Message Date
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
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
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
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
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
Treehugger Robot
0638fc1ede Merge "VTS: fix some logic errors for tuner HAL vts [1/1]" into android11-tests-dev 2021-12-17 00:13:54 +00:00
Seongho Kim
41a7f94f87 Cherry pick "Gate gsm/cdma radio feature only for emergency dial" sc-v2-dev
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1908681

Bug: 207920538
Change-Id: I4eb369495d27e697679ecb3d4381f0b3e0cef758
Merged-In: I388bc51e58b5680b5b5c806d88a338822af0c8a7
2021-12-15 22:41:41 +00:00
Kui1 Wu
98ae3eea83 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
2021-12-15 00:40:08 +00:00
Shuo Qian
35f07a4486 [automerger skipped] Skip slot 2 for other radio modules in single sim mode am: 5779890fd8 -s ours
am skip reason: Merged-In Idc115954c8ccb26a6127a80d466f22559be641d2 with SHA-1 c6a7143b1d is already in history

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

Change-Id: Ieb507f4d4fdff7fa0e490aa2dde90ed031be16c6
2021-12-14 23:42:28 +00:00
Treehugger Robot
5f24adc5a5 Merge "Gate gsm/cdma radio feature only for emergency dial" into android12-tests-dev 2021-12-14 22:10:10 +00:00
Shuo Qian
dc58ca4d2a Config the number of live modems based on current multisim number.
Test: atest VtsHalRadioConfigV1_1TargetTest
Bug: 200889748
Change-Id: If2aca6add38b801be011797c1da4c8de32f1bef6
Merged-In: If2aca6add38b801be011797c1da4c8de32f1bef6
(cherry picked from commit 400ce4ff76)
(cherry picked from commit b96b0ec884)
2021-12-14 05:30:40 +00:00
Treehugger Robot
b32e0230e2 [automerger skipped] Merge "Skip tests for single SIM devices" into android11-tests-dev am: 67103c0820 -s ours
am skip reason: Merged-In Ib634b22dd75f10e5059c9482764ca481184162be with SHA-1 efb934b15a is already in history

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

Change-Id: I0f85b9f64c6c3215cf72a5c156058f883ae443d3
2021-12-13 23:56:10 +00:00
Treehugger Robot
9f41d8ef6d [automerger skipped] Merge "Skip Slot 2 in Radio VTS 1.0 in single sim mode" into android11-tests-dev am: 4df09daad9 -s ours
am skip reason: Merged-In If296df349aa7f87932f5bb24896f0a3fdd347f5d with SHA-1 6a56b7fa87 is already in history

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

Change-Id: I3834f0593d88fed8ddde2209a86cd1dbb4d0d2ea
2021-12-13 23:56:08 +00:00
Shuo Qian
5779890fd8 Skip slot 2 for other radio modules in single sim mode
Bug: 199986032
Test: atest
Change-Id: Idc115954c8ccb26a6127a80d466f22559be641d2
Merged-In: Idc115954c8ccb26a6127a80d466f22559be641d2
(cherry picked from commit c6a7143b1d)
(cherry picked from commit 07f1c21f4a)
2021-12-13 23:44:18 +00:00
Treehugger Robot
67103c0820 Merge "Skip tests for single SIM devices" into android11-tests-dev 2021-12-13 23:39:36 +00:00
Treehugger Robot
4df09daad9 Merge "Skip Slot 2 in Radio VTS 1.0 in single sim mode" into android11-tests-dev 2021-12-13 23:39:36 +00:00
junchao yuan
663ca1abbf VTS: fix some logic errors for tuner HAL vts [1/1]
PD#SWPL-64015
bug#208191849

Problem:
tuner HAL vts test fail

Solution:
fix  text frequency:
fix  test start dvr playback logic error;

Verify:
Verify ohm
Bug: 208191849
Change-Id: I6376b7c1a6a6ea41fc73337e572e489999b6593f
Signed-off-by: junchao yuan <junchao.yuan@amlogic.com>
2021-12-13 19:46:42 +00:00
Seongho Kim
82a892c110 Gate gsm/cdma radio feature only for emergency dial
Test: vts
Bug: 207920538
Signed-off-by: Seongho Kim <sh_tiger.kim@samsung.com>
Change-Id: I388bc51e58b5680b5b5c806d88a338822af0c8a7
Merged-In: I388bc51e58b5680b5b5c806d88a338822af0c8a7
(cherry picked from commit a0b33745b5)
2021-12-13 18:54:31 +00:00