blob: e54de2dec7d95602ade7371ea32c8398fedf9106 [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",
Jiyong Park673e2982020-01-17 16:14:57 +090056 visibility: ["//frameworks/base/test-mock"],
Jiyong Park00ea0b12019-10-31 20:38:47 +090057}
58
Jiyong Park7e1339e2019-08-16 21:17:14 +090059filegroup {
60 name: "framework-drm-sources",
61 srcs: [
62 "drm/java/**/*.java",
63 ],
64 path: "drm/java",
65}
66
67filegroup {
68 name: "framework-graphics-sources",
69 srcs: [
70 "graphics/java/**/*.java",
71 "graphics/java/**/*.aidl",
72 ],
73 path: "graphics/java",
74}
75
76filegroup {
David Zeuthen045b6de2019-10-29 15:15:18 -040077 name: "framework-identity-sources",
78 srcs: [
79 "identity/java/**/*.java",
80 ],
81 path: "identity/java",
82}
83
84filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +090085 name: "framework-keystore-sources",
86 srcs: [
87 "keystore/java/**/*.java",
88 "keystore/java/**/*.aidl",
89 ],
90 path: "keystore/java",
91}
92
93filegroup {
94 name: "framework-location-sources",
95 srcs: [
96 "location/java/**/*.java",
97 "location/java/**/*.aidl",
98 ],
99 path: "location/java",
100}
101
102filegroup {
103 name: "framework-lowpan-sources",
104 srcs: [
105 "lowpan/java/**/*.java",
106 "lowpan/java/**/*.aidl",
107 ],
108 path: "lowpan/java",
109}
110
111filegroup {
112 name: "framework-media-sources",
113 srcs: [
114 "media/java/**/*.java",
115 "media/java/**/*.aidl",
116 ],
117 path: "media/java",
118}
119
120filegroup {
121 name: "framework-mca-effect-sources",
122 srcs: [
123 "media/mca/effect/java/**/*.java",
124 ],
125 path: "media/mca/effect/java",
126}
127
128filegroup {
129 name: "framework-mca-filterfw-sources",
130 srcs: [
131 "media/mca/filterfw/java/**/*.java",
132 ],
133 path: "media/mca/filterfw/java",
134}
135
136filegroup {
137 name: "framework-mca-filterpacks-sources",
138 srcs: [
139 "media/mca/filterpacks/java/**/*.java",
140 ],
141 path: "media/mca/filterpacks/java",
142}
143
144filegroup {
Tobias Thierer878c77b2019-08-18 15:19:45 +0100145 name: "framework-mime-sources",
146 srcs: [
147 "mime/java/**/*.java",
148 ],
149 path: "mime/java",
150}
151
152filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900153 name: "framework-opengl-sources",
154 srcs: [
155 "opengl/java/**/*.java",
156 ],
157 path: "opengl/java",
158}
159
160filegroup {
161 name: "framework-rs-sources",
162 srcs: [
163 "rs/java/**/*.java",
164 ],
165 path: "rs/java",
166}
167
168filegroup {
169 name: "framework-sax-sources",
170 srcs: [
171 "sax/java/**/*.java",
172 ],
173 path: "sax/java",
174}
175
176filegroup {
177 name: "framework-telecomm-sources",
178 srcs: [
179 "telecomm/java/**/*.java",
180 "telecomm/java/**/*.aidl",
181 ],
182 path: "telecomm/java",
183}
184
185filegroup {
186 name: "framework-telephony-sources",
187 srcs: [
188 "telephony/java/**/*.java",
189 "telephony/java/**/*.aidl",
190 ],
191 path: "telephony/java",
192}
193
194filegroup {
Amit Mahajanac0fd652019-09-23 17:59:57 -0700195 name: "framework-telephony-common-sources",
196 srcs: [
197 "telephony/common/**/*.java",
198 ],
199 path: "telephony/common",
200}
201
202filegroup {
Amit Mahajan153d31b2019-10-07 17:41:26 -0700203 name: "framework-mms-sources",
204 srcs: [
205 "mms/java/**/*.java",
206 "mms/java/**/*.aidl",
207 ],
208 path: "mms/java",
209}
210
211filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900212 name: "framework-wifi-sources",
213 srcs: [
214 "wifi/java/**/*.java",
215 "wifi/java/**/*.aidl",
216 ],
217 path: "wifi/java",
218}
219
Jiyong Park5366ea22019-08-19 15:24:49 +0900220filegroup {
Xiao Ma859af502020-01-31 12:40:12 +0900221 name: "framework-wifi-updatable-exported-aidl-sources",
222 srcs: [
223 "wifi/aidl-export/**/*.aidl",
224 ],
225 path: "wifi/aidl-export",
226}
227
228filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900229 name: "framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900230 srcs: [
231 // Java/AIDL sources under frameworks/base
232 ":framework-core-sources",
233 ":framework-drm-sources",
234 ":framework-graphics-sources",
235 ":framework-keystore-sources",
David Zeuthen045b6de2019-10-29 15:15:18 -0400236 ":framework-identity-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900237 ":framework-location-sources",
238 ":framework-lowpan-sources",
239 ":framework-media-sources",
240 ":framework-mca-effect-sources",
241 ":framework-mca-filterfw-sources",
242 ":framework-mca-filterpacks-sources",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700243 ":framework-mms-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900244 ":framework-opengl-sources",
245 ":framework-rs-sources",
246 ":framework-sax-sources",
247 ":framework-telecomm-sources",
Amit Mahajanac0fd652019-09-23 17:59:57 -0700248 ":framework-telephony-common-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900249 ":framework-telephony-sources",
250 ":framework-wifi-sources",
251 ":PacProcessor-aidl-sources",
252 ":ProxyHandler-aidl-sources",
Aaron Huangc4081b22020-01-13 15:03:35 +0800253 ":net-utils-framework-common-srcs",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900254
atrostff948d82019-10-10 19:27:31 +0100255 // AIDL from frameworks/base/native/
256 ":platform-compat-native-aidl",
257
Jiyong Park5366ea22019-08-19 15:24:49 +0900258 // AIDL sources from external directories
David Zeuthen045b6de2019-10-29 15:15:18 -0400259 ":credstore_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900260 ":dumpstate_aidl",
261 ":framework_native_aidl",
262 ":gatekeeper_aidl",
263 ":gsiservice_aidl",
264 ":incidentcompanion_aidl",
265 ":installd_aidl",
266 ":keystore_aidl",
267 ":libaudioclient_aidl",
268 ":libbinder_aidl",
269 ":libbluetooth-binder-aidl",
270 ":libcamera_client_aidl",
271 ":libcamera_client_framework_aidl",
272 ":libupdate_engine_aidl",
273 ":storaged_aidl",
274 ":vold_aidl",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900275
Jiyong Park5366ea22019-08-19 15:24:49 +0900276 // For the generated R.java and Manifest.java
277 ":framework-res{.aapt.srcjar}",
278
279 // etc.
280 ":framework-javastream-protos",
281 ":framework-statslog-gen",
282 ],
283}
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900284
Jiyong Parkae9972b2019-09-15 20:19:02 +0900285filegroup {
Anton Hanssonb4f35572019-12-02 16:30:22 +0000286 name: "framework-updatable-sources",
287 srcs: [
Anton Hansson87743c62020-01-08 09:48:18 +0000288 ":framework-sdkextensions-sources",
markchien6d06f6d2019-12-16 20:15:20 +0800289 ":framework-tethering-srcs",
Xiao Ma859af502020-01-31 12:40:12 +0900290 ":framework-wifi-updatable-exported-aidl-sources",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000291 ":updatable-media-srcs",
Benedict Wong7f58c0d2019-11-20 22:52:48 -0800292 ":ike-srcs",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000293 ]
294}
295
296filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900297 name: "framework-all-sources",
298 srcs: [
Tobias Thierer17d0c592019-11-22 16:33:18 +0000299 ":framework-mime-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900300 ":framework-non-updatable-sources",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000301 ":framework-updatable-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900302 ],
303}
304
Artur Satayev005d7352019-08-02 16:42:07 +0100305java_defaults {
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900306 name: "framework-aidl-export-defaults",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800307 aidl: {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900308 export_include_dirs: [
309 "core/java",
310 "drm/java",
311 "graphics/java",
David Zeuthen045b6de2019-10-29 15:15:18 -0400312 "identity/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900313 "keystore/java",
314 "location/java",
315 "lowpan/java",
316 "media/java",
317 "media/apex/java",
318 "media/mca/effect/java",
319 "media/mca/filterfw/java",
320 "media/mca/filterpacks/java",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700321 "mms/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900322 "opengl/java",
323 "rs/java",
324 "sax/java",
325 "telecomm/java",
326 "telephony/java",
327 "wifi/java",
Xiao Ma859af502020-01-31 12:40:12 +0900328 "wifi/aidl-export",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900329 ],
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900330 },
331}
Colin Crosscf3a0b52017-11-16 00:15:28 -0800332
Jiyong Park5366ea22019-08-19 15:24:49 +0900333// Collection of classes that are generated from non-Java files that are not listed in
334// framework_srcs. These have no or very limited dependency to the framework.
335java_library {
336 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800337 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100338 "apex_aidl_interface-java",
Kalesh Singh759af322019-06-19 12:17:43 -0700339 "suspend_control_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800340 "framework-protos",
Peiyong Lin9ca1dd82019-01-12 17:44:29 -0800341 "game-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800342 "android.hidl.base-V1.0-java",
Henry Fang5215ac92019-02-01 19:24:55 +0000343 "android.hardware.cas-V1.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800344 "android.hardware.cas-V1.0-java",
345 "android.hardware.contexthub-V1.0-java",
346 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800347 "android.hardware.radio-V1.0-java",
348 "android.hardware.radio-V1.1-java",
349 "android.hardware.radio-V1.2-java",
350 "android.hardware.radio-V1.3-java",
351 "android.hardware.radio-V1.4-java",
Sarah Chine138c5e2019-11-05 13:30:10 -0800352 "android.hardware.radio-V1.5-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800353 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800354 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700355 "android.hardware.thermal-V1.1-java",
356 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800357 "android.hardware.tv.input-V1.0-java-constants",
358 "android.hardware.usb-V1.0-java-constants",
359 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800360 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800361 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000362 "android.hardware.vibrator-V1.0-java",
363 "android.hardware.vibrator-V1.1-java",
364 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900365 "android.hardware.vibrator-V1.3-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800366 "android.hardware.wifi-V1.0-java-constants",
arangelov1ab61492018-11-22 13:56:50 +0000367 "devicepolicyprotosnano",
Inseob Kim617a7222019-07-30 18:23:26 +0900368
369 "com.android.sysprop.apex",
370 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800371 ],
Jiyong Park5366ea22019-08-19 15:24:49 +0900372 sdk_version: "core_platform",
373 installable: false,
374}
375
376java_defaults {
377 name: "framework-defaults",
378 defaults: ["framework-aidl-export-defaults"],
379 installable: true,
380
Jiyong Park5366ea22019-08-19 15:24:49 +0900381 aidl: {
382 generate_get_transaction_name: true,
383 },
384
Jiyong Parkae9972b2019-09-15 20:19:02 +0900385 srcs: ["core/java/**/*.logtags"],
386
Jiyong Park5366ea22019-08-19 15:24:49 +0900387 exclude_srcs: [
388 // See comment on framework-atb-backward-compatibility module below
389 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
390 ],
391
392 sdk_version: "core_platform",
393 libs: [
Artur Satayev700e08b2019-12-11 13:03:32 +0000394 "app-compat-annotations",
Jiyong Park5366ea22019-08-19 15:24:49 +0900395 "ext",
Artur Satayev700e08b2019-12-11 13:03:32 +0000396 "unsupportedappusage",
Jiyong Park5366ea22019-08-19 15:24:49 +0900397 "updatable_media_stubs",
markchien6d06f6d2019-12-16 20:15:20 +0800398 "framework-tethering",
Jiyong Park5366ea22019-08-19 15:24:49 +0900399 ],
400
401 jarjar_rules: ":framework-jarjar-rules",
402
Tobias Thierer878c77b2019-08-18 15:19:45 +0100403 static_libs: [
404 "framework-internal-utils",
Tobias Thierer878c77b2019-08-18 15:19:45 +0100405 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800406
Wei Jia0a8a8f02017-12-05 17:05:29 -0800407 required: [
Anton Hansson11905c62018-11-27 12:10:30 +0000408 // TODO: remove gps_debug when the build system propagates "required" properly.
409 "gps_debug.conf",
Logan Chien71ddfea2018-02-27 16:43:50 +0800410 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800411
Colin Crosscf3a0b52017-11-16 00:15:28 -0800412 dxflags: [
413 "--core-library",
414 "--multi-dex",
415 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100416
Ashley Roseb47ddd42019-01-28 19:54:09 -0500417 plugins: ["view-inspector-annotation-processor"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100418}
419
Colin Crossbc2dc312018-10-26 22:34:06 -0700420filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800421 name: "framework-jarjar-rules",
422 srcs: ["jarjar_rules_hidl.txt"],
423}
424
425filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700426 name: "libincident_aidl",
427 srcs: [
428 "core/java/android/os/IIncidentManager.aidl",
429 "core/java/android/os/IIncidentReportStatusListener.aidl",
430 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700431 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700432}
433
434filegroup {
435 name: "statsd_aidl",
436 srcs: [
437 "core/java/android/os/IStatsCompanionService.aidl",
438 "core/java/android/os/IStatsManager.aidl",
Tej Singha0c89dd2019-01-25 16:39:18 -0800439 "core/java/android/os/IStatsPullerCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700440 ],
Dan Willemsena38ff9f2019-06-11 10:56:01 -0700441 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700442}
443
Michael Wrightc390fbe2018-12-12 19:45:09 +0000444filegroup {
445 name: "libvibrator_aidl",
446 srcs: [
447 "core/java/android/os/IExternalVibrationController.aidl",
448 "core/java/android/os/IExternalVibratorService.aidl",
449 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700450 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000451}
452
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100453java_library {
Jiyong Parkc893b462019-10-28 15:33:08 +0900454 name: "framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100455 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900456 srcs: [":framework-non-updatable-sources"],
Benedict Wong7f58c0d2019-11-20 22:52:48 -0800457 libs: ["ike-stubs"],
Jiyong Parkc893b462019-10-28 15:33:08 +0900458 installable: true,
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100459 javac_shard_size: 150,
atrostb9c34502019-08-05 12:22:18 +0100460 required: [
461 "framework-platform-compat-config",
462 "libcore-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100463 "services-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100464 ],
Tobias Thierer17d0c592019-11-22 16:33:18 +0000465 static_libs: [
Tobias Thierer82968532019-11-29 19:39:45 +0000466 // If MimeMap ever becomes its own APEX, then this dependency would need to be removed
467 // in favor of an API stubs dependency in java_library "framework" below.
Tobias Thierer17d0c592019-11-22 16:33:18 +0000468 "mimemap",
469 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900470 // For backwards compatibility.
471 stem: "framework",
Jiyong Park79242c22019-12-09 14:45:07 +0900472 apex_available: ["//apex_available:platform"],
Jiyong Parkc893b462019-10-28 15:33:08 +0900473}
474
475// This "framework" module is NOT installed to the device. It's
476// "framework-minus-apex" that gets installed to the device. Note that
477// the filename is still framework.jar (via the stem property) for
478// compatibility reason. The purpose of this module is to provide
479// framework APIs (both public and private) for bundled apps.
480// "framework-minus-apex" can't be used for the purpose because 1)
481// many apps have already hardcoded the name "framework" and
482// 2) it lacks API symbols from updatable modules - as it's clear from
483// its suffix "-minus-apex".
484java_library {
485 name: "framework",
486 defaults: ["framework-aidl-export-defaults"],
487 installable: false, // this lib is a build-only library
488 static_libs: [
489 "framework-minus-apex",
Jiyong Park025e56e2019-12-18 17:26:38 +0900490 "updatable_media_stubs",
Anton Hansson87743c62020-01-08 09:48:18 +0000491 "framework-sdkextensions-stubs-systemapi",
Jiyong Park90247c82020-01-06 13:30:59 +0900492 // TODO(b/147200698): should be the stub of framework-tethering
493 "framework-tethering",
Benedict Wong7f58c0d2019-11-20 22:52:48 -0800494 "ike-stubs",
Jiyong Parkc893b462019-10-28 15:33:08 +0900495 ],
496 sdk_version: "core_platform",
Jiyong Park79242c22019-12-09 14:45:07 +0900497 apex_available: ["//apex_available:platform"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100498}
499
500java_library {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900501 name: "framework-all",
502 defaults: ["framework-defaults"],
503 srcs: [":framework-all-sources"],
504 installable: false,
Jiyong Park79242c22019-12-09 14:45:07 +0900505 apex_available: ["//apex_available:platform"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900506}
507
508java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100509 name: "framework-annotation-proc",
510 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900511 srcs: [":framework-all-sources"],
Artur Satayev700e08b2019-12-11 13:03:32 +0000512 libs: [
513 "app-compat-annotations",
514 "unsupportedappusage",
515 ],
Anna Trostanetski97088e92019-06-26 14:47:58 +0100516 installable: false,
atrostb9c34502019-08-05 12:22:18 +0100517 plugins: [
518 "unsupportedappusage-annotation-processor",
519 "compat-changeid-annotation-processor",
520 ],
521}
522
523platform_compat_config {
524 name: "framework-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100525 src: ":framework-annotation-proc",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100526}
527
Paul Duffin521975802019-06-05 10:35:08 +0100528// A library including just UnsupportedAppUsage.java classes.
529//
530// Provided for target so that libraries can use it without depending on
531// the whole of framework or the core platform API.
532//
533// Built for host so that the annotation processor can also use this annotation.
534java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100535 name: "unsupportedappusage-annotation",
Paul Duffin521975802019-06-05 10:35:08 +0100536 host_supported: true,
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100537 srcs: [
538 "core/java/android/annotation/IntDef.java",
Paul Duffinc1308012019-10-10 16:33:42 +0100539 ],
540 static_libs: [
541 "art.module.api.annotations",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100542 ],
Paul Duffin521975802019-06-05 10:35:08 +0100543
544 sdk_version: "core_current",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800545}
546
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000547// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000548// android.test.base library has been removed and which provides support for
549// maintaining backwards compatibility for APKs that target pre-P and depend on
550// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
551// specified on the build command line.
552java_library {
553 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000554 installable: true,
atrost1a945502019-11-04 17:03:54 +0000555 libs: ["app-compat-annotations"],
Paul Duffina3b69212018-01-25 09:58:32 +0000556 srcs: [
557 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
558 ],
559}
560
Colin Crosscf3a0b52017-11-16 00:15:28 -0800561genrule {
562 name: "framework-statslog-gen",
563 tools: ["stats-log-api-gen"],
Muhammad Qureshib11e00d2020-01-10 14:03:13 -0800564 cmd: "$(location stats-log-api-gen) --java $(out) --worksource",
David Chen0a368b22017-12-06 16:28:16 -0800565 out: ["android/util/StatsLogInternal.java"],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800566}
567
568gensrcs {
569 name: "framework-javastream-protos",
570 depfile: true,
571
572 tools: [
573 "aprotoc",
574 "protoc-gen-javastream",
575 "soong_zip",
576 ],
577
Anton Hanssond82b2f72019-11-18 13:34:56 +0000578 cmd: "mkdir -p $(genDir)/$(in) " +
579 "&& $(location aprotoc) " +
580 " --plugin=$(location protoc-gen-javastream) " +
581 " --dependency_out=$(depfile) " +
582 " --javastream_out=$(genDir)/$(in) " +
583 " -Iexternal/protobuf/src " +
584 " -I . " +
585 " $(in) " +
586 "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)",
587
Yi Jin437aa6e2018-01-10 11:34:26 -0800588 srcs: [
589 "core/proto/**/*.proto",
590 "libs/incident/**/*.proto",
591 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800592 output_extension: "srcjar",
593}
594
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900595filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900596 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900597 srcs: [
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900598 "core/java/android/annotation/NonNull.java",
599 "core/java/android/annotation/Nullable.java",
600 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900601 "core/java/android/annotation/IntRange.java",
Anton Hanssonb52bd1c2019-12-06 17:07:28 +0000602 "core/java/android/annotation/SystemApi.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900603 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900604 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100605 ],
Chalard Jean95213512019-01-30 21:04:58 +0900606}
607
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000608java_library {
609 name: "framework-annotations-lib",
610 srcs: [ ":framework-annotations" ],
611 sdk_version: "current",
612}
613
Chalard Jean95213512019-01-30 21:04:58 +0900614filegroup {
evitayane22e47f2019-12-30 16:05:38 -0800615 name: "framework-ike-shared-srcs",
616 visibility: ["//frameworks/opt/net/ike"],
617 srcs: [
evitayanbddbfb02020-01-07 21:21:52 -0800618 "core/java/android/annotation/StringDef.java",
evitayane22e47f2019-12-30 16:05:38 -0800619 "core/java/android/net/annotations/PolicyDirection.java",
evitayan0efc7402019-12-20 17:55:57 -0800620 "core/java/com/android/internal/util/IState.java",
621 "core/java/com/android/internal/util/State.java",
622 "core/java/com/android/internal/util/StateMachine.java",
evitayan996aa2a2019-12-30 11:19:47 -0800623 "telephony/java/android/telephony/Annotation.java",
evitayane22e47f2019-12-30 16:05:38 -0800624 ],
625}
626
627filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900628 name: "framework-networkstack-shared-srcs",
629 srcs: [
630 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900631 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900632 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900633 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900634 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900635 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900636 "core/java/com/android/internal/util/IState.java",
637 "core/java/com/android/internal/util/MessageUtils.java",
638 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900639 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900640 "core/java/com/android/internal/util/State.java",
641 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900642 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900643 "core/java/com/android/internal/util/WakeupMessage.java",
johnson.yeh095b7a02019-12-19 20:30:34 +0800644 "core/java/com/android/internal/util/TokenBucket.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900645 "core/java/android/net/shared/*.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100646 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900647}
648
markchien6d06f6d2019-12-16 20:15:20 +0800649// keep these files in sync with the package/Tethering/jarjar-rules.txt for the tethering module.
markchiena6ba54d2019-09-03 15:58:06 +0800650filegroup {
651 name: "framework-tethering-shared-srcs",
652 srcs: [
653 "core/java/android/util/LocalLog.java",
markchien6d06f6d2019-12-16 20:15:20 +0800654 "core/java/com/android/internal/util/IndentingPrintWriter.java",
655 "core/java/com/android/internal/util/IState.java",
656 "core/java/com/android/internal/util/MessageUtils.java",
657 "core/java/com/android/internal/util/Preconditions.java",
658 "core/java/com/android/internal/util/State.java",
659 "core/java/com/android/internal/util/StateMachine.java",
markchien87d3f7d2020-01-08 20:58:23 +0800660 "core/java/com/android/internal/util/TrafficStatsConstants.java",
markchien986750b2019-12-06 15:24:53 +0800661 "core/java/android/net/shared/Inet4AddressUtils.java",
markchien6d06f6d2019-12-16 20:15:20 +0800662 ],
663}
664
665filegroup {
666 name: "framework-tethering-annotations",
667 srcs: [
668 "core/java/android/annotation/NonNull.java",
markchien75b6d7b2020-01-21 13:11:06 +0800669 "core/java/android/annotation/Nullable.java",
670 "core/java/android/annotation/RequiresPermission.java",
markchien6d06f6d2019-12-16 20:15:20 +0800671 "core/java/android/annotation/SystemApi.java",
markchien75b6d7b2020-01-21 13:11:06 +0800672 "core/java/android/annotation/TestApi.java",
Remi NGUYEN VAN24b7b6a2020-01-27 17:26:14 +0900673 "core/java/com/android/internal/annotations/GuardedBy.java",
markchiena6ba54d2019-09-03 15:58:06 +0800674 ],
675}
Colin Crossd8e02252017-10-02 17:14:22 -0700676// Build ext.jar
677// ============================================================
678java_library {
679 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700680 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100681 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700682 static_libs: [
683 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700684 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000685 "rappor",
Tony Mak64c4cb22018-09-25 13:38:28 +0100686 "libtextclassifier-java",
687 ],
688 required: [
689 "libtextclassifier",
Colin Crossd8e02252017-10-02 17:14:22 -0700690 ],
691 dxflags: ["--core-library"],
692}
693
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700694// ==== java proto host library ==============================
695java_library_host {
696 name: "platformprotos",
697 srcs: [
698 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700699 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700700 "core/proto/**/*.proto",
701 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700702 ],
703 proto: {
704 include_dirs: ["external/protobuf/src"],
705 type: "full",
706 },
707 errorprone: {
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100708 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700709 },
710}
711
Colin Cross43214162018-08-20 13:57:24 -0700712// ==== java proto device library (for test only) ==============================
713java_library {
714 name: "platformprotosnano",
715 proto: {
716 type: "nano",
717 output_params: ["store_unknown_fields=true"],
718 include_dirs: ["external/protobuf/src"],
719 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000720 exclude_srcs: [
721 "core/proto/android/privacy.proto",
722 "core/proto/android/section.proto",
723 ],
Colin Cross43214162018-08-20 13:57:24 -0700724 sdk_version: "current",
725 srcs: [
726 "core/proto/**/*.proto",
727 "libs/incident/proto/android/os/**/*.proto",
728 ],
729}
730
731// ==== java proto device library (for test only) ==============================
732java_library {
733 name: "platformprotoslite",
734 proto: {
735 type: "lite",
736 include_dirs: ["external/protobuf/src"],
737 },
738
739 srcs: [
740 "core/proto/**/*.proto",
741 "libs/incident/proto/android/os/**/*.proto",
742 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000743 exclude_srcs: [
744 "core/proto/android/privacy.proto",
745 "core/proto/android/section.proto",
746 ],
Colin Cross43214162018-08-20 13:57:24 -0700747 // Protos have lots of MissingOverride and similar.
748 errorprone: {
749 javacflags: ["-XepDisableAllChecks"],
750 },
751}
752
Colin Crossaa0d4352017-05-02 14:14:56 -0700753// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000754cc_defaults {
755 name: "libplatformprotos-defaults",
756
Colin Crossaa0d4352017-05-02 14:14:56 -0700757 proto: {
758 export_proto_headers: true,
759 include_dirs: ["external/protobuf/src"],
760 },
761
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700762 cflags: [
763 "-Wall",
764 "-Werror",
765 "-Wno-unused-parameter",
766 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800767
768 srcs: [
769 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800770 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000771}
772
773cc_library {
774 name: "libplatformprotos",
775 defaults: ["libplatformprotos-defaults"],
776 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800777
Colin Crossaa0d4352017-05-02 14:14:56 -0700778 target: {
779 host: {
780 proto: {
781 type: "full",
782 },
783 },
784 android: {
785 proto: {
786 type: "lite",
787 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000788 shared_libs: [
789 "libprotobuf-cpp-lite",
790 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700791 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700792 enabled: false,
793 },
794 },
795 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700796}
797
Joe Onorato9bd5db72019-04-03 18:19:43 -0700798// This library is meant for vendor code that needs to output protobuf. It links
799// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
800// binary compatibility.
801cc_library {
802 name: "libplatformprotos-static",
803 defaults: ["libplatformprotos-defaults"],
804 host_supported: false,
805
806 // This is okay because this library is only built as a static library. The C++
807 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
808 // but is not authorized to be used outside of debugging.
809 vendor_available: true,
810
811 target: {
812 android: {
813 proto: {
814 type: "lite",
815 },
816 static_libs: [
817 "libprotobuf-cpp-lite",
818 ],
819 shared: {
820 enabled: false,
821 },
822 },
823 },
824}
825
826
Joe Onorato99598ee2019-02-11 15:55:13 +0000827// This is the full proto version of libplatformprotos. It may only
828// be used by test code that is not shipped on the device.
829cc_library {
830 name: "libplatformprotos-test",
831 defaults: ["libplatformprotos-defaults"],
832 host_supported: false,
833
834 target: {
835 android: {
836 proto: {
837 type: "full",
838 },
839 shared: {
840 enabled: false,
841 },
842 },
843 },
844}
845
Songchun Fan000b5b52019-12-04 12:17:38 -0800846filegroup {
847 name: "incremental_aidl",
848 srcs: [
849 "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl",
850 ],
851 path: "core/java",
852}
853
854aidl_interface {
855 name: "libincremental_aidl",
856 srcs: [
857 ":incremental_aidl",
858 ],
859 backend: {
860 java: {
861 sdk_version: "28",
862 },
863 cpp: {
864 enabled: true,
865 },
866 ndk: {
867 enabled: true,
868 },
869 },
870}
Joe Onorato99598ee2019-02-11 15:55:13 +0000871
Yi Jin04625ad2017-10-17 18:29:33 -0700872gensrcs {
873 name: "gen-platform-proto-constants",
874 depfile: true,
875
876 tools: [
877 "aprotoc",
878 "protoc-gen-cppstream",
879 ],
880
881 srcs: [
Kweku Adamseadd1232018-02-05 16:45:13 -0800882 "core/proto/android/os/backtrace.proto",
Kweku Adams59e6fd72017-12-27 15:48:14 -0800883 "core/proto/android/os/batterytype.proto",
Yi Jin0eb22342017-11-06 17:17:27 -0800884 "core/proto/android/os/cpufreq.proto",
Yi Jine2f7f792017-11-01 17:08:27 -0700885 "core/proto/android/os/cpuinfo.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700886 "core/proto/android/os/data.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700887 "core/proto/android/os/kernelwake.proto",
888 "core/proto/android/os/pagetypeinfo.proto",
889 "core/proto/android/os/procrank.proto",
Kweku Adamsf5cc5752017-12-20 17:59:17 -0800890 "core/proto/android/os/ps.proto",
Yi Jin0dfa7522017-11-06 17:43:47 -0800891 "core/proto/android/os/system_properties.proto",
Yi Jin3c034c92017-12-22 17:36:47 -0800892 "core/proto/android/util/event_log_tags.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700893 "core/proto/android/util/log.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700894 ],
895
896 // Append protoc-gen-cppstream tool's PATH otherwise aprotoc can't find the plugin tool
Yi Jin3c034c92017-12-22 17:36:47 -0800897 cmd: "mkdir -p $(genDir) " +
898 "&& $(location aprotoc) " +
899 " --plugin=$(location protoc-gen-cppstream) " +
900 " --dependency_out=$(depfile) " +
901 " --cppstream_out=$(genDir) " +
902 " -Iexternal/protobuf/src " +
903 " -I . " +
904 " $(in)",
Yi Jin04625ad2017-10-17 18:29:33 -0700905
Logan Chien71ddfea2018-02-27 16:43:50 +0800906 output_extension: "proto.h",
Yi Jin04625ad2017-10-17 18:29:33 -0700907}
908
Joe Onorato99598ee2019-02-11 15:55:13 +0000909
Dan Albert2a8d9c22016-09-23 15:55:49 -0700910subdirs = [
Yi Jin0a3406f2017-06-22 19:23:11 -0700911 "cmds/*",
Jeff Sharkey0c686e72017-10-23 16:04:31 -0600912 "core/*",
Colin Cross4f8d9e62016-12-01 15:55:00 -0800913 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -0700914 "media/*",
Colin Cross747e7c12017-10-24 16:21:22 -0700915 "proto",
Fabien Sanglard19160202017-01-12 14:24:31 -0500916 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700917 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -0700918 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700919]
Svetoslav Ganov74c99832016-12-05 20:07:20 -0800920
921optional_subdirs = [
922 "core/tests/utiltests/jni",
923]
Steven Morelandeddafe92017-10-02 16:58:41 -0700924
Colin Crossa2b78a72018-03-29 13:31:04 -0700925// TODO(b/77285514): remove this once the last few hidl interfaces have been
926// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -0700927java_library {
928 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +0100929 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -0700930
931 srcs: [
932 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800933 "core/java/android/annotation/IntDef.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -0800934 "core/java/android/annotation/IntRange.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700935 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -0800936 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800937 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -0800938 "core/java/android/annotation/TestApi.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -0800939 "core/java/android/os/HidlMemory.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700940 "core/java/android/os/HwBinder.java",
941 "core/java/android/os/HwBlob.java",
942 "core/java/android/os/HwParcel.java",
943 "core/java/android/os/IHwBinder.java",
944 "core/java/android/os/IHwInterface.java",
945 "core/java/android/os/DeadObjectException.java",
946 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -0700947 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700948 "core/java/android/os/RemoteException.java",
949 "core/java/android/util/AndroidException.java",
950 ],
Artur Satayevbc3d8b92019-12-10 17:47:53 +0000951 libs: [ "unsupportedappusage" ],
Steven Morelandeddafe92017-10-02 16:58:41 -0700952
953 dxflags: ["--core-library"],
954 installable: false,
955}
Nan Zhang2db709d2017-11-08 20:48:46 -0800956
957python_defaults {
958 name: "base_default",
959 version: {
960 py2: {
961 enabled: true,
962 embedded_launcher: true,
963 },
964 py3: {
965 enabled: false,
966 embedded_launcher: false,
967 },
968 },
969}
970
971python_binary_host {
972 name: "fontchain_linter",
973 defaults: ["base_default"],
974 main: "tools/fonts/fontchain_linter.py",
975 srcs: [
976 "tools/fonts/fontchain_linter.py",
977 ],
978 libs: [
979 "fontTools",
980 ],
981}
Nan Zhang172875b2018-02-27 11:24:03 -0800982
Nan Zhangaf251302018-08-30 10:59:51 -0700983filegroup {
984 name: "framework-annotation-nonnull-srcs",
985 srcs: [
986 "core/java/android/annotation/NonNull.java",
987 ],
988}
Insun Kang06b25ae2018-11-20 10:05:44 +0900989
990filegroup {
991 name: "framework-media-annotation-srcs",
992 srcs: [
993 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +0900994 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +0900995 "core/java/android/annotation/DrawableRes.java",
996 "core/java/android/annotation/IntDef.java",
997 "core/java/android/annotation/LongDef.java",
998 "core/java/android/annotation/NonNull.java",
999 "core/java/android/annotation/Nullable.java",
1000 "core/java/android/annotation/RequiresPermission.java",
1001 "core/java/android/annotation/SdkConstant.java",
1002 "core/java/android/annotation/StringDef.java",
Sungsoo Limbb3b4012019-01-23 13:17:53 +09001003 "core/java/android/annotation/SystemApi.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001004 "core/java/android/annotation/TestApi.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001005 "core/java/com/android/internal/annotations/GuardedBy.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001006 ],
1007}
1008
Andrei Onea7a2985c2019-02-18 15:28:35 +00001009// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1010// annotations to private apis
1011aidl_mapping {
1012 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001013 srcs: [":framework-all-sources"],
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001014 output: "framework-aidl-mappings.txt",
Dario Freni2ce84342019-04-26 13:06:22 +01001015}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001016
1017genrule {
1018 name: "framework-annotation-proc-index",
1019 srcs: [":framework-annotation-proc"],
1020 cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)",
1021 out: ["unsupportedappusage_index.csv"],
1022 dist: {
1023 targets: ["droidcore"],
1024 },
1025}
Chen Xu0e9d6752019-10-08 18:39:03 -07001026
Chen Xu0e9d6752019-10-08 18:39:03 -07001027filegroup {
1028 name: "framework-cellbroadcast-shared-srcs",
1029 srcs: [
Jordan Liubf68dc82019-11-20 13:55:18 -08001030 "core/java/android/os/HandlerExecutor.java",
1031 "core/java/android/util/LocalLog.java",
Chen Xu0e9d6752019-10-08 18:39:03 -07001032 "core/java/android/util/Slog.java",
Jordan Liubf68dc82019-11-20 13:55:18 -08001033 "core/java/com/android/internal/util/IState.java",
1034 "core/java/com/android/internal/util/Preconditions.java",
1035 "core/java/com/android/internal/util/State.java",
1036 "core/java/com/android/internal/util/StateMachine.java",
Chen Xu0e9d6752019-10-08 18:39:03 -07001037 ],
1038}
Chen Xuc00cf992019-09-05 22:07:42 -07001039
1040// Avoid including Parcelable classes as we don't want to have two copies of
1041// Parcelable cross the process.
1042filegroup {
1043 name: "framework-telephony-stack-shared-srcs",
1044 srcs: [
1045 "core/java/android/os/RegistrantList.java",
1046 "core/java/android/os/Registrant.java",
1047 "core/java/android/util/LocalLog.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001048 "core/java/android/util/TimeUtils.java",
1049 "core/java/com/android/internal/os/SomeArgs.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001050 "core/java/com/android/internal/util/AsyncChannel.java",
Meng Wang3043dac2020-01-14 14:04:10 -08001051 "core/java/com/android/internal/util/AsyncService.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001052 "core/java/com/android/internal/util/BitwiseInputStream.java",
Michele68370a82019-10-31 11:48:43 -07001053 "core/java/com/android/internal/util/FastXmlSerializer.java",
1054 "core/java/com/android/internal/util/HexDump.java",
Meng Wang8532de92019-12-02 10:42:20 -08001055 "core/java/com/android/internal/util/IState.java",
Michele68370a82019-10-31 11:48:43 -07001056 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001057 "core/java/com/android/internal/util/Preconditions.java",
1058 "core/java/com/android/internal/util/State.java",
1059 "core/java/com/android/internal/util/StateMachine.java",
Michele68370a82019-10-31 11:48:43 -07001060 "core/java/com/android/internal/util/UserIcons.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001061 ],
1062}
Jiyong Park7fb4b182019-12-20 14:35:43 +09001063
1064// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
1065metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
1066 "--ignore-classes-on-classpath " +
1067 "--hide-package com.android.server " +
1068 "--error UnhiddenSystemApi " +
1069 "--hide RequiresPermission " +
1070 "--hide CallbackInterface " +
1071 "--hide MissingPermission --hide BroadcastBehavior " +
1072 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
1073 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
Aurimas Liutikas1f76a5a2019-11-20 17:51:42 -08001074 "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " +
1075 "--api-lint-ignore-prefix android.icu. " +
1076 "--api-lint-ignore-prefix java. " +
1077 "--api-lint-ignore-prefix junit. " +
1078 "--api-lint-ignore-prefix org. "
Jiyong Park7fb4b182019-12-20 14:35:43 +09001079
1080build = [
1081 "StubLibraries.bp",
1082 "ApiDocs.bp",
1083]