blob: aa71786653925df1196ed9e10361aa387dcee39e [file] [log] [blame]
Bob Badour56786ac2021-02-25 15:24:36 -08001// *** 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
Atneya Nairdd104a02024-05-09 16:22:26 -070037aidl_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
Bob Badour5d0b79c2021-02-25 13:53:40 -080055aidl_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: [
Atneya Nair35e1ef32025-01-08 11:01:20 -080063 "aidl/android/media/IAudioManagerNative.aidl",
Bob Badour5d0b79c2021-02-25 13:53:40 -080064 "aidl/android/media/InterpolatorConfig.aidl",
65 "aidl/android/media/InterpolatorType.aidl",
Mikhail Naganov2a6a3012023-02-13 11:45:03 -080066 "aidl/android/media/MicrophoneInfoFw.aidl",
Bob Badour5d0b79c2021-02-25 13:53:40 -080067 "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 ],
Shunkai Yao49bc61f2023-10-10 19:31:10 +000074 defaults: [
75 "latest_android_media_audio_common_types_import_interface",
Mikhail Naganov2a6a3012023-02-13 11:45:03 -080076 ],
Bob Badour5d0b79c2021-02-25 13:53:40 -080077 backend: {
78 cpp: {
79 min_sdk_version: "29",
80 apex_available: [
81 "//apex_available:platform",
William Escande62185e82022-08-22 11:27:57 -070082 "com.android.btservices",
Bob Badour5d0b79c2021-02-25 13:53:40 -080083 "com.android.media",
84 "com.android.media.swcodec",
85 ],
86 },
Mikhail Naganov2a6a3012023-02-13 11:45:03 -080087 java: {
88 sdk_version: "module_current",
89 },
Bob Badour5d0b79c2021-02-25 13:53:40 -080090 },
91}
92
Atneya Nairdd104a02024-05-09 16:22:26 -070093aidl_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
Bob Badour5d0b79c2021-02-25 13:53:40 -0800105cc_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: [
Shunkai Yao4b574cf2022-12-14 04:27:19 +0000115 "libaudio_aidl_conversion_common_util_cpp",
Bob Badour5d0b79c2021-02-25 13:53:40 -0800116 ],
117 export_header_lib_headers: [
Shunkai Yao4b574cf2022-12-14 04:27:19 +0000118 "libaudio_aidl_conversion_common_util_cpp",
Bob Badour5d0b79c2021-02-25 13:53:40 -0800119 ],
120 host_supported: true,
121 vendor_available: true,
122 double_loadable: true,
123 min_sdk_version: "29",
124 apex_available: [
125 "//apex_available:platform",
William Escande62185e82022-08-22 11:27:57 -0700126 "com.android.btservices",
Bob Badour5d0b79c2021-02-25 13:53:40 -0800127 "com.android.media",
128 "com.android.media.swcodec",
129 ],
130 target: {
131 darwin: {
132 enabled: false,
133 },
134 },
135}
Mikhail Naganove7a26ad2023-05-25 17:36:48 -0700136
137aidl_interface {
138 name: "av-audio-types-aidl",
Mikhail Naganove0540ea2024-11-15 16:39:26 -0800139 unstable: true,
Mikhail Naganove7a26ad2023-05-25 17:36:48 -0700140 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 ],
Shunkai Yao49bc61f2023-10-10 19:31:10 +0000147 defaults: [
148 "latest_android_hardware_audio_core_import_interface",
Mikhail Naganove7a26ad2023-05-25 17:36:48 -0700149 ],
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 },
Mikhail Naganovdd1b47f2024-05-16 19:36:20 -0700159}