Commit Graph

42569 Commits

Author SHA1 Message Date
Changyeon Jo
b9244570e4 Remove color format constraints am: e6bb228dc6 am: 9b60ecd229 am: ec0d97c86b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2188343

Change-Id: I1e2eb30d5563cfddff8d07479ad18a8186062a07
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 01:05:28 +00:00
Changyeon Jo
ec0d97c86b Remove color format constraints am: e6bb228dc6 am: 9b60ecd229
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2188343

Change-Id: Ife0695367cc56876e595275d26096cc329535c4e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 00:39:27 +00:00
Changyeon Jo
9b60ecd229 Remove color format constraints am: e6bb228dc6
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2188343

Change-Id: I4b4f0fa412a88763e506acb9d5f2ed83463ba1d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 00:19:38 +00:00
Treehugger Robot
62be00231e Merge "audio HAL: Support for external device connections" am: eefac18b26
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2194135

Change-Id: If8ab0e2ecb17b0348c1831718f0b65d0f83e8446
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 16:07:04 +00:00
Treehugger Robot
eefac18b26 Merge "audio HAL: Support for external device connections" 2022-08-24 15:01:49 +00:00
Xin Li
3ed23345bc Merge "Merge android13-tests-dev" am: 056da74605
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2189195

Change-Id: Ia28253da382a93762c4b34f443ae68aac5bb1387
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-23 23:42:36 +00:00
Xin Li
056da74605 Merge "Merge android13-tests-dev" 2022-08-23 23:07:05 +00:00
Mikhail Naganov
00603d14b3 audio HAL: Support for external device connections
Add methods 'IModule.connect/disconnectExternalDevice' which inform
audio HAL about connection / disconnection of an external
non-attached device. Add method 'getAudioRoutesForPort' to
retrieve only routes that include the specified port.

Update the behavior of 'getAudioPorts' and 'getAudioRoutes'
indicating that the result may change due to instantiation
of new device ports for connected external devices.

Clarify behavior of 'IModule.setAudioPortConfig' that it can not
work with device ports with no profiles.

Add debug flags structure 'ModuleDebug' and method
'IModule.setModuleDebug' to control the debugging aspects. VTS
tests use these flags to test HAL behavior which would otherwise
require human intervention.

Update the default implementation and VTS for the AIDL changes.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Merged-In: Iad5f7009e283729206f88b6278c8992f7f8a92a2
Change-Id: Iad5f7009e283729206f88b6278c8992f7f8a92a2
2022-08-23 22:40:20 +00:00
Pawan
a9974359b4 Updating cc_fuzz with default config am: 8e13f2ac2c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190582

Change-Id: I3b6fb2b2fc79bf58f9bed54433ec604a500c0113
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-23 20:52:54 +00:00
Pawan
8e13f2ac2c Updating cc_fuzz with default config
Using service_fuzzer_defaults in
	- android.hardware.health-service.aidl_fuzzer
	- android.hardware.vibrator-service.example_fuzzer

Bug: 240318902
Test: m android.hardware.health-service.aidl_fuzzer
Test: m android.hardware.vibrator-service.example_fuzzer
Change-Id: I3fd1cf37a5835ebef14658ed40332132cec07e49
2022-08-22 22:16:41 +00:00
Treehugger Robot
933e626ce7 Merge changes from topic "upstream-audio-aidl-hal" am: 2468ff5608
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190590

Change-Id: I41aee9ddb1a1ee2aff6ec2aa84771a80c2161e3d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 20:48:29 +00:00
Jiyong Park
a20627a17e Explicitly depend on audio.common-V1 am: d25eddfd7d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190589

Change-Id: Id0ec1fb02d474bf5fda6327df8980b1f2f9e7ce1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 20:48:28 +00:00
Mikhail Naganov
4c6e690f4f audio HAL: initial VTS tests am: e5d747e908
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190588

Change-Id: Ide9ce53b04e9d743ee7cefa5c992d2df0786c0b9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 20:48:27 +00:00
Mikhail Naganov
88a81f47c6 audio HAL: Minimal example implementation am: df5adfde15
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190587

Change-Id: I16eaf43678788c8616e37b4abd092cbf3f9a7ea2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 20:48:24 +00:00
Mikhail Naganov
cf54f19db5 audio HAL: Initial AIDL interfaces am: bd4013f179
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2190586

