Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae54198b authored by Wonsik Kim's avatar Wonsik Kim
Browse files

codec2 hal: type conversion refactoring, step 2

Implement ParamTypes.h and refactor HIDL type conversion to use it.

ParamTypes.h contains template functions to be reused for
both HIDL and AIDL interfaces. The interfaces are mostly similar, and
that is why this approach works (mostly). There are cases HIDL and AIDL
interfaces are different or relying on specific HIDL/AIDL libraries,
and we use template specialization to handle those cases.

Bug: 251850069
Test: presubmit
Change-Id: I8fb24d1aaebc8fa4a34c40129715a3f146023430
parent cef7a217
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
cc_library_headers {
    name: "libcodec2_hal_common",
    export_include_dirs: ["include/"],
    vendor_available: true,
    apex_available: [
        "//apex_available:platform",
        "com.android.media",
        "com.android.media.swcodec",
    ],
    min_sdk_version: "29",
}
+197 −1318

File changed.

Preview size limit exceeded, changes collapsed.

+3 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ cc_library {
    ],

    header_libs: [
        "libcodec2_hal_common",
        "libcodec2_internal", // private
    ],

@@ -77,8 +78,9 @@ cc_library {

    header_libs: [
        "libbinder_headers",
        "libsystem_headers",
        "libcodec2_hal_common",
        "libcodec2_internal", // private
        "libsystem_headers",
    ],

    shared_libs: [
+51 −635

File changed.

Preview size limit exceeded, changes collapsed.