Commit graph

42367 commits

Author SHA1 Message Date
Michael Butler
082cefe340 Add additional bounds checks to NNAPI FMQ deserialize utility functions
This CL adds the following additional bounds checks:
* Adds additional checks of the index of the std::vector before
  accessing the element at the index
* Changes the array index operator [] to the checked std::vector::at
  method

Bug: 256589724
Test: mma
Merged-In: I6bfb02a5cd76258284cc4d797a4508b21e672c4b
Change-Id: I6bfb02a5cd76258284cc4d797a4508b21e672c4b
2022-12-05 20:24:13 +00:00
Michael Butler
4668f30dcf Add additional bounds checks to NNAPI FMQ deserialize utility functions
This CL adds the following additional bounds checks:
* Adds additional checks of the index of the std::vector before
  accessing the element at the index
* Changes the array index operator [] to the checked std::vector::at
  method

Bug: 256589724
Test: mma
Merged-In: I6bfb02a5cd76258284cc4d797a4508b21e672c4b
Change-Id: I6bfb02a5cd76258284cc4d797a4508b21e672c4b
2022-12-05 20:24:09 +00:00
Michael Butler
7a9e483f4b Add additional bounds checks to NNAPI FMQ deserialize utility functions
This CL adds the following additional bounds checks:
* Adds additional checks of the index of the std::vector before
  accessing the element at the index
* Changes the array index operator [] to the checked std::vector::at
  method

Bug: 256589724
Test: mma
Merged-In: I6bfb02a5cd76258284cc4d797a4508b21e672c4b
Change-Id: I6bfb02a5cd76258284cc4d797a4508b21e672c4b
2022-12-05 20:24:05 +00:00
Changyeon Jo
017cb98ee9 Fix how displays are used in test cases
Open and close the display for each camera instance.

Bug: 259449376
Test: atest VtsHalEvsTargetTest VtsHalEvsV1_1TargetTest
Change-Id: I0f3d2c0b2c9f8a5e527d0abd5c9b248c84dddfbb
2022-12-04 08:17:44 +00:00
ziyiw
0891de19e6 Add supported maximum number of ranging session as capability.
Test: compile
Bug: 259493075
Change-Id: Ibe7edb84c968b70be62059bb0bb6ffeedfa4bad6
2022-12-01 19:37:32 +00:00
Mikhail Naganov
715b8ec2c5 audio VTS: Use 'IN_DEFAULT' device type for telephony
This undoes the change which had happened unintentionally in
https://cs.android.com/android/_/android/platform/hardware/ \
interfaces/+/1e703f182e2fcbb9123bf661d81d22a04d0e1f8d

The device type passed to 'openInputStream' for telephony
devices should be 'AUDIO_DEVICE_IN_DEFAULT'

Bug: 259636577
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: Ic8f4367961346b87087c885a3cdaccab3c1407c9
(cherry picked from commit d72b42d769)
2022-11-30 17:15:34 +00:00
Midas Chien
1120a6f78c composer: vts: configure layer for DisplayDecoration
Some HW may not support crop function for decoration and current API
can't query this capability. Configure decoration layer to full screen
to avoid this limitation.

Bug: 225765061
Bug: 259505289
Test: VtsHalGraphicsComposer3_TargetTest
--gtest_filter=*DisplayDecoration*

Change-Id: If47154adf9d48f9c1b8390b4bee090d8bf40ff3b
(cherry picked from commit 7d55d4269d)
Merged-In: If47154adf9d48f9c1b8390b4bee090d8bf40ff3b
(cherry picked from commit 308f4ac906)
Merged-In: If47154adf9d48f9c1b8390b4bee090d8bf40ff3b
2022-11-22 18:06:39 +08:00
Zhanghao Wen
35eb2ae4da Update Cuttlefish mock GNSS hardware model name am: 08e0d7dfb0
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/20489237

Change-Id: Ie000a5aca7e0aa0d14e02f82690a78c3f8f1808c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-17 19:23:26 +00:00
Zhanghao Wen
08e0d7dfb0 Update Cuttlefish mock GNSS hardware model name
Test: atest GnssHardwareInfoTest
Bug: 258680584

