Commit Graph

41560 Commits

Author SHA1 Message Date
David Drysdale
bebd9520db Merge "Run SecureElementProvision tests for KeyMint version >= 2." am: d347852bcc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2051222

Bug: 230803681
Change-Id: I42b63bdea5fa0fb6c3a79e457f8bd63c6b346111
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
(cherry picked from commit 009d595c0f)
2022-05-04 17:04:38 +00:00
Michael Butler
9265715fc7 Merge "Handle case where NN AIDL callback is null in IDevice::prepareModel*" into tm-dev 2022-05-03 01:25:57 +00:00
Changyeon Jo
df2bcbe6e2 Merge "Update CameraStreamBuffering test case" into tm-dev 2022-05-02 21:57:32 +00:00
Changyeon Jo
0d814ce524 Update CameraStreamBuffering test case
CameraStreamBuffering test case intentionally calls
setMaxFramesInFight() with very large integer value to verify that API
handles unreasonaly large value properly.  A type of its parameter is
changed from unsigned 32-bit integer to signed 32-bit integer in the
latest EVS interface definition written in the stable AIDL.  To adapt a
test case, this CL updates it to use std::numeric_limits<int32_t>::max()
instead of 0xFFFFFFFF, which is translated as -1 in signed 32-bit integer
format.

Bug: 226628778
Test: atest VtsHalEvsV1_1TargetTest
      atest VtsHalEvsTargetTest
Change-Id: Ic35c6c962617825bc271cec8544770340db7728a
2022-04-30 11:40:17 +00:00
Michael Butler
7c0353f8e4 Handle case where NN AIDL callback is null in IDevice::prepareModel*
Prior to this change, if IDevice::prepareModel* was passed a null
callback, the code would still attempt to call "notify" on the callback
to return the error to the client. This CL ensures the "notify" method
will not be invoked if the callback is null.

Bug: 230914930
Test: mma
Test: presubmit
Change-Id: I4a15d02c4879a0261ec26cc0e7a47d0a4da86b8b
Merged-In: I4a15d02c4879a0261ec26cc0e7a47d0a4da86b8b
(cherry picked from commit d6f6d01499)
2022-04-29 23:39:27 +00:00
TreeHugger Robot
dd890b5845 Merge "fix first_api_level property fail in VF projects" into tm-dev 2022-04-29 22:45:17 +00:00
Michael Butler
13300287b5 Merge "Move NN_TRY macro out of struct initialization" into tm-dev 2022-04-29 18:06:29 +00:00
Guanwei Chen
e644bb509e fix first_api_level property fail in VF projects
Should use "ro.board.first_api_level" for vendor freeze project

Bug: 228778569
Test: run cts VtsHalMediaOmxV1_0TargetStoreTest pass

Change-Id: Ib46206be6267a44aaa0a8235a4f017569bb4de94
(cherry picked from commit a8c914ae69)
Merged-In: Ib46206be6267a44aaa0a8235a4f017569bb4de94
2022-04-29 18:04:42 +00:00
TreeHugger Robot
1eb9ba70b8 Merge "Added supportedAreas for CRITICALLY_LOW_TIRE_PRESSURE" into tm-dev 2022-04-29 00:24:12 +00:00
Steven Moreland
b5bb158d20 Merge "DO NOT MERGE: Disable current matrix." into tm-dev 2022-04-28 23:04:33 +00:00
Michael Butler
7ecc290745 Move NN_TRY macro out of struct initialization
NNAPI NN_TRY macros use Statement Expressions (a GNU extension) to
propagate errors. However, a "return" statement in a Statement
Expression can lead to memory leaks when the Statement Expression is
being used to initialize a member of a struct. Specifically, when one member of a struct is already initialized, and a Statement Expression used to initialize a subsequent member early-returns, the previously initialized members will not have their destructors called.

This CL moves any NN_TRY macro out of struct initialization to avoid any
potential memory leaks.

