blob: 43156d3970af1ca320117d94f1c3c64d158fe96c [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
38// android.test.mock library. Ideally, the library should use public APIs only,
39// but unfortunately its API signature has some references to these private APIs.
40filegroup {
41 name: "framework-core-sources-for-test-mock",
42 srcs: [
43 "core/java/android/app/IApplicationThread.aidl",
44 "core/java/android/app/IServiceConnection.aidl",
45 "core/java/android/content/IContentProvider.java",
46 "core/java/android/content/pm/IPackageDataObserver.aidl",
47 "core/java/android/content/pm/InstantAppInfo.java",
48 "core/java/android/content/pm/KeySet.java",
49 "core/java/android/content/pm/PackageManager.java",
50 "core/java/android/content/pm/VerifierDeviceIdentity.java",
51 "core/java/android/content/res/Resources.java",
52 "core/java/android/os/storage/VolumeInfo.java",
53 "core/java/android/view/DisplayAdjustments.java",
54 ],
55 path: "core/java",
56}
57
Jiyong Park7e1339e2019-08-16 21:17:14 +090058filegroup {
59 name: "framework-drm-sources",
60 srcs: [
61 "drm/java/**/*.java",
62 ],
63 path: "drm/java",
64}
65
66filegroup {
67 name: "framework-graphics-sources",
68 srcs: [
69 "graphics/java/**/*.java",
70 "graphics/java/**/*.aidl",
71 ],
72 path: "graphics/java",
73}
74
75filegroup {
76 name: "framework-keystore-sources",
77 srcs: [
78 "keystore/java/**/*.java",
79 "keystore/java/**/*.aidl",
80 ],
81 path: "keystore/java",
82}
83
84filegroup {
85 name: "framework-location-sources",
86 srcs: [
87 "location/java/**/*.java",
88 "location/java/**/*.aidl",
89 ],
90 path: "location/java",
91}
92
93filegroup {
94 name: "framework-lowpan-sources",
95 srcs: [
96 "lowpan/java/**/*.java",
97 "lowpan/java/**/*.aidl",
98 ],
99 path: "lowpan/java",
100}
101
102filegroup {
103 name: "framework-media-sources",
104 srcs: [
105 "media/java/**/*.java",
106 "media/java/**/*.aidl",
107 ],
108 path: "media/java",
109}
110
111filegroup {
112 name: "framework-mca-effect-sources",
113 srcs: [
114 "media/mca/effect/java/**/*.java",
115 ],
116 path: "media/mca/effect/java",
117}
118
119filegroup {
120 name: "framework-mca-filterfw-sources",
121 srcs: [
122 "media/mca/filterfw/java/**/*.java",
123 ],
124 path: "media/mca/filterfw/java",
125}
126
127filegroup {
128 name: "framework-mca-filterpacks-sources",
129 srcs: [
130 "media/mca/filterpacks/java/**/*.java",
131 ],
132 path: "media/mca/filterpacks/java",
133}
134
135filegroup {
Tobias Thierer878c77b2019-08-18 15:19:45 +0100136 name: "framework-mime-sources",
137 srcs: [
138 "mime/java/**/*.java",
139 ],
140 path: "mime/java",
141}
142
143filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900144 name: "framework-opengl-sources",
145 srcs: [
146 "opengl/java/**/*.java",
147 ],
148 path: "opengl/java",
149}
150
151filegroup {
152 name: "framework-rs-sources",
153 srcs: [
154 "rs/java/**/*.java",
155 ],
156 path: "rs/java",
157}
158
159filegroup {
160 name: "framework-sax-sources",
161 srcs: [
162 "sax/java/**/*.java",
163 ],
164 path: "sax/java",
165}
166
167filegroup {
168 name: "framework-telecomm-sources",
169 srcs: [
170 "telecomm/java/**/*.java",
171 "telecomm/java/**/*.aidl",
172 ],
173 path: "telecomm/java",
174}
175
176filegroup {
177 name: "framework-telephony-sources",
178 srcs: [
179 "telephony/java/**/*.java",
180 "telephony/java/**/*.aidl",
181 ],
182 path: "telephony/java",
183}
184
185filegroup {
Amit Mahajanac0fd652019-09-23 17:59:57 -0700186 name: "framework-telephony-common-sources",
187 srcs: [
188 "telephony/common/**/*.java",
189 ],
190 path: "telephony/common",
191}
192
193filegroup {
Amit Mahajan153d31b2019-10-07 17:41:26 -0700194 name: "framework-mms-sources",
195 srcs: [
196 "mms/java/**/*.java",
197 "mms/java/**/*.aidl",
198 ],
199 path: "mms/java",
200}
201
202filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900203 name: "framework-wifi-sources",
204 srcs: [
205 "wifi/java/**/*.java",
206 "wifi/java/**/*.aidl",
207 ],
208 path: "wifi/java",
209}
210
Jiyong Park5366ea22019-08-19 15:24:49 +0900211filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900212 name: "framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900213 srcs: [
214 // Java/AIDL sources under frameworks/base
215 ":framework-core-sources",
216 ":framework-drm-sources",
217 ":framework-graphics-sources",
218 ":framework-keystore-sources",
219 ":framework-location-sources",
220 ":framework-lowpan-sources",
221 ":framework-media-sources",
222 ":framework-mca-effect-sources",
223 ":framework-mca-filterfw-sources",
224 ":framework-mca-filterpacks-sources",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700225 ":framework-mms-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900226 ":framework-opengl-sources",
227 ":framework-rs-sources",
228 ":framework-sax-sources",
229 ":framework-telecomm-sources",
Amit Mahajanac0fd652019-09-23 17:59:57 -0700230 ":framework-telephony-common-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900231 ":framework-telephony-sources",
232 ":framework-wifi-sources",
233 ":PacProcessor-aidl-sources",
234 ":ProxyHandler-aidl-sources",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900235
atrostff948d82019-10-10 19:27:31 +0100236 // AIDL from frameworks/base/native/
237 ":platform-compat-native-aidl",
238
Jiyong Park5366ea22019-08-19 15:24:49 +0900239 // AIDL sources from external directories
240 ":dumpstate_aidl",
241 ":framework_native_aidl",
242 ":gatekeeper_aidl",
243 ":gsiservice_aidl",
244 ":incidentcompanion_aidl",
245 ":installd_aidl",
246 ":keystore_aidl",
247 ":libaudioclient_aidl",
248 ":libbinder_aidl",
249 ":libbluetooth-binder-aidl",
250 ":libcamera_client_aidl",
251 ":libcamera_client_framework_aidl",
252 ":libupdate_engine_aidl",
253 ":storaged_aidl",
254 ":vold_aidl",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900255
Jiyong Park5366ea22019-08-19 15:24:49 +0900256 // For the generated R.java and Manifest.java
257 ":framework-res{.aapt.srcjar}",
258
259 // etc.
260 ":framework-javastream-protos",
261 ":framework-statslog-gen",
262 ],
263}
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900264
Jiyong Parkae9972b2019-09-15 20:19:02 +0900265filegroup {
Anton Hanssonb4f35572019-12-02 16:30:22 +0000266 name: "framework-updatable-sources",
267 srcs: [
268 ":framework-sdkext-sources",
markchien6d06f6d2019-12-16 20:15:20 +0800269 ":framework-tethering-srcs",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000270 ":updatable-media-srcs",
271 ]
272}
273
274filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900275 name: "framework-all-sources",
276 srcs: [
Tobias Thierer17d0c592019-11-22 16:33:18 +0000277 ":framework-mime-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900278 ":framework-non-updatable-sources",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000279 ":framework-updatable-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900280 ],
281}
282
Artur Satayev005d7352019-08-02 16:42:07 +0100283java_defaults {
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900284 name: "framework-aidl-export-defaults",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800285 aidl: {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900286 export_include_dirs: [
287 "core/java",
288 "drm/java",
289 "graphics/java",
290 "keystore/java",
291 "location/java",
292 "lowpan/java",
293 "media/java",
294 "media/apex/java",
295 "media/mca/effect/java",
296 "media/mca/filterfw/java",
297 "media/mca/filterpacks/java",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700298 "mms/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900299 "opengl/java",
300 "rs/java",
301 "sax/java",
302 "telecomm/java",
303 "telephony/java",
304 "wifi/java",
305 ],
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900306 },
307}
Colin Crosscf3a0b52017-11-16 00:15:28 -0800308
Jiyong Park5366ea22019-08-19 15:24:49 +0900309// Collection of classes that are generated from non-Java files that are not listed in
310// framework_srcs. These have no or very limited dependency to the framework.
311java_library {
312 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800313 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100314 "apex_aidl_interface-java",
Kalesh Singh759af322019-06-19 12:17:43 -0700315 "suspend_control_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800316 "framework-protos",
Peiyong Lin9ca1dd82019-01-12 17:44:29 -0800317 "game-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800318 "android.hidl.base-V1.0-java",
Henry Fang5215ac92019-02-01 19:24:55 +0000319 "android.hardware.cas-V1.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800320 "android.hardware.cas-V1.0-java",
321 "android.hardware.contexthub-V1.0-java",
322 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800323 "android.hardware.radio-V1.0-java",
324 "android.hardware.radio-V1.1-java",
325 "android.hardware.radio-V1.2-java",
326 "android.hardware.radio-V1.3-java",
327 "android.hardware.radio-V1.4-java",
Sarah Chine138c5e2019-11-05 13:30:10 -0800328 "android.hardware.radio-V1.5-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800329 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800330 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700331 "android.hardware.thermal-V1.1-java",
332 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800333 "android.hardware.tv.input-V1.0-java-constants",
334 "android.hardware.usb-V1.0-java-constants",
335 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800336 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800337 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000338 "android.hardware.vibrator-V1.0-java",
339 "android.hardware.vibrator-V1.1-java",
340 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900341 "android.hardware.vibrator-V1.3-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800342 "android.hardware.wifi-V1.0-java-constants",
arangelov1ab61492018-11-22 13:56:50 +0000343 "devicepolicyprotosnano",
Inseob Kim617a7222019-07-30 18:23:26 +0900344
345 "com.android.sysprop.apex",
346 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800347 ],
Jiyong Park5366ea22019-08-19 15:24:49 +0900348 sdk_version: "core_platform",
349 installable: false,
350}
351
352java_defaults {
353 name: "framework-defaults",
354 defaults: ["framework-aidl-export-defaults"],
355 installable: true,
356
Jiyong Park5366ea22019-08-19 15:24:49 +0900357 aidl: {
358 generate_get_transaction_name: true,
359 },
360
Jiyong Parkae9972b2019-09-15 20:19:02 +0900361 srcs: ["core/java/**/*.logtags"],
362
Jiyong Park5366ea22019-08-19 15:24:49 +0900363 exclude_srcs: [
364 // See comment on framework-atb-backward-compatibility module below
365 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
366 ],
367
368 sdk_version: "core_platform",
369 libs: [
Artur Satayev700e08b2019-12-11 13:03:32 +0000370 "app-compat-annotations",
Jiyong Park5366ea22019-08-19 15:24:49 +0900371 "ext",
Artur Satayev700e08b2019-12-11 13:03:32 +0000372 "unsupportedappusage",
Jiyong Park5366ea22019-08-19 15:24:49 +0900373 "updatable_media_stubs",
markchien6d06f6d2019-12-16 20:15:20 +0800374 "framework-tethering",
Jiyong Park5366ea22019-08-19 15:24:49 +0900375 ],
376
377 jarjar_rules: ":framework-jarjar-rules",
378
Tobias Thierer878c77b2019-08-18 15:19:45 +0100379 static_libs: [
380 "framework-internal-utils",
Tobias Thierer878c77b2019-08-18 15:19:45 +0100381 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800382
Wei Jia0a8a8f02017-12-05 17:05:29 -0800383 required: [
Anton Hansson11905c62018-11-27 12:10:30 +0000384 // TODO: remove gps_debug when the build system propagates "required" properly.
385 "gps_debug.conf",
Logan Chien71ddfea2018-02-27 16:43:50 +0800386 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800387
Colin Crosscf3a0b52017-11-16 00:15:28 -0800388 dxflags: [
389 "--core-library",
390 "--multi-dex",
391 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100392
Ashley Roseb47ddd42019-01-28 19:54:09 -0500393 plugins: ["view-inspector-annotation-processor"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100394}
395
Colin Crossbc2dc312018-10-26 22:34:06 -0700396filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800397 name: "framework-jarjar-rules",
398 srcs: ["jarjar_rules_hidl.txt"],
399}
400
401filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700402 name: "libincident_aidl",
403 srcs: [
404 "core/java/android/os/IIncidentManager.aidl",
405 "core/java/android/os/IIncidentReportStatusListener.aidl",
406 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700407 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700408}
409
410filegroup {
411 name: "statsd_aidl",
412 srcs: [
413 "core/java/android/os/IStatsCompanionService.aidl",
414 "core/java/android/os/IStatsManager.aidl",
Tej Singha0c89dd2019-01-25 16:39:18 -0800415 "core/java/android/os/IStatsPullerCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700416 ],
Dan Willemsena38ff9f2019-06-11 10:56:01 -0700417 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700418}
419
Michael Wrightc390fbe2018-12-12 19:45:09 +0000420filegroup {
421 name: "libvibrator_aidl",
422 srcs: [
423 "core/java/android/os/IExternalVibrationController.aidl",
424 "core/java/android/os/IExternalVibratorService.aidl",
425 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700426 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000427}
428
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100429java_library {
Jiyong Parkc893b462019-10-28 15:33:08 +0900430 name: "framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100431 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900432 srcs: [":framework-non-updatable-sources"],
Jiyong Parkc893b462019-10-28 15:33:08 +0900433 installable: true,
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100434 javac_shard_size: 150,
atrostb9c34502019-08-05 12:22:18 +0100435 required: [
436 "framework-platform-compat-config",
437 "libcore-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100438 "services-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100439 ],
Tobias Thierer17d0c592019-11-22 16:33:18 +0000440 static_libs: [
Tobias Thierer82968532019-11-29 19:39:45 +0000441 // If MimeMap ever becomes its own APEX, then this dependency would need to be removed
442 // in favor of an API stubs dependency in java_library "framework" below.
Tobias Thierer17d0c592019-11-22 16:33:18 +0000443 "mimemap",
444 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900445 // For backwards compatibility.
446 stem: "framework",
Jiyong Park79242c22019-12-09 14:45:07 +0900447 apex_available: ["//apex_available:platform"],
Jiyong Parkc893b462019-10-28 15:33:08 +0900448}
449
450// This "framework" module is NOT installed to the device. It's
451// "framework-minus-apex" that gets installed to the device. Note that
452// the filename is still framework.jar (via the stem property) for
453// compatibility reason. The purpose of this module is to provide
454// framework APIs (both public and private) for bundled apps.
455// "framework-minus-apex" can't be used for the purpose because 1)
456// many apps have already hardcoded the name "framework" and
457// 2) it lacks API symbols from updatable modules - as it's clear from
458// its suffix "-minus-apex".
459java_library {
460 name: "framework",
461 defaults: ["framework-aidl-export-defaults"],
462 installable: false, // this lib is a build-only library
463 static_libs: [
464 "framework-minus-apex",
Jiyong Park025e56e2019-12-18 17:26:38 +0900465 "updatable_media_stubs",
Anton Hansson355000d2019-12-06 17:07:45 +0000466 "framework-sdkext-stubs-systemapi",
467 // TODO(jiyong): add more stubs for APEXes here
Jiyong Parkc893b462019-10-28 15:33:08 +0900468 ],
469 sdk_version: "core_platform",
Jiyong Park79242c22019-12-09 14:45:07 +0900470 apex_available: ["//apex_available:platform"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100471}
472
473java_library {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900474 name: "framework-all",
475 defaults: ["framework-defaults"],
476 srcs: [":framework-all-sources"],
477 installable: false,
Jiyong Park79242c22019-12-09 14:45:07 +0900478 apex_available: ["//apex_available:platform"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900479}
480
481java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100482 name: "framework-annotation-proc",
483 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900484 srcs: [":framework-all-sources"],
Artur Satayev700e08b2019-12-11 13:03:32 +0000485 libs: [
486 "app-compat-annotations",
487 "unsupportedappusage",
488 ],
Anna Trostanetski97088e92019-06-26 14:47:58 +0100489 installable: false,
atrostb9c34502019-08-05 12:22:18 +0100490 plugins: [
491 "unsupportedappusage-annotation-processor",
492 "compat-changeid-annotation-processor",
493 ],
494}
495
496platform_compat_config {
497 name: "framework-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100498 src: ":framework-annotation-proc",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100499}
500
Paul Duffin521975802019-06-05 10:35:08 +0100501// A library including just UnsupportedAppUsage.java classes.
502//
503// Provided for target so that libraries can use it without depending on
504// the whole of framework or the core platform API.
505//
506// Built for host so that the annotation processor can also use this annotation.
507java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100508 name: "unsupportedappusage-annotation",
Paul Duffin521975802019-06-05 10:35:08 +0100509 host_supported: true,
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100510 srcs: [
511 "core/java/android/annotation/IntDef.java",
512 "core/java/android/annotation/UnsupportedAppUsage.java",
Paul Duffinc1308012019-10-10 16:33:42 +0100513 ],
514 static_libs: [
515 "art.module.api.annotations",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100516 ],
Paul Duffin521975802019-06-05 10:35:08 +0100517
518 sdk_version: "core_current",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800519}
520
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000521// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000522// android.test.base library has been removed and which provides support for
523// maintaining backwards compatibility for APKs that target pre-P and depend on
524// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
525// specified on the build command line.
526java_library {
527 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000528 installable: true,
atrost1a945502019-11-04 17:03:54 +0000529 libs: ["app-compat-annotations"],
Paul Duffina3b69212018-01-25 09:58:32 +0000530 srcs: [
531 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
532 ],
533}
534
Colin Crosscf3a0b52017-11-16 00:15:28 -0800535genrule {
536 name: "framework-statslog-gen",
537 tools: ["stats-log-api-gen"],
538 cmd: "$(location stats-log-api-gen) --java $(out)",
David Chen0a368b22017-12-06 16:28:16 -0800539 out: ["android/util/StatsLogInternal.java"],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800540}
541
542gensrcs {
543 name: "framework-javastream-protos",
544 depfile: true,
545
546 tools: [
547 "aprotoc",
548 "protoc-gen-javastream",
549 "soong_zip",
550 ],
551
Anton Hanssond82b2f72019-11-18 13:34:56 +0000552 cmd: "mkdir -p $(genDir)/$(in) " +
553 "&& $(location aprotoc) " +
554 " --plugin=$(location protoc-gen-javastream) " +
555 " --dependency_out=$(depfile) " +
556 " --javastream_out=$(genDir)/$(in) " +
557 " -Iexternal/protobuf/src " +
558 " -I . " +
559 " $(in) " +
560 "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)",
561
Yi Jin437aa6e2018-01-10 11:34:26 -0800562 srcs: [
563 "core/proto/**/*.proto",
564 "libs/incident/**/*.proto",
565 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800566 output_extension: "srcjar",
567}
568
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900569filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900570 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900571 srcs: [
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900572 "core/java/android/annotation/NonNull.java",
573 "core/java/android/annotation/Nullable.java",
574 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900575 "core/java/android/annotation/IntRange.java",
Anton Hanssonb52bd1c2019-12-06 17:07:28 +0000576 "core/java/android/annotation/SystemApi.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900577 "core/java/android/annotation/UnsupportedAppUsage.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900578 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900579 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100580 ],
Chalard Jean95213512019-01-30 21:04:58 +0900581}
582
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000583java_library {
584 name: "framework-annotations-lib",
585 srcs: [ ":framework-annotations" ],
586 sdk_version: "current",
587}
588
Chalard Jean95213512019-01-30 21:04:58 +0900589filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900590 name: "framework-networkstack-shared-srcs",
591 srcs: [
592 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900593 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900594 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900595 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900596 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900597 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900598 "core/java/com/android/internal/util/IState.java",
599 "core/java/com/android/internal/util/MessageUtils.java",
600 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900601 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900602 "core/java/com/android/internal/util/State.java",
603 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900604 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900605 "core/java/com/android/internal/util/WakeupMessage.java",
johnson.yeh095b7a02019-12-19 20:30:34 +0800606 "core/java/com/android/internal/util/TokenBucket.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900607 "core/java/android/net/shared/*.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100608 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900609}
610
markchien6d06f6d2019-12-16 20:15:20 +0800611// keep these files in sync with the package/Tethering/jarjar-rules.txt for the tethering module.
markchiena6ba54d2019-09-03 15:58:06 +0800612filegroup {
613 name: "framework-tethering-shared-srcs",
614 srcs: [
615 "core/java/android/util/LocalLog.java",
markchien6d06f6d2019-12-16 20:15:20 +0800616 "core/java/com/android/internal/util/IndentingPrintWriter.java",
617 "core/java/com/android/internal/util/IState.java",
618 "core/java/com/android/internal/util/MessageUtils.java",
619 "core/java/com/android/internal/util/Preconditions.java",
620 "core/java/com/android/internal/util/State.java",
621 "core/java/com/android/internal/util/StateMachine.java",
markchien87d3f7d2020-01-08 20:58:23 +0800622 "core/java/com/android/internal/util/TrafficStatsConstants.java",
markchien986750b2019-12-06 15:24:53 +0800623 "core/java/android/net/shared/Inet4AddressUtils.java",
markchien6d06f6d2019-12-16 20:15:20 +0800624 ],
625}
626
627filegroup {
628 name: "framework-tethering-annotations",
629 srcs: [
630 "core/java/android/annotation/NonNull.java",
631 "core/java/android/annotation/SystemApi.java",
markchiena6ba54d2019-09-03 15:58:06 +0800632 ],
633}
Colin Crossd8e02252017-10-02 17:14:22 -0700634// Build ext.jar
635// ============================================================
636java_library {
637 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700638 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100639 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700640 static_libs: [
641 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700642 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000643 "rappor",
Tony Mak64c4cb22018-09-25 13:38:28 +0100644 "libtextclassifier-java",
645 ],
646 required: [
647 "libtextclassifier",
Colin Crossd8e02252017-10-02 17:14:22 -0700648 ],
649 dxflags: ["--core-library"],
650}
651
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700652// ==== java proto host library ==============================
653java_library_host {
654 name: "platformprotos",
655 srcs: [
656 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700657 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700658 "core/proto/**/*.proto",
659 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700660 ],
661 proto: {
662 include_dirs: ["external/protobuf/src"],
663 type: "full",
664 },
665 errorprone: {
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100666 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700667 },
668}
669
Colin Cross43214162018-08-20 13:57:24 -0700670// ==== java proto device library (for test only) ==============================
671java_library {
672 name: "platformprotosnano",
673 proto: {
674 type: "nano",
675 output_params: ["store_unknown_fields=true"],
676 include_dirs: ["external/protobuf/src"],
677 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000678 exclude_srcs: [
679 "core/proto/android/privacy.proto",
680 "core/proto/android/section.proto",
681 ],
Colin Cross43214162018-08-20 13:57:24 -0700682 sdk_version: "current",
683 srcs: [
684 "core/proto/**/*.proto",
685 "libs/incident/proto/android/os/**/*.proto",
686 ],
687}
688
689// ==== java proto device library (for test only) ==============================
690java_library {
691 name: "platformprotoslite",
692 proto: {
693 type: "lite",
694 include_dirs: ["external/protobuf/src"],
695 },
696
697 srcs: [
698 "core/proto/**/*.proto",
699 "libs/incident/proto/android/os/**/*.proto",
700 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000701 exclude_srcs: [
702 "core/proto/android/privacy.proto",
703 "core/proto/android/section.proto",
704 ],
Colin Cross43214162018-08-20 13:57:24 -0700705 // Protos have lots of MissingOverride and similar.
706 errorprone: {
707 javacflags: ["-XepDisableAllChecks"],
708 },
709}
710
Colin Crossaa0d4352017-05-02 14:14:56 -0700711// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000712cc_defaults {
713 name: "libplatformprotos-defaults",
714
Colin Crossaa0d4352017-05-02 14:14:56 -0700715 proto: {
716 export_proto_headers: true,
717 include_dirs: ["external/protobuf/src"],
718 },
719
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700720 cflags: [
721 "-Wall",
722 "-Werror",
723 "-Wno-unused-parameter",
724 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800725
726 srcs: [
727 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800728 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000729}
730
731cc_library {
732 name: "libplatformprotos",
733 defaults: ["libplatformprotos-defaults"],
734 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800735
Colin Crossaa0d4352017-05-02 14:14:56 -0700736 target: {
737 host: {
738 proto: {
739 type: "full",
740 },
741 },
742 android: {
743 proto: {
744 type: "lite",
745 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000746 shared_libs: [
747 "libprotobuf-cpp-lite",
748 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700749 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700750 enabled: false,
751 },
752 },
753 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700754}
755
Joe Onorato9bd5db72019-04-03 18:19:43 -0700756// This library is meant for vendor code that needs to output protobuf. It links
757// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
758// binary compatibility.
759cc_library {
760 name: "libplatformprotos-static",
761 defaults: ["libplatformprotos-defaults"],
762 host_supported: false,
763
764 // This is okay because this library is only built as a static library. The C++
765 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
766 // but is not authorized to be used outside of debugging.
767 vendor_available: true,
768
769 target: {
770 android: {
771 proto: {
772 type: "lite",
773 },
774 static_libs: [
775 "libprotobuf-cpp-lite",
776 ],
777 shared: {
778 enabled: false,
779 },
780 },
781 },
782}
783
784
Joe Onorato99598ee2019-02-11 15:55:13 +0000785// This is the full proto version of libplatformprotos. It may only
786// be used by test code that is not shipped on the device.
787cc_library {
788 name: "libplatformprotos-test",
789 defaults: ["libplatformprotos-defaults"],
790 host_supported: false,
791
792 target: {
793 android: {
794 proto: {
795 type: "full",
796 },
797 shared: {
798 enabled: false,
799 },
800 },
801 },
802}
803
Songchun Fan000b5b52019-12-04 12:17:38 -0800804filegroup {
805 name: "incremental_aidl",
806 srcs: [
807 "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl",
808 ],
809 path: "core/java",
810}
811
812aidl_interface {
813 name: "libincremental_aidl",
814 srcs: [
815 ":incremental_aidl",
816 ],
817 backend: {
818 java: {
819 sdk_version: "28",
820 },
821 cpp: {
822 enabled: true,
823 },
824 ndk: {
825 enabled: true,
826 },
827 },
828}
Joe Onorato99598ee2019-02-11 15:55:13 +0000829
Yi Jin04625ad2017-10-17 18:29:33 -0700830gensrcs {
831 name: "gen-platform-proto-constants",
832 depfile: true,
833
834 tools: [
835 "aprotoc",
836 "protoc-gen-cppstream",
837 ],
838
839 srcs: [
Kweku Adamseadd1232018-02-05 16:45:13 -0800840 "core/proto/android/os/backtrace.proto",
Kweku Adams59e6fd72017-12-27 15:48:14 -0800841 "core/proto/android/os/batterytype.proto",
Yi Jin0eb22342017-11-06 17:17:27 -0800842 "core/proto/android/os/cpufreq.proto",
Yi Jine2f7f792017-11-01 17:08:27 -0700843 "core/proto/android/os/cpuinfo.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700844 "core/proto/android/os/data.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700845 "core/proto/android/os/kernelwake.proto",
846 "core/proto/android/os/pagetypeinfo.proto",
847 "core/proto/android/os/procrank.proto",
Kweku Adamsf5cc5752017-12-20 17:59:17 -0800848 "core/proto/android/os/ps.proto",
Yi Jin0dfa7522017-11-06 17:43:47 -0800849 "core/proto/android/os/system_properties.proto",
Yi Jin3c034c92017-12-22 17:36:47 -0800850 "core/proto/android/util/event_log_tags.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700851 "core/proto/android/util/log.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700852 ],
853
854 // Append protoc-gen-cppstream tool's PATH otherwise aprotoc can't find the plugin tool
Yi Jin3c034c92017-12-22 17:36:47 -0800855 cmd: "mkdir -p $(genDir) " +
856 "&& $(location aprotoc) " +
857 " --plugin=$(location protoc-gen-cppstream) " +
858 " --dependency_out=$(depfile) " +
859 " --cppstream_out=$(genDir) " +
860 " -Iexternal/protobuf/src " +
861 " -I . " +
862 " $(in)",
Yi Jin04625ad2017-10-17 18:29:33 -0700863
Logan Chien71ddfea2018-02-27 16:43:50 +0800864 output_extension: "proto.h",
Yi Jin04625ad2017-10-17 18:29:33 -0700865}
866
Joe Onorato99598ee2019-02-11 15:55:13 +0000867
Dan Albert2a8d9c22016-09-23 15:55:49 -0700868subdirs = [
Yi Jin0a3406f2017-06-22 19:23:11 -0700869 "cmds/*",
Jeff Sharkey0c686e72017-10-23 16:04:31 -0600870 "core/*",
Colin Cross4f8d9e62016-12-01 15:55:00 -0800871 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -0700872 "media/*",
Colin Cross747e7c12017-10-24 16:21:22 -0700873 "proto",
Fabien Sanglard19160202017-01-12 14:24:31 -0500874 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700875 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -0700876 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700877]
Svetoslav Ganov74c99832016-12-05 20:07:20 -0800878
879optional_subdirs = [
880 "core/tests/utiltests/jni",
881]
Steven Morelandeddafe92017-10-02 16:58:41 -0700882
Colin Crossa2b78a72018-03-29 13:31:04 -0700883// TODO(b/77285514): remove this once the last few hidl interfaces have been
884// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -0700885java_library {
886 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +0100887 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -0700888
889 srcs: [
890 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800891 "core/java/android/annotation/IntDef.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -0800892 "core/java/android/annotation/IntRange.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700893 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -0800894 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800895 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -0800896 "core/java/android/annotation/TestApi.java",
Andrei Onea24ec3212019-03-15 17:35:05 +0000897 "core/java/android/annotation/UnsupportedAppUsage.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -0800898 "core/java/android/os/HidlMemory.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700899 "core/java/android/os/HwBinder.java",
900 "core/java/android/os/HwBlob.java",
901 "core/java/android/os/HwParcel.java",
902 "core/java/android/os/IHwBinder.java",
903 "core/java/android/os/IHwInterface.java",
904 "core/java/android/os/DeadObjectException.java",
905 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -0700906 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700907 "core/java/android/os/RemoteException.java",
908 "core/java/android/util/AndroidException.java",
909 ],
910
911 dxflags: ["--core-library"],
912 installable: false,
913}
Nan Zhang2db709d2017-11-08 20:48:46 -0800914
915python_defaults {
916 name: "base_default",
917 version: {
918 py2: {
919 enabled: true,
920 embedded_launcher: true,
921 },
922 py3: {
923 enabled: false,
924 embedded_launcher: false,
925 },
926 },
927}
928
929python_binary_host {
930 name: "fontchain_linter",
931 defaults: ["base_default"],
932 main: "tools/fonts/fontchain_linter.py",
933 srcs: [
934 "tools/fonts/fontchain_linter.py",
935 ],
936 libs: [
937 "fontTools",
938 ],
939}
Nan Zhang172875b2018-02-27 11:24:03 -0800940
Nan Zhangaf251302018-08-30 10:59:51 -0700941filegroup {
942 name: "framework-annotation-nonnull-srcs",
943 srcs: [
944 "core/java/android/annotation/NonNull.java",
945 ],
946}
Insun Kang06b25ae2018-11-20 10:05:44 +0900947
948filegroup {
949 name: "framework-media-annotation-srcs",
950 srcs: [
951 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +0900952 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +0900953 "core/java/android/annotation/DrawableRes.java",
954 "core/java/android/annotation/IntDef.java",
955 "core/java/android/annotation/LongDef.java",
956 "core/java/android/annotation/NonNull.java",
957 "core/java/android/annotation/Nullable.java",
958 "core/java/android/annotation/RequiresPermission.java",
959 "core/java/android/annotation/SdkConstant.java",
960 "core/java/android/annotation/StringDef.java",
Sungsoo Limbb3b4012019-01-23 13:17:53 +0900961 "core/java/android/annotation/SystemApi.java",
Dongwon Kang3584c662018-11-27 11:14:08 -0800962 "core/java/android/annotation/TestApi.java",
Insun Kang06b25ae2018-11-20 10:05:44 +0900963 "core/java/android/annotation/UnsupportedAppUsage.java",
Dongwon Kang3584c662018-11-27 11:14:08 -0800964 "core/java/com/android/internal/annotations/GuardedBy.java",
Insun Kang06b25ae2018-11-20 10:05:44 +0900965 ],
966}
967
Andrei Onea7a2985c2019-02-18 15:28:35 +0000968// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
969// annotations to private apis
970aidl_mapping {
971 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900972 srcs: [":framework-all-sources"],
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100973 output: "framework-aidl-mappings.txt",
Dario Freni2ce84342019-04-26 13:06:22 +0100974}
Anna Trostanetski97088e92019-06-26 14:47:58 +0100975
976genrule {
977 name: "framework-annotation-proc-index",
978 srcs: [":framework-annotation-proc"],
979 cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)",
980 out: ["unsupportedappusage_index.csv"],
981 dist: {
982 targets: ["droidcore"],
983 },
984}
Chen Xu0e9d6752019-10-08 18:39:03 -0700985
Chen Xu0e9d6752019-10-08 18:39:03 -0700986filegroup {
987 name: "framework-cellbroadcast-shared-srcs",
988 srcs: [
Jordan Liubf68dc82019-11-20 13:55:18 -0800989 "core/java/android/os/HandlerExecutor.java",
990 "core/java/android/util/LocalLog.java",
Chen Xu0e9d6752019-10-08 18:39:03 -0700991 "core/java/android/util/Slog.java",
Jordan Liubf68dc82019-11-20 13:55:18 -0800992 "core/java/com/android/internal/util/IState.java",
993 "core/java/com/android/internal/util/Preconditions.java",
994 "core/java/com/android/internal/util/State.java",
995 "core/java/com/android/internal/util/StateMachine.java",
Chen Xu0e9d6752019-10-08 18:39:03 -0700996 ],
997}
Chen Xuc00cf992019-09-05 22:07:42 -0700998
999// Avoid including Parcelable classes as we don't want to have two copies of
1000// Parcelable cross the process.
1001filegroup {
1002 name: "framework-telephony-stack-shared-srcs",
1003 srcs: [
1004 "core/java/android/os/RegistrantList.java",
1005 "core/java/android/os/Registrant.java",
1006 "core/java/android/util/LocalLog.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001007 "core/java/android/util/TimeUtils.java",
1008 "core/java/com/android/internal/os/SomeArgs.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001009 "core/java/com/android/internal/util/AsyncChannel.java",
1010 "core/java/com/android/internal/util/BitwiseInputStream.java",
Michele68370a82019-10-31 11:48:43 -07001011 "core/java/com/android/internal/util/FastXmlSerializer.java",
1012 "core/java/com/android/internal/util/HexDump.java",
Meng Wang8532de92019-12-02 10:42:20 -08001013 "core/java/com/android/internal/util/IState.java",
Michele68370a82019-10-31 11:48:43 -07001014 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001015 "core/java/com/android/internal/util/Preconditions.java",
1016 "core/java/com/android/internal/util/State.java",
1017 "core/java/com/android/internal/util/StateMachine.java",
Michele68370a82019-10-31 11:48:43 -07001018 "core/java/com/android/internal/util/UserIcons.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001019 ],
1020}
Jiyong Park7fb4b182019-12-20 14:35:43 +09001021
1022// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
1023metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
1024 "--ignore-classes-on-classpath " +
1025 "--hide-package com.android.server " +
1026 "--error UnhiddenSystemApi " +
1027 "--hide RequiresPermission " +
1028 "--hide CallbackInterface " +
1029 "--hide MissingPermission --hide BroadcastBehavior " +
1030 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
1031 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
1032 "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.*"
1033
1034build = [
1035 "StubLibraries.bp",
1036 "ApiDocs.bp",
1037]