• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS.  PLEASE
2//     CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
3//     DEPENDING ON IT IN YOUR PROJECT. ***
4package {
5    default_applicable_licenses: ["frameworks_av_license"],
6}
7
8// Added automatically by a large-scale-change that took the approach of
9// 'apply every license found to every target'. While this makes sure we respect
10// every license restriction, it may not be entirely correct.
11//
12// e.g. GPL in an MIT project might only apply to the contrib/ directory.
13//
14// Please consider splitting the single license below into multiple licenses,
15// taking care not to lose any license_kind information, and overriding the
16// default license using the 'licenses: [...]' property on targets as needed.
17//
18// For unused files, consider creating a 'fileGroup' with "//visibility:private"
19// to attach the license to, and including a comment whether the files may be
20// used in the current project.
21// See: http://go/android-license-faq
22license {
23    name: "frameworks_av_license",
24    visibility: [":__subpackages__"],
25    license_kinds: [
26        "SPDX-license-identifier-Apache-2.0",
27        "SPDX-license-identifier-BSD",
28        "SPDX-license-identifier-MIT",
29        "SPDX-license-identifier-Unicode-DFS",
30        "legacy_by_exception_only", // by exception only
31    ],
32    license_text: [
33        "NOTICE",
34    ],
35}
36
37aidl_interface_defaults {
38    name: "audio-aidl-defaults",
39    unstable: true,
40    host_supported: true,
41    backend: {
42        cpp: {
43            enabled: true,
44        },
45        java: {
46            enabled: true,
47        },
48        rust: {
49            enabled: true,
50        },
51    },
52
53}
54
55aidl_interface {
56    name: "av-types-aidl",
57    unstable: true,
58    host_supported: true,
59    vendor_available: true,
60    double_loadable: true,
61    local_include_dir: "aidl",
62    srcs: [
63        "aidl/android/media/IAudioManagerNative.aidl",
64        "aidl/android/media/InterpolatorConfig.aidl",
65        "aidl/android/media/InterpolatorType.aidl",
66        "aidl/android/media/MicrophoneInfoFw.aidl",
67        "aidl/android/media/VolumeShaperConfiguration.aidl",
68        "aidl/android/media/VolumeShaperConfigurationOptionFlag.aidl",
69        "aidl/android/media/VolumeShaperConfigurationType.aidl",
70        "aidl/android/media/VolumeShaperOperation.aidl",
71        "aidl/android/media/VolumeShaperOperationFlag.aidl",
72        "aidl/android/media/VolumeShaperState.aidl",
73    ],
74    defaults: [
75        "latest_android_media_audio_common_types_import_interface",
76    ],
77    backend: {
78        cpp: {
79            min_sdk_version: "29",
80            apex_available: [
81                "//apex_available:platform",
82                "com.android.bt",
83                "com.android.media",
84                "com.android.media.swcodec",
85            ],
86        },
87        java: {
88            sdk_version: "module_current",
89        },
90    },
91}
92
93aidl_interface {
94    name: "audio-permission-aidl",
95    // TODO remove
96    vendor_available: true,
97    double_loadable: true,
98    defaults: ["audio-aidl-defaults"],
99    local_include_dir: "aidl",
100    srcs: [
101        "aidl/com/android/media/permission/*",
102    ],
103}
104
105cc_library_headers {
106    name: "av-headers",
107    export_include_dirs: ["include"],
108    static_libs: [
109        "av-types-aidl-cpp",
110    ],
111    export_static_lib_headers: [
112        "av-types-aidl-cpp",
113    ],
114    header_libs: [
115        "libaudio_aidl_conversion_common_util_cpp",
116    ],
117    export_header_lib_headers: [
118        "libaudio_aidl_conversion_common_util_cpp",
119    ],
120    host_supported: true,
121    vendor_available: true,
122    double_loadable: true,
123    min_sdk_version: "29",
124    apex_available: [
125        "//apex_available:platform",
126        "com.android.bt",
127        "com.android.media",
128        "com.android.media.swcodec",
129    ],
130    target: {
131        darwin: {
132            enabled: false,
133        },
134    },
135}
136
137aidl_interface {
138    name: "av-audio-types-aidl",
139    unstable: true,
140    host_supported: true,
141    vendor_available: true,
142    double_loadable: true,
143    local_include_dir: "aidl",
144    srcs: [
145        "aidl/android/media/audio/IHalAdapterVendorExtension.aidl",
146    ],
147    defaults: [
148        "latest_android_hardware_audio_core_import_interface",
149    ],
150    backend: {
151        // The C++ backend is disabled transitively due to use of FMQ by the audio core HAL.
152        cpp: {
153            enabled: false,
154        },
155        java: {
156            sdk_version: "module_current",
157        },
158    },
159}
160