Bug: 230500484
Test: mma
Test: presubmit
Change-Id: I3493fd4764f8eacc86750e6414e62bc891abaccd
2022-04-28 22:05:37 +00:00
TreeHugger Robot
58178fd1b7 Merge "Clarify measurement interval documentation" into tm-dev 2022-04-28 21:57:27 +00:00
Yu-Han Yang
d64dd7b6a8 Clarify measurement interval documentation
The GNSS chipset must report measurements at the requested rate if
location is not requested.

Bug: 206670536
Test: doc update only
Change-Id: I3b488f8b38def4b6ebf13733149d9b75b23db0cb
2022-04-28 13:00:33 -07:00
Raju Kulkarni
c13dea1094 Merge changes from topic "aidl-freeze-tm" into tm-dev
* changes:
  Finalize V2 of android.hardware.light
  Finalize V2 of android.hardware.biometrics.common
  Finalize V3 of android.hardware.power
  Finalize android.hardware.graphics.common-V3
2022-04-28 15:51:28 +00:00
TreeHugger Robot
1fd86d9b89 Merge "Check and catch the callback transaction error" into tm-dev 2022-04-28 02:10:35 +00:00
Michael Butler
cb2e758c92 Merge "Do not call releaseMemoryResource on ignored slot in NN VTS" into tm-dev 2022-04-28 00:48:04 +00:00
Steven Moreland
e7938a23bb DO NOT MERGE: Disable current matrix.
The current matrix should not be used in Android T. However, it is left
here so that any late fixes to the T matrix can be made in a way that
will flow downstream.

Reason for 'DO NOT MERGE' - avoid landing this change in goog/master,
since the current matrix has HALs added there, some devices may be
relying on it.

In order to allow the (AOSP subset of) the T manifest to be frozen in
AOSP, and the current matrix to be enabled from aosp/master -..->
goog/master, this will be reverted in tm-dev-plus-aosp immediately after
it merges.

Bug: 203103997
Test: boot devices and vts_treble_vintf_vendor_test passes
Change-Id: I15bacedd0820e0086a742b97ee18e097ef8086e5
2022-04-28 00:38:24 +00:00
Jiyong Park
ac70f417cc Finalize V2 of android.hardware.light
It was missing in the prior attempt to finalize all AIDL interfaces.

Bug: 230660133
Test: m nothing with https://googleplex-android-review.git.corp.google.com/q/topic:Tiramisu-SDK-Finalization-rel
Change-Id: I5e105fc4176ab326c40ee2297cab59be83c34351
2022-04-28 08:56:28 +09:00
Jiyong Park
36e00b0741 Finalize V2 of android.hardware.biometrics.common
It was missing in the prior attempt to finzalize all AIDL interfaces.

Bug: 230660133
Test: m nothing
Change-Id: Icc319c84d57639ce083730a8bf15957e3ab7fe1d
2022-04-28 08:48:50 +09:00
Jiyong Park
9267a4b495 Finalize V3 of android.hardware.power
Bug: 230660133
Test: m nothing with https://googleplex-android-review.git.corp.google.com/q/topic:Tiramisu-SDK-Finalization-rel
Change-Id: Ib7f774f7679945b6a4562f53d4724c73c5193d28
2022-04-28 08:35:40 +09:00
Jiyong Park
9264d3f783 Finalize android.hardware.graphics.common-V3
For some unknown reason, the Android.bp file was not updated when
freezeing the V3 of android.hardware.graphics.common interface. Fixing
it manually.

Bug: 230660133
Test: `m nothing` with https://googleplex-android-review.git.corp.google.com/q/topic:Tiramisu-SDK-Finalization-rel
Change-Id: I4bf6548e1200864810bcf8a7c1025ba56d48747b
2022-04-28 08:07:53 +09:00
TreeHugger Robot
e35b07b089 Merge "Freeze kernel configs for Android T." into tm-dev 2022-04-27 21:54:39 +00:00
TreeHugger Robot
af5938dfb8 Merge "Freeze compat matrix 7 for Android T" into tm-dev 2022-04-27 19:19:17 +00:00
Brian Duddie
739ae49519 Fix sub-HAL handle in dynamic sensor meta events
Need to apply the sub-HAL index byte to ensure handles provided in
DYNAMIC_SENSOR_META events align properly with the [dis]connected
callbacks.

