blob: 2ab33aced0e77b98be9142aeebacaf6dd8af9504 [file] [log] [blame]
Dan Albert2a8d9c22016-09-23 15:55:49 -07001// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Colin Crosscf3a0b52017-11-16 00:15:28 -080015// Build the master framework library.
16
17// READ ME: ########################################################
18//
19// When updating this list of aidl files, consider if that aidl is
20// part of the SDK API. If it is, also add it to the list in Android.mk
21// that is preprocessed and distributed with the SDK. This list should
22// not contain any aidl files for parcelables, but the one below should
23// if you intend for 3rd parties to be able to send those objects
24// across process boundaries.
25//
26// READ ME: ########################################################
27
Artur Satayev005d7352019-08-02 16:42:07 +010028filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +090029 name: "framework-core-sources",
Colin Crosscf3a0b52017-11-16 00:15:28 -080030 srcs: [
Colin Crosscf3a0b52017-11-16 00:15:28 -080031 "core/java/**/*.java",
Jiyong Park7e1339e2019-08-16 21:17:14 +090032 "core/java/**/*.aidl",
Artur Satayev005d7352019-08-02 16:42:07 +010033 ],
Jiyong Park7e1339e2019-08-16 21:17:14 +090034 path: "core/java",
Artur Satayev005d7352019-08-02 16:42:07 +010035}
Colin Crosscf3a0b52017-11-16 00:15:28 -080036
Jiyong Park00ea0b12019-10-31 20:38:47 +090037// These are subset of framework-core-sources that are needed by the
Ramy Medhat10146d82020-05-19 01:57:41 -040038// android.test.mock library. The implementation of android.test.mock references
39// private members of various components to allow mocking of classes that cannot
40// be mocked without access to those internal implementation details.
Jiyong Park00ea0b12019-10-31 20:38:47 +090041filegroup {
42 name: "framework-core-sources-for-test-mock",
43 srcs: [
Ramy Medhat10146d82020-05-19 01:57:41 -040044 "core/java/android/accounts/AccountManagerCallback.java",
45 "core/java/android/accounts/AccountManagerFuture.java",
46 "core/java/android/accounts/AccountManager.java",
47 "core/java/android/accounts/AccountsException.java",
48 "core/java/android/accounts/AuthenticatorException.java",
49 "core/java/android/accounts/OperationCanceledException.java",
50 "core/java/android/annotation/AnimatorRes.java",
51 "core/java/android/annotation/AnimRes.java",
52 "core/java/android/annotation/AnyRes.java",
53 "core/java/android/annotation/ArrayRes.java",
54 "core/java/android/annotation/AttrRes.java",
55 "core/java/android/annotation/BoolRes.java",
56 "core/java/android/annotation/BroadcastBehavior.java",
57 "core/java/android/annotation/CallbackExecutor.java",
58 "core/java/android/annotation/CallSuper.java",
59 "core/java/android/annotation/CheckResult.java",
60 "core/java/android/annotation/ColorInt.java",
61 "core/java/android/annotation/ColorRes.java",
62 "core/java/android/annotation/DimenRes.java",
63 "core/java/android/annotation/DrawableRes.java",
64 "core/java/android/annotation/FontRes.java",
65 "core/java/android/annotation/FractionRes.java",
66 "core/java/android/annotation/IntDef.java",
67 "core/java/android/annotation/IntegerRes.java",
68 "core/java/android/annotation/IntRange.java",
69 "core/java/android/annotation/LayoutRes.java",
70 "core/java/android/annotation/NonNull.java",
71 "core/java/android/annotation/Nullable.java",
72 "core/java/android/annotation/PluralsRes.java",
73 "core/java/android/annotation/RawRes.java",
74 "core/java/android/annotation/RequiresPermission.java",
75 "core/java/android/annotation/SdkConstant.java",
76 "core/java/android/annotation/Size.java",
77 "core/java/android/annotation/StringDef.java",
78 "core/java/android/annotation/StringRes.java",
79 "core/java/android/annotation/StyleableRes.java",
80 "core/java/android/annotation/StyleRes.java",
81 "core/java/android/annotation/SuppressLint.java",
82 "core/java/android/annotation/SystemApi.java",
83 "core/java/android/annotation/SystemService.java",
84 "core/java/android/annotation/TestApi.java",
85 "core/java/android/annotation/UserIdInt.java",
86 "core/java/android/annotation/XmlRes.java",
87 "core/java/android/app/Application.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +090088 "core/java/android/app/IApplicationThread.aidl",
89 "core/java/android/app/IServiceConnection.aidl",
Ramy Medhat10146d82020-05-19 01:57:41 -040090 "core/java/android/app/PackageDeleteObserver.java",
91 "core/java/android/content/ComponentCallbacks2.java",
92 "core/java/android/content/ComponentCallbacks.java",
93 "core/java/android/content/ContentInterface.java",
94 "core/java/android/content/ContentProvider.java",
95 "core/java/android/content/ContentProviderNative.java",
96 "core/java/android/content/ContentResolver.java",
97 "core/java/android/content/Context.java",
98 "core/java/android/content/ContextWrapper.java",
99 "core/java/android/content/DialogInterface.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900100 "core/java/android/content/IContentProvider.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400101 "core/java/android/content/Intent.java",
102 "core/java/android/content/IntentSender.java",
103 "core/java/android/content/OperationApplicationException.java",
104 "core/java/android/content/pm/ActivityInfo.java",
105 "core/java/android/content/pm/ApplicationInfo.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900106 "core/java/android/content/pm/InstantAppInfo.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400107 "core/java/android/content/pm/IPackageDataObserver.aidl",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900108 "core/java/android/content/pm/KeySet.java",
109 "core/java/android/content/pm/PackageManager.java",
110 "core/java/android/content/pm/VerifierDeviceIdentity.java",
111 "core/java/android/content/res/Resources.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400112 "core/java/android/database/CrossProcessCursor.java",
113 "core/java/android/database/CrossProcessCursorWrapper.java",
114 "core/java/android/database/Cursor.java",
115 "core/java/android/database/CursorWrapper.java",
116 "core/java/android/os/Binder.java",
117 "core/java/android/os/Bundle.java",
118 "core/java/android/os/IBinder.java",
119 "core/java/android/os/IInterface.java",
120 "core/java/android/os/Parcelable.java",
121 "core/java/android/os/ParcelFileDescriptor.java",
122 "core/java/android/os/RemoteException.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900123 "core/java/android/os/storage/VolumeInfo.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400124 "core/java/android/util/AndroidException.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900125 "core/java/android/view/DisplayAdjustments.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400126 "core/java/android/view/ViewDebug.java",
127 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900128 ],
129 path: "core/java",
Jiyong Park673e2982020-01-17 16:14:57 +0900130 visibility: ["//frameworks/base/test-mock"],
Jiyong Park00ea0b12019-10-31 20:38:47 +0900131}
132
Jiyong Park7e1339e2019-08-16 21:17:14 +0900133filegroup {
134 name: "framework-drm-sources",
135 srcs: [
136 "drm/java/**/*.java",
137 ],
138 path: "drm/java",
139}
140
141filegroup {
142 name: "framework-graphics-sources",
143 srcs: [
144 "graphics/java/**/*.java",
145 "graphics/java/**/*.aidl",
146 ],
147 path: "graphics/java",
148}
149
150filegroup {
David Zeuthen045b6de2019-10-29 15:15:18 -0400151 name: "framework-identity-sources",
152 srcs: [
153 "identity/java/**/*.java",
154 ],
155 path: "identity/java",
156}
157
158filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900159 name: "framework-keystore-sources",
160 srcs: [
161 "keystore/java/**/*.java",
162 "keystore/java/**/*.aidl",
163 ],
164 path: "keystore/java",
165}
166
167filegroup {
168 name: "framework-location-sources",
169 srcs: [
170 "location/java/**/*.java",
171 "location/java/**/*.aidl",
172 ],
173 path: "location/java",
174}
175
176filegroup {
177 name: "framework-lowpan-sources",
178 srcs: [
179 "lowpan/java/**/*.java",
180 "lowpan/java/**/*.aidl",
181 ],
182 path: "lowpan/java",
183}
184
185filegroup {
186 name: "framework-media-sources",
187 srcs: [
188 "media/java/**/*.java",
189 "media/java/**/*.aidl",
190 ],
191 path: "media/java",
192}
193
194filegroup {
195 name: "framework-mca-effect-sources",
196 srcs: [
197 "media/mca/effect/java/**/*.java",
198 ],
199 path: "media/mca/effect/java",
200}
201
202filegroup {
203 name: "framework-mca-filterfw-sources",
204 srcs: [
205 "media/mca/filterfw/java/**/*.java",
206 ],
207 path: "media/mca/filterfw/java",
208}
209
210filegroup {
211 name: "framework-mca-filterpacks-sources",
212 srcs: [
213 "media/mca/filterpacks/java/**/*.java",
214 ],
215 path: "media/mca/filterpacks/java",
216}
217
218filegroup {
Tobias Thierer878c77b2019-08-18 15:19:45 +0100219 name: "framework-mime-sources",
220 srcs: [
221 "mime/java/**/*.java",
222 ],
223 path: "mime/java",
224}
225
226filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900227 name: "framework-opengl-sources",
228 srcs: [
229 "opengl/java/**/*.java",
230 ],
231 path: "opengl/java",
232}
233
234filegroup {
235 name: "framework-rs-sources",
236 srcs: [
237 "rs/java/**/*.java",
238 ],
239 path: "rs/java",
240}
241
242filegroup {
243 name: "framework-sax-sources",
244 srcs: [
245 "sax/java/**/*.java",
246 ],
247 path: "sax/java",
248}
249
250filegroup {
251 name: "framework-telecomm-sources",
252 srcs: [
253 "telecomm/java/**/*.java",
254 "telecomm/java/**/*.aidl",
255 ],
256 path: "telecomm/java",
257}
258
259filegroup {
260 name: "framework-telephony-sources",
261 srcs: [
262 "telephony/java/**/*.java",
263 "telephony/java/**/*.aidl",
264 ],
265 path: "telephony/java",
266}
267
Muhammad Qureshied8bca02020-01-24 16:07:49 -0800268genrule {
269 name: "statslog-telephony-common-java-gen",
270 tools: ["stats-log-api-gen"],
271 cmd: "$(location stats-log-api-gen) --java $(out) --module telephony_common"
272 + " --javaPackage com.android.internal.telephony --javaClass TelephonyCommonStatsLog",
273 out: ["com/android/internal/telephony/TelephonyCommonStatsLog.java"],
274}
275
Jiyong Park7e1339e2019-08-16 21:17:14 +0900276filegroup {
Amit Mahajanac0fd652019-09-23 17:59:57 -0700277 name: "framework-telephony-common-sources",
278 srcs: [
279 "telephony/common/**/*.java",
Muhammad Qureshied8bca02020-01-24 16:07:49 -0800280 ":statslog-telephony-common-java-gen",
Amit Mahajanac0fd652019-09-23 17:59:57 -0700281 ],
Amit Mahajanac0fd652019-09-23 17:59:57 -0700282}
283
284filegroup {
Amit Mahajan153d31b2019-10-07 17:41:26 -0700285 name: "framework-mms-sources",
286 srcs: [
287 "mms/java/**/*.java",
288 "mms/java/**/*.aidl",
289 ],
290 path: "mms/java",
291}
292
293filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900294 name: "framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900295 srcs: [
296 // Java/AIDL sources under frameworks/base
Sudheer Shankaf5b36962019-10-04 16:16:13 -0700297 ":framework-blobstore-sources",
Remi NGUYEN VAN92f546d2020-12-23 12:45:08 +0900298 ":framework-connectivity-sources", // framework-connectivity is not yet a module
Jiyong Park5366ea22019-08-19 15:24:49 +0900299 ":framework-core-sources",
300 ":framework-drm-sources",
301 ":framework-graphics-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +0900302 ":framework-jobscheduler-sources", // jobscheduler is not a module for R
Jiyong Park5366ea22019-08-19 15:24:49 +0900303 ":framework-keystore-sources",
David Zeuthen045b6de2019-10-29 15:15:18 -0400304 ":framework-identity-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900305 ":framework-location-sources",
306 ":framework-lowpan-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900307 ":framework-mca-effect-sources",
308 ":framework-mca-filterfw-sources",
309 ":framework-mca-filterpacks-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +0900310 ":framework-media-sources",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700311 ":framework-mms-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900312 ":framework-opengl-sources",
313 ":framework-rs-sources",
314 ":framework-sax-sources",
315 ":framework-telecomm-sources",
Amit Mahajanac0fd652019-09-23 17:59:57 -0700316 ":framework-telephony-common-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900317 ":framework-telephony-sources",
Benedict Wong26497362020-08-10 17:54:33 -0700318 ":framework-vcn-util-sources",
David Su130441b2019-12-14 21:37:20 -0800319 ":framework-wifi-annotations",
David Su6f646ef2019-12-10 13:33:06 -0800320 ":framework-wifi-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900321 ":PacProcessor-aidl-sources",
322 ":ProxyHandler-aidl-sources",
Aaron Huangc4081b22020-01-13 15:03:35 +0800323 ":net-utils-framework-common-srcs",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900324
atrostff948d82019-10-10 19:27:31 +0100325 // AIDL from frameworks/base/native/
326 ":platform-compat-native-aidl",
327
Jiyong Park5366ea22019-08-19 15:24:49 +0900328 // AIDL sources from external directories
David Zeuthen045b6de2019-10-29 15:15:18 -0400329 ":credstore_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900330 ":dumpstate_aidl",
331 ":framework_native_aidl",
332 ":gatekeeper_aidl",
333 ":gsiservice_aidl",
334 ":incidentcompanion_aidl",
335 ":installd_aidl",
336 ":keystore_aidl",
337 ":libaudioclient_aidl",
338 ":libbinder_aidl",
339 ":libbluetooth-binder-aidl",
340 ":libcamera_client_aidl",
341 ":libcamera_client_framework_aidl",
342 ":libupdate_engine_aidl",
Amy Zhangccdbc4d2020-06-08 21:29:59 -0700343 ":resourcemanager_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900344 ":storaged_aidl",
345 ":vold_aidl",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900346
Jiyong Park5366ea22019-08-19 15:24:49 +0900347 // For the generated R.java and Manifest.java
348 ":framework-res{.aapt.srcjar}",
349
350 // etc.
351 ":framework-javastream-protos",
Muhammad Qureshi1de1df42020-01-27 16:36:45 -0800352 ":statslog-framework-java-gen", // FrameworkStatsLog.java
Hayden Gomesc164f6a2020-11-05 16:28:21 -0800353 ":audio_policy_configuration_V7_0",
Jiyong Park5366ea22019-08-19 15:24:49 +0900354 ],
355}
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900356
Jiyong Parkae9972b2019-09-15 20:19:02 +0900357filegroup {
Anton Hanssonb4f35572019-12-02 16:30:22 +0000358 name: "framework-updatable-sources",
359 srcs: [
Jeff Sharkey40182832019-12-18 14:06:48 -0700360 ":framework-mediaprovider-sources",
Hai Zhang82a62272020-01-14 21:56:34 -0800361 ":framework-permission-sources",
Anton Hansson87743c62020-01-08 09:48:18 +0000362 ":framework-sdkextensions-sources",
Anton Hansson221fe902020-03-07 11:40:10 +0000363 ":framework-statsd-sources",
markchien6d06f6d2019-12-16 20:15:20 +0800364 ":framework-tethering-srcs",
Anton Hansson221fe902020-03-07 11:40:10 +0000365 ":framework-wifi-updatable-sources",
Yan Yanf8b973c2021-02-03 16:07:30 -0800366 ":ike-srcs",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000367 ":updatable-media-srcs",
Anton Hansson7a9bc4e2020-08-18 12:52:44 +0100368 ],
369 visibility: ["//visibility:private"],
Anton Hanssonb4f35572019-12-02 16:30:22 +0000370}
371
Anton Hansson5f208a22020-03-07 11:40:10 +0000372java_library {
373 name: "framework-updatable-stubs-module_libs_api",
374 static_libs: [
Yan Yanf8b973c2021-02-03 16:07:30 -0800375 "android.net.ipsec.ike.stubs.module_lib",
Paul Duffinabebc6a2020-05-31 11:35:50 +0100376 "framework-media.stubs.module_lib",
377 "framework-mediaprovider.stubs.module_lib",
378 "framework-permission.stubs.module_lib",
Paul Duffin3bde2d52020-06-02 11:41:13 +0100379 "framework-sdkextensions.stubs.module_lib",
Paul Duffinabebc6a2020-05-31 11:35:50 +0100380 "framework-statsd.stubs.module_lib",
Paul Duffin01fd6ff2020-06-02 11:41:13 +0100381 "framework-tethering.stubs.module_lib",
Paul Duffinabebc6a2020-05-31 11:35:50 +0100382 "framework-wifi.stubs.module_lib",
Anton Hansson5f208a22020-03-07 11:40:10 +0000383 ],
384 sdk_version: "module_current",
Anton Hansson7a9bc4e2020-08-18 12:52:44 +0100385 visibility: ["//visibility:private"],
386}
387
388java_library {
389 name: "framework-all",
390 installable: false,
391 static_libs: [
Yan Yanf8b973c2021-02-03 16:07:30 -0800392 "android.net.ipsec.ike.impl",
Anton Hansson7a9bc4e2020-08-18 12:52:44 +0100393 "framework-minus-apex",
394 "framework-mediaprovider.impl",
395 "framework-permission.impl",
396 "framework-sdkextensions.impl",
397 "framework-statsd.impl",
398 "framework-tethering.impl",
399 "framework-wifi.impl",
400 "updatable-media",
401 ],
402 apex_available: ["//apex_available:platform"],
403 sdk_version: "core_platform",
404 visibility: [
405 // DO NOT ADD ANY MORE ENTRIES TO THIS LIST
406 "//external/robolectric-shadows:__subpackages__",
407 "//frameworks/layoutlib:__subpackages__",
408 ],
Anton Hansson5f208a22020-03-07 11:40:10 +0000409}
410
Anton Hanssonb4f35572019-12-02 16:30:22 +0000411filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900412 name: "framework-all-sources",
413 srcs: [
Tobias Thierer17d0c592019-11-22 16:33:18 +0000414 ":framework-mime-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900415 ":framework-non-updatable-sources",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000416 ":framework-updatable-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900417 ],
418}
419
Jiyong Park392729f2020-01-17 16:32:53 +0900420// AIDL files under these paths are mixture of public and private ones.
421// They shouldn't be exported across module boundaries.
Artur Satayev005d7352019-08-02 16:42:07 +0100422java_defaults {
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900423 name: "framework-aidl-export-defaults",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800424 aidl: {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900425 export_include_dirs: [
426 "core/java",
427 "drm/java",
428 "graphics/java",
David Zeuthen045b6de2019-10-29 15:15:18 -0400429 "identity/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900430 "keystore/java",
431 "location/java",
432 "lowpan/java",
433 "media/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900434 "media/mca/effect/java",
435 "media/mca/filterfw/java",
436 "media/mca/filterpacks/java",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700437 "mms/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900438 "opengl/java",
439 "rs/java",
440 "sax/java",
441 "telecomm/java",
Anton Hansson5f208a22020-03-07 11:40:10 +0000442
Sungsoo Lim895f4f62020-04-08 11:21:36 +0900443 "apex/media/aidl/stable",
Anton Hansson5f208a22020-03-07 11:40:10 +0000444 // TODO(b/147699819): remove this
445 "telephony/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900446 ],
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900447 },
448}
Colin Crosscf3a0b52017-11-16 00:15:28 -0800449
Jiyong Park5366ea22019-08-19 15:24:49 +0900450// Collection of classes that are generated from non-Java files that are not listed in
451// framework_srcs. These have no or very limited dependency to the framework.
452java_library {
453 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800454 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100455 "apex_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800456 "framework-protos",
Peiyong Linb967a4c2020-07-27 22:16:13 -0700457 "updatable-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800458 "android.hidl.base-V1.0-java",
459 "android.hardware.cas-V1.0-java",
Henry Fang43cab922019-12-27 16:50:20 -0800460 "android.hardware.cas-V1.1-java",
461 "android.hardware.cas-V1.2-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800462 "android.hardware.contexthub-V1.0-java",
Anthony Stange521a9052020-02-07 18:45:47 -0500463 "android.hardware.contexthub-V1.1-java",
Yu-Han Yang9fe06dd2019-11-18 16:23:31 -0800464 "android.hardware.gnss-V1.0-java",
Yu-Han Yangad03c472020-01-14 15:31:01 -0800465 "android.hardware.gnss-V2.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800466 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800467 "android.hardware.radio-V1.0-java",
468 "android.hardware.radio-V1.1-java",
469 "android.hardware.radio-V1.2-java",
470 "android.hardware.radio-V1.3-java",
471 "android.hardware.radio-V1.4-java",
Sarah Chine138c5e2019-11-05 13:30:10 -0800472 "android.hardware.radio-V1.5-java",
Daniel Brightbd26ad22020-09-02 17:10:54 -0700473 "android.hardware.radio-V1.6-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800474 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800475 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700476 "android.hardware.thermal-V1.1-java",
477 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800478 "android.hardware.tv.input-V1.0-java-constants",
shubang7e849b02019-10-18 19:36:25 -0700479 "android.hardware.tv.tuner-V1.0-java-constants",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800480 "android.hardware.usb-V1.0-java-constants",
481 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800482 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800483 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000484 "android.hardware.vibrator-V1.0-java",
485 "android.hardware.vibrator-V1.1-java",
486 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900487 "android.hardware.vibrator-V1.3-java",
Janis Danisevskis81d75b42020-11-23 21:59:00 -0800488 "android.security.apc-java",
Hasini Gunasinghe5364fce2020-12-04 17:46:20 +0000489 "android.security.authorization-java",
Jeongik Chaddd4aa02021-01-26 22:34:53 +0900490 "android.system.keystore2-V1-java",
Michael Sund5237962020-11-06 03:28:14 +0000491 "android.system.suspend.control.internal-java",
arangelov1ab61492018-11-22 13:56:50 +0000492 "devicepolicyprotosnano",
Inseob Kim617a7222019-07-30 18:23:26 +0900493
494 "com.android.sysprop.apex",
Nikita Ioffe9c4b572552020-02-06 23:17:17 +0000495 "com.android.sysprop.init",
Alexander Mishkovets77f6bc82020-07-14 19:14:10 +0200496 "com.android.sysprop.localization",
Inseob Kim617a7222019-07-30 18:23:26 +0900497 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800498 ],
Jiyong Park5366ea22019-08-19 15:24:49 +0900499 sdk_version: "core_platform",
500 installable: false,
501}
502
Colin Crossbc2dc312018-10-26 22:34:06 -0700503filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800504 name: "framework-jarjar-rules",
David Su130441b2019-12-14 21:37:20 -0800505 srcs: ["framework-jarjar-rules.txt"],
Steven Moreland19e8d462019-03-08 10:44:22 -0800506}
507
508filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700509 name: "libincident_aidl",
510 srcs: [
Mike Ma643de922019-12-17 10:56:17 -0800511 "core/java/android/os/IIncidentDumpCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700512 "core/java/android/os/IIncidentManager.aidl",
513 "core/java/android/os/IIncidentReportStatusListener.aidl",
514 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700515 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700516}
517
518filegroup {
Michael Wrightc390fbe2018-12-12 19:45:09 +0000519 name: "libvibrator_aidl",
520 srcs: [
521 "core/java/android/os/IExternalVibrationController.aidl",
522 "core/java/android/os/IExternalVibratorService.aidl",
523 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700524 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000525}
526
Chris Ye48dbcaa2020-02-10 13:29:01 -0800527filegroup {
528 name: "libpowermanager_aidl",
529 srcs: [
530 "core/java/android/os/Temperature.aidl",
531 "core/java/android/os/CoolingDevice.aidl",
532 "core/java/android/os/IThermalEventListener.aidl",
533 "core/java/android/os/IThermalStatusListener.aidl",
534 "core/java/android/os/IThermalService.aidl",
535 ],
536 path: "core/java",
537}
538
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100539java_library {
Jiyong Parkc893b462019-10-28 15:33:08 +0900540 name: "framework-minus-apex",
Anton Hansson3e206722020-09-07 14:41:30 +0100541 defaults: ["framework-aidl-export-defaults"],
542 srcs: [
543 ":framework-non-updatable-sources",
544 "core/java/**/*.logtags",
545 ],
546 // See comment on framework-atb-backward-compatibility module below
547 exclude_srcs: ["core/java/android/content/pm/AndroidTestBaseUpdater.java"],
548 aidl: {
549 generate_get_transaction_name: true,
550 },
551 dxflags: [
552 "--core-library",
553 "--multi-dex",
554 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900555 installable: true,
Anton Hansson3e206722020-09-07 14:41:30 +0100556 jarjar_rules: ":framework-jarjar-rules",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100557 javac_shard_size: 150,
Anton Hansson3e206722020-09-07 14:41:30 +0100558 plugins: [
559 "view-inspector-annotation-processor",
560 "staledataclass-annotation-processor",
561 ],
atrostb9c34502019-08-05 12:22:18 +0100562 required: [
563 "framework-platform-compat-config",
Anton Hansson3e206722020-09-07 14:41:30 +0100564 // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly.
565 "gps_debug.conf",
Victor Changa4fae272020-10-30 12:14:34 +0000566 "icu4j-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100567 "libcore-platform-compat-config",
Anton Hansson3e206722020-09-07 14:41:30 +0100568 "protolog.conf.json.gz",
atrost86895aa2019-08-19 16:51:15 +0100569 "services-platform-compat-config",
Ivan Chiang3cb1cbd2020-02-18 10:50:10 +0800570 "documents-ui-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100571 ],
Anton Hansson3e206722020-09-07 14:41:30 +0100572 libs: [
573 "app-compat-annotations",
574 "ext",
575 "framework-updatable-stubs-module_libs_api",
576 "unsupportedappusage",
577 ],
578 sdk_version: "core_platform",
Tobias Thierer17d0c592019-11-22 16:33:18 +0000579 static_libs: [
Daulet Zhanguzin59444d52021-01-25 19:43:53 +0000580 "bouncycastle-repackaged-unbundled",
Anton Hansson3e206722020-09-07 14:41:30 +0100581 "framework-internal-utils",
Tobias Thierer82968532019-11-29 19:39:45 +0000582 // If MimeMap ever becomes its own APEX, then this dependency would need to be removed
583 // in favor of an API stubs dependency in java_library "framework" below.
Tobias Thierer17d0c592019-11-22 16:33:18 +0000584 "mimemap",
Chiachang Wangd5726c12020-11-02 16:51:24 +0800585 "modules-utils-os",
Tobias Thierer17d0c592019-11-22 16:33:18 +0000586 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900587 // For backwards compatibility.
588 stem: "framework",
Jiyong Park79242c22019-12-09 14:45:07 +0900589 apex_available: ["//apex_available:platform"],
markchien8cf2a552020-02-14 11:55:48 +0800590 visibility: [
Jiyong Park212d2e82020-01-03 21:07:38 +0900591 "//frameworks/base",
markchien8cf2a552020-02-14 11:55:48 +0800592 // TODO(b/147128803) remove the below lines
Jiyong Park212d2e82020-01-03 21:07:38 +0900593 "//frameworks/base/apex/blobstore/framework",
594 "//frameworks/base/apex/jobscheduler/framework",
markchien8cf2a552020-02-14 11:55:48 +0800595 "//frameworks/base/packages/Tethering/tests/unit",
Baligh Uddinff8ff122020-10-29 02:11:55 +0000596 "//packages/modules/Connectivity/Tethering/tests/unit",
markchien8cf2a552020-02-14 11:55:48 +0800597 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900598}
599
600// This "framework" module is NOT installed to the device. It's
601// "framework-minus-apex" that gets installed to the device. Note that
602// the filename is still framework.jar (via the stem property) for
603// compatibility reason. The purpose of this module is to provide
604// framework APIs (both public and private) for bundled apps.
605// "framework-minus-apex" can't be used for the purpose because 1)
606// many apps have already hardcoded the name "framework" and
607// 2) it lacks API symbols from updatable modules - as it's clear from
608// its suffix "-minus-apex".
609java_library {
610 name: "framework",
611 defaults: ["framework-aidl-export-defaults"],
612 installable: false, // this lib is a build-only library
613 static_libs: [
Malcolm Chenc7991802020-03-16 15:28:35 -0700614 "app-compat-annotations",
Jiyong Parkc893b462019-10-28 15:33:08 +0900615 "framework-minus-apex",
Anton Hansson5f208a22020-03-07 11:40:10 +0000616 "framework-updatable-stubs-module_libs_api",
Jiyong Parkc893b462019-10-28 15:33:08 +0900617 ],
618 sdk_version: "core_platform",
Jiyong Park79242c22019-12-09 14:45:07 +0900619 apex_available: ["//apex_available:platform"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100620}
621
atrostb9c34502019-08-05 12:22:18 +0100622platform_compat_config {
623 name: "framework-platform-compat-config",
Artur Satayev1503d312020-03-25 15:36:55 +0000624 src: ":framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100625}
626
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000627// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000628// android.test.base library has been removed and which provides support for
629// maintaining backwards compatibility for APKs that target pre-P and depend on
630// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
631// specified on the build command line.
632java_library {
633 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000634 installable: true,
atrost1a945502019-11-04 17:03:54 +0000635 libs: ["app-compat-annotations"],
Paul Duffina3b69212018-01-25 09:58:32 +0000636 srcs: [
637 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
638 ],
639}
640
Colin Crosscf3a0b52017-11-16 00:15:28 -0800641genrule {
Muhammad Qureshi1de1df42020-01-27 16:36:45 -0800642 name: "statslog-framework-java-gen",
643 tools: ["stats-log-api-gen"],
644 cmd: "$(location stats-log-api-gen) --java $(out) --module framework" +
645 " --javaPackage com.android.internal.util --javaClass FrameworkStatsLog --worksource",
646 out: ["com/android/internal/util/FrameworkStatsLog.java"],
647}
648
Hyunyoung Songa28623b2020-02-06 22:56:21 -0800649java_library {
650 name: "uieventloggerlib",
651 srcs: [
652 "core/java/com/android/internal/logging/UiEvent.java",
653 "core/java/com/android/internal/logging/UiEventLogger.java",
654 "core/java/com/android/internal/logging/UiEventLoggerImpl.java",
655 "core/java/com/android/internal/logging/InstanceId.java",
656 "core/java/com/android/internal/logging/InstanceIdSequence.java",
657 ":statslog-framework-java-gen",
658 ],
659}
660
Colin Crosscf3a0b52017-11-16 00:15:28 -0800661gensrcs {
662 name: "framework-javastream-protos",
663 depfile: true,
664
665 tools: [
666 "aprotoc",
667 "protoc-gen-javastream",
668 "soong_zip",
669 ],
670
Anton Hanssond82b2f72019-11-18 13:34:56 +0000671 cmd: "mkdir -p $(genDir)/$(in) " +
672 "&& $(location aprotoc) " +
673 " --plugin=$(location protoc-gen-javastream) " +
674 " --dependency_out=$(depfile) " +
675 " --javastream_out=$(genDir)/$(in) " +
676 " -Iexternal/protobuf/src " +
677 " -I . " +
678 " $(in) " +
679 "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)",
680
Yi Jin437aa6e2018-01-10 11:34:26 -0800681 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800682 ":ipconnectivity-proto-src",
Jeffrey Huang17df4032020-11-25 13:38:36 -0800683 ":libstats_atom_enum_protos",
Josh Gao1c8dfd42021-01-29 13:40:30 -0800684 ":libtombstone_proto-src",
Yi Jin437aa6e2018-01-10 11:34:26 -0800685 "core/proto/**/*.proto",
686 "libs/incident/**/*.proto",
687 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800688 output_extension: "srcjar",
689}
690
Mike Maa47ad722020-01-28 22:04:20 -0800691gensrcs {
692 name: "framework-cppstream-protos",
693 depfile: true,
694
695 tools: [
696 "aprotoc",
697 "protoc-gen-cppstream",
698 ],
699
700 cmd: "mkdir -p $(genDir) " +
701 "&& $(location aprotoc) " +
702 " --plugin=$(location protoc-gen-cppstream) " +
703 " --dependency_out=$(depfile) " +
704 " --cppstream_out=$(genDir) " +
705 " -Iexternal/protobuf/src " +
706 " -I . " +
707 " $(in)",
708
709 srcs: [
710 ":ipconnectivity-proto-src",
Jeffrey Huang17df4032020-11-25 13:38:36 -0800711 ":libstats_atom_enum_protos",
Mike Maa47ad722020-01-28 22:04:20 -0800712 "core/proto/**/*.proto",
713 "libs/incident/**/*.proto",
714 ],
715
716 output_extension: "proto.h",
717}
718
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900719filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900720 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900721 srcs: [
David Su369c9202020-01-09 18:09:56 -0800722 "core/java/android/annotation/CallbackExecutor.java",
David Su511a8142020-01-09 14:02:21 -0800723 "core/java/android/annotation/CheckResult.java",
David Su77517342020-02-18 18:10:07 -0800724 "core/java/android/annotation/CurrentTimeMillisLong.java",
Roshan Piuseb7edd52020-02-21 07:37:30 -0800725 "core/java/android/annotation/Hide.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900726 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900727 "core/java/android/annotation/IntRange.java",
lesld41a2992020-02-20 17:30:58 +0800728 "core/java/android/annotation/LongDef.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700729 "core/java/android/annotation/NonNull.java",
730 "core/java/android/annotation/Nullable.java",
Remi NGUYEN VAN2d14a4b2020-01-31 15:05:22 +0900731 "core/java/android/annotation/RequiresPermission.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700732 "core/java/android/annotation/SdkConstant.java",
David Su369c9202020-01-09 18:09:56 -0800733 "core/java/android/annotation/StringDef.java",
Anton Hanssonb52bd1c2019-12-06 17:07:28 +0000734 "core/java/android/annotation/SystemApi.java",
David Su369c9202020-01-09 18:09:56 -0800735 "core/java/android/annotation/SystemService.java",
Remi NGUYEN VAN2d14a4b2020-01-31 15:05:22 +0900736 "core/java/android/annotation/TestApi.java",
Jeff Sharkeyf5eebf92020-03-06 14:41:56 -0700737 "core/java/android/annotation/WorkerThread.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900738 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900739 "core/java/com/android/internal/annotations/VisibleForTesting.java",
David Su511a8142020-01-09 14:02:21 -0800740 "core/java/com/android/internal/annotations/Immutable.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100741 ],
Chalard Jean95213512019-01-30 21:04:58 +0900742}
743
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000744java_library {
745 name: "framework-annotations-lib",
746 srcs: [ ":framework-annotations" ],
Anton Hansson0a3b7ad2019-12-19 10:17:46 +0000747 sdk_version: "core_current",
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000748}
749
Chalard Jean95213512019-01-30 21:04:58 +0900750filegroup {
evitayane22e47f2019-12-30 16:05:38 -0800751 name: "framework-ike-shared-srcs",
Baligh Uddinb7ec5bb2020-05-27 19:22:36 +0000752 visibility: ["//packages/modules/IPsec"],
evitayane22e47f2019-12-30 16:05:38 -0800753 srcs: [
evitayanbddbfb02020-01-07 21:21:52 -0800754 "core/java/android/annotation/StringDef.java",
evitayane22e47f2019-12-30 16:05:38 -0800755 "core/java/android/net/annotations/PolicyDirection.java",
evitayane9cc4942020-03-03 17:14:47 -0800756 "core/java/com/android/internal/util/HexDump.java",
evitayan0efc7402019-12-20 17:55:57 -0800757 "core/java/com/android/internal/util/IState.java",
758 "core/java/com/android/internal/util/State.java",
759 "core/java/com/android/internal/util/StateMachine.java",
Yan Yana3e954f2020-11-09 00:09:39 -0800760 "services/core/java/com/android/server/vcn/util/PersistableBundleUtils.java",
evitayan996aa2a2019-12-30 11:19:47 -0800761 "telephony/java/android/telephony/Annotation.java",
evitayane22e47f2019-12-30 16:05:38 -0800762 ],
763}
764
765filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900766 name: "framework-networkstack-shared-srcs",
767 srcs: [
768 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900769 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900770 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900771 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900772 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900773 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900774 "core/java/com/android/internal/util/IState.java",
775 "core/java/com/android/internal/util/MessageUtils.java",
776 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900777 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900778 "core/java/com/android/internal/util/State.java",
779 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900780 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900781 "core/java/com/android/internal/util/WakeupMessage.java",
johnson.yeh095b7a02019-12-19 20:30:34 +0800782 "core/java/com/android/internal/util/TokenBucket.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100783 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900784}
785
Roshan Piuseb7edd52020-02-21 07:37:30 -0800786filegroup {
787 name: "framework-services-net-module-wifi-shared-srcs",
788 srcs: [
789 "core/java/android/net/DhcpResults.java",
Roshan Piuseb7edd52020-02-21 07:37:30 -0800790 "core/java/android/util/LocalLog.java",
Roshan Piuseb7edd52020-02-21 07:37:30 -0800791 ],
792}
793
markchien6d06f6d2019-12-16 20:15:20 +0800794// keep these files in sync with the package/Tethering/jarjar-rules.txt for the tethering module.
markchiena6ba54d2019-09-03 15:58:06 +0800795filegroup {
796 name: "framework-tethering-shared-srcs",
797 srcs: [
798 "core/java/android/util/LocalLog.java",
markchien6d06f6d2019-12-16 20:15:20 +0800799 "core/java/com/android/internal/util/IndentingPrintWriter.java",
800 "core/java/com/android/internal/util/IState.java",
801 "core/java/com/android/internal/util/MessageUtils.java",
markchien6d06f6d2019-12-16 20:15:20 +0800802 "core/java/com/android/internal/util/State.java",
803 "core/java/com/android/internal/util/StateMachine.java",
markchien87d3f7d2020-01-08 20:58:23 +0800804 "core/java/com/android/internal/util/TrafficStatsConstants.java",
markchien6d06f6d2019-12-16 20:15:20 +0800805 ],
806}
807
Colin Crossd8e02252017-10-02 17:14:22 -0700808// Build ext.jar
809// ============================================================
810java_library {
811 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700812 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100813 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700814 static_libs: [
815 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700816 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000817 "rappor",
Colin Crossd8e02252017-10-02 17:14:22 -0700818 ],
819 dxflags: ["--core-library"],
820}
821
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700822// ==== java proto host library ==============================
823java_library_host {
824 name: "platformprotos",
825 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800826 ":ipconnectivity-proto-src",
Jeffrey Huang17df4032020-11-25 13:38:36 -0800827 ":libstats_atom_enum_protos",
Jeffrey Huang5d230a22020-11-24 10:57:06 -0800828 ":libstats_internal_protos",
Baligh Uddin3eab1b092020-12-04 00:40:07 +0000829 ":statsd_internal_protos",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700830 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700831 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700832 "core/proto/**/*.proto",
833 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700834 ],
835 proto: {
Jeffrey Huang5d230a22020-11-24 10:57:06 -0800836 include_dirs: [
837 "external/protobuf/src",
838 "frameworks/proto_logging/stats",
839 ],
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700840 type: "full",
841 },
842 errorprone: {
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100843 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700844 },
845}
846
Colin Cross43214162018-08-20 13:57:24 -0700847// ==== java proto device library (for test only) ==============================
848java_library {
849 name: "platformprotosnano",
850 proto: {
851 type: "nano",
852 output_params: ["store_unknown_fields=true"],
853 include_dirs: ["external/protobuf/src"],
854 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000855 exclude_srcs: [
856 "core/proto/android/privacy.proto",
857 "core/proto/android/section.proto",
858 ],
Anton Hansson0a3b7ad2019-12-19 10:17:46 +0000859 sdk_version: "9",
Colin Cross43214162018-08-20 13:57:24 -0700860 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800861 ":ipconnectivity-proto-src",
Jeffrey Huang17df4032020-11-25 13:38:36 -0800862 ":libstats_atom_enum_protos",
Colin Cross43214162018-08-20 13:57:24 -0700863 "core/proto/**/*.proto",
864 "libs/incident/proto/android/os/**/*.proto",
865 ],
866}
867
868// ==== java proto device library (for test only) ==============================
869java_library {
870 name: "platformprotoslite",
871 proto: {
872 type: "lite",
873 include_dirs: ["external/protobuf/src"],
874 },
875
876 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800877 ":ipconnectivity-proto-src",
Jeffrey Huang17df4032020-11-25 13:38:36 -0800878 ":libstats_atom_enum_protos",
Colin Cross43214162018-08-20 13:57:24 -0700879 "core/proto/**/*.proto",
880 "libs/incident/proto/android/os/**/*.proto",
881 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000882 exclude_srcs: [
883 "core/proto/android/privacy.proto",
884 "core/proto/android/section.proto",
885 ],
Anton Hansson0a3b7ad2019-12-19 10:17:46 +0000886 sdk_version: "core_current",
Colin Cross43214162018-08-20 13:57:24 -0700887 // Protos have lots of MissingOverride and similar.
888 errorprone: {
889 javacflags: ["-XepDisableAllChecks"],
890 },
891}
892
Colin Crossaa0d4352017-05-02 14:14:56 -0700893// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000894cc_defaults {
895 name: "libplatformprotos-defaults",
896
Colin Crossaa0d4352017-05-02 14:14:56 -0700897 proto: {
898 export_proto_headers: true,
Jeffrey Huang17df4032020-11-25 13:38:36 -0800899 include_dirs: [
900 "external/protobuf/src",
901 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700902 },
903
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700904 cflags: [
905 "-Wall",
906 "-Werror",
907 "-Wno-unused-parameter",
908 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800909
910 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800911 ":ipconnectivity-proto-src",
Jeffrey Huang17df4032020-11-25 13:38:36 -0800912 ":libstats_atom_enum_protos",
Joe Onorato62c220b2017-11-18 20:32:56 -0800913 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800914 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000915}
916
917cc_library {
918 name: "libplatformprotos",
919 defaults: ["libplatformprotos-defaults"],
920 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800921
Colin Crossaa0d4352017-05-02 14:14:56 -0700922 target: {
923 host: {
924 proto: {
925 type: "full",
926 },
927 },
928 android: {
929 proto: {
930 type: "lite",
931 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000932 shared_libs: [
933 "libprotobuf-cpp-lite",
934 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700935 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700936 enabled: false,
937 },
938 },
939 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700940}
941
Joe Onorato9bd5db72019-04-03 18:19:43 -0700942// This library is meant for vendor code that needs to output protobuf. It links
943// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
944// binary compatibility.
945cc_library {
946 name: "libplatformprotos-static",
947 defaults: ["libplatformprotos-defaults"],
948 host_supported: false,
949
950 // This is okay because this library is only built as a static library. The C++
951 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
952 // but is not authorized to be used outside of debugging.
953 vendor_available: true,
954
955 target: {
956 android: {
957 proto: {
958 type: "lite",
959 },
960 static_libs: [
961 "libprotobuf-cpp-lite",
962 ],
963 shared: {
964 enabled: false,
965 },
966 },
967 },
968}
969
970
Joe Onorato99598ee2019-02-11 15:55:13 +0000971// This is the full proto version of libplatformprotos. It may only
972// be used by test code that is not shipped on the device.
973cc_library {
974 name: "libplatformprotos-test",
975 defaults: ["libplatformprotos-defaults"],
976 host_supported: false,
977
978 target: {
979 android: {
980 proto: {
981 type: "full",
982 },
983 shared: {
984 enabled: false,
985 },
986 },
987 },
988}
989
Songchun Fan000b5b52019-12-04 12:17:38 -0800990filegroup {
991 name: "incremental_aidl",
992 srcs: [
Alex Buynytskyyf4156792020-04-07 14:26:55 -0700993 "core/java/android/os/incremental/IIncrementalServiceConnector.aidl",
Songchun Fan000b5b52019-12-04 12:17:38 -0800994 "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl",
995 ],
996 path: "core/java",
997}
998
Songchun Fan0037c3f2019-10-30 15:20:59 -0700999filegroup {
Songchun Fan6dd47b52019-11-29 15:20:18 -08001000 name: "dataloader_aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001001 srcs: [
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001002 "core/java/android/content/pm/DataLoaderParamsParcel.aidl",
Alex Buynytskyy1ecfcec2019-12-17 12:10:41 -08001003 "core/java/android/content/pm/DataLoaderType.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001004 "core/java/android/content/pm/FileSystemControlParcel.aidl",
Songchun Fan6381d612020-02-26 17:59:41 -08001005 "core/java/android/content/pm/IDataLoader.aidl",
1006 "core/java/android/content/pm/IDataLoaderManager.aidl",
1007 "core/java/android/content/pm/InstallationFileParcel.aidl",
1008 "core/java/android/content/pm/InstallationFileLocation.aidl",
Songchun Fan6dd47b52019-11-29 15:20:18 -08001009 "core/java/android/content/pm/IDataLoaderStatusListener.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001010 "core/java/android/content/pm/IPackageInstallerSessionFileSystemConnector.aidl",
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001011 ],
1012 path: "core/java",
1013}
1014
1015filegroup {
1016 name: "incremental_manager_aidl",
1017 srcs: [
Alex Buynytskyy716588d2020-02-04 13:42:59 -08001018 "core/java/android/os/incremental/IIncrementalService.aidl",
Yurii Zubrytskyi4a25dfb2020-01-10 11:53:24 -08001019 "core/java/android/os/incremental/IncrementalNewFileParams.aidl",
Alex Buynytskyy8ef61ae2020-05-08 16:18:52 -07001020 "core/java/android/os/incremental/IStorageHealthListener.aidl",
1021 "core/java/android/os/incremental/StorageHealthCheckParams.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001022 ],
1023 path: "core/java",
1024}
1025
Songchun Fan000b5b52019-12-04 12:17:38 -08001026aidl_interface {
1027 name: "libincremental_aidl",
Jiyong Park803dc1c2020-04-13 12:55:24 +09001028 unstable: true,
Songchun Fan000b5b52019-12-04 12:17:38 -08001029 srcs: [
1030 ":incremental_aidl",
1031 ],
1032 backend: {
1033 java: {
1034 sdk_version: "28",
1035 },
1036 cpp: {
1037 enabled: true,
1038 },
1039 ndk: {
1040 enabled: true,
1041 },
1042 },
1043}
Joe Onorato99598ee2019-02-11 15:55:13 +00001044
Songchun Fan6dd47b52019-11-29 15:20:18 -08001045aidl_interface {
1046 name: "libdataloader_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001047 unstable: true,
Yi Jin04625ad2017-10-17 18:29:33 -07001048 srcs: [
Songchun Fan6dd47b52019-11-29 15:20:18 -08001049 ":dataloader_aidl",
Yi Jin04625ad2017-10-17 18:29:33 -07001050 ],
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001051 imports: [
1052 "libincremental_aidl",
1053 ],
Songchun Fan0037c3f2019-10-30 15:20:59 -07001054 backend: {
1055 java: {
1056 sdk_version: "28",
1057 },
1058 cpp: {
1059 enabled: true,
1060 },
1061 ndk: {
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001062 enabled: false,
1063 },
1064 },
1065}
Yi Jin04625ad2017-10-17 18:29:33 -07001066
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001067aidl_interface {
1068 name: "libincremental_manager_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001069 unstable: true,
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001070 srcs: [
1071 ":incremental_manager_aidl",
1072 ],
1073 imports: [
1074 "libincremental_aidl",
1075 "libdataloader_aidl",
1076 ],
1077 backend: {
1078 java: {
1079 sdk_version: "28",
1080 },
1081 cpp: {
Songchun Fan0037c3f2019-10-30 15:20:59 -07001082 enabled: true,
1083 },
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001084 ndk: {
1085 enabled: false,
1086 },
Songchun Fan0037c3f2019-10-30 15:20:59 -07001087 },
Yi Jin04625ad2017-10-17 18:29:33 -07001088}
1089
Colin Crossa2b78a72018-03-29 13:31:04 -07001090// TODO(b/77285514): remove this once the last few hidl interfaces have been
1091// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -07001092java_library {
1093 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +01001094 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -07001095
1096 srcs: [
1097 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001098 "core/java/android/annotation/IntDef.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -08001099 "core/java/android/annotation/IntRange.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001100 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -08001101 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001102 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -08001103 "core/java/android/annotation/TestApi.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -08001104 "core/java/android/os/HidlMemory.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001105 "core/java/android/os/HwBinder.java",
1106 "core/java/android/os/HwBlob.java",
1107 "core/java/android/os/HwParcel.java",
1108 "core/java/android/os/IHwBinder.java",
1109 "core/java/android/os/IHwInterface.java",
1110 "core/java/android/os/DeadObjectException.java",
1111 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -07001112 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001113 "core/java/android/os/RemoteException.java",
1114 "core/java/android/util/AndroidException.java",
1115 ],
Artur Satayevbc3d8b92019-12-10 17:47:53 +00001116 libs: [ "unsupportedappusage" ],
Steven Morelandeddafe92017-10-02 16:58:41 -07001117
1118 dxflags: ["--core-library"],
1119 installable: false,
1120}
Nan Zhang2db709d2017-11-08 20:48:46 -08001121
1122python_defaults {
1123 name: "base_default",
1124 version: {
1125 py2: {
Nan Zhang2db709d2017-11-08 20:48:46 -08001126 enabled: false,
1127 embedded_launcher: false,
1128 },
Haibo Huang715857d2020-03-05 11:58:47 -08001129 py3: {
1130 enabled: true,
1131 embedded_launcher: true,
1132 },
Nan Zhang2db709d2017-11-08 20:48:46 -08001133 },
1134}
1135
1136python_binary_host {
1137 name: "fontchain_linter",
1138 defaults: ["base_default"],
1139 main: "tools/fonts/fontchain_linter.py",
1140 srcs: [
1141 "tools/fonts/fontchain_linter.py",
1142 ],
1143 libs: [
1144 "fontTools",
1145 ],
1146}
Nan Zhang172875b2018-02-27 11:24:03 -08001147
Nan Zhangaf251302018-08-30 10:59:51 -07001148filegroup {
Insun Kang06b25ae2018-11-20 10:05:44 +09001149 name: "framework-media-annotation-srcs",
1150 srcs: [
Jeff Sharkey40182832019-12-18 14:06:48 -07001151 ":framework-annotations",
Insun Kang06b25ae2018-11-20 10:05:44 +09001152 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001153 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001154 "core/java/android/annotation/DrawableRes.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001155 "core/java/android/annotation/LongDef.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001156 "core/java/android/annotation/StringDef.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001157 ],
1158}
1159
1160filegroup {
1161 name: "framework-mediaprovider-annotation-sources",
1162 srcs: [
1163 ":framework-annotations",
1164 "core/java/android/annotation/BytesLong.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001165 "core/java/android/annotation/CurrentTimeSecondsLong.java",
1166 "core/java/android/annotation/DurationMillisLong.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001167 ],
1168}
1169
Andrei Onea7a2985c2019-02-18 15:28:35 +00001170// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1171// annotations to private apis
1172aidl_mapping {
1173 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001174 srcs: [":framework-all-sources"],
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001175 output: "framework-aidl-mappings.txt",
Dario Freni2ce84342019-04-26 13:06:22 +01001176}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001177
Chen Xuc00cf992019-09-05 22:07:42 -07001178// Avoid including Parcelable classes as we don't want to have two copies of
Malcolm Chen58b59a52020-01-14 19:25:13 -08001179// Parcelable cross the libraries. This is used by telephony-common (frameworks/opt/telephony)
1180// and TeleService app (packages/services/Telephony).
Chen Xuc00cf992019-09-05 22:07:42 -07001181filegroup {
Malcolm Chen58b59a52020-01-14 19:25:13 -08001182 name: "framework-telephony-common-shared-srcs",
Chen Xuc00cf992019-09-05 22:07:42 -07001183 srcs: [
1184 "core/java/android/os/RegistrantList.java",
1185 "core/java/android/os/Registrant.java",
1186 "core/java/android/util/LocalLog.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001187 "core/java/android/util/TimeUtils.java",
1188 "core/java/com/android/internal/os/SomeArgs.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001189 "core/java/com/android/internal/util/AsyncChannel.java",
Meng Wang3043dac2020-01-14 14:04:10 -08001190 "core/java/com/android/internal/util/AsyncService.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001191 "core/java/com/android/internal/util/BitwiseInputStream.java",
Michele68370a82019-10-31 11:48:43 -07001192 "core/java/com/android/internal/util/FastXmlSerializer.java",
1193 "core/java/com/android/internal/util/HexDump.java",
Meng Wang8532de92019-12-02 10:42:20 -08001194 "core/java/com/android/internal/util/IState.java",
Michele68370a82019-10-31 11:48:43 -07001195 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001196 "core/java/com/android/internal/util/Preconditions.java",
1197 "core/java/com/android/internal/util/State.java",
1198 "core/java/com/android/internal/util/StateMachine.java",
Michele68370a82019-10-31 11:48:43 -07001199 "core/java/com/android/internal/util/UserIcons.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001200 ],
1201}
Jiyong Park7fb4b182019-12-20 14:35:43 +09001202
Chen Xu4fea79c2019-10-08 18:39:03 -07001203// Avoid including Parcelable classes as we don't want to have two copies of
1204// Parcelable cross the process.
1205filegroup {
1206 name: "framework-cellbroadcast-shared-srcs",
1207 srcs: [
Jordan Liu15a72742019-11-20 13:55:18 -08001208 "core/java/android/os/HandlerExecutor.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001209 "core/java/android/util/LocalLog.java",
Jordan Liu15a72742019-11-20 13:55:18 -08001210 "core/java/com/android/internal/util/IState.java",
1211 "core/java/com/android/internal/util/Preconditions.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001212 "core/java/com/android/internal/util/State.java",
1213 "core/java/com/android/internal/util/StateMachine.java",
1214 ],
atrostce84de02019-10-08 16:16:47 +01001215}
Roshan Pius09de13e2019-10-16 13:16:04 -07001216
1217filegroup {
Jayachandran Ceeffa012019-10-23 18:06:33 -07001218 name: "framework-ims-common-shared-srcs",
1219 srcs: [
Jayachandran Ceeffa012019-10-23 18:06:33 -07001220 "core/java/android/os/RegistrantList.java",
1221 "core/java/android/os/Registrant.java",
1222 "core/java/com/android/internal/os/SomeArgs.java",
1223 "core/java/com/android/internal/util/Preconditions.java",
1224 ],
1225}
1226
David Su511a8142020-01-09 14:02:21 -08001227// utility classes statically linked into framework-wifi and dynamically linked
1228// into wifi-service
1229java_library {
1230 name: "framework-wifi-util-lib",
Anton Hansson5a088e02020-03-31 18:09:01 +01001231 sdk_version: "module_current",
David Su511a8142020-01-09 14:02:21 -08001232 srcs: [
1233 "core/java/android/content/pm/BaseParceledListSlice.java",
1234 "core/java/android/content/pm/ParceledListSlice.java",
David Su369c9202020-01-09 18:09:56 -08001235 "core/java/android/os/HandlerExecutor.java",
David Su511a8142020-01-09 14:02:21 -08001236 "core/java/com/android/internal/util/AsyncChannel.java",
1237 "core/java/com/android/internal/util/AsyncService.java",
1238 "core/java/com/android/internal/util/Protocol.java",
1239 "core/java/com/android/internal/util/Preconditions.java",
David Su369c9202020-01-09 18:09:56 -08001240 "telephony/java/android/telephony/Annotation.java",
David Su298cd362020-01-17 19:02:49 +00001241 ":net-utils-framework-wifi-common-srcs",
David Su511a8142020-01-09 14:02:21 -08001242 ],
1243 libs: [
1244 "framework-annotations-lib",
1245 "unsupportedappusage",
David Su511a8142020-01-09 14:02:21 -08001246 ],
David Su57bca312020-04-21 19:49:32 -07001247 visibility: [
1248 "//frameworks/base/wifi",
1249 "//frameworks/base/services/net",
Baligh Uddin6bd6a562020-12-23 22:53:04 +00001250 "//packages/modules/Wifi/framework",
David Su57bca312020-04-21 19:49:32 -07001251 ],
David Su511a8142020-01-09 14:02:21 -08001252}
1253
David Su72f9d632020-02-10 15:58:26 -08001254filegroup {
1255 name: "framework-wifi-util-lib-aidls",
1256 srcs: ["core/java/android/content/pm/ParceledListSlice.aidl"],
1257 path: "core/java",
1258}
1259
David Su511a8142020-01-09 14:02:21 -08001260// utility classes statically linked into wifi-service
Jayachandran Ceeffa012019-10-23 18:06:33 -07001261filegroup {
Roshan Pius62eb61c2019-12-06 13:49:47 -08001262 name: "framework-wifi-service-shared-srcs",
Roshan Pius09de13e2019-10-16 13:16:04 -07001263 srcs: [
Roshan Piusc93cd7a2019-12-09 07:39:41 -08001264 "core/java/android/net/InterfaceConfiguration.java",
Roshan Pius04769a52019-12-04 13:03:47 -08001265 "core/java/android/util/BackupUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001266 "core/java/android/util/Rational.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001267 "core/java/com/android/internal/util/FastXmlSerializer.java",
1268 "core/java/com/android/internal/util/HexDump.java",
1269 "core/java/com/android/internal/util/IState.java",
1270 "core/java/com/android/internal/util/MessageUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001271 "core/java/com/android/internal/util/State.java",
1272 "core/java/com/android/internal/util/StateMachine.java",
1273 "core/java/com/android/internal/util/WakeupMessage.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001274 ],
Baligh Uddin5879a832020-12-24 06:05:52 +00001275 visibility: [
1276 "//frameworks/opt/net/wifi/service",
1277 "//packages/modules/Wifi/service",
1278 ],
Roshan Pius09de13e2019-10-16 13:16:04 -07001279}
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001280
Jiyong Park7fb4b182019-12-20 14:35:43 +09001281// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
1282metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
Jiyong Park7fb4b182019-12-20 14:35:43 +09001283 "--hide-package com.android.server " +
Hayden Gomesc164f6a2020-11-05 16:28:21 -08001284 "--hide-package android.audio.policy.configuration.V7_0 " +
Jiyong Park7fb4b182019-12-20 14:35:43 +09001285 "--error UnhiddenSystemApi " +
1286 "--hide RequiresPermission " +
1287 "--hide CallbackInterface " +
1288 "--hide MissingPermission --hide BroadcastBehavior " +
1289 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
1290 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
Makoto Onuki78216582020-05-26 10:55:53 -07001291 "--error NoSettingsProvider " +
Aurimas Liutikas1f76a5a2019-11-20 17:51:42 -08001292 "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " +
1293 "--api-lint-ignore-prefix android.icu. " +
1294 "--api-lint-ignore-prefix java. " +
1295 "--api-lint-ignore-prefix junit. " +
1296 "--api-lint-ignore-prefix org. "
Jiyong Park7fb4b182019-12-20 14:35:43 +09001297
1298build = [
1299 "StubLibraries.bp",
1300 "ApiDocs.bp",
1301]