Commit Graph

55067 Commits

Author SHA1 Message Date
Treehugger Robot
db1da1c8a6 Merge "Refactored keymaster4_utils_fuzzer" into main 2023-10-30 05:14:00 +00:00
Jooyung Han
94b63ab755 Merge changes I1d745f64,I4bb2572c into main
* changes:
  Use static linking for virtual fingerprint hal
  Make Fingerprint Virtual HAL APEX as default
2023-10-30 02:11:21 +00:00
Treehugger Robot
a9050e3ac0 Merge "media.c2 aidl: provide a waitable fd for blockpool creation" into main 2023-10-28 06:33:09 +00:00
Pawan Wagh
6d61d7d121 Merge "Remove vendor from android.hardware.cas-service_fuzzer" into main 2023-10-27 23:36:18 +00:00
Pawan Wagh
19c9d5b607 Remove vendor from android.hardware.cas-service_fuzzer
Fuzzer fails to get defaultServiceManager due to hermiticity issues
when vendor is enabled in cc_fuzz which uses vendor variant of
libbinder under libbinder_ndk.

Test: m android.hardware.cas-service_fuzzer && adb sync data && adb
shell
/data/fuzz/x86_64/android.hardware.cas-service_fuzzer/android.hardware.cas-service_fuzzer
-runs=10000
Bug: 301768467

Change-Id: Ief27f75f4330973fc194c77ea36cdbb826f35807
2023-10-26 23:32:23 +00:00
Sungtak Lee
eec87d9081 media.c2 aidl: provide a waitable fd for blockpool creation
Provide a waitable fd as a param for IComponent::createBlockPool()
along with IGraphicBufferAllocator interface. This will remove one IPC
call from HAL to client to get a waitable fd during blockpool creation.

Test: m
Bug: 254050314
Change-Id: I38d9bde987793e352299385fb141e484c758f89d
2023-10-26 22:25:32 +00:00
Changyeon Jo
7628f1094e Update CameraStreamBuffering test and correct instance name am: 912b16f8c5 am: b89bbf5625 am: ba22368df0
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2794200

Change-Id: I423af75067e5faef3ed9b000ef24ddf942d911ad
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-26 21:54:54 +00:00
Treehugger Robot
a06a223c42 Merge "Add a config with test skipping for SDK < 33" into android13-tests-dev am: 632438dc9e am: 3199222a90
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2787019

Change-Id: Iffa6f422f18dd68f8ecb2cf77b818a27461cb084
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-26 21:54:44 +00:00
Changyeon Jo
d001202178 [automerger skipped] Update VtsHalEvsV1_*TargetTest am: ab78601274 -s ours am: ddb56ed736 -s ours am: 2405c6f40e -s ours
am skip reason: Merged-In Id41bde10964b650f78e76d4f97a4588367f7c7fc with SHA-1 13fb8a7a82 is already in history

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

Change-Id: Iefece8cf741e7db9442d14a2feace6f7e458e00e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-26 21:54:23 +00:00
Yu Shan
95787225c8 [automerger skipped] Allow CDD required properties to be absent in VTS. am: 775b6eca77 -s ours am: 9e9ee99ccd -s ours am: 76623de19a -s ours
am skip reason: Merged-In I93020e7e024760601bc5a8edf9997cc356a568c6 with SHA-1 da7a4ddabd is already in history

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

Change-Id: Idae2438fff56e4c051cbb8b0799b459e9c82507e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-26 21:53:56 +00:00
Yu Shan
887fcb6dbb [automerger skipped] Allow CDD required properties to be absent in VTS. am: da7a4ddabd -s ours am: 22a7a8c838 -s ours
am skip reason: Merged-In I93020e7e024760601bc5a8edf9997cc356a568c6 with SHA-1 076976eea2 is already in history

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

Change-Id: I0139a90997de6b5faed83ff53de17a246cb206f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-26 21:45:40 +00:00
Steven Moreland
d2617f1dfe [automerger skipped] Merge "OMX: allow in 8" into android14-tests-dev am: 9848235972 -s ours
am skip reason: skipped by user delphij

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

