Commit graph

54948 commits

Author SHA1 Message Date
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
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
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
abb7c878b0 [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: Ie1ddfe7bfbaa05c26f40b17fa6ae3cdd12e63ce5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-17 18:11:30 +00:00
Yu Shan
9e9ee99ccd [automerger skipped] Allow CDD required properties to be absent in VTS. am: 775b6eca77 -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: I77ec2b6acda79af05a5dd5886f39cad49102bf55
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-17 17:57:20 +00:00
Jooyung Han
de82b61de8 Merge "Cleanup: use shared apex_key (wifi HAL APEX)" into main 2023-10-17 07:00:57 +00:00
Treehugger Robot
254c650c58 Merge "Cleanup: use shared apex_key" into main 2023-10-17 01:57:52 +00:00
Steven Moreland
0c72245836 Merge "OMX: allow in 8" into main 2023-10-16 21:50:36 +00:00
Roshan Pius
1561fd933b Merge "nfc(hal): Make it available for nfc apex" into main 2023-10-16 18:31:01 +00:00
Zhanglong Xia
eec8babbd7 Merge "update the thread_radio based on latest definition of SpinelInterface" into main 2023-10-16 03:29:27 +00:00
Jooyung Han
62ba8b5bbe Merge "Cleanup: use shared apex_key (vibrator HAL APEX)" into main 2023-10-16 01:19:52 +00:00
Yu Shan
1e6cbc533f [automerger skipped] Allow CDD required properties to be absent in VTS. am: da7a4ddabd -s ours
am skip reason: Merged-In I93020e7e024760601bc5a8edf9997cc356a568c6 with SHA-1 8a1ab8705d is already in history

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

Change-Id: I0c7440fa5c47137625722c8e5c8632c47e820f12
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-14 00:09:45 +00:00
Mikhail Naganov
03a2fbc6a3 Merge changes from topic "revert-2770886-AidlAudioHalModuleConfig-FQCMWOWMCH" into main
* changes:
  Revert "audio: Parse module configurations from the APM XML files"
  Revert "audio: Populate MicrophoneInfo with vendor data"
  Revert "audio: Set connectedProfiles for non-attached device ports."
  Revert "audio: Use hardcoded r_submix configuration with XML"
2023-10-13 23:44:26 +00:00
Mikhail Naganov
af75a679c9 Revert "audio: Parse module configurations from the APM XML files"
Revert submission 2770886-AidlAudioHalModuleConfig

Reason for revert: Breaks BluetoothInstrumentationTests on main downstream

Reverted changes: /q/submissionid:2770886-AidlAudioHalModuleConfig

Bug: 305291602
Change-Id: I0076c88877943d9498f90c477e78a2be5d390150
2023-10-13 23:38:25 +00:00
Mikhail Naganov
5eea7fb0d7 Revert "audio: Populate MicrophoneInfo with vendor data"
Revert submission 2770886-AidlAudioHalModuleConfig

Reason for revert: Breaks BluetoothInstrumentationTests on main downstream

Reverted changes: /q/submissionid:2770886-AidlAudioHalModuleConfig

Bug: 305291602
Change-Id: I01a4d22056507f9047c4fead21c9a75bfa153a46
2023-10-13 23:38:25 +00:00
Mikhail Naganov
006a136ea7 Revert "audio: Set connectedProfiles for non-attached device ports."
Revert submission 2770886-AidlAudioHalModuleConfig

Reason for revert: Breaks BluetoothInstrumentationTests on main downstream

Reverted changes: /q/submissionid:2770886-AidlAudioHalModuleConfig

Bug: 305291602
Change-Id: Id325171baeabd61d244e5f15c37f7d14402bd426
2023-10-13 23:38:25 +00:00
Mikhail Naganov
567d0de485 Revert "audio: Use hardcoded r_submix configuration with XML"
Revert submission 2770886-AidlAudioHalModuleConfig

Reason for revert: Breaks BluetoothInstrumentationTests on main downstream

Reverted changes: /q/submissionid:2770886-AidlAudioHalModuleConfig

Bug: 305291602
Change-Id: I7f51ab94f5d42ac052e9900ddd0cc69a33856820
2023-10-13 23:38:25 +00:00
Steven Moreland
47b0223eaa OMX: allow in 8
Bug: 293538526
Change-Id: Ieda8e14d23c367c18537d79c28aeea8a9efbec53
Test: N/A
(cherry picked from commit ab586ba7d3)
2023-10-13 22:16:25 +00:00
Roshan Pius
e89c71773d nfc(hal): Make it available for nfc apex
Bug: 303286040
Test: Compiles
Merged-In: I2d70f751867fe02ba2bc6958963e30f128630b00
Change-Id: I2d70f751867fe02ba2bc6958963e30f128630b00
2023-10-13 18:03:41 +00:00
Treehugger Robot
43543bda62 Merge changes from topic "AidlAudioHalModuleConfig" into main
* changes:
  audio: Use hardcoded r_submix configuration with XML
  audio: Set connectedProfiles for non-attached device ports.
  audio: Populate MicrophoneInfo with vendor data
  audio: Parse module configurations from the APM XML files
2023-10-13 16:33:46 +00:00
Alan Stokes
8cbbc15bc3 Give a name to the ConfigurationDescriptor.
Test: N/A
Change-Id: Ia2f4198e97a61494ba50e46fd198ee1f1ad44f0d
2023-10-13 13:43:21 +00:00
David Drysdale
57d13b5d83 Merge "RSA OAEP MGF1 digest VTS relaxed for keymint < V3" into main 2023-10-13 10:28:03 +00:00
Wei Wang
f5150886a8 Merge "Cleanup: remove unused old thermal APEX" into main 2023-10-13 05:07:04 +00:00
Treehugger Robot
df8b2e8478 Merge "Update haptics framework owners file" into main 2023-10-12 09:26:38 +00:00
Jooyung Han
9e73b2047a Use explicit requirements from APEX
Previously, CAS APEX used ":sphal" and `android_load_sphal_library` to
open plugins from /vendor/lib/mediacas. It was a workaround because
there's no way to limit the scope to /vendor/lib/mediacas. And CAS
plugins are not SPHAL libraries.

Now, the APEX uses more explicit requirements: ":mediacas", which
limitss the scope to /vendor/lib/mediacas.

Bug: 298542407
Test: atest CtsMediaMiscTestCases:MediaCasTest
Change-Id: Id91a87e0f6ef8a761e37cabed7da8b9fed0591c2
2023-10-12 16:37:03 +09:00
Zhanglong Xia
5cc95e3373 update the thread_radio based on latest definition of SpinelInterface
OpenThread has changed the functions of SpinelInterface, which
causes the build errors of the Thread HAL service. This commit
updates the thread_radio based on the latest definition of
SpinelInterface.

Bug: b/304914440
Test: Build and run Thread stack on cuttlefish.
Change-Id: Ie92aedc925c771748424bdbae0ae1d340b154bb2
2023-10-12 15:26:50 +08:00
Mikhail Naganov
ea604d50de 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
Change-Id: Iddebf9baa73e8dc90ada1c9b1783c513abb59420
2023-10-11 19:38:49 -07:00
Lorena Torres-Huerta
a29393db39 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
Change-Id: Ic82e47abc50e2958ed93f5d4d18082b569ecb67b
2023-10-11 19:38:12 -07:00
Lorena Torres-Huerta
dc9d1a4b42 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
Change-Id: I4b650ae221ba866421bbf8500ad8c17f04bc4aa7
2023-10-11 19:36:38 -07:00
Lorena Torres-Huerta
00a7307862 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
Change-Id: I01e4cd77a284d7df64ecb0c0b21cb16abfa0f6c5
2023-10-11 18:31:25 -07:00
Treehugger Robot
9c93cbe987 Merge "Update media OWNERS file" into main 2023-10-11 23:50:15 +00:00
Devin Moore
d2f5f95f51 Update media OWNERS file
Test: none
Bug: none
Change-Id: Idf00ac904a3358d56e002650d0ef519e123f5678
2023-10-11 22:14:42 +00:00
Yu Shan
816e644a44 Merge "Allow CDD required properties to be absent in VTS." into main 2023-10-11 19:57:36 +00:00
Yu Shan
da7a4ddabd Allow CDD required properties to be absent in VTS.
Allow CDD required properties not to be supported in VHAL VTS since
this is already covered in CTS. We also need to consider special
cases where one VHAL instance does not support all required
properties.

Test: atest VtsHalAutomotiveVehicle_TargetTest
Bug: 301577794
Merged-In: I93020e7e024760601bc5a8edf9997cc356a568c6
Change-Id: I93020e7e024760601bc5a8edf9997cc356a568c6
2023-10-11 19:56:52 +00:00
Yu Shan
775b6eca77 Allow CDD required properties to be absent in VTS.
Allow CDD required properties not to be supported in VHAL VTS since
this is already covered in CTS. We also need to consider special
cases where one VHAL instance does not support all required
properties.

Test: atest VtsHalAutomotiveVehicleV2_0TargetTest
Bug: 301577794
Merged-In: I93020e7e024760601bc5a8edf9997cc356a568c6
Change-Id: I1c95625d45f5199328c4e157ebaa05f480d9e1cc
2023-10-11 19:46:53 +00:00
Yu Shan
8a1ab8705d Allow CDD required properties to be absent in VTS.
Allow CDD required properties not to be supported in VHAL VTS since
this is already covered in CTS. We also need to consider special
cases where one VHAL instance does not support all required
properties.

Test: atest VtsHalAutomotiveVehicle_TargetTest
Bug: 301577794
Merged-In: I93020e7e024760601bc5a8edf9997cc356a568c6
Change-Id: I93020e7e024760601bc5a8edf9997cc356a568c6
(Cherry-picked from commit b84f6f3c68fcd7f613146146821130eb354865c1)
2023-10-11 18:46:56 +00:00
David Zhao
c705c2195a Update TV owners
VTS check doesn't like it if there's no component in the OWNERS file.

Test: mmm
Change-Id: I46fe7e30032802640216cd6f5fbeabc97b09a085
2023-10-11 17:47:56 +00:00