blob: 26a28c6661b1578c823b80686988d96d06fe0a07 [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 {
David Zeuthen045b6de2019-10-29 15:15:18 -040076 name: "framework-identity-sources",
77 srcs: [
78 "identity/java/**/*.java",
79 ],
80 path: "identity/java",
81}
82
83filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +090084 name: "framework-keystore-sources",
85 srcs: [
86 "keystore/java/**/*.java",
87 "keystore/java/**/*.aidl",
88 ],
89 path: "keystore/java",
90}
91
92filegroup {
93 name: "framework-location-sources",
94 srcs: [
95 "location/java/**/*.java",
96 "location/java/**/*.aidl",
97 ],
98 path: "location/java",
99}
100
101filegroup {
102 name: "framework-lowpan-sources",
103 srcs: [
104 "lowpan/java/**/*.java",
105 "lowpan/java/**/*.aidl",
106 ],
107 path: "lowpan/java",
108}
109
110filegroup {
111 name: "framework-media-sources",
112 srcs: [
113 "media/java/**/*.java",
114 "media/java/**/*.aidl",
115 ],
116 path: "media/java",
117}
118
119filegroup {
120 name: "framework-mca-effect-sources",
121 srcs: [
122 "media/mca/effect/java/**/*.java",
123 ],
124 path: "media/mca/effect/java",
125}
126
127filegroup {
128 name: "framework-mca-filterfw-sources",
129 srcs: [
130 "media/mca/filterfw/java/**/*.java",
131 ],
132 path: "media/mca/filterfw/java",
133}
134
135filegroup {
136 name: "framework-mca-filterpacks-sources",
137 srcs: [
138 "media/mca/filterpacks/java/**/*.java",
139 ],
140 path: "media/mca/filterpacks/java",
141}
142
143filegroup {
Tobias Thierer878c77b2019-08-18 15:19:45 +0100144 name: "framework-mime-sources",
145 srcs: [
146 "mime/java/**/*.java",
147 ],
148 path: "mime/java",
149}
150
151filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900152 name: "framework-opengl-sources",
153 srcs: [
154 "opengl/java/**/*.java",
155 ],
156 path: "opengl/java",
157}
158
159filegroup {
160 name: "framework-rs-sources",
161 srcs: [
162 "rs/java/**/*.java",
163 ],
164 path: "rs/java",
165}
166
167filegroup {
168 name: "framework-sax-sources",
169 srcs: [
170 "sax/java/**/*.java",
171 ],
172 path: "sax/java",
173}
174
175filegroup {
176 name: "framework-telecomm-sources",
177 srcs: [
178 "telecomm/java/**/*.java",
179 "telecomm/java/**/*.aidl",
180 ],
181 path: "telecomm/java",
182}
183
184filegroup {
185 name: "framework-telephony-sources",
186 srcs: [
187 "telephony/java/**/*.java",
188 "telephony/java/**/*.aidl",
189 ],
190 path: "telephony/java",
191}
192
193filegroup {
Amit Mahajanac0fd652019-09-23 17:59:57 -0700194 name: "framework-telephony-common-sources",
195 srcs: [
196 "telephony/common/**/*.java",
197 ],
198 path: "telephony/common",
199}
200
201filegroup {
Amit Mahajan153d31b2019-10-07 17:41:26 -0700202 name: "framework-mms-sources",
203 srcs: [
204 "mms/java/**/*.java",
205 "mms/java/**/*.aidl",
206 ],
207 path: "mms/java",
208}
209
210filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900211 name: "framework-wifi-sources",
212 srcs: [
213 "wifi/java/**/*.java",
214 "wifi/java/**/*.aidl",
215 ],
216 path: "wifi/java",
217}
218
Jiyong Park5366ea22019-08-19 15:24:49 +0900219filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900220 name: "framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900221 srcs: [
222 // Java/AIDL sources under frameworks/base
223 ":framework-core-sources",
224 ":framework-drm-sources",
225 ":framework-graphics-sources",
226 ":framework-keystore-sources",
David Zeuthen045b6de2019-10-29 15:15:18 -0400227 ":framework-identity-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900228 ":framework-location-sources",
229 ":framework-lowpan-sources",
230 ":framework-media-sources",
231 ":framework-mca-effect-sources",
232 ":framework-mca-filterfw-sources",
233 ":framework-mca-filterpacks-sources",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700234 ":framework-mms-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900235 ":framework-opengl-sources",
236 ":framework-rs-sources",
237 ":framework-sax-sources",
238 ":framework-telecomm-sources",
Amit Mahajanac0fd652019-09-23 17:59:57 -0700239 ":framework-telephony-common-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900240 ":framework-telephony-sources",
241 ":framework-wifi-sources",
242 ":PacProcessor-aidl-sources",
243 ":ProxyHandler-aidl-sources",
Aaron Huangc4081b22020-01-13 15:03:35 +0800244 ":net-utils-framework-common-srcs",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900245
atrostff948d82019-10-10 19:27:31 +0100246 // AIDL from frameworks/base/native/
247 ":platform-compat-native-aidl",
248
Jiyong Park5366ea22019-08-19 15:24:49 +0900249 // AIDL sources from external directories
David Zeuthen045b6de2019-10-29 15:15:18 -0400250 ":credstore_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900251 ":dumpstate_aidl",
252 ":framework_native_aidl",
253 ":gatekeeper_aidl",
254 ":gsiservice_aidl",
255 ":incidentcompanion_aidl",
256 ":installd_aidl",
257 ":keystore_aidl",
258 ":libaudioclient_aidl",
259 ":libbinder_aidl",
260 ":libbluetooth-binder-aidl",
261 ":libcamera_client_aidl",
262 ":libcamera_client_framework_aidl",
263 ":libupdate_engine_aidl",
264 ":storaged_aidl",
265 ":vold_aidl",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900266
Jiyong Park5366ea22019-08-19 15:24:49 +0900267 // For the generated R.java and Manifest.java
268 ":framework-res{.aapt.srcjar}",
269
270 // etc.
271 ":framework-javastream-protos",
272 ":framework-statslog-gen",
273 ],
274}
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900275
Jiyong Parkae9972b2019-09-15 20:19:02 +0900276filegroup {
Anton Hanssonb4f35572019-12-02 16:30:22 +0000277 name: "framework-updatable-sources",
278 srcs: [
Anton Hansson87743c62020-01-08 09:48:18 +0000279 ":framework-sdkextensions-sources",
markchien6d06f6d2019-12-16 20:15:20 +0800280 ":framework-tethering-srcs",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000281 ":updatable-media-srcs",
Benedict Wong7f58c0d2019-11-20 22:52:48 -0800282 ":ike-srcs",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000283 ]
284}
285
286filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900287 name: "framework-all-sources",
288 srcs: [
Tobias Thierer17d0c592019-11-22 16:33:18 +0000289 ":framework-mime-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900290 ":framework-non-updatable-sources",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000291 ":framework-updatable-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900292 ],
293}
294
Artur Satayev005d7352019-08-02 16:42:07 +0100295java_defaults {
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900296 name: "framework-aidl-export-defaults",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800297 aidl: {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900298 export_include_dirs: [
299 "core/java",
300 "drm/java",
301 "graphics/java",
David Zeuthen045b6de2019-10-29 15:15:18 -0400302 "identity/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900303 "keystore/java",
304 "location/java",
305 "lowpan/java",
306 "media/java",
307 "media/apex/java",
308 "media/mca/effect/java",
309 "media/mca/filterfw/java",
310 "media/mca/filterpacks/java",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700311 "mms/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900312 "opengl/java",
313 "rs/java",
314 "sax/java",
315 "telecomm/java",
316 "telephony/java",
317 "wifi/java",
318 ],
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900319 },
320}
Colin Crosscf3a0b52017-11-16 00:15:28 -0800321
Jiyong Park5366ea22019-08-19 15:24:49 +0900322// Collection of classes that are generated from non-Java files that are not listed in
323// framework_srcs. These have no or very limited dependency to the framework.
324java_library {
325 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800326 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100327 "apex_aidl_interface-java",
Kalesh Singh759af322019-06-19 12:17:43 -0700328 "suspend_control_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800329 "framework-protos",
Peiyong Lin9ca1dd82019-01-12 17:44:29 -0800330 "game-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800331 "android.hidl.base-V1.0-java",
Henry Fang5215ac92019-02-01 19:24:55 +0000332 "android.hardware.cas-V1.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800333 "android.hardware.cas-V1.0-java",
334 "android.hardware.contexthub-V1.0-java",
335 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800336 "android.hardware.radio-V1.0-java",
337 "android.hardware.radio-V1.1-java",
338 "android.hardware.radio-V1.2-java",
339 "android.hardware.radio-V1.3-java",
340 "android.hardware.radio-V1.4-java",
Sarah Chine138c5e2019-11-05 13:30:10 -0800341 "android.hardware.radio-V1.5-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800342 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800343 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700344 "android.hardware.thermal-V1.1-java",
345 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800346 "android.hardware.tv.input-V1.0-java-constants",
347 "android.hardware.usb-V1.0-java-constants",
348 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800349 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800350 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000351 "android.hardware.vibrator-V1.0-java",
352 "android.hardware.vibrator-V1.1-java",
353 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900354 "android.hardware.vibrator-V1.3-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800355 "android.hardware.wifi-V1.0-java-constants",
arangelov1ab61492018-11-22 13:56:50 +0000356 "devicepolicyprotosnano",
Inseob Kim617a7222019-07-30 18:23:26 +0900357
358 "com.android.sysprop.apex",
359 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800360 ],
Jiyong Park5366ea22019-08-19 15:24:49 +0900361 sdk_version: "core_platform",
362 installable: false,
363}
364
365java_defaults {
366 name: "framework-defaults",
367 defaults: ["framework-aidl-export-defaults"],
368 installable: true,
369
Jiyong Park5366ea22019-08-19 15:24:49 +0900370 aidl: {
371 generate_get_transaction_name: true,
372 },
373
Jiyong Parkae9972b2019-09-15 20:19:02 +0900374 srcs: ["core/java/**/*.logtags"],
375
Jiyong Park5366ea22019-08-19 15:24:49 +0900376 exclude_srcs: [
377 // See comment on framework-atb-backward-compatibility module below
378 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
379 ],
380
381 sdk_version: "core_platform",
382 libs: [
Artur Satayev700e08b2019-12-11 13:03:32 +0000383 "app-compat-annotations",
Jiyong Park5366ea22019-08-19 15:24:49 +0900384 "ext",
Artur Satayev700e08b2019-12-11 13:03:32 +0000385 "unsupportedappusage",
Jiyong Park5366ea22019-08-19 15:24:49 +0900386 "updatable_media_stubs",
markchien6d06f6d2019-12-16 20:15:20 +0800387 "framework-tethering",
Jiyong Park5366ea22019-08-19 15:24:49 +0900388 ],
389
390 jarjar_rules: ":framework-jarjar-rules",
391
Tobias Thierer878c77b2019-08-18 15:19:45 +0100392 static_libs: [
393 "framework-internal-utils",
Tobias Thierer878c77b2019-08-18 15:19:45 +0100394 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800395
Wei Jia0a8a8f02017-12-05 17:05:29 -0800396 required: [
Anton Hansson11905c62018-11-27 12:10:30 +0000397 // TODO: remove gps_debug when the build system propagates "required" properly.
398 "gps_debug.conf",
Logan Chien71ddfea2018-02-27 16:43:50 +0800399 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800400
Colin Crosscf3a0b52017-11-16 00:15:28 -0800401 dxflags: [
402 "--core-library",
403 "--multi-dex",
404 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100405
Ashley Roseb47ddd42019-01-28 19:54:09 -0500406 plugins: ["view-inspector-annotation-processor"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100407}
408
Colin Crossbc2dc312018-10-26 22:34:06 -0700409filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800410 name: "framework-jarjar-rules",
411 srcs: ["jarjar_rules_hidl.txt"],
412}
413
414filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700415 name: "libincident_aidl",
416 srcs: [
417 "core/java/android/os/IIncidentManager.aidl",
418 "core/java/android/os/IIncidentReportStatusListener.aidl",
419 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700420 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700421}
422
423filegroup {
424 name: "statsd_aidl",
425 srcs: [
426 "core/java/android/os/IStatsCompanionService.aidl",
427 "core/java/android/os/IStatsManager.aidl",
Tej Singha0c89dd2019-01-25 16:39:18 -0800428 "core/java/android/os/IStatsPullerCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700429 ],
Dan Willemsena38ff9f2019-06-11 10:56:01 -0700430 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700431}
432
Michael Wrightc390fbe2018-12-12 19:45:09 +0000433filegroup {
434 name: "libvibrator_aidl",
435 srcs: [
436 "core/java/android/os/IExternalVibrationController.aidl",
437 "core/java/android/os/IExternalVibratorService.aidl",
438 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700439 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000440}
441
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100442java_library {
Jiyong Parkc893b462019-10-28 15:33:08 +0900443 name: "framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100444 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900445 srcs: [":framework-non-updatable-sources"],
Benedict Wong7f58c0d2019-11-20 22:52:48 -0800446 libs: ["ike-stubs"],
Jiyong Parkc893b462019-10-28 15:33:08 +0900447 installable: true,
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100448 javac_shard_size: 150,
atrostb9c34502019-08-05 12:22:18 +0100449 required: [
450 "framework-platform-compat-config",
451 "libcore-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100452 "services-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100453 ],
Tobias Thierer17d0c592019-11-22 16:33:18 +0000454 static_libs: [
Tobias Thierer82968532019-11-29 19:39:45 +0000455 // If MimeMap ever becomes its own APEX, then this dependency would need to be removed
456 // in favor of an API stubs dependency in java_library "framework" below.
Tobias Thierer17d0c592019-11-22 16:33:18 +0000457 "mimemap",
458 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900459 // For backwards compatibility.
460 stem: "framework",
Jiyong Park79242c22019-12-09 14:45:07 +0900461 apex_available: ["//apex_available:platform"],
Jiyong Parkc893b462019-10-28 15:33:08 +0900462}
463
464// This "framework" module is NOT installed to the device. It's
465// "framework-minus-apex" that gets installed to the device. Note that
466// the filename is still framework.jar (via the stem property) for
467// compatibility reason. The purpose of this module is to provide
468// framework APIs (both public and private) for bundled apps.
469// "framework-minus-apex" can't be used for the purpose because 1)
470// many apps have already hardcoded the name "framework" and
471// 2) it lacks API symbols from updatable modules - as it's clear from
472// its suffix "-minus-apex".
473java_library {
474 name: "framework",
475 defaults: ["framework-aidl-export-defaults"],
476 installable: false, // this lib is a build-only library
477 static_libs: [
478 "framework-minus-apex",
Jiyong Park025e56e2019-12-18 17:26:38 +0900479 "updatable_media_stubs",
Anton Hansson87743c62020-01-08 09:48:18 +0000480 "framework-sdkextensions-stubs-systemapi",
Jiyong Park90247c82020-01-06 13:30:59 +0900481 // TODO(b/147200698): should be the stub of framework-tethering
482 "framework-tethering",
Benedict Wong7f58c0d2019-11-20 22:52:48 -0800483 "ike-stubs",
Jiyong Parkc893b462019-10-28 15:33:08 +0900484 ],
485 sdk_version: "core_platform",
Jiyong Park79242c22019-12-09 14:45:07 +0900486 apex_available: ["//apex_available:platform"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100487}
488
489java_library {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900490 name: "framework-all",
491 defaults: ["framework-defaults"],
492 srcs: [":framework-all-sources"],
493 installable: false,
Jiyong Park79242c22019-12-09 14:45:07 +0900494 apex_available: ["//apex_available:platform"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900495}
496
497java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100498 name: "framework-annotation-proc",
499 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900500 srcs: [":framework-all-sources"],
Artur Satayev700e08b2019-12-11 13:03:32 +0000501 libs: [
502 "app-compat-annotations",
503 "unsupportedappusage",
504 ],
Anna Trostanetski97088e92019-06-26 14:47:58 +0100505 installable: false,
atrostb9c34502019-08-05 12:22:18 +0100506 plugins: [
507 "unsupportedappusage-annotation-processor",
508 "compat-changeid-annotation-processor",
509 ],
510}
511
512platform_compat_config {
513 name: "framework-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100514 src: ":framework-annotation-proc",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100515}
516
Paul Duffin521975802019-06-05 10:35:08 +0100517// A library including just UnsupportedAppUsage.java classes.
518//
519// Provided for target so that libraries can use it without depending on
520// the whole of framework or the core platform API.
521//
522// Built for host so that the annotation processor can also use this annotation.
523java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100524 name: "unsupportedappusage-annotation",
Paul Duffin521975802019-06-05 10:35:08 +0100525 host_supported: true,
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100526 srcs: [
527 "core/java/android/annotation/IntDef.java",
528 "core/java/android/annotation/UnsupportedAppUsage.java",
Paul Duffinc1308012019-10-10 16:33:42 +0100529 ],
530 static_libs: [
531 "art.module.api.annotations",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100532 ],
Paul Duffin521975802019-06-05 10:35:08 +0100533
534 sdk_version: "core_current",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800535}
536
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000537// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000538// android.test.base library has been removed and which provides support for
539// maintaining backwards compatibility for APKs that target pre-P and depend on
540// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
541// specified on the build command line.
542java_library {
543 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000544 installable: true,
atrost1a945502019-11-04 17:03:54 +0000545 libs: ["app-compat-annotations"],
Paul Duffina3b69212018-01-25 09:58:32 +0000546 srcs: [
547 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
548 ],
549}
550
Colin Crosscf3a0b52017-11-16 00:15:28 -0800551genrule {
552 name: "framework-statslog-gen",
553 tools: ["stats-log-api-gen"],
554 cmd: "$(location stats-log-api-gen) --java $(out)",
David Chen0a368b22017-12-06 16:28:16 -0800555 out: ["android/util/StatsLogInternal.java"],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800556}
557
558gensrcs {
559 name: "framework-javastream-protos",
560 depfile: true,
561
562 tools: [
563 "aprotoc",
564 "protoc-gen-javastream",
565 "soong_zip",
566 ],
567
Anton Hanssond82b2f72019-11-18 13:34:56 +0000568 cmd: "mkdir -p $(genDir)/$(in) " +
569 "&& $(location aprotoc) " +
570 " --plugin=$(location protoc-gen-javastream) " +
571 " --dependency_out=$(depfile) " +
572 " --javastream_out=$(genDir)/$(in) " +
573 " -Iexternal/protobuf/src " +
574 " -I . " +
575 " $(in) " +
576 "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)",
577
Yi Jin437aa6e2018-01-10 11:34:26 -0800578 srcs: [
579 "core/proto/**/*.proto",
580 "libs/incident/**/*.proto",
581 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800582 output_extension: "srcjar",
583}
584
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900585filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900586 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900587 srcs: [
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900588 "core/java/android/annotation/NonNull.java",
589 "core/java/android/annotation/Nullable.java",
590 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900591 "core/java/android/annotation/IntRange.java",
Anton Hanssonb52bd1c2019-12-06 17:07:28 +0000592 "core/java/android/annotation/SystemApi.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900593 "core/java/android/annotation/UnsupportedAppUsage.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900594 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900595 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100596 ],
Chalard Jean95213512019-01-30 21:04:58 +0900597}
598
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000599java_library {
600 name: "framework-annotations-lib",
601 srcs: [ ":framework-annotations" ],
602 sdk_version: "current",
603}
604
Chalard Jean95213512019-01-30 21:04:58 +0900605filegroup {
evitayane22e47f2019-12-30 16:05:38 -0800606 name: "framework-ike-shared-srcs",
607 visibility: ["//frameworks/opt/net/ike"],
608 srcs: [
evitayanbddbfb02020-01-07 21:21:52 -0800609 "core/java/android/annotation/StringDef.java",
evitayane22e47f2019-12-30 16:05:38 -0800610 "core/java/android/net/annotations/PolicyDirection.java",
evitayan0efc7402019-12-20 17:55:57 -0800611 "core/java/com/android/internal/util/IState.java",
612 "core/java/com/android/internal/util/State.java",
613 "core/java/com/android/internal/util/StateMachine.java",
evitayan996aa2a2019-12-30 11:19:47 -0800614 "telephony/java/android/telephony/Annotation.java",
evitayane22e47f2019-12-30 16:05:38 -0800615 ],
616}
617
618filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900619 name: "framework-networkstack-shared-srcs",
620 srcs: [
621 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900622 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900623 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900624 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900625 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900626 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900627 "core/java/com/android/internal/util/IState.java",
628 "core/java/com/android/internal/util/MessageUtils.java",
629 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900630 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900631 "core/java/com/android/internal/util/State.java",
632 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900633 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900634 "core/java/com/android/internal/util/WakeupMessage.java",
johnson.yeh095b7a02019-12-19 20:30:34 +0800635 "core/java/com/android/internal/util/TokenBucket.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900636 "core/java/android/net/shared/*.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100637 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900638}
639
markchien6d06f6d2019-12-16 20:15:20 +0800640// keep these files in sync with the package/Tethering/jarjar-rules.txt for the tethering module.
markchiena6ba54d2019-09-03 15:58:06 +0800641filegroup {
642 name: "framework-tethering-shared-srcs",
643 srcs: [
644 "core/java/android/util/LocalLog.java",
markchien6d06f6d2019-12-16 20:15:20 +0800645 "core/java/com/android/internal/util/IndentingPrintWriter.java",
646 "core/java/com/android/internal/util/IState.java",
647 "core/java/com/android/internal/util/MessageUtils.java",
648 "core/java/com/android/internal/util/Preconditions.java",
649 "core/java/com/android/internal/util/State.java",
650 "core/java/com/android/internal/util/StateMachine.java",
markchien87d3f7d2020-01-08 20:58:23 +0800651 "core/java/com/android/internal/util/TrafficStatsConstants.java",
markchien986750b2019-12-06 15:24:53 +0800652 "core/java/android/net/shared/Inet4AddressUtils.java",
markchien6d06f6d2019-12-16 20:15:20 +0800653 ],
654}
655
656filegroup {
657 name: "framework-tethering-annotations",
658 srcs: [
659 "core/java/android/annotation/NonNull.java",
660 "core/java/android/annotation/SystemApi.java",
markchiena6ba54d2019-09-03 15:58:06 +0800661 ],
662}
Colin Crossd8e02252017-10-02 17:14:22 -0700663// Build ext.jar
664// ============================================================
665java_library {
666 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700667 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100668 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700669 static_libs: [
670 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700671 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000672 "rappor",
Tony Mak64c4cb22018-09-25 13:38:28 +0100673 "libtextclassifier-java",
674 ],
675 required: [
676 "libtextclassifier",
Colin Crossd8e02252017-10-02 17:14:22 -0700677 ],
678 dxflags: ["--core-library"],
679}
680
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700681// ==== java proto host library ==============================
682java_library_host {
683 name: "platformprotos",
684 srcs: [
685 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700686 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700687 "core/proto/**/*.proto",
688 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700689 ],
690 proto: {
691 include_dirs: ["external/protobuf/src"],
692 type: "full",
693 },
694 errorprone: {
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100695 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700696 },
697}
698
Colin Cross43214162018-08-20 13:57:24 -0700699// ==== java proto device library (for test only) ==============================
700java_library {
701 name: "platformprotosnano",
702 proto: {
703 type: "nano",
704 output_params: ["store_unknown_fields=true"],
705 include_dirs: ["external/protobuf/src"],
706 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000707 exclude_srcs: [
708 "core/proto/android/privacy.proto",
709 "core/proto/android/section.proto",
710 ],
Colin Cross43214162018-08-20 13:57:24 -0700711 sdk_version: "current",
712 srcs: [
713 "core/proto/**/*.proto",
714 "libs/incident/proto/android/os/**/*.proto",
715 ],
716}
717
718// ==== java proto device library (for test only) ==============================
719java_library {
720 name: "platformprotoslite",
721 proto: {
722 type: "lite",
723 include_dirs: ["external/protobuf/src"],
724 },
725
726 srcs: [
727 "core/proto/**/*.proto",
728 "libs/incident/proto/android/os/**/*.proto",
729 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000730 exclude_srcs: [
731 "core/proto/android/privacy.proto",
732 "core/proto/android/section.proto",
733 ],
Colin Cross43214162018-08-20 13:57:24 -0700734 // Protos have lots of MissingOverride and similar.
735 errorprone: {
736 javacflags: ["-XepDisableAllChecks"],
737 },
738}
739
Colin Crossaa0d4352017-05-02 14:14:56 -0700740// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000741cc_defaults {
742 name: "libplatformprotos-defaults",
743
Colin Crossaa0d4352017-05-02 14:14:56 -0700744 proto: {
745 export_proto_headers: true,
746 include_dirs: ["external/protobuf/src"],
747 },
748
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700749 cflags: [
750 "-Wall",
751 "-Werror",
752 "-Wno-unused-parameter",
753 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800754
755 srcs: [
756 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800757 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000758}
759
760cc_library {
761 name: "libplatformprotos",
762 defaults: ["libplatformprotos-defaults"],
763 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800764
Colin Crossaa0d4352017-05-02 14:14:56 -0700765 target: {
766 host: {
767 proto: {
768 type: "full",
769 },
770 },
771 android: {
772 proto: {
773 type: "lite",
774 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000775 shared_libs: [
776 "libprotobuf-cpp-lite",
777 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700778 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700779 enabled: false,
780 },
781 },
782 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700783}
784
Joe Onorato9bd5db72019-04-03 18:19:43 -0700785// This library is meant for vendor code that needs to output protobuf. It links
786// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
787// binary compatibility.
788cc_library {
789 name: "libplatformprotos-static",
790 defaults: ["libplatformprotos-defaults"],
791 host_supported: false,
792
793 // This is okay because this library is only built as a static library. The C++
794 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
795 // but is not authorized to be used outside of debugging.
796 vendor_available: true,
797
798 target: {
799 android: {
800 proto: {
801 type: "lite",
802 },
803 static_libs: [
804 "libprotobuf-cpp-lite",
805 ],
806 shared: {
807 enabled: false,
808 },
809 },
810 },
811}
812
813
Joe Onorato99598ee2019-02-11 15:55:13 +0000814// This is the full proto version of libplatformprotos. It may only
815// be used by test code that is not shipped on the device.
816cc_library {
817 name: "libplatformprotos-test",
818 defaults: ["libplatformprotos-defaults"],
819 host_supported: false,
820
821 target: {
822 android: {
823 proto: {
824 type: "full",
825 },
826 shared: {
827 enabled: false,
828 },
829 },
830 },
831}
832
Songchun Fan000b5b52019-12-04 12:17:38 -0800833filegroup {
834 name: "incremental_aidl",
835 srcs: [
836 "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl",
837 ],
838 path: "core/java",
839}
840
841aidl_interface {
842 name: "libincremental_aidl",
843 srcs: [
844 ":incremental_aidl",
845 ],
846 backend: {
847 java: {
848 sdk_version: "28",
849 },
850 cpp: {
851 enabled: true,
852 },
853 ndk: {
854 enabled: true,
855 },
856 },
857}
Joe Onorato99598ee2019-02-11 15:55:13 +0000858
Yi Jin04625ad2017-10-17 18:29:33 -0700859gensrcs {
860 name: "gen-platform-proto-constants",
861 depfile: true,
862
863 tools: [
864 "aprotoc",
865 "protoc-gen-cppstream",
866 ],
867
868 srcs: [
Kweku Adamseadd1232018-02-05 16:45:13 -0800869 "core/proto/android/os/backtrace.proto",
Kweku Adams59e6fd72017-12-27 15:48:14 -0800870 "core/proto/android/os/batterytype.proto",
Yi Jin0eb22342017-11-06 17:17:27 -0800871 "core/proto/android/os/cpufreq.proto",
Yi Jine2f7f792017-11-01 17:08:27 -0700872 "core/proto/android/os/cpuinfo.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700873 "core/proto/android/os/data.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700874 "core/proto/android/os/kernelwake.proto",
875 "core/proto/android/os/pagetypeinfo.proto",
876 "core/proto/android/os/procrank.proto",
Kweku Adamsf5cc5752017-12-20 17:59:17 -0800877 "core/proto/android/os/ps.proto",
Yi Jin0dfa7522017-11-06 17:43:47 -0800878 "core/proto/android/os/system_properties.proto",
Yi Jin3c034c92017-12-22 17:36:47 -0800879 "core/proto/android/util/event_log_tags.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700880 "core/proto/android/util/log.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700881 ],
882
883 // Append protoc-gen-cppstream tool's PATH otherwise aprotoc can't find the plugin tool
Yi Jin3c034c92017-12-22 17:36:47 -0800884 cmd: "mkdir -p $(genDir) " +
885 "&& $(location aprotoc) " +
886 " --plugin=$(location protoc-gen-cppstream) " +
887 " --dependency_out=$(depfile) " +
888 " --cppstream_out=$(genDir) " +
889 " -Iexternal/protobuf/src " +
890 " -I . " +
891 " $(in)",
Yi Jin04625ad2017-10-17 18:29:33 -0700892
Logan Chien71ddfea2018-02-27 16:43:50 +0800893 output_extension: "proto.h",
Yi Jin04625ad2017-10-17 18:29:33 -0700894}
895
Joe Onorato99598ee2019-02-11 15:55:13 +0000896
Dan Albert2a8d9c22016-09-23 15:55:49 -0700897subdirs = [
Yi Jin0a3406f2017-06-22 19:23:11 -0700898 "cmds/*",
Jeff Sharkey0c686e72017-10-23 16:04:31 -0600899 "core/*",
Colin Cross4f8d9e62016-12-01 15:55:00 -0800900 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -0700901 "media/*",
Colin Cross747e7c12017-10-24 16:21:22 -0700902 "proto",
Fabien Sanglard19160202017-01-12 14:24:31 -0500903 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700904 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -0700905 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700906]
Svetoslav Ganov74c99832016-12-05 20:07:20 -0800907
908optional_subdirs = [
909 "core/tests/utiltests/jni",
910]
Steven Morelandeddafe92017-10-02 16:58:41 -0700911
Colin Crossa2b78a72018-03-29 13:31:04 -0700912// TODO(b/77285514): remove this once the last few hidl interfaces have been
913// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -0700914java_library {
915 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +0100916 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -0700917
918 srcs: [
919 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800920 "core/java/android/annotation/IntDef.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -0800921 "core/java/android/annotation/IntRange.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700922 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -0800923 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800924 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -0800925 "core/java/android/annotation/TestApi.java",
Andrei Onea24ec3212019-03-15 17:35:05 +0000926 "core/java/android/annotation/UnsupportedAppUsage.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -0800927 "core/java/android/os/HidlMemory.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700928 "core/java/android/os/HwBinder.java",
929 "core/java/android/os/HwBlob.java",
930 "core/java/android/os/HwParcel.java",
931 "core/java/android/os/IHwBinder.java",
932 "core/java/android/os/IHwInterface.java",
933 "core/java/android/os/DeadObjectException.java",
934 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -0700935 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700936 "core/java/android/os/RemoteException.java",
937 "core/java/android/util/AndroidException.java",
938 ],
Artur Satayevbc3d8b92019-12-10 17:47:53 +0000939 libs: [ "unsupportedappusage" ],
Steven Morelandeddafe92017-10-02 16:58:41 -0700940
941 dxflags: ["--core-library"],
942 installable: false,
943}
Nan Zhang2db709d2017-11-08 20:48:46 -0800944
945python_defaults {
946 name: "base_default",
947 version: {
948 py2: {
949 enabled: true,
950 embedded_launcher: true,
951 },
952 py3: {
953 enabled: false,
954 embedded_launcher: false,
955 },
956 },
957}
958
959python_binary_host {
960 name: "fontchain_linter",
961 defaults: ["base_default"],
962 main: "tools/fonts/fontchain_linter.py",
963 srcs: [
964 "tools/fonts/fontchain_linter.py",
965 ],
966 libs: [
967 "fontTools",
968 ],
969}
Nan Zhang172875b2018-02-27 11:24:03 -0800970
Nan Zhangaf251302018-08-30 10:59:51 -0700971filegroup {
972 name: "framework-annotation-nonnull-srcs",
973 srcs: [
974 "core/java/android/annotation/NonNull.java",
975 ],
976}
Insun Kang06b25ae2018-11-20 10:05:44 +0900977
978filegroup {
979 name: "framework-media-annotation-srcs",
980 srcs: [
981 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +0900982 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +0900983 "core/java/android/annotation/DrawableRes.java",
984 "core/java/android/annotation/IntDef.java",
985 "core/java/android/annotation/LongDef.java",
986 "core/java/android/annotation/NonNull.java",
987 "core/java/android/annotation/Nullable.java",
988 "core/java/android/annotation/RequiresPermission.java",
989 "core/java/android/annotation/SdkConstant.java",
990 "core/java/android/annotation/StringDef.java",
Sungsoo Limbb3b4012019-01-23 13:17:53 +0900991 "core/java/android/annotation/SystemApi.java",
Dongwon Kang3584c662018-11-27 11:14:08 -0800992 "core/java/android/annotation/TestApi.java",
Insun Kang06b25ae2018-11-20 10:05:44 +0900993 "core/java/android/annotation/UnsupportedAppUsage.java",
Dongwon Kang3584c662018-11-27 11:14:08 -0800994 "core/java/com/android/internal/annotations/GuardedBy.java",
Insun Kang06b25ae2018-11-20 10:05:44 +0900995 ],
996}
997
Andrei Onea7a2985c2019-02-18 15:28:35 +0000998// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
999// annotations to private apis
1000aidl_mapping {
1001 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001002 srcs: [":framework-all-sources"],
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001003 output: "framework-aidl-mappings.txt",
Dario Freni2ce84342019-04-26 13:06:22 +01001004}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001005
1006genrule {
1007 name: "framework-annotation-proc-index",
1008 srcs: [":framework-annotation-proc"],
1009 cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)",
1010 out: ["unsupportedappusage_index.csv"],
1011 dist: {
1012 targets: ["droidcore"],
1013 },
1014}
Chen Xu0e9d6752019-10-08 18:39:03 -07001015
Chen Xu0e9d6752019-10-08 18:39:03 -07001016filegroup {
1017 name: "framework-cellbroadcast-shared-srcs",
1018 srcs: [
Jordan Liubf68dc82019-11-20 13:55:18 -08001019 "core/java/android/os/HandlerExecutor.java",
1020 "core/java/android/util/LocalLog.java",
Chen Xu0e9d6752019-10-08 18:39:03 -07001021 "core/java/android/util/Slog.java",
Jordan Liubf68dc82019-11-20 13:55:18 -08001022 "core/java/com/android/internal/util/IState.java",
1023 "core/java/com/android/internal/util/Preconditions.java",
1024 "core/java/com/android/internal/util/State.java",
1025 "core/java/com/android/internal/util/StateMachine.java",
Chen Xu0e9d6752019-10-08 18:39:03 -07001026 ],
1027}
Chen Xuc00cf992019-09-05 22:07:42 -07001028
1029// Avoid including Parcelable classes as we don't want to have two copies of
1030// Parcelable cross the process.
1031filegroup {
1032 name: "framework-telephony-stack-shared-srcs",
1033 srcs: [
1034 "core/java/android/os/RegistrantList.java",
1035 "core/java/android/os/Registrant.java",
1036 "core/java/android/util/LocalLog.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001037 "core/java/android/util/TimeUtils.java",
1038 "core/java/com/android/internal/os/SomeArgs.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001039 "core/java/com/android/internal/util/AsyncChannel.java",
Meng Wang3043dac2020-01-14 14:04:10 -08001040 "core/java/com/android/internal/util/AsyncService.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001041 "core/java/com/android/internal/util/BitwiseInputStream.java",
Michele68370a82019-10-31 11:48:43 -07001042 "core/java/com/android/internal/util/FastXmlSerializer.java",
1043 "core/java/com/android/internal/util/HexDump.java",
Meng Wang8532de92019-12-02 10:42:20 -08001044 "core/java/com/android/internal/util/IState.java",
Michele68370a82019-10-31 11:48:43 -07001045 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001046 "core/java/com/android/internal/util/Preconditions.java",
1047 "core/java/com/android/internal/util/State.java",
1048 "core/java/com/android/internal/util/StateMachine.java",
Michele68370a82019-10-31 11:48:43 -07001049 "core/java/com/android/internal/util/UserIcons.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001050 ],
1051}
Jiyong Park7fb4b182019-12-20 14:35:43 +09001052
1053// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
1054metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
1055 "--ignore-classes-on-classpath " +
1056 "--hide-package com.android.server " +
1057 "--error UnhiddenSystemApi " +
1058 "--hide RequiresPermission " +
1059 "--hide CallbackInterface " +
1060 "--hide MissingPermission --hide BroadcastBehavior " +
1061 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
1062 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
1063 "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.*"
1064
1065build = [
1066 "StubLibraries.bp",
1067 "ApiDocs.bp",
1068]