Change-Id: I91863bbbf5e49c10128477c29db7a83f3b312228
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-26 21:44:48 +00:00
Yu Shan
d772246d16 [automerger skipped] Allow CDD required properties to be absent in VTS. am: 076976eea2 -s ours
am skip reason: skipped by user delphij

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

Change-Id: I0df804a10b9dc5272bbbae4365cb9e5d8a53467a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-26 21:32:28 +00:00
Xin Li
e4d528153d Merge "Merge android14-tests-dev" into main 2023-10-26 20:11:38 +00:00
Jooyung Han
e458294ba1 Use static linking for virtual fingerprint hal
To make the binary smaller in APEX, use static linking.

For aosp_cf_x86_64_phone target, the APEX is reduced from 1576960 to
643072 (by 933888).

Bug: 306314086
Test: m
Change-Id: I1d745f64fb98a97e7adb417870034044a03ce88c
2023-10-26 11:09:00 +09:00
Jooyung Han
3d000a3a6f Merge "Add rebootescrow HAL into APEX" into main 2023-10-26 01:52:34 +00:00
Jooyung Han
80baad2ccf Make Fingerprint Virtual HAL APEX as default
- moved apex definition beside the HAL binary definition
- updated README.md about installation

Bug: 306314086
Test: follow README.md to test the virtual FP HAL
Change-Id: I4bb2572ca79c93cb32a273625f4e965c2505e48a
2023-10-26 10:47:49 +09:00
Jooyung Han
446fe9a525 Merge "Add secure_element HAL APEX" into main 2023-10-25 01:48:28 +00:00
Changyeon Jo
ba22368df0 Update CameraStreamBuffering test and correct instance name am: 912b16f8c5 am: b89bbf5625
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2794200

Change-Id: If7df49ed360c8484d18f393199105ea85a6c032e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-25 01:36:43 +00:00
Changyeon Jo
e68bfd2cf7 Update CameraStreamBuffering test and correct instance name am: 912b16f8c5 am: b89bbf5625
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2794200

Change-Id: I8d157319a7600fd894cca643104bf66dbec49917
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-25 01:32:27 +00:00
Changyeon Jo
b89bbf5625 Update CameraStreamBuffering test and correct instance name am: 912b16f8c5
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2794200

Change-Id: If6a14f102e39d5754a4ca42d6e2857a04a6a4e60
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-25 01:08:02 +00:00
Jooyung Han
e4067812af Merge "Move input processor service into VAPEX" into main 2023-10-24 04:52:11 +00:00
Jooyung Han
a232f9f196 Merge "Cleanup: use shared apex_key" into main 2023-10-24 03:46:05 +00:00
Aditya Wazir
7001c367ef Refactored keymaster4_utils_fuzzer
The following are the updates to the fuzzer:
1. Randomized order of apis.

Test: ./keymaster4_utils_fuzzer
exec/s: 4950
Bug: 302149569

Change-Id: Ie5d80a4e1d28ddd76a9c16609d20995d93710965
2023-10-23 07:04:48 +00:00
Jooyung Han
b1233e8928 Add rebootescrow HAL into APEX
Bug: 300011388
Test: VtsHalRebootEscrowTargetTest
Change-Id: I34c96187300057196c9bdc098daff2b59f056662
2023-10-23 14:52:43 +09:00
Jooyung Han
6e2b75d801 Add secure_element HAL APEX
This bundles the default implementation used by the cuttlefish.

Bug: 300011111
Test: VtsHalSecureElementTargetTest
Change-Id: Ib723fcbb6748675f6dae2449aad5a71a54cce594
2023-10-23 14:39:45 +09:00
Jooyung Han
07ac233182 Move input processor service into VAPEX
Bug: 300011114
Test: Cuttlefish runs InputProcessor service from VAPEX
Change-Id: I41e297650909f85b5ef45ae9beb2e7508213c96d
2023-10-23 14:06:24 +09:00
Andrew Walbran
41041d6d9c Merge "Support android.hardware.media.c2 in Rust." into main 2023-10-19 21:38:13 +00:00
Treehugger Robot
3199222a90 Merge "Add a config with test skipping for SDK < 33" into android13-tests-dev am: 632438dc9e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2787019

