blob: 79a8a4bbea6f06e011d129329e963d7211dd8dcd [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",
Muhammad Qureshi1de1df42020-01-27 16:36:45 -0800281 ":framework-statslog-gen", // StatsLogInternal.java
282 ":statslog-framework-java-gen", // FrameworkStatsLog.java
Jiyong Park5366ea22019-08-19 15:24:49 +0900283 ],
284}
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900285
Jiyong Parkae9972b2019-09-15 20:19:02 +0900286filegroup {
Anton Hanssonb4f35572019-12-02 16:30:22 +0000287 name: "framework-updatable-sources",
288 srcs: [
Anton Hansson87743c62020-01-08 09:48:18 +0000289 ":framework-sdkextensions-sources",
markchien6d06f6d2019-12-16 20:15:20 +0800290 ":framework-tethering-srcs",
Xiao Ma859af502020-01-31 12:40:12 +0900291 ":framework-wifi-updatable-exported-aidl-sources",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000292 ":updatable-media-srcs",
Benedict Wong7f58c0d2019-11-20 22:52:48 -0800293 ":ike-srcs",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000294 ]
295}
296
297filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900298 name: "framework-all-sources",
299 srcs: [
Tobias Thierer17d0c592019-11-22 16:33:18 +0000300 ":framework-mime-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900301 ":framework-non-updatable-sources",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000302 ":framework-updatable-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900303 ],
304}
305
Artur Satayev005d7352019-08-02 16:42:07 +0100306java_defaults {
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900307 name: "framework-aidl-export-defaults",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800308 aidl: {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900309 export_include_dirs: [
310 "core/java",
311 "drm/java",
312 "graphics/java",
David Zeuthen045b6de2019-10-29 15:15:18 -0400313 "identity/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900314 "keystore/java",
315 "location/java",
316 "lowpan/java",
317 "media/java",
318 "media/apex/java",
319 "media/mca/effect/java",
320 "media/mca/filterfw/java",
321 "media/mca/filterpacks/java",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700322 "mms/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900323 "opengl/java",
324 "rs/java",
325 "sax/java",
326 "telecomm/java",
327 "telephony/java",
328 "wifi/java",
Xiao Ma859af502020-01-31 12:40:12 +0900329 "wifi/aidl-export",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900330 ],
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900331 },
332}
Colin Crosscf3a0b52017-11-16 00:15:28 -0800333
Jiyong Park5366ea22019-08-19 15:24:49 +0900334// Collection of classes that are generated from non-Java files that are not listed in
335// framework_srcs. These have no or very limited dependency to the framework.
336java_library {
337 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800338 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100339 "apex_aidl_interface-java",
Kalesh Singh759af322019-06-19 12:17:43 -0700340 "suspend_control_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800341 "framework-protos",
Peiyong Lin9ca1dd82019-01-12 17:44:29 -0800342 "game-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800343 "android.hidl.base-V1.0-java",
Henry Fang5215ac92019-02-01 19:24:55 +0000344 "android.hardware.cas-V1.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800345 "android.hardware.cas-V1.0-java",
346 "android.hardware.contexthub-V1.0-java",
347 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800348 "android.hardware.radio-V1.0-java",
349 "android.hardware.radio-V1.1-java",
350 "android.hardware.radio-V1.2-java",
351 "android.hardware.radio-V1.3-java",
352 "android.hardware.radio-V1.4-java",
Sarah Chine138c5e2019-11-05 13:30:10 -0800353 "android.hardware.radio-V1.5-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800354 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800355 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700356 "android.hardware.thermal-V1.1-java",
357 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800358 "android.hardware.tv.input-V1.0-java-constants",
359 "android.hardware.usb-V1.0-java-constants",
360 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800361 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800362 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000363 "android.hardware.vibrator-V1.0-java",
364 "android.hardware.vibrator-V1.1-java",
365 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900366 "android.hardware.vibrator-V1.3-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800367 "android.hardware.wifi-V1.0-java-constants",
arangelov1ab61492018-11-22 13:56:50 +0000368 "devicepolicyprotosnano",
Inseob Kim617a7222019-07-30 18:23:26 +0900369
370 "com.android.sysprop.apex",
371 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800372 ],
Jiyong Park5366ea22019-08-19 15:24:49 +0900373 sdk_version: "core_platform",
374 installable: false,
375}
376
377java_defaults {
378 name: "framework-defaults",
379 defaults: ["framework-aidl-export-defaults"],
380 installable: true,
381
Jiyong Park5366ea22019-08-19 15:24:49 +0900382 aidl: {
383 generate_get_transaction_name: true,
384 },
385
Jiyong Parkae9972b2019-09-15 20:19:02 +0900386 srcs: ["core/java/**/*.logtags"],
387
Jiyong Park5366ea22019-08-19 15:24:49 +0900388 exclude_srcs: [
389 // See comment on framework-atb-backward-compatibility module below
390 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
391 ],
392
393 sdk_version: "core_platform",
394 libs: [
Artur Satayev700e08b2019-12-11 13:03:32 +0000395 "app-compat-annotations",
Jiyong Park5366ea22019-08-19 15:24:49 +0900396 "ext",
Artur Satayev700e08b2019-12-11 13:03:32 +0000397 "unsupportedappusage",
Jiyong Park5366ea22019-08-19 15:24:49 +0900398 "updatable_media_stubs",
markchien6d06f6d2019-12-16 20:15:20 +0800399 "framework-tethering",
Jiyong Park5366ea22019-08-19 15:24:49 +0900400 ],
401
402 jarjar_rules: ":framework-jarjar-rules",
403
Tobias Thierer878c77b2019-08-18 15:19:45 +0100404 static_libs: [
405 "framework-internal-utils",
Tobias Thierer878c77b2019-08-18 15:19:45 +0100406 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800407
Wei Jia0a8a8f02017-12-05 17:05:29 -0800408 required: [
Anton Hansson11905c62018-11-27 12:10:30 +0000409 // TODO: remove gps_debug when the build system propagates "required" properly.
410 "gps_debug.conf",
Logan Chien71ddfea2018-02-27 16:43:50 +0800411 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800412
Colin Crosscf3a0b52017-11-16 00:15:28 -0800413 dxflags: [
414 "--core-library",
415 "--multi-dex",
416 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100417
Ashley Roseb47ddd42019-01-28 19:54:09 -0500418 plugins: ["view-inspector-annotation-processor"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100419}
420
Colin Crossbc2dc312018-10-26 22:34:06 -0700421filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800422 name: "framework-jarjar-rules",
423 srcs: ["jarjar_rules_hidl.txt"],
424}
425
426filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700427 name: "libincident_aidl",
428 srcs: [
429 "core/java/android/os/IIncidentManager.aidl",
430 "core/java/android/os/IIncidentReportStatusListener.aidl",
431 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700432 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700433}
434
435filegroup {
436 name: "statsd_aidl",
437 srcs: [
438 "core/java/android/os/IStatsCompanionService.aidl",
439 "core/java/android/os/IStatsManager.aidl",
Tej Singha0c89dd2019-01-25 16:39:18 -0800440 "core/java/android/os/IStatsPullerCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700441 ],
Dan Willemsena38ff9f2019-06-11 10:56:01 -0700442 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700443}
444
Michael Wrightc390fbe2018-12-12 19:45:09 +0000445filegroup {
446 name: "libvibrator_aidl",
447 srcs: [
448 "core/java/android/os/IExternalVibrationController.aidl",
449 "core/java/android/os/IExternalVibratorService.aidl",
450 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700451 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000452}
453
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100454java_library {
Jiyong Parkc893b462019-10-28 15:33:08 +0900455 name: "framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100456 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900457 srcs: [":framework-non-updatable-sources"],
Benedict Wong7f58c0d2019-11-20 22:52:48 -0800458 libs: ["ike-stubs"],
Jiyong Parkc893b462019-10-28 15:33:08 +0900459 installable: true,
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100460 javac_shard_size: 150,
atrostb9c34502019-08-05 12:22:18 +0100461 required: [
462 "framework-platform-compat-config",
463 "libcore-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100464 "services-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100465 ],
Tobias Thierer17d0c592019-11-22 16:33:18 +0000466 static_libs: [
Tobias Thierer82968532019-11-29 19:39:45 +0000467 // If MimeMap ever becomes its own APEX, then this dependency would need to be removed
468 // in favor of an API stubs dependency in java_library "framework" below.
Tobias Thierer17d0c592019-11-22 16:33:18 +0000469 "mimemap",
470 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900471 // For backwards compatibility.
472 stem: "framework",
Jiyong Park79242c22019-12-09 14:45:07 +0900473 apex_available: ["//apex_available:platform"],
Jiyong Parkc893b462019-10-28 15:33:08 +0900474}
475
476// This "framework" module is NOT installed to the device. It's
477// "framework-minus-apex" that gets installed to the device. Note that
478// the filename is still framework.jar (via the stem property) for
479// compatibility reason. The purpose of this module is to provide
480// framework APIs (both public and private) for bundled apps.
481// "framework-minus-apex" can't be used for the purpose because 1)
482// many apps have already hardcoded the name "framework" and
483// 2) it lacks API symbols from updatable modules - as it's clear from
484// its suffix "-minus-apex".
485java_library {
486 name: "framework",
487 defaults: ["framework-aidl-export-defaults"],
488 installable: false, // this lib is a build-only library
489 static_libs: [
490 "framework-minus-apex",
Jiyong Park025e56e2019-12-18 17:26:38 +0900491 "updatable_media_stubs",
Anton Hansson87743c62020-01-08 09:48:18 +0000492 "framework-sdkextensions-stubs-systemapi",
Jiyong Park90247c82020-01-06 13:30:59 +0900493 // TODO(b/147200698): should be the stub of framework-tethering
494 "framework-tethering",
Benedict Wong7f58c0d2019-11-20 22:52:48 -0800495 "ike-stubs",
Jiyong Parkc893b462019-10-28 15:33:08 +0900496 ],
497 sdk_version: "core_platform",
Jiyong Park79242c22019-12-09 14:45:07 +0900498 apex_available: ["//apex_available:platform"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100499}
500
501java_library {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900502 name: "framework-all",
503 defaults: ["framework-defaults"],
504 srcs: [":framework-all-sources"],
505 installable: false,
Jiyong Park79242c22019-12-09 14:45:07 +0900506 apex_available: ["//apex_available:platform"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900507}
508
509java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100510 name: "framework-annotation-proc",
511 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900512 srcs: [":framework-all-sources"],
Artur Satayev700e08b2019-12-11 13:03:32 +0000513 libs: [
514 "app-compat-annotations",
515 "unsupportedappusage",
516 ],
Anna Trostanetski97088e92019-06-26 14:47:58 +0100517 installable: false,
atrostb9c34502019-08-05 12:22:18 +0100518 plugins: [
519 "unsupportedappusage-annotation-processor",
520 "compat-changeid-annotation-processor",
521 ],
522}
523
524platform_compat_config {
525 name: "framework-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100526 src: ":framework-annotation-proc",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100527}
528
Paul Duffin521975802019-06-05 10:35:08 +0100529// A library including just UnsupportedAppUsage.java classes.
530//
531// Provided for target so that libraries can use it without depending on
532// the whole of framework or the core platform API.
533//
534// Built for host so that the annotation processor can also use this annotation.
535java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100536 name: "unsupportedappusage-annotation",
Paul Duffin521975802019-06-05 10:35:08 +0100537 host_supported: true,
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100538 srcs: [
539 "core/java/android/annotation/IntDef.java",
Paul Duffinc1308012019-10-10 16:33:42 +0100540 ],
541 static_libs: [
542 "art.module.api.annotations",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100543 ],
Paul Duffin521975802019-06-05 10:35:08 +0100544
545 sdk_version: "core_current",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800546}
547
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000548// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000549// android.test.base library has been removed and which provides support for
550// maintaining backwards compatibility for APKs that target pre-P and depend on
551// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
552// specified on the build command line.
553java_library {
554 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000555 installable: true,
atrost1a945502019-11-04 17:03:54 +0000556 libs: ["app-compat-annotations"],
Paul Duffina3b69212018-01-25 09:58:32 +0000557 srcs: [
558 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
559 ],
560}
561
Colin Crosscf3a0b52017-11-16 00:15:28 -0800562genrule {
563 name: "framework-statslog-gen",
564 tools: ["stats-log-api-gen"],
Muhammad Qureshib11e00d2020-01-10 14:03:13 -0800565 cmd: "$(location stats-log-api-gen) --java $(out) --worksource",
David Chen0a368b22017-12-06 16:28:16 -0800566 out: ["android/util/StatsLogInternal.java"],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800567}
568
Muhammad Qureshi1de1df42020-01-27 16:36:45 -0800569genrule {
570 name: "statslog-framework-java-gen",
571 tools: ["stats-log-api-gen"],
572 cmd: "$(location stats-log-api-gen) --java $(out) --module framework" +
573 " --javaPackage com.android.internal.util --javaClass FrameworkStatsLog --worksource",
574 out: ["com/android/internal/util/FrameworkStatsLog.java"],
575}
576
Colin Crosscf3a0b52017-11-16 00:15:28 -0800577gensrcs {
578 name: "framework-javastream-protos",
579 depfile: true,
580
581 tools: [
582 "aprotoc",
583 "protoc-gen-javastream",
584 "soong_zip",
585 ],
586
Anton Hanssond82b2f72019-11-18 13:34:56 +0000587 cmd: "mkdir -p $(genDir)/$(in) " +
588 "&& $(location aprotoc) " +
589 " --plugin=$(location protoc-gen-javastream) " +
590 " --dependency_out=$(depfile) " +
591 " --javastream_out=$(genDir)/$(in) " +
592 " -Iexternal/protobuf/src " +
593 " -I . " +
594 " $(in) " +
595 "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)",
596
Yi Jin437aa6e2018-01-10 11:34:26 -0800597 srcs: [
598 "core/proto/**/*.proto",
599 "libs/incident/**/*.proto",
600 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800601 output_extension: "srcjar",
602}
603
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900604filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900605 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900606 srcs: [
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900607 "core/java/android/annotation/NonNull.java",
608 "core/java/android/annotation/Nullable.java",
609 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900610 "core/java/android/annotation/IntRange.java",
Anton Hanssonb52bd1c2019-12-06 17:07:28 +0000611 "core/java/android/annotation/SystemApi.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900612 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900613 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Tobias Thiererbc050342019-05-23 16:20:12 +0100614 ],
Chalard Jean95213512019-01-30 21:04:58 +0900615}
616
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000617java_library {
618 name: "framework-annotations-lib",
619 srcs: [ ":framework-annotations" ],
620 sdk_version: "current",
621}
622
Chalard Jean95213512019-01-30 21:04:58 +0900623filegroup {
evitayane22e47f2019-12-30 16:05:38 -0800624 name: "framework-ike-shared-srcs",
625 visibility: ["//frameworks/opt/net/ike"],
626 srcs: [
evitayanbddbfb02020-01-07 21:21:52 -0800627 "core/java/android/annotation/StringDef.java",
evitayane22e47f2019-12-30 16:05:38 -0800628 "core/java/android/net/annotations/PolicyDirection.java",
evitayan0efc7402019-12-20 17:55:57 -0800629 "core/java/com/android/internal/util/IState.java",
630 "core/java/com/android/internal/util/State.java",
631 "core/java/com/android/internal/util/StateMachine.java",
evitayan996aa2a2019-12-30 11:19:47 -0800632 "telephony/java/android/telephony/Annotation.java",
evitayane22e47f2019-12-30 16:05:38 -0800633 ],
634}
635
636filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900637 name: "framework-networkstack-shared-srcs",
638 srcs: [
639 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900640 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900641 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900642 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900643 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900644 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900645 "core/java/com/android/internal/util/IState.java",
646 "core/java/com/android/internal/util/MessageUtils.java",
647 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900648 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900649 "core/java/com/android/internal/util/State.java",
650 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900651 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900652 "core/java/com/android/internal/util/WakeupMessage.java",
johnson.yeh095b7a02019-12-19 20:30:34 +0800653 "core/java/com/android/internal/util/TokenBucket.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900654 "core/java/android/net/shared/*.java",
Tobias Thiererbc050342019-05-23 16:20:12 +0100655 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900656}
657
markchien6d06f6d2019-12-16 20:15:20 +0800658// keep these files in sync with the package/Tethering/jarjar-rules.txt for the tethering module.
markchiena6ba54d2019-09-03 15:58:06 +0800659filegroup {
660 name: "framework-tethering-shared-srcs",
661 srcs: [
662 "core/java/android/util/LocalLog.java",
markchien6d06f6d2019-12-16 20:15:20 +0800663 "core/java/com/android/internal/util/IndentingPrintWriter.java",
664 "core/java/com/android/internal/util/IState.java",
665 "core/java/com/android/internal/util/MessageUtils.java",
666 "core/java/com/android/internal/util/Preconditions.java",
667 "core/java/com/android/internal/util/State.java",
668 "core/java/com/android/internal/util/StateMachine.java",
markchien87d3f7d2020-01-08 20:58:23 +0800669 "core/java/com/android/internal/util/TrafficStatsConstants.java",
markchien986750b2019-12-06 15:24:53 +0800670 "core/java/android/net/shared/Inet4AddressUtils.java",
markchien6d06f6d2019-12-16 20:15:20 +0800671 ],
672}
673
674filegroup {
675 name: "framework-tethering-annotations",
676 srcs: [
677 "core/java/android/annotation/NonNull.java",
markchien75b6d7b2020-01-21 13:11:06 +0800678 "core/java/android/annotation/Nullable.java",
679 "core/java/android/annotation/RequiresPermission.java",
markchien6d06f6d2019-12-16 20:15:20 +0800680 "core/java/android/annotation/SystemApi.java",
markchien75b6d7b2020-01-21 13:11:06 +0800681 "core/java/android/annotation/TestApi.java",
Remi NGUYEN VAN24b7b6a2020-01-27 17:26:14 +0900682 "core/java/com/android/internal/annotations/GuardedBy.java",
markchiena6ba54d2019-09-03 15:58:06 +0800683 ],
684}
Colin Crossd8e02252017-10-02 17:14:22 -0700685// Build ext.jar
686// ============================================================
687java_library {
688 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700689 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100690 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700691 static_libs: [
692 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700693 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000694 "rappor",
Tony Mak64c4cb22018-09-25 13:38:28 +0100695 "libtextclassifier-java",
696 ],
697 required: [
698 "libtextclassifier",
Colin Crossd8e02252017-10-02 17:14:22 -0700699 ],
700 dxflags: ["--core-library"],
701}
702
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700703// ==== java proto host library ==============================
704java_library_host {
705 name: "platformprotos",
706 srcs: [
707 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700708 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700709 "core/proto/**/*.proto",
710 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700711 ],
712 proto: {
713 include_dirs: ["external/protobuf/src"],
714 type: "full",
715 },
716 errorprone: {
Tobias Thiererbc050342019-05-23 16:20:12 +0100717 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700718 },
719}
720
Colin Cross43214162018-08-20 13:57:24 -0700721// ==== java proto device library (for test only) ==============================
722java_library {
723 name: "platformprotosnano",
724 proto: {
725 type: "nano",
726 output_params: ["store_unknown_fields=true"],
727 include_dirs: ["external/protobuf/src"],
728 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000729 exclude_srcs: [
730 "core/proto/android/privacy.proto",
731 "core/proto/android/section.proto",
732 ],
Colin Cross43214162018-08-20 13:57:24 -0700733 sdk_version: "current",
734 srcs: [
735 "core/proto/**/*.proto",
736 "libs/incident/proto/android/os/**/*.proto",
737 ],
738}
739
740// ==== java proto device library (for test only) ==============================
741java_library {
742 name: "platformprotoslite",
743 proto: {
744 type: "lite",
745 include_dirs: ["external/protobuf/src"],
746 },
747
748 srcs: [
749 "core/proto/**/*.proto",
750 "libs/incident/proto/android/os/**/*.proto",
751 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000752 exclude_srcs: [
753 "core/proto/android/privacy.proto",
754 "core/proto/android/section.proto",
755 ],
Colin Cross43214162018-08-20 13:57:24 -0700756 // Protos have lots of MissingOverride and similar.
757 errorprone: {
758 javacflags: ["-XepDisableAllChecks"],
759 },
760}
761
Colin Crossaa0d4352017-05-02 14:14:56 -0700762// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000763cc_defaults {
764 name: "libplatformprotos-defaults",
765
Colin Crossaa0d4352017-05-02 14:14:56 -0700766 proto: {
767 export_proto_headers: true,
768 include_dirs: ["external/protobuf/src"],
769 },
770
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700771 cflags: [
772 "-Wall",
773 "-Werror",
774 "-Wno-unused-parameter",
775 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800776
777 srcs: [
778 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800779 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000780}
781
782cc_library {
783 name: "libplatformprotos",
784 defaults: ["libplatformprotos-defaults"],
785 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800786
Colin Crossaa0d4352017-05-02 14:14:56 -0700787 target: {
788 host: {
789 proto: {
790 type: "full",
791 },
792 },
793 android: {
794 proto: {
795 type: "lite",
796 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000797 shared_libs: [
798 "libprotobuf-cpp-lite",
799 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700800 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700801 enabled: false,
802 },
803 },
804 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700805}
806
Joe Onorato9bd5db72019-04-03 18:19:43 -0700807// This library is meant for vendor code that needs to output protobuf. It links
808// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
809// binary compatibility.
810cc_library {
811 name: "libplatformprotos-static",
812 defaults: ["libplatformprotos-defaults"],
813 host_supported: false,
814
815 // This is okay because this library is only built as a static library. The C++
816 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
817 // but is not authorized to be used outside of debugging.
818 vendor_available: true,
819
820 target: {
821 android: {
822 proto: {
823 type: "lite",
824 },
825 static_libs: [
826 "libprotobuf-cpp-lite",
827 ],
828 shared: {
829 enabled: false,
830 },
831 },
832 },
833}
834
835
Joe Onorato99598ee2019-02-11 15:55:13 +0000836// This is the full proto version of libplatformprotos. It may only
837// be used by test code that is not shipped on the device.
838cc_library {
839 name: "libplatformprotos-test",
840 defaults: ["libplatformprotos-defaults"],
841 host_supported: false,
842
843 target: {
844 android: {
845 proto: {
846 type: "full",
847 },
848 shared: {
849 enabled: false,
850 },
851 },
852 },
853}
854
Songchun Fan000b5b52019-12-04 12:17:38 -0800855filegroup {
856 name: "incremental_aidl",
857 srcs: [
858 "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl",
859 ],
860 path: "core/java",
861}
862
863aidl_interface {
864 name: "libincremental_aidl",
865 srcs: [
866 ":incremental_aidl",
867 ],
868 backend: {
869 java: {
870 sdk_version: "28",
871 },
872 cpp: {
873 enabled: true,
874 },
875 ndk: {
876 enabled: true,
877 },
878 },
879}
Joe Onorato99598ee2019-02-11 15:55:13 +0000880
Yi Jin04625ad2017-10-17 18:29:33 -0700881gensrcs {
882 name: "gen-platform-proto-constants",
883 depfile: true,
884
885 tools: [
886 "aprotoc",
887 "protoc-gen-cppstream",
888 ],
889
890 srcs: [
Kweku Adamseadd1232018-02-05 16:45:13 -0800891 "core/proto/android/os/backtrace.proto",
Kweku Adams59e6fd72017-12-27 15:48:14 -0800892 "core/proto/android/os/batterytype.proto",
Yi Jin0eb22342017-11-06 17:17:27 -0800893 "core/proto/android/os/cpufreq.proto",
Yi Jine2f7f792017-11-01 17:08:27 -0700894 "core/proto/android/os/cpuinfo.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700895 "core/proto/android/os/data.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700896 "core/proto/android/os/kernelwake.proto",
897 "core/proto/android/os/pagetypeinfo.proto",
898 "core/proto/android/os/procrank.proto",
Kweku Adamsf5cc5752017-12-20 17:59:17 -0800899 "core/proto/android/os/ps.proto",
Yi Jin0dfa7522017-11-06 17:43:47 -0800900 "core/proto/android/os/system_properties.proto",
Yi Jin3c034c92017-12-22 17:36:47 -0800901 "core/proto/android/util/event_log_tags.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700902 "core/proto/android/util/log.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700903 ],
904
905 // Append protoc-gen-cppstream tool's PATH otherwise aprotoc can't find the plugin tool
Yi Jin3c034c92017-12-22 17:36:47 -0800906 cmd: "mkdir -p $(genDir) " +
907 "&& $(location aprotoc) " +
908 " --plugin=$(location protoc-gen-cppstream) " +
909 " --dependency_out=$(depfile) " +
910 " --cppstream_out=$(genDir) " +
911 " -Iexternal/protobuf/src " +
912 " -I . " +
913 " $(in)",
Yi Jin04625ad2017-10-17 18:29:33 -0700914
Logan Chien71ddfea2018-02-27 16:43:50 +0800915 output_extension: "proto.h",
Yi Jin04625ad2017-10-17 18:29:33 -0700916}
917
Joe Onorato99598ee2019-02-11 15:55:13 +0000918
Dan Albert2a8d9c22016-09-23 15:55:49 -0700919subdirs = [
Yi Jin0a3406f2017-06-22 19:23:11 -0700920 "cmds/*",
Jeff Sharkey0c686e72017-10-23 16:04:31 -0600921 "core/*",
Colin Cross4f8d9e62016-12-01 15:55:00 -0800922 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -0700923 "media/*",
Colin Cross747e7c12017-10-24 16:21:22 -0700924 "proto",
Fabien Sanglard19160202017-01-12 14:24:31 -0500925 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700926 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -0700927 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700928]
Svetoslav Ganov74c99832016-12-05 20:07:20 -0800929
930optional_subdirs = [
931 "core/tests/utiltests/jni",
932]
Steven Morelandeddafe92017-10-02 16:58:41 -0700933
Colin Crossa2b78a72018-03-29 13:31:04 -0700934// TODO(b/77285514): remove this once the last few hidl interfaces have been
935// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -0700936java_library {
937 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +0100938 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -0700939
940 srcs: [
941 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800942 "core/java/android/annotation/IntDef.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -0800943 "core/java/android/annotation/IntRange.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700944 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -0800945 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800946 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -0800947 "core/java/android/annotation/TestApi.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -0800948 "core/java/android/os/HidlMemory.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700949 "core/java/android/os/HwBinder.java",
950 "core/java/android/os/HwBlob.java",
951 "core/java/android/os/HwParcel.java",
952 "core/java/android/os/IHwBinder.java",
953 "core/java/android/os/IHwInterface.java",
954 "core/java/android/os/DeadObjectException.java",
955 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -0700956 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700957 "core/java/android/os/RemoteException.java",
958 "core/java/android/util/AndroidException.java",
959 ],
Artur Satayevbc3d8b92019-12-10 17:47:53 +0000960 libs: [ "unsupportedappusage" ],
Steven Morelandeddafe92017-10-02 16:58:41 -0700961
962 dxflags: ["--core-library"],
963 installable: false,
964}
Nan Zhang2db709d2017-11-08 20:48:46 -0800965
966python_defaults {
967 name: "base_default",
968 version: {
969 py2: {
970 enabled: true,
971 embedded_launcher: true,
972 },
973 py3: {
974 enabled: false,
975 embedded_launcher: false,
976 },
977 },
978}
979
980python_binary_host {
981 name: "fontchain_linter",
982 defaults: ["base_default"],
983 main: "tools/fonts/fontchain_linter.py",
984 srcs: [
985 "tools/fonts/fontchain_linter.py",
986 ],
987 libs: [
988 "fontTools",
989 ],
990}
Nan Zhang172875b2018-02-27 11:24:03 -0800991
Nan Zhangaf251302018-08-30 10:59:51 -0700992filegroup {
993 name: "framework-annotation-nonnull-srcs",
994 srcs: [
995 "core/java/android/annotation/NonNull.java",
996 ],
997}
Insun Kang06b25ae2018-11-20 10:05:44 +0900998
999filegroup {
1000 name: "framework-media-annotation-srcs",
1001 srcs: [
1002 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001003 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001004 "core/java/android/annotation/DrawableRes.java",
1005 "core/java/android/annotation/IntDef.java",
1006 "core/java/android/annotation/LongDef.java",
1007 "core/java/android/annotation/NonNull.java",
1008 "core/java/android/annotation/Nullable.java",
1009 "core/java/android/annotation/RequiresPermission.java",
1010 "core/java/android/annotation/SdkConstant.java",
1011 "core/java/android/annotation/StringDef.java",
Sungsoo Limbb3b4012019-01-23 13:17:53 +09001012 "core/java/android/annotation/SystemApi.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001013 "core/java/android/annotation/TestApi.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001014 "core/java/com/android/internal/annotations/GuardedBy.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001015 ],
1016}
1017
Andrei Onea7a2985c2019-02-18 15:28:35 +00001018// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1019// annotations to private apis
1020aidl_mapping {
1021 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001022 srcs: [":framework-all-sources"],
Tobias Thiererbc050342019-05-23 16:20:12 +01001023 output: "framework-aidl-mappings.txt",
Dario Freni2ce84342019-04-26 13:06:22 +01001024}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001025
1026genrule {
1027 name: "framework-annotation-proc-index",
1028 srcs: [":framework-annotation-proc"],
1029 cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)",
1030 out: ["unsupportedappusage_index.csv"],
1031 dist: {
1032 targets: ["droidcore"],
1033 },
1034}
Chen Xu0e9d6752019-10-08 18:39:03 -07001035
Chen Xu0e9d6752019-10-08 18:39:03 -07001036filegroup {
1037 name: "framework-cellbroadcast-shared-srcs",
1038 srcs: [
Jordan Liubf68dc82019-11-20 13:55:18 -08001039 "core/java/android/os/HandlerExecutor.java",
1040 "core/java/android/util/LocalLog.java",
Chen Xu0e9d6752019-10-08 18:39:03 -07001041 "core/java/android/util/Slog.java",
Jordan Liubf68dc82019-11-20 13:55:18 -08001042 "core/java/com/android/internal/util/IState.java",
1043 "core/java/com/android/internal/util/Preconditions.java",
1044 "core/java/com/android/internal/util/State.java",
1045 "core/java/com/android/internal/util/StateMachine.java",
Chen Xu0e9d6752019-10-08 18:39:03 -07001046 ],
1047}
Chen Xuc00cf992019-09-05 22:07:42 -07001048
1049// Avoid including Parcelable classes as we don't want to have two copies of
1050// Parcelable cross the process.
1051filegroup {
1052 name: "framework-telephony-stack-shared-srcs",
1053 srcs: [
1054 "core/java/android/os/RegistrantList.java",
1055 "core/java/android/os/Registrant.java",
1056 "core/java/android/util/LocalLog.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001057 "core/java/android/util/TimeUtils.java",
1058 "core/java/com/android/internal/os/SomeArgs.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001059 "core/java/com/android/internal/util/AsyncChannel.java",
Meng Wang3043dac2020-01-14 14:04:10 -08001060 "core/java/com/android/internal/util/AsyncService.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001061 "core/java/com/android/internal/util/BitwiseInputStream.java",
Michele68370a82019-10-31 11:48:43 -07001062 "core/java/com/android/internal/util/FastXmlSerializer.java",
1063 "core/java/com/android/internal/util/HexDump.java",
Meng Wang8532de92019-12-02 10:42:20 -08001064 "core/java/com/android/internal/util/IState.java",
Michele68370a82019-10-31 11:48:43 -07001065 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001066 "core/java/com/android/internal/util/Preconditions.java",
1067 "core/java/com/android/internal/util/State.java",
1068 "core/java/com/android/internal/util/StateMachine.java",
Michele68370a82019-10-31 11:48:43 -07001069 "core/java/com/android/internal/util/UserIcons.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001070 ],
1071}
Jiyong Park7fb4b182019-12-20 14:35:43 +09001072
1073// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
1074metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
1075 "--ignore-classes-on-classpath " +
1076 "--hide-package com.android.server " +
1077 "--error UnhiddenSystemApi " +
1078 "--hide RequiresPermission " +
1079 "--hide CallbackInterface " +
1080 "--hide MissingPermission --hide BroadcastBehavior " +
1081 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
1082 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
Aurimas Liutikas1f76a5a2019-11-20 17:51:42 -08001083 "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " +
1084 "--api-lint-ignore-prefix android.icu. " +
1085 "--api-lint-ignore-prefix java. " +
1086 "--api-lint-ignore-prefix junit. " +
1087 "--api-lint-ignore-prefix org. "
Jiyong Park7fb4b182019-12-20 14:35:43 +09001088
1089build = [
1090 "StubLibraries.bp",
1091 "ApiDocs.bp",
1092]