Bug: 228879057
Test: try on device with dynamic sensors sub-HAL at index > 0
Merged-In: Ic7290b51733bb829a5494ef41e9430b51dc6074e
Change-Id: Ic7290b51733bb829a5494ef41e9430b51dc6074e
2022-04-27 09:43:22 -07:00
Michael Butler
d468abed9b Do not call releaseMemoryResource on ignored slot in NN VTS
For IBurst, a slot value of -1 indicates the slot should be ignored.
However, GeneratedTestHarness still attempts to call
IBurst::releaseMemoryResource on ignored slots. Instead, we should skip
releasing any ignored slots.

Bug: 230103381
Test: mma
Test: VtsHalNeuralnetworksTargetTest
Test: presubmit
Change-Id: I82e538aa0fd9e8ecc077df1c1ceece46a6166e67
2022-04-27 00:08:40 +00:00
Ram Indani
cb1fd25a53 Merge "Check Exception Code for Service specific error" into tm-dev 2022-04-26 17:39:09 +00:00
Isaac Chiou
59878fddc9 Merge "Add HAL APIs for TX power limits" into tm-dev 2022-04-26 06:32:30 +00:00
TreeHugger Robot
6498e64d81 Merge "Fix VtsHalCanBusV1_0TargetTest" into tm-dev 2022-04-26 02:42:17 +00:00
Yifan Hong
e8981922a4 Freeze kernel configs for Android T.
Use the frozen kernel configs, not the 'current'
unfrozen kernel configs.

Test: TH
Fixes: 230144764
Change-Id: I2c6b1a1d5ec81acfb60380efeca0e6ee24b33089
2022-04-26 00:55:32 +00:00
Steven Moreland
dced919030 Merge "Freeze HIDL HALs for Android T." into tm-dev 2022-04-26 00:23:32 +00:00
Tyler Trephan
4677012912 Added supportedAreas for CRITICALLY_LOW_TIRE_PRESSURE
Test: atest CarPropertyManagerTest
Fix: 230386029
Change-Id: Idbd07a361f11b6b616c11ef2c359b656012b40cc
2022-04-25 22:58:59 +00:00
ramindani
d575109c1e Check Exception Code for Service specific error
Before checking the service specific error
we need to check that getExceptionCode returns
EX_SERVICE_SPECIFIC error code. Added a method and
used that to do the two checks together for exceptionCode
and for the service specific error code, so that we don't
repeat two lines in all the tests that need them.

EXPECT_NO_FATAL_FAILURES print the correct line number of the test
or iteration of the test when used with helper functions, and
testing guidelines recommend it too here: go/gunitadvanced#propagating-fatal-failures

Test: atest VtsHalGraphicsComposer3_TargetTest
BUG: 205152739
Change-Id: I1d3c3aa9b34dcefb14be507ff61b73b6f08a5204
2022-04-25 20:44:04 +00:00
Nate Jiang
95939ed300 Check and catch the callback transaction error
Bug: 230277359
Test: vts VtsHalWifiRttV1_6TargetTest
Change-Id: Ibcccd0d60d6907c95cfa95c0e55501248bc65e4b
2022-04-25 13:08:38 -07:00
Steven Moreland
953448bb3b Freeze compat matrix 7 for Android T
The current matrix is left in this same CL because this way, downstream
modifications to the current CL will automatically get absorbed into the
level 8 compatibility matrix. A CL on top of this will disable the 7
matrix and then get reverted in the aosp/master..goog/master merge
path.

Bug: 203103997
Test: boot, vts_treble_vintf_vendor_test
Change-Id: I5c04d26e2b4dd0aac6e7d6ce3c72496081e9539d
2022-04-25 18:16:42 +00:00
Steven Moreland
4b6d5a48a7 Freeze HIDL HALs for Android T.
Let this be the last time! :)