Change-Id: I17c877848aee4b607cd0d798e7c91a1987fd6286
Merged-In: I17c877848aee4b607cd0d798e7c91a1987fd6286
2022-11-16 20:01:34 +00:00
Treehugger Robot
e37ff34514 Merge "audio: Fix HAL reply handling in CompressedOffloadOutputStreamTest" into android13-tests-dev 2022-11-15 00:29:39 +00:00
ziyiw
f5535531e7 Add a new capability to indcate min slot duration.
Test: compile
Bug: 254655623
Change-Id: Icac53069ddc61bbd60049880119973f1b4b0286d
2022-11-09 21:53:38 +00:00
Mikhail Naganov
5f5827a171 audio: Fix HAL reply handling in CompressedOffloadOutputStreamTest
Increase data position based on the HAL consumption of data,
on the production by the test.

Bug: 254806348
Test: atest VtsHalAudioV7_1TargetTest:CompressedOffloadOutputStream/CompressedOffloadOutputStreamTest
Change-Id: I33a86ec62662ba4738c70c15b77ece0135da7d29
(cherry picked from commit bae409f6c6)
2022-11-09 19:36:58 +00:00
Zhang Yuan
50f12068b8 Adding DSDA configuration for VTS.
Some of the devices which supports DSDA configuration is failing with IRadioConfig.setSimSlotsMapping() VTS. Hence improving the Test case to support.
Test: atest VtsHalRadioTargetTest
Bug: 253337352

Change-Id: I66314124dbf410d8344025aa45529652e126368a
2022-11-09 15:21:12 +00:00
Gabriel Biren
590248f68e Add a null pointer check for wifi_chip in am: 4e6349240e am: 26b625704e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2279026

Change-Id: I3a56d4c73b2c3c40dfb650a32cd431f414b4ba7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-05 07:13:36 +00:00
Gabriel Biren
26b625704e Add a null pointer check for wifi_chip in am: 4e6349240e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2279026

Change-Id: Ia67f4b0cca7ea6f5f55ce3857fd2c9df3169d4dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-11-05 06:45:11 +00:00
Gabriel Biren
4e6349240e Add a null pointer check for wifi_chip in
configureChipToSupportIfaceTypeInternal.

Bug: 253411345
Test: atest VtsHalHostapdTargetTest
Change-Id: Ieb6de7311de8d98742e302b35196bee7fa7661ed
(cherry picked from commit b1c2d07e4e)
2022-10-31 22:09:14 +00:00
Henry Fang
176236cee0 [automerger skipped] Merge "Fix tunerhal vts feId uninitialized on getFrontendIdByType" into android11-tests-dev am: 40087f64c5 am: d8a70b00c6 -s ours am: 810da2daeb -s ours
am skip reason: skipped by user quxiangfang

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

Change-Id: I6d9e380e3d938e5adf0d12ef2c8c2aa0abf74d54
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-25 19:57:22 +00:00
Henry Fang
810da2daeb [automerger skipped] Merge "Fix tunerhal vts feId uninitialized on getFrontendIdByType" into android11-tests-dev am: 40087f64c5 am: d8a70b00c6 -s ours
am skip reason: skipped by user quxiangfang

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

Change-Id: Ibfe8f62c8821d3e860e0b0dc2e2610d8be14127a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-25 19:41:16 +00:00
Henry Fang
d8a70b00c6 Merge "Fix tunerhal vts feId uninitialized on getFrontendIdByType" into android11-tests-dev am: 40087f64c5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2235855