Change-Id: I496f775bded875c9b7f0ad6ad05158164ca0b8e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 20:48:18 +00:00
Treehugger Robot
2468ff5608 Merge changes from topic "upstream-audio-aidl-hal"
* changes:
  Explicitly depend on V1 of android.media.audio.common.types
  Explicitly depend on audio.common-V1
  audio HAL: initial VTS tests
  audio HAL: Minimal example implementation
  audio HAL: Initial AIDL interfaces
2022-08-22 20:25:37 +00:00
Treehugger Robot
4cb903bdcb Merge changes from topic "cp-libwifihal-soong" am: 08f3ea9e97
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2185352

Change-Id: Ife37db5e82e40d386f48e2f49b0d52998e601607
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 02:48:35 +00:00
Jooyung Han
f8f98cd8fb android.hardware.wifi@1.0-service in soong am: 1e6cdac0bc
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2185351

Change-Id: I5b06b2f4d966df1aaeba845563b3194b1f19af8e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 02:48:34 +00:00
Treehugger Robot
08f3ea9e97 Merge changes from topic "cp-libwifihal-soong"
* changes:
  Build libwifi-hal-* modules only for the first arch
  android.hardware.wifi@1.0-service in soong
2022-08-22 02:30:56 +00:00
Donghong Weng
3c745ce814 Merge "Explicit conversion" am: 160a22f49e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2186215

Change-Id: Icde93ba9318a7fc90c6d65f801aa402a466d7e99
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-22 02:07:57 +00:00
Donghong Weng
160a22f49e Merge "Explicit conversion" 2022-08-22 01:45:35 +00:00
Jiyong Park
d25eddfd7d Explicitly depend on audio.common-V1
Background:

android.hardware.audio.common was frozen in the upstream tm-dev.
Previously, the interface had only V1 (as the in-development version)
and it was in the VNDK. However, after the freeze, it will have V1 and
V2, and only V1 will remain in the VNDK, because we can't have multiple
versions of the same AIDL interface in VNDK (it's just waste of memory).

android.hardware.audio.core is a new AIDL interface that doesn't exist
in TM. It is also a member of VNDK and imports the audio.common
interface. So far, the import has been done without an explicit version
number (i.e. `imports: ["android.hardware.audio.common"]`). As a result,
V1 was imported before the freeze, and V2 (the latest) will be imported
after the freeze.

Problem:

audio.core depending on audio.common-V2 is NOT allowed since the former
is a member of VNDK, but the latter isn't. VNDK should form a closure.
We are actually hitting this:

```
> error: hardware/interfaces/audio/aidl/Android.bp:71:1: module
"android.hardware.audio.core-V1-ndk" variant
"android_vendor.Tiramisu_arm64_armv8-a_static" (created by module
"android.hardware.audio.core-V1-ndk-generator" (created by module
"android.hardware.audio.core_interface")): (native:vendor:vndk) should
not link to "android.hardware.audio.common-V2-ndk" (native:vendor):
VNDK-core must only depend on VNDK-core or VNDK-SP
```

To fix this, make the dependency to audio.common to be explicit about
the version. This change can't be uploaded to tm-dev as audio.core
doesn't exist there, and must be submitted before the AIDL APIs are
frozen there.

Bug: 225941299
Test: m

Merged-In: Iadc96d558d5c7431b0a2b0cbd28b99319a24ee44
Change-Id: Iadc96d558d5c7431b0a2b0cbd28b99319a24ee44
(cherry picked from commit cc489264af)
2022-08-20 00:14:53 +00:00
Mikhail Naganov
e5d747e908 audio HAL: initial VTS tests
Tests basic functionality for enumerating
capabilities of an audio module, audio patches
creation, and opening of I/O streams.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Merged-In: I7c7c3c7008f2fc43db1542455c74444a08e55534
Change-Id: I7c7c3c7008f2fc43db1542455c74444a08e55534
(cherry picked from commit 7abc70f908)
2022-08-20 00:14:53 +00:00
Mikhail Naganov
df5adfde15 audio HAL: Minimal example implementation
Implements basic functionality for enumerating
capabilities of an audio module, audio patches
creation, and opening of I/O streams.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Merged-In: Ie5d67e9192a598260e762ae9368f99592c8ad97e
Change-Id: Ie5d67e9192a598260e762ae9368f99592c8ad97e
(cherry picked from commit ecdc6ca8e8)
2022-08-20 00:14:53 +00:00
Mikhail Naganov
bd4013f179 audio HAL: Initial AIDL interfaces
This adds basic support for enumerating capabilities
of an audio module, creation of patches, and opening of
I/O streams.

Bug: 205884982
Test: atest VtsHalAudioCoreTargetTest
Merged-In: Ib1ef13c95d338b6ef1bde7d87dcd675fc1d35e85
Change-Id: Ib1ef13c95d338b6ef1bde7d87dcd675fc1d35e85
(cherry picked from commit ee27478264)
2022-08-20 00:14:53 +00:00
Jiyong Park
f4b5e7b993 Explicitly depend on V1 of android.media.audio.common.types
... for the same reason as cc489264af

Bug: 225941299
Test: m
Merged-In: I269d61c8c441b3db0832f5450f5e5a84a5989a99
Change-Id: I269d61c8c441b3db0832f5450f5e5a84a5989a99
(cherry picked from commit 446519a370)
2022-08-20 00:14:53 +00:00
Treehugger Robot
a80338f802 Merge "Release the memory allocated in the algorithm to prevent memory leaks" am: a3fe17250d
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2186106

Change-Id: Ia83b90d5404dce1dbf8febfa0d66309bce547345
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-19 22:27:19 +00:00
Treehugger Robot
a3fe17250d Merge "Release the memory allocated in the algorithm to prevent memory leaks" 2022-08-19 22:09:37 +00:00
donghongweng
e3b2140f84 Fix unqualified-std-cast-call compiler warning am: f533ccb14e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2184585

Change-Id: I2deb3c16ab783766a5a1537da46fca8ce6f7ac00
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-19 06:22:46 +00:00
Liening.Liu
1aa1cf155e Release the memory allocated in the algorithm to prevent memory leaks
In the reference implementation of the identity function, there are two places where the memory requested in the openssl algorithm is not released. This memory should be freed.

Test: Vts/Cts

Bug: 242927524
Change-Id: I88ffba39cb6ec887f395122e4670bf9f1a2d8e12
2022-08-18 02:38:04 +00:00
Xin Li
7406132b49 Merge android13-tests-dev
Merged-In: Ie372f74f3a52decce592181c7d65624f8ec03ed1
Change-Id: Ia81e24391de0d26737a5d65fbc5c8bb86bf03d5b
2022-08-17 16:37:46 -07:00
donghongweng
f533ccb14e Fix unqualified-std-cast-call compiler warning
Test: m
Change-Id: I403ce701846a3d3582e1dfa5557fe981e86f2140
2022-08-17 15:49:59 +08:00
Jiyong Park
46afe63eaf Build libwifi-hal-* modules only for the first arch
Previously, the build rules assumed that the target supports both 64 and
32 bit architectures, which isn't true for 32-bit-only targets. That
caused build breakage on such targets. Fixing that by building the
modules only for the first architecture (64 on 64-only or 64/32 target,
and 32 on 32-only target).

Bug: 241916304
Test: build the 32-bit-only target
Merged-In: I5353ab1561622eae12e2dff87eb0f17b47c3773d
Change-Id: I5353ab1561622eae12e2dff87eb0f17b47c3773d
(cherry picked from commit 3ab5c90104)
2022-08-17 16:41:19 +09:00
Jooyung Han
1e6cdac0bc android.hardware.wifi@1.0-service in soong
As libwifi-hal is migrated to soong, the service is migrated to soong as
well.

Bug: 240099735
Test: CtsWifiTestCases
Merged-In: Ie5a4ec6658d5f6aa3d4902c9c3c4b3bef9ff1cde
Change-Id: Ie5a4ec6658d5f6aa3d4902c9c3c4b3bef9ff1cde
(cherry picked from commit c4ac3355a6)
2022-08-17 16:41:10 +09:00
donghongweng
af442b177f Explicit conversion
Test: m tests
Change-Id: Ie0c00a51dee1d97239b0ef6f29334d176ddec32a
2022-08-17 06:59:51 +00:00
Changyeon Jo
e6bb228dc6 Remove color format constraints
VtsHalEvsV1_1TargetTest does not verify any behavior depending on
a frame buffer's color format.

Bug: 240685726
Test: atest VtsHalEvsV1_1TargetTest
Change-Id: I592a0a8de5fffd98178d624ee5aac4c28245d056
2022-08-17 01:03:20 +00:00
Treehugger Robot
3e9bc99d07 Merge "Remove keymaster HIDL entry in compat matrix." am: 17ca272c5b
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2187957

Change-Id: I1100614f19866937f23358ac9b613219a400b36a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 23:44:11 +00:00
Automerger Merge Worker
7e43375d9b Merge changes from topic "am-96e5992b2dd4470eae48f4ad98b53c99" into stage-aosp-master
* changes:
  [automerger skipped] Merge "DO NOT MERGE - Merge Android 13" am: 28cde8fd22 -s ours
  [automerger skipped] DO NOT MERGE - Merge Android 13 am: 65270bbaae -s ours
2022-08-16 23:42:39 +00:00
Xin Li
13261d179e [automerger skipped] Merge "DO NOT MERGE - Merge Android 13" am: 28cde8fd22 -s ours
am skip reason: Merged-In I3ad2e2000fb0db6a62835e621bc81d77308db140 with SHA-1 e08d14104c is already in history

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

Change-Id: I0e0755e6d54ede39c9506f62fb545234bfec2066
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 23:40:16 +00:00
Xin Li
cc43fb5258 [automerger skipped] DO NOT MERGE - Merge Android 13 am: 65270bbaae -s ours
am skip reason: Merged-In I3ad2e2000fb0db6a62835e621bc81d77308db140 with SHA-1 e08d14104c is already in history

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

Change-Id: I2dfba94bc717d62c8be2c09948a92d41cc86579d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 23:39:45 +00:00
Xin Li
062aac9f60 [automerger skipped] Merge "DO NOT MERGE - Merge Android 13" am: 28cde8fd22 -s ours
am skip reason: Merged-In I3ad2e2000fb0db6a62835e621bc81d77308db140 with SHA-1 e08d14104c is already in history

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

Change-Id: I550e3e0218ce27e02bc0d08881d98c44750e2896
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 23:37:49 +00:00
Xin Li
b49f968a60 [automerger skipped] DO NOT MERGE - Merge Android 13 am: 65270bbaae -s ours
am skip reason: Merged-In I3ad2e2000fb0db6a62835e621bc81d77308db140 with SHA-1 e08d14104c is already in history

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

Change-Id: Ide7cb800dca091cf0dfb10daddfdacc05973aee3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 23:37:19 +00:00
Treehugger Robot
17ca272c5b Merge "Remove keymaster HIDL entry in compat matrix." 2022-08-16 22:32:29 +00:00
Xin Li
28cde8fd22 Merge "DO NOT MERGE - Merge Android 13" 2022-08-16 19:11:03 +00:00
Devin Moore
1795df99db Remove keymaster HIDL entry in compat matrix.
This interface has been converted to AIDL.
Test: TH
Bug: 218588089

Merged-In: Ibd115673d6776c94150dd57afe3e20718bc2ed8f
Change-Id: Ibd115673d6776c94150dd57afe3e20718bc2ed8f
2022-08-16 16:30:48 +00:00
Changyeon Jo
2518cc9623 Corrects color format requirements am: bfbbba6300 am: 217a6ff310 am: 5f7a17c115
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2182380

Change-Id: Ic92d23904a77a98ed485480914aac37cce60696d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 13:06:49 +00:00
Changyeon Jo
5f7a17c115 Corrects color format requirements am: bfbbba6300 am: 217a6ff310
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2182380

Change-Id: I01aaf515ad8614791deed186589074079165615a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 11:12:29 +00:00
Changyeon Jo
217a6ff310 Corrects color format requirements am: bfbbba6300
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2182380

Change-Id: I8f3a94e1872975c82432a7484aeb45db5557a0c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 10:53:54 +00:00
David Drysdale
c52ca1a280 Merge "KeyMint VTS: use SCOPED_TRACE on all loops" am: 565a883bf1
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2185435

Change-Id: Ia78b185c711937d5bb0319427e501a171013b115
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-16 06:46:01 +00:00
David Drysdale
565a883bf1 Merge "KeyMint VTS: use SCOPED_TRACE on all loops" 2022-08-16 06:03:14 +00:00