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

Commit 86654418 authored by Ray Essick's avatar Ray Essick
Browse files

Expose libraries for moving mediametrics to module

export a few libraries to the media apex and add
explicit declarations of min_sdk for those libraries.
Groundwork for moving mediametrics from framework to module.

bpfmt of libaaudio/Android.bp as indicated by repo upload

Bug: 189976186
Test: build
Test: dumpsys media.metrics
Test: atest CtsMediaHostTestCases
Flag: EXEMPT refactor
Change-Id: I65b41bd057862ca36ff62543fc05f75f639aab9b
parent 9fa7607b
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -44,3 +44,15 @@ cc_library_headers {
    export_shared_lib_headers: ["aaudio-aidl-cpp"],
    shared_libs: ["aaudio-aidl-cpp"],
}

cc_library_headers {
    // used in mediametrics's audio analytics
    // just for the defines and typedefs, so no libraries like in libaaudio_headers
    name: "libaaudio_headers-module",
    export_include_dirs: ["include"],
    apex_available: [
        "//apex_available:platform",
        "com.android.media",
    ],
    min_sdk_version: "29",
}
+7 −0
Original line number Diff line number Diff line
@@ -281,5 +281,12 @@ aidl_interface {
        java: {
            sdk_version: "module_current",
        },
        ndk: {
            min_sdk_version: "29",
            apex_available: [
                "//apex_available:platform",
                "com.android.media",
            ],
        },
    },
}
+7 −0
Original line number Diff line number Diff line
@@ -336,6 +336,13 @@ aidl_interface {
        java: {
            sdk_version: "module_current",
        },
        ndk: {
            min_sdk_version: "29",
            apex_available: [
                "//apex_available:platform",
                "com.android.media",
            ],
        },
    },
}

+9 −0
Original line number Diff line number Diff line
@@ -18,6 +18,15 @@ aidl_interface {
    srcs: [
        "aidl/android/media/SharedFileRegion.aidl",
    ],
    backend: {
        ndk: {
            min_sdk_version: "29",
            apex_available: [
                "//apex_available:platform",
                "com.android.media",
            ],
        },
    },
}

cc_library {