Commit Graph

41570 Commits

Author SHA1 Message Date
Omer Osman
a2587da5b2 Add Opus to BT Audio HAL and update version to V2
This CL adds Opus as a supported A2DP codec to the BT Audio HAL and
updates HAL compatibility matrix.

Bug: 226441860
Test: A2DP sink device using bds-dev
Change-Id: I21249e3e7e76412af7ed62a3fc9ec133434cf963
2022-05-12 05:56:08 +00:00
Andy Hung
dc48405431 Merge "Effect: benchmark the effect process" into tm-dev 2022-05-06 19:14:19 +00:00
Seth Moore
1e8fc75bc0 Merge "Clean up keymint ProtectedData documentation" into tm-dev 2022-05-06 14:58:50 +00:00
Mikhail Naganov
abc4ffe565 audio VTS: Fix handling of ULTRASOUND sources
When opening a stream on an ultrasound input
(AUDIO_INPUT_FLAG_ULTRASOUND), the source type
AUDIO_SOURCE_ULTRASOUND must be used.

Bug: 231275185
Test: atest VtsHalAudioV7_0TargetTest
Test: atest VtsHalAudioV7_1TargetTest
Change-Id: Ib1fb5b8218eb0c52edf31789fa937c0a8b6c5082
Merged-In: Ib1fb5b8218eb0c52edf31789fa937c0a8b6c5082
(cherry picked from commit 1ce9d5488a)
2022-05-05 16:33:12 +00:00
TreeHugger Robot
1dd0d22f3a Merge "Support 24k and 32k config for LE Audio Offload" into tm-dev 2022-05-05 02:38:36 +00:00
Shuzhen Wang
79559e54d4 Merge "Camera: Fix broken link in doc" into tm-dev 2022-05-05 00:01:18 +00:00
Seth Moore
b8f9efc5e7 Clean up keymint ProtectedData documentation
- Fix up some minor CDDL formatting issues.
- Add more definition around the BCC, hopefully clearing up partner
  confusion around how to implement it.
- Explain when BccPayload entries may be omitted in the case of a
  "Degenerate BCC"
- Add a bit more description to the DKSignature format

Bug: 227350250
Test: N/A -- doc changes only
Change-Id: I28337a80e2b49661cc37876400d7ac3b8759ba01
Merged-In: I28337a80e2b49661cc37876400d7ac3b8759ba01
2022-05-04 14:43:40 -07:00
Andy Hung
502f9d017a Effect: benchmark the effect process
Required for Spatializer tuning.

Test: adb shell dumpsys media.audio_flinger
Bug: 228862341
Change-Id: I59f3b35c9cdd1e45e9afc79cbf9aac30a5decd67
2022-05-04 13:14:55 -07:00
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
Patty Huang
bdf65ba94f Support 24k and 32k config for LE Audio Offload
Bug: 230402180
Test: Manual
Change-Id: If4931999009b27423adeab3af50238dd6d8c8637
(cherry picked from commit f4e3551eb1)
Merged-In: If4931999009b27423adeab3af50238dd6d8c8637
2022-05-04 17:31:51 +08:00
Shuzhen Wang
5c036af317 Camera: Fix broken link in doc
Test: Build
Bug: 231252657
Change-Id: I4118369e0f387128dcbba746cb2be18627da7f36
2022-05-03 12:40:58 -07: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