Change-Id: I5984bcb9f4ba77cdd3deba87beaea43aaedd3a72
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-25 17:05:55 +00:00
Henry Fang
40087f64c5 Merge "Fix tunerhal vts feId uninitialized on getFrontendIdByType" into android11-tests-dev 2022-10-25 16:47:05 +00:00
Yu-Han Yang
25cd9d67d5 Call close() in TearDown()
Bug: 251580081
Test: atest VtsHalGnssTargetTest
Change-Id: Ieb02205f434899f7e9c5db32cfa7172788c39fa6
2022-10-14 23:14:58 +00:00
cmlin0118
5b9ba198ec Fix tunerhal vts feId uninitialized on getFrontendIdByType
Problem: FeId uninitialized on getFrontendIdByType
Solution: Initializ feId
Test: run vts -m VtsHalTvTunerV1_0TargetTest
Bug: 248472007
Change-Id: I373c49cf0a105869743be7f2c0737b4f5b30ae26
2022-10-14 14:52:26 +08:00
Treehugger Robot
9604eb65fe Merge "Update Bluetoot Audio HAL Target Test" into android13-tests-dev 2022-09-29 21:29:35 +00:00
Treehugger Robot
72bf300aec [automerger skipped] Merge "tunerhal:set default frontend to DVBS [1/1]" into android11-tests-dev am: 81022732af -s ours am: 4f3ac4267d -s ours am: d13527a33e -s ours
am skip reason: skipped by user quxiangfang

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

Change-Id: Ib4055077df5e87a74c9ee12dc6b641d4f9d6b8c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-29 01:38:22 +00:00
Treehugger Robot
d13527a33e [automerger skipped] Merge "tunerhal:set default frontend to DVBS [1/1]" into android11-tests-dev am: 81022732af -s ours am: 4f3ac4267d -s ours
am skip reason: skipped by user quxiangfang

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

Change-Id: I7a07d40a9febf29eea94761262822916e530ce47
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-29 01:24:02 +00:00
Treehugger Robot
4f3ac4267d [automerger skipped] Merge "tunerhal:set default frontend to DVBS [1/1]" into android11-tests-dev am: 81022732af -s ours
am skip reason: skipped by user quxiangfang

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

Change-Id: I143fbd025bc19d7cb27e7cacc773864d7ae2a8f9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-29 00:54:53 +00:00
shihchienc
fecec8626d Update Bluetoot Audio HAL Target Test
Since we change the design of loading LE Audio Capabilities in BT
Audio HAL, we update the VTS test to make sure no matter a device
supports LE Audio Offload or not, it can pass all tests that they
should pass.
Also, update vts test to match C++ coding style.

Bug: 248181252
Test: atest VtsHalBluetoothAudioTargetTest
Change-Id: Ie46c86663e0a22627c324f96360063cd4d4874e4
(cherry picked from commit 3ab9f5e2f0)
2022-09-28 22:12:29 +00:00
kongchenrui
7549241c15 Fix the problem that the data field of Entry in the verifyLogicalOrUltraHighResCameraMetadata function is empty
The reason for this problem is: local variables are used when saving
PhysicalCameraCharacteristics. When its life cycle ends, physChars will
be released. Since Entry uses a pointer, data will be null. So physChars
should be defined outside else to ensure that physChars is not released
during use

Bug: 248221707
Test: VtsHalCameraProviderV2_4TargetTest
Test: VtsAidlHalCameraProvider_TargetTest
Signed-off-by: kongchenrui <kongchenrui@xiaomi.com>
Change-Id: I4c05e695d255f210f310f8ce78ec2fa71a42cee9
2022-09-28 20:35:55 +00:00
Treehugger Robot
81022732af Merge "tunerhal:set default frontend to DVBS [1/1]" into android11-tests-dev 2022-09-28 01:54:02 +00:00
Treehugger Robot
e3cba937c4 [automerger skipped] Merge "Sync audio_policy_engine_configuration.xsd with the SDK" into android12-tests-dev am: 7146592275 -s ours am: c4cbaa651e -s ours
am skip reason: Merged-In I0161ddb33e52cbca9b425c0cbb4f32f320c43af4 with SHA-1 7443e2f547 is already in history

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