Change-Id: I8dfce1a21c6ec0e155adc19e2f5396aa10381be9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 03:31:09 +00:00
Treehugger Robot
0591fbbcb4 Merge "Add a config with test skipping for SDK < 33" into android13-tests-dev am: 632438dc9e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2787019

Change-Id: I91ba8e2c85ed0d048241182c7ae6aa7e99587e5e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 03:29:44 +00:00
Treehugger Robot
632438dc9e Merge "Add a config with test skipping for SDK < 33" into android13-tests-dev 2023-10-19 03:11:06 +00:00
Jooyung Han
b0675a2ecb Merge "Cleanup: use a shared apex_key" into main 2023-10-19 01:54:20 +00:00
Jooyung Han
52dec402f0 Merge "Cleanup: use shared apex_key (fingerprint APEX)" into main 2023-10-19 01:53:59 +00:00
Jooyung Han
e8d679e223 Merge "Cleanup: move VINTF fragment into VAPEX" into main 2023-10-19 01:53:30 +00:00
Changyeon Jo
2405c6f40e [automerger skipped] Update VtsHalEvsV1_*TargetTest am: ab78601274 -s ours am: ddb56ed736 -s ours
am skip reason: Merged-In Id41bde10964b650f78e76d4f97a4588367f7c7fc with SHA-1 13fb8a7a82 is already in history

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

Change-Id: Ib67c326ffa63861a907d77d065cbb6eba5920800
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 01:52:55 +00:00
Changyeon Jo
64d009118f [automerger skipped] Update VtsHalEvsV1_*TargetTest am: ab78601274 -s ours am: ddb56ed736 -s ours
am skip reason: Merged-In Id41bde10964b650f78e76d4f97a4588367f7c7fc with SHA-1 13fb8a7a82 is already in history

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

Change-Id: Ie411f8a7ee104472c83ef8b036425648e5a8b59a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 01:51:28 +00:00
Changyeon Jo
ddb56ed736 [automerger skipped] Update VtsHalEvsV1_*TargetTest am: ab78601274 -s ours
am skip reason: Merged-In Id41bde10964b650f78e76d4f97a4588367f7c7fc with SHA-1 13fb8a7a82 is already in history

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

Change-Id: I62f952b07c8d46151e032668c062b259b15f85b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-19 01:34:54 +00:00
Shunkai Yao
48415986d9 Merge "Fix cts Pre/post Processing failures on Cuttlefish aidl" into main 2023-10-18 23:01:54 +00:00
Changyeon Jo
912b16f8c5 Update CameraStreamBuffering test and correct instance name
- CameraStreamBuffering test is modified to use the minimum number of
  frame buffers that is required to run a camera pipeline for a single
  client instead of using an arbitrarily chosen number, which may not
  work for certain device implementations.
- Fix a name of v1.0 EvsManager implementation in
  VtsHalEvsV1_0TargetTest.cpp

Bug: 305642713
Test: atest VtsHalEvsV1_0TargetTest and
      atest VtsHalEvsV1_1TargetTest
Change-Id: Ieec986dbdf947311e0bc86871432da8a988d37ad
(cherry picked from commit 2d8834dc96)
2023-10-18 20:40:53 +00:00
Changyeon Jo
945c9aa1de Merge "Update CameraStreamBuffering test and correct instance name" into main 2023-10-18 20:39:20 +00:00
Changyeon Jo
2d8834dc96 Update CameraStreamBuffering test and correct instance name
- CameraStreamBuffering test is modified to use the minimum number of
  frame buffers that is required to run a camera pipeline for a single
  client instead of using an arbitrarily chosen number, which may not
  work for certain device implementations.
- Fix a name of v1.0 EvsManager implementation in
  VtsHalEvsV1_0TargetTest.cpp

Bug: 305642713
Test: atest VtsHalEvsV1_0TargetTest and
      atest VtsHalEvsV1_1TargetTest
Change-Id: Ieec986dbdf947311e0bc86871432da8a988d37ad
2023-10-18 18:58:07 +00:00
Changyeon Jo
ab78601274 Update VtsHalEvsV1_*TargetTest
- Removes a requirement of the landscape aspect ratio of the captured
  frames because the Extended View System now allows the video streams
  in any aspect ratio