Bug: 203103997
Test: build (checks hashes)
Change-Id: I8c6f7b0064b6df764f41b644a54e0e581fa74137
2022-04-25 16:35:42 +00:00
Mikhail Naganov
83cf51eb33 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
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: Id7fa8eaa98bf2437fd1f676b9e5a7290df260fbd
(cherry picked from commit 0b9b03eb71)
Merged-In: Id7fa8eaa98bf2437fd1f676b9e5a7290df260fbd
2022-04-23 01:11:16 +00:00
Chris Weir
b8069b37ab Fix VtsHalCanBusV1_0TargetTest
VtsHalCanBusV1_0TargetTest needs buses brought up. On GSI images,
canhalctrl doesn't exist, so we have to attempt it on our own.

Bug: 213841914
Test: VtsHalCanBusV1_0TargetTest
Change-Id: I5553a95d047aef8e9d8e1eb6092cddea98f6d81e
2022-04-23 00:53:43 +00:00
Ram Indani
cf45b358a5 Merge "Set isOpaque For BlendMode::None" into tm-dev 2022-04-22 19:26:54 +00:00
TreeHugger Robot
9a7e193760 Merge "Revert "Fix use-after-free in GnssMesaurementInterface"" into tm-dev 2022-04-22 17:43:04 +00:00
TreeHugger Robot
94b57a5d01 Merge "Added min/max rates for EV_CHARGE_TIME_REMAINING" into tm-dev 2022-04-22 16:26:28 +00:00
ramindani
c7585d9dc4 Set isOpaque For BlendMode::None
Test: atest VtsHalGraphicsComposer3_TargetTest
BUG: 216205298
BUG: 219576457

Change-Id: I479d8367e5abf8893b94ac64b7149a2f0e4cf75b
2022-04-22 16:25:39 +00:00
Sam Dubey
160e4a1dee Revert "Fix use-after-free in GnssMesaurementInterface"
This reverts commit b6686e725a.

Reason for revert: Broke LocationManagerFineTest

Bug: 230085457
Change-Id: Ic699cf1583dd9b858cb5dcd2545ca448a17def6e
2022-04-22 13:35:08 +00:00
TreeHugger Robot
c495886f97 Merge "Fix use-after-free in GnssMesaurementInterface" into tm-dev 2022-04-22 04:04:48 +00:00
TreeHugger Robot
217f6ccef4 Merge "Exclude timed power entities due to timeout mechanism" into tm-dev 2022-04-22 01:45:23 +00:00
Tyler Trephan
e438bd358b Added min/max rates for EV_CHARGE_TIME_REMAINING
Test: atest CarPropertyManagerTest
Bug: 229118601
Change-Id: I6adedf1def47486ebe3cf9d12abe2bd65e0d6d48
2022-04-21 20:30:17 +00:00
Treehugger Robot
d5bc92e9fe Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" am: c5fc884ed6 am: 6a54fb8ff3 am: 9b667b38fa
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2070507

Change-Id: I1bf572be1d2092711340dc6883844fddd691fa52
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 17:13:11 +00:00
Treehugger Robot
9b667b38fa Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" am: c5fc884ed6 am: 6a54fb8ff3
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2070507

Change-Id: I8248da7efb3e83270b20bb482d611453c948b48d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 16:59:46 +00:00
Treehugger Robot
6a54fb8ff3 Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" am: c5fc884ed6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2070507

Change-Id: I6c75a4726bdd97d5e00e052e1b46276403f0f5aa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 16:33:45 +00:00
Treehugger Robot
c5fc884ed6 Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/interfaces" 2022-04-21 16:15:59 +00:00
Max Bires
d354a98041 Merge "Increase challenge size in tests." am: dcaa803893 am: a24527be86 am: 14bae2b195
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2066892

Change-Id: Iab5729979eef4a7e3d318f8c3fa816276442e5be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 09:39:01 +00:00