Change-Id: I9256574d7355956923e92b7b11b45943ea7d7c61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-24 02:37:34 +00:00
Mikhail Naganov
d853e915a3 [automerger skipped] Sync audio_policy_engine_configuration.xsd with the SDK am: 9f348454e1 -s ours am: cf8fefbec3 -s ours
am skip reason: Merged-In I0161ddb33e52cbca9b425c0cbb4f32f320c43af4 with SHA-1 7443e2f547 is already in history

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

Change-Id: I0c220c2df72cba41c78bb67cd6da32790b461c94
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-24 02:37:32 +00:00
Treehugger Robot
c4cbaa651e [automerger skipped] Merge "Sync audio_policy_engine_configuration.xsd with the SDK" into android12-tests-dev am: 7146592275 -s ours
am skip reason: Merged-In I0161ddb33e52cbca9b425c0cbb4f32f320c43af4 with SHA-1 7443e2f547 is already in history

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

Change-Id: I15460751581dcd365706f73f5db83a149080cb8f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-24 02:11:53 +00:00
Mikhail Naganov
cf8fefbec3 [automerger skipped] Sync audio_policy_engine_configuration.xsd with the SDK am: 9f348454e1 -s ours
am skip reason: Merged-In I0161ddb33e52cbca9b425c0cbb4f32f320c43af4 with SHA-1 7443e2f547 is already in history

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

Change-Id: Ibe3484b8b67c40ae0aeb8e8c7454d999a34426e5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-24 02:11:51 +00:00
Treehugger Robot
7146592275 Merge "Sync audio_policy_engine_configuration.xsd with the SDK" into android12-tests-dev 2022-09-24 01:45:08 +00:00
Mikhail Naganov
43c79660f1 [automerger skipped] Sync audio_policy_engine_configuration.xsd with the SDK am: 7443e2f547 am: 47365bb990 -s ours am: 4d374f0f09 -s ours
am skip reason: Merged-In I0161ddb33e52cbca9b425c0cbb4f32f320c43af4 with SHA-1 7ac8751b9f is already in history

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

Change-Id: Icc62c48e53732d29f703f837bad514c69f52f8f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 17:35:34 +00:00
Mikhail Naganov
4d374f0f09 [automerger skipped] Sync audio_policy_engine_configuration.xsd with the SDK am: 7443e2f547 am: 47365bb990 -s ours
am skip reason: Merged-In I0161ddb33e52cbca9b425c0cbb4f32f320c43af4 with SHA-1 7ac8751b9f is already in history

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

Change-Id: I85521b8de1853cfc18e70fd778f79cc4ab1a21e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 17:08:45 +00:00
Mikhail Naganov
47365bb990 Sync audio_policy_engine_configuration.xsd with the SDK am: 7443e2f547
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2225423

Change-Id: I816fd76d13635b491c0911fe4ee6cd30a584bcd2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 16:38:42 +00:00
Treehugger Robot
8c30d250cc Merge "Sync audio_policy_engine_configuration.xsd with the SDK" into android13-tests-dev 2022-09-23 16:15:24 +00:00
junchao yuan
ab5c449227 tunerhal:set default frontend to DVBS [1/1]
bug:239667706

Problem:
test tunerhal vts fail with DVBS;

Solution:
set defualt frontend to DVBS;

Verify:
s905X4/ohm

Change-Id: I79386738783309b917ec5cff89c48b2bdc99bd7c
2022-09-23 01:49:46 +00:00
Mikhail Naganov
0919b1abcd Sync audio_policy_engine_configuration.xsd with the SDK am: 7ac8751b9f
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2225420

Change-Id: Id136e4b17cb083dd13aa67ed4d6e25dd3a4b3877
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-23 00:01:25 +00:00
Mikhail Naganov
7443e2f547 Sync audio_policy_engine_configuration.xsd with the SDK
The audio_policy_engine_configuration.xsd schema was missing
four values for the usage enum. This was causing the VTS
test to fail. These usages must be specified in the audio
policy engine configuration file, otherwise a GTS test fails.