- Increases the maximum latency of the video stream start request from
  500 ms to 1 second to accommodate the camera system design with the
  additional processing units outside of the head unit
- Reduces a number of additional buffers to allocate from 6 to 2 in
  CameraStreamBuffering test, to be consistent with comments

Bug: 204835095
Bug: 305642713
Test: atest VtsHalEvsV1_0TargetTest and
      atest VtsHalEvsV1_1TargetTest
Change-Id: Id41bde10964b650f78e76d4f97a4588367f7c7fc
Merged-In: Id41bde10964b650f78e76d4f97a4588367f7c7fc
(cherry picked from commit 7bc98ce6ed)
2023-10-18 18:55:43 +00:00
Shunkai Yao
12179c335f Fix cts Pre/post Processing failures on Cuttlefish aidl
Bug: 295055755
Test: atest android.media.audio.cts.AudioPreProcessingTest
Test: atest android.media.audio.cts.DynamicsProcessingTest
Change-Id: Ia887a6c51ec13b9bb01581065c9272a7e02dad1f
2023-10-18 15:46:05 +00:00
Mikhail Naganov
fc35ca3d32 audio: Use hardcoded r_submix configuration with XML
There are several reasons why parsing the canonical XML
configuration for the remote submix module will not work
correctly (see the commend in the code).

Since de facto all vendors use the canonical configuration
XML for the remote submix, substitute parsing it with
a correct hardcoded version.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
(cherry picked from commit ea604d50de)
Change-Id: Ib9d9da25d315ff4ce36c1870241fb61d95fcca88
2023-10-17 19:54:38 -07:00
Lorena Torres-Huerta
f7492518c7 audio: Set connectedProfiles for non-attached device ports.
For external (non-attached) device ports that have dynamic
profiles, 'connectedProfiles' must be provided. They are
used when 'ModuleDebug.simulateDeviceConnections' is enabled.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
(cherry picked from commit a29393db39)
Change-Id: I69707d610c34f8f1eae9ef81768b76c40e985c0f
2023-10-17 19:54:29 -07:00
Lorena Torres-Huerta
533cc78aab audio: Populate MicrophoneInfo with vendor data
Added a virtual method Module::getMicrophoneInfos
so that vendor implementations can provide actual
data about device microphones. This information
is not part of the APM config file.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTestTest
(cherry picked from commit dc9d1a4b42)
Change-Id: I3ea9ba8da79fd29f8d69c5a575a57851d73df7b8
2023-10-17 19:54:13 -07:00
Mikhail Naganov
cc21b6f2e6 audio: Implement proper parsing of masks in XsdcConversion
Since the parsed XML uses compliant separator for lists
in attribute values, there is no need to use legacy
'maskFromString' function.

Bug: 305281224
Test: atest VtsHalAudioCoreTargetTest
Change-Id: Ib257fd010b923ac651931e5976f9b1363d693f1b
2023-10-17 19:53:55 -07:00
Lorena Torres-Huerta
394e2527b5 audio: Parse module configurations from the APM XML files
The default implementation now loads the HAL configuration
from the legacy XML configuration file which was previously
consumed by the framework directly.

Note that errors in the config file will lead to crash
of the XML parser, pointing out to the source of the problem.

IMPORTANT NOTES:
  - Never use untested legacy config files with production
    devices.
  - Make sure that all possible configurations (for example,
    BT offload on/off) are tested.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
(cherry picked from commit 00a7307862)
Change-Id: Id1002cb065e7cc19bdd520aca15b3fe5d39e5853
2023-10-17 19:48:24 -07:00
Jooyung Han
5de1785959 Merge "Use explicit requirements from APEX" into main 2023-10-18 00:24:18 +00:00
Yu Shan
76623de19a [automerger skipped] Allow CDD required properties to be absent in VTS. am: 775b6eca77 -s ours am: 9e9ee99ccd -s ours
am skip reason: Merged-In I93020e7e024760601bc5a8edf9997cc356a568c6 with SHA-1 da7a4ddabd is already in history

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

Change-Id: Ie67e2c2958fc74e334019d6a83666baac549b42a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-17 18:12:55 +00:00