Commit Graph

53647 Commits

Author SHA1 Message Date
Treehugger Robot
dda389cd61 Merge "Support to get EC public key from the UdsCertchain." into udc-qpr-dev 2023-06-28 22:00:21 +00:00
Treehugger Robot
b32b5111f7 Merge "Strongbox may not support 1024 bit key size for RSA." into udc-qpr-dev 2023-06-28 22:00:14 +00:00
TreeHugger Robot
e2194e22ec Merge changes Iddb1bff9,I5bf8da2f,I62a422d9,If68c995d,If1f34679, ... into udc-qpr-dev
* changes:
  audio: Allow Module subclasses to customize stream creation
  audio: Refactor streams implementation
  audio: Propagate errors from Driver::setConnectedDevices
  audio: Enable use of 'expected_utils' for ScopedAStatus
  audio: Pass flags and I/O handle to StreamContext
  audio: Facilitate extension of Module class by vendors
2023-06-28 20:11:05 +00:00
Subrahmanyaman
9d1d8b7327 Strongbox may not support 1024 bit key size for RSA.
Strongbox may not support 1024 bit key size for RSA.
So in NoUserConfirmation test updated the key size to
2048 so that the test works for both TEE and Strongbox.

Bug: 280117495
Test: run VtsAidlKeyMintTarget
(cherry picked from https://android-review.googlesource.com/q/commit:ce2bebdd79cf7536b06c2d67cdee8867475a3b10)
Merged-In: I32bb28001aca9b69eedb1bd3d0bcff43052d06e4
Change-Id: I32bb28001aca9b69eedb1bd3d0bcff43052d06e4
2023-06-28 17:30:52 +00:00
Subrahmanyaman
251499ca95 Support to get EC public key from the UdsCertchain.
Bug: 285896470
Test: VtsHalRemotelyProvisionedComponentTargetTest
(cherry picked from https://android-review.googlesource.com/q/commit:a18883a58cc9f6b702095bb17bbd0e4e894be49c)
Merged-In: I7f829b1346feeab0fd429ad7b9714181b6668b34
Change-Id: I7f829b1346feeab0fd429ad7b9714181b6668b34
2023-06-28 17:26:25 +00:00
mike liao
8df44ecf83 Add fix vts fail when configureMonitorEvent am: 8b39328dcc am: 3eaabf6f6c am: aa356899a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23831877

Change-Id: Ifdeab66b01b6bb0f6b9b09aecd085b3096b0e204
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-28 03:22:29 +00:00
mike liao
aa356899a0 Add fix vts fail when configureMonitorEvent am: 8b39328dcc am: 3eaabf6f6c
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23831877

Change-Id: I918a99ceb2001622a578c1806420545fab68e297
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-28 02:39:23 +00:00
mike liao
3eaabf6f6c Add fix vts fail when configureMonitorEvent am: 8b39328dcc
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23831877

Change-Id: Ie29e541372807947fc0e016df8ea41896a931f25
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-28 01:55:49 +00:00
Mikhail Naganov
73b06adb9a audio: Allow Module subclasses to customize stream creation
Since specializations of the 'Module' class likely need
to provide their own specializations for streams, provide
virtual methods for them.

Bug: 282568751
Test: atest VtsHalAudioCoreTargetTest
Merged-In: Iddb1bff9f11bc867aba61897ea2f8b9bc3c27544
Change-Id: Iddb1bff9f11bc867aba61897ea2f8b9bc3c27544
(cherry picked from commit 9d16a6ac10)
2023-06-27 16:22:32 -07:00
Mikhail Naganov
efe980bb44 audio: Refactor streams implementation
Simplify the experience of implementing stream variants.
Stream class now exposes two interfaces: DriverInterface
and StreamCommonInterface, which represent the two
aspects of its usage: via the FMQ on the worker thread,
and via IStreamCommon Binder interface.

Input/output streams now inherit the concrete stream
variant, and implement interface methods specific for
IStreamIn and IStreamOut.

Added DriverInterface::shutdown method which is called
on the worker thread prior to the exit.

Bug: 282568751
Test: atest VtsHalAudioCoreTargetTest
Merged-In: I5bf8da2f22b27f0e284a41fc30b920d87ac2936c
Change-Id: I5bf8da2f22b27f0e284a41fc30b920d87ac2936c
(cherry picked from commit d5554cfae2)
2023-06-27 16:16:02 -07:00
Mikhail Naganov
ef1345a869 audio: Propagate errors from Driver::setConnectedDevices
Plumb propagation of errors reported by the implementations
of DriverInterface::setConnectedDevices up to the Module.
This allows returning the reported errors from the corresponding
IModule interface methods. Implement handling of errors
from connection state update by the Module implementation.

When updating streams about the connection status
ensure that the list of connected devices is not empty.

Also, add an extra check to AudioStreamIn#ActiveMicrophones
to validate the size of the returned active microphones
list.

Bug: 282568751
Test: atest VtsHalAudioCoreTargetTest
Merged-In: I62a422d95c37a672fce4ad221bea435cc7b4ebfa
Change-Id: I62a422d95c37a672fce4ad221bea435cc7b4ebfa
(cherry picked from commit 75b59dfb4e)
2023-06-27 16:15:34 -07:00
Mikhail Naganov
f27ff14200 audio: Enable use of 'expected_utils' for ScopedAStatus
Add necessary helper functions and use
RETURN_STATUS_IF_ERROR where possible.

Bug: 282568751
Test: atest VtsHalAudioCoreTargetTest
Merged-In: If68c995da0e5e0cb2e9c142ba40af6503ff628b2
Change-Id: If68c995da0e5e0cb2e9c142ba40af6503ff628b2
(cherry picked from commit 26dc9add8d)
2023-06-27 16:14:58 -07:00
Mikhail Naganov
45ab8f315a audio: Pass flags and I/O handle to StreamContext
Vendor implementations may need to see the value of flags
and the I/O handle of the mix port used to open the stream.

Bug: 282568751
Test: atest VtsHalAudioCoreTargetTest
Merged-In: If1f346793f3b3a725bc19358909f5b461cb159c1
Change-Id: If1f346793f3b3a725bc19358909f5b461cb159c1
(cherry picked from commit b42a69ef68)
2023-06-27 16:14:22 -07:00
Mikhail Naganov
4ff3cf8e73 audio: Facilitate extension of Module class by vendors
Make interface methods protected so that subclasses can
augment them.

Provide getters for private fields.

Bug: 282568751
Test: atest VtsHalAudioCoreTargetTest
Merged-In: I0e4810f8a4c816c4f673139816e9768f6dc8da7c
Change-Id: I0e4810f8a4c816c4f673139816e9768f6dc8da7c
(cherry picked from commit 57f0dcf78d)
2023-06-27 16:13:33 -07:00
mike liao
8b39328dcc Add fix vts fail when configureMonitorEvent
[Description]
VTS StartFilterInDemux failed when configureMonitorEvent is called

[Root Cause]
Scrambling status event is not notified when configureMonitorEvent is called
  so test case failed.

[Solution]
Scrambling status event is not notified because of no input data.
Add input setting and check event notified or not after data is input.

Test: Manual
bug: 288193021

Change-Id: If5875d064fd67b72f8299205a5e35b1a2bd61934
(cherry picked from commit def4652792)
2023-06-27 16:42:23 +00:00
TreeHugger Robot
fc45cfd9e9 Merge "Remove unnecessary assert to fix flaky test" into udc-qpr-dev 2023-06-26 17:44:30 +00:00
Treehugger Robot
f05a2bebe6 Merge "Fixed metadata label in AIDL radio HAL Metadata" into udc-qpr-dev 2023-06-26 00:19:44 +00:00
Yu-Han Yang
8687b2a585 Remove unnecessary assert to fix flaky test
Bug: 285214482
Test: atest VtsHalGnssTargetTest --iterations=100  -- --test-arg com.android.tradefed.testtype.GTest:native-test-flag:"--gtest_filter=*TestGnssMeasurementIntervals_WithoutLocation*"

Change-Id: Ib6aa8e5be17c50d00faea5096e7cee481acb8584
2023-06-23 23:54:32 +00:00
Ye Jiao
84310761ce Fix memory leak in WifiLegacyHal.
`WifiLegacyHal::getSupportedRadioCombinationsMatrix()`
allocs a buffer and returns it to
`WifiChip::getSupportedRadioCombinationsInternal()`, but
`WifiChip::getSupportedRadioCombinationsInternal()` never frees it.

Bug: 287883356
Test: manually test
Change-Id: I0e9d529e93cbb5fe254d48947661a2ae3d99d763
2023-06-21 23:03:34 +00:00
Jeff Pu
fd1e1e58fc Merge "Simulate finger touch with virtual fingerprint hal" into udc-qpr-dev 2023-06-21 17:28:36 +00:00
Weilin Xu
0576dbcee8 Fixed metadata label in AIDL radio HAL Metadata
Bug: 287517076
Test: atest VtsHalBroadcastradioAidlTargetTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:285598dde00128cfc5fa5a9f7b7847d31daf3620)
Merged-In: I612ca079bda6f47446ec75ca7b4fece7317bd56d
Change-Id: I612ca079bda6f47446ec75ca7b4fece7317bd56d
2023-06-21 17:23:06 +00:00
Bharatt Kukreja
f135fd8757 Merge "Camera: Add links to mandatory stream combination tables" into udc-dev am: b082ae031f am: cc0a7d34eb
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23680404

Change-Id: I9d594374c00413d01c792937af724764b23c725a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-20 16:53:33 +00:00
Bharatt Kukreja
cc0a7d34eb Merge "Camera: Add links to mandatory stream combination tables" into udc-dev am: b082ae031f
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23680404

Change-Id: Icde4de23a06ce81dd00da4442346871150bb1f24
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-19 20:14:07 +00:00
Bharatt Kukreja
b082ae031f Merge "Camera: Add links to mandatory stream combination tables" into udc-dev 2023-06-19 19:36:54 +00:00
Gabriel Biren
44a34c0f71 Merge "Set the value of using_dynamic_iface_combination_ in the WifiChip constructor." into udc-dev am: 0f1628e1ac am: 7986ce4d2b
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23699648

Change-Id: Ie14adaf146de40d9feb9e534ba5251225af6d8ec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 22:08:09 +00:00
Gabriel Biren
7986ce4d2b Merge "Set the value of using_dynamic_iface_combination_ in the WifiChip constructor." into udc-dev am: 0f1628e1ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23699648

Change-Id: I0a3a0efd1fdc943b83e006d0588e0cc93d7c34f9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 21:22:50 +00:00
Gabriel Biren
0f1628e1ac Merge "Set the value of using_dynamic_iface_combination_ in the WifiChip constructor." into udc-dev 2023-06-16 20:58:26 +00:00
Jeff Pu
a8065908ef Merge "Remove the workaround of extra enrollment for the fixed b/243129174" into udc-qpr-dev 2023-06-16 19:17:23 +00:00
Rocky Fang
ca955fbf99 Merge "Ignore NanSessionStateChange test for old HAL" into udc-dev am: 25d4025065 am: cddd4dd6e5
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23718309

Change-Id: I1b961aacfbbcc8cad81e61985c24fd5e8bddb7b0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 18:02:46 +00:00
Rocky Fang
cddd4dd6e5 Merge "Ignore NanSessionStateChange test for old HAL" into udc-dev am: 25d4025065
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23718309

Change-Id: Id7d7f521ebd660efdc44c2982c036a80e4d8c0e5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 17:18:19 +00:00
Rocky Fang
25d4025065 Merge "Ignore NanSessionStateChange test for old HAL" into udc-dev 2023-06-16 16:44:48 +00:00
Changyeon Jo
44431d3e1f Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: e0868c4484 am: 62ad051d97 am: e814934db9 am: e79e89d070 am: 925e83e181
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: Idb7081e5dafc16afe37d1bcf3ca010b687df5e51
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 03:56:14 +00:00
Changyeon Jo
cbacc91dea Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: e0868c4484 am: ca64f5b140 am: 9e8d44aba4 am: 39b3bb5d73
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: I496f826248bba7239ace6e4ed6462d6ae3c0d72e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 03:54:53 +00:00
Changyeon Jo
925e83e181 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: e0868c4484 am: 62ad051d97 am: e814934db9 am: e79e89d070
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: I000e22790dedb1a0f1c24cfc53863ffd2273db09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 03:09:46 +00:00
Changyeon Jo
39b3bb5d73 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: e0868c4484 am: ca64f5b140 am: 9e8d44aba4
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: Ia4e04c19819fc41faf8387369f30411e95290612
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 03:09:38 +00:00
Changyeon Jo
e79e89d070 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: e0868c4484 am: 62ad051d97 am: e814934db9
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: I1cb89f2bb6a2f3ce1cea2ac8c91204cfeac00303
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 03:09:33 +00:00
Changyeon Jo
e814934db9 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: e0868c4484 am: 62ad051d97
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: Ief10fc725f67bb05fbcd1b3073ae06562c36349d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 02:27:52 +00:00
Changyeon Jo
9e8d44aba4 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: e0868c4484 am: ca64f5b140
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: If414ff886a8c2e6c336289e89f73719d740ac73c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 02:24:19 +00:00
Changyeon Jo
62ad051d97 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: e0868c4484
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: I3c5cdded17732406c64d375c60073dc6c59b38da
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 01:41:18 +00:00
Changyeon Jo
ca64f5b140 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6 am: e0868c4484
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: Ic4cd9e7c9fe0bbb9693a0c23a9309aae5527bcea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 01:40:32 +00:00
Changyeon Jo
e0868c4484 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b am: 55baee93d6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: I2d2344e3fc085cd09f459bb9a7f8eb01132da841
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 00:49:45 +00:00
Rocky Fang
781409825d Ignore NanSessionStateChange test for old HAL
Test: Tested on V1 HAL, before this change, it failed. After this
change, it showed ignored.
Bug: 287400067

Change-Id: I171cfd08da97d0b5830d241a9cd6ce2fa1f899dc
2023-06-16 00:42:41 +00:00
Changyeon Jo
55baee93d6 Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c am: c070b5a14b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: Ic0db29743b092a5a2d01860e76356a38e3e4788b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-16 00:04:30 +00:00
Changyeon Jo
c070b5a14b Increase frame counters in the same critical section am: 928a4535c8 am: a343d0cf0c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: Ibcaac170949c319d2cff5b45bc8114238d0ada7b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 23:21:50 +00:00
Changyeon Jo
a343d0cf0c Increase frame counters in the same critical section am: 928a4535c8
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2594993

Change-Id: I8a59e6173179a284bb90960b30e2e5a35de075a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 22:39:21 +00:00
Changyeon Jo
928a4535c8 Increase frame counters in the same critical section
Bug: 275049370
Test: atest VtsHalEvsV1_0TargetTest
Change-Id: I814aac4edec142027d3802f5ee0d7a444ae2ee86
2023-06-15 21:11:09 +00:00
Jeff Pu
0e4f9eb2aa Remove the workaround of extra enrollment for the fixed b/243129174
Bug: 284475725
Test: atest BiometricsE2eTests
Change-Id: I92a2153d45e01543dcfdccf131905b6fd557fb34
2023-06-15 17:36:58 +00:00
Gabriel Biren
620ead5fec Merge "Improve process to run the Vendor HAL gTest suite." into udc-dev am: 01cf38f349 am: 4a97e483bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23699649

Change-Id: I4b8d1bdaa447fa76bb65e26a590698d074dc275a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 02:28:15 +00:00
Gabriel Biren
4a97e483bf Merge "Improve process to run the Vendor HAL gTest suite." into udc-dev am: 01cf38f349
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/23699649

Change-Id: I1790e25092ae6a65f81e7dc8c9aa0189317ff8df
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-06-15 01:40:46 +00:00
Gabriel Biren
01cf38f349 Merge "Improve process to run the Vendor HAL gTest suite." into udc-dev 2023-06-15 00:12:52 +00:00