Bug: 245303963
Bug: 246231268
Bug: 246901091
Test: atest VtsHalAudioPolicyV1_0TargetTest
Change-Id: I0161ddb33e52cbca9b425c0cbb4f32f320c43af4
(cherry picked from commit 1cbe492d59)
Merged-In: I0161ddb33e52cbca9b425c0cbb4f32f320c43af4
2022-09-21 22:02:38 +00:00
Mikhail Naganov
9f348454e1 Sync audio_policy_engine_configuration.xsd with the SDK
The audio_policy_engine_configuration.xsd schema was missing
four values for the usage enum. This was causing the VTS
test to fail. These usages must be specified in the audio
policy engine configuration file, otherwise a GTS test fails.

Bug: 245303963
Bug: 246231268
Bug: 246901091
Test: atest VtsHalAudioPolicyV1_0TargetTest
Change-Id: I0161ddb33e52cbca9b425c0cbb4f32f320c43af4
(cherry picked from commit 1cbe492d59)
Merged-In: I0161ddb33e52cbca9b425c0cbb4f32f320c43af4
2022-09-21 22:02:34 +00:00
Mikhail Naganov
327cf1cb17 Sync audio_policy_engine_configuration.xsd with the SDK
The audio_policy_engine_configuration.xsd schema was missing
four values for the usage enum. This was causing the VTS
test to fail. These usages must be specified in the audio
policy engine configuration file, otherwise a GTS test fails.

Bug: 245303963
Bug: 246231268
Bug: 246901091
Test: atest VtsHalAudioPolicyV1_0TargetTest
Change-Id: I0161ddb33e52cbca9b425c0cbb4f32f320c43af4
(cherry picked from commit 1cbe492d59)
Merged-In: I0161ddb33e52cbca9b425c0cbb4f32f320c43af4
2022-09-21 22:02:27 +00:00
Mikhail Naganov
7ac8751b9f Sync audio_policy_engine_configuration.xsd with the SDK
The audio_policy_engine_configuration.xsd schema was missing
four values for the usage enum. This was causing the VTS
test to fail. These usages must be specified in the audio
policy engine configuration file, otherwise a GTS test fails.

Bug: 245303963
Bug: 246231268
Bug: 246901091
Test: atest VtsHalAudioPolicyV1_0TargetTest
Change-Id: I0161ddb33e52cbca9b425c0cbb4f32f320c43af4
(cherry picked from commit 1cbe492d59)
Merged-In: I0161ddb33e52cbca9b425c0cbb4f32f320c43af4
2022-09-21 22:02:16 +00:00
Qoo Lin
bd4085f004 Fix SetBadMetadata fail am: 2ff704a6d4 am: ec1e1f61ed
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2201200

Change-Id: I0526ef6b278d84dd8321f826a3302f7d8df69e09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 22:38:08 +00:00
Treehugger Robot
ccb721c91b Merge "Make VtsHalNeuralnetworks* tests more binder-friendly." into android12-tests-dev am: 2a04b4462f am: 2a3972288c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2194136

Change-Id: Ia0644bba3357a0288133ea2f89c5bda5748fe185
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 22:37:15 +00:00
Changyeon Jo
a6e880a398 Remove color format constraints am: e6bb228dc6 am: 9b60ecd229
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2188343

Change-Id: I16002aae2f76e58380f72a131229a381cb11ca56
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 22:36:12 +00:00
Changyeon Jo
4cbdc86584 Corrects color format requirements am: bfbbba6300 am: 217a6ff310
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2182380

Change-Id: I5320446feba732ffdfeb14b8305634afa6506aad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-09-15 22:34:28 +00:00
Treehugger Robot
3457c4eeae Merge "Remove color format constraints" into android13-tests-dev 2022-09-09 16:12:04 +00:00
Changyeon Jo
7f5ad61254 Remove color format constraints
VtsHalEvsTargetTest does not verify any behavior depending on
a frame buffer's color format.

Bug: 240685726
Test: atest VtsHalEvsTargetTest
Change-Id: If8b8c595cfc7404a8122728593f778528b45af15
(cherry picked from commit 849d0f370c)
2022-09-09 16:05:53 +00:00