blob: 891ee91f7ed9ec2e2507bcd9fa32855c5838b88a [file] [log] [blame]
Dan Albert2a8d9c22016-09-23 15:55:49 -07001// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Colin Crosscf3a0b52017-11-16 00:15:28 -080015// Build the master framework library.
16
17// READ ME: ########################################################
18//
19// When updating this list of aidl files, consider if that aidl is
20// part of the SDK API. If it is, also add it to the list in Android.mk
21// that is preprocessed and distributed with the SDK. This list should
22// not contain any aidl files for parcelables, but the one below should
23// if you intend for 3rd parties to be able to send those objects
24// across process boundaries.
25//
26// READ ME: ########################################################
27
Artur Satayev005d7352019-08-02 16:42:07 +010028filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +090029 name: "framework-core-sources",
Colin Crosscf3a0b52017-11-16 00:15:28 -080030 srcs: [
Colin Crosscf3a0b52017-11-16 00:15:28 -080031 "core/java/**/*.java",
Jiyong Park7e1339e2019-08-16 21:17:14 +090032 "core/java/**/*.aidl",
Artur Satayev005d7352019-08-02 16:42:07 +010033 ],
Jiyong Park7e1339e2019-08-16 21:17:14 +090034 path: "core/java",
Artur Satayev005d7352019-08-02 16:42:07 +010035}
Colin Crosscf3a0b52017-11-16 00:15:28 -080036
Jiyong Park00ea0b12019-10-31 20:38:47 +090037// These are subset of framework-core-sources that are needed by the
38// android.test.mock library. Ideally, the library should use public APIs only,
39// but unfortunately its API signature has some references to these private APIs.
40filegroup {
41 name: "framework-core-sources-for-test-mock",
42 srcs: [
43 "core/java/android/app/IApplicationThread.aidl",
44 "core/java/android/app/IServiceConnection.aidl",
45 "core/java/android/content/IContentProvider.java",
46 "core/java/android/content/pm/IPackageDataObserver.aidl",
47 "core/java/android/content/pm/InstantAppInfo.java",
48 "core/java/android/content/pm/KeySet.java",
49 "core/java/android/content/pm/PackageManager.java",
50 "core/java/android/content/pm/VerifierDeviceIdentity.java",
51 "core/java/android/content/res/Resources.java",
52 "core/java/android/os/storage/VolumeInfo.java",
53 "core/java/android/view/DisplayAdjustments.java",
54 ],
55 path: "core/java",
56}
57
Jiyong Park7e1339e2019-08-16 21:17:14 +090058filegroup {
59 name: "framework-drm-sources",
60 srcs: [
61 "drm/java/**/*.java",
62 ],
63 path: "drm/java",
64}
65
66filegroup {
67 name: "framework-graphics-sources",
68 srcs: [
69 "graphics/java/**/*.java",
70 "graphics/java/**/*.aidl",
71 ],
72 path: "graphics/java",
73}
74
75filegroup {
76 name: "framework-keystore-sources",
77 srcs: [
78 "keystore/java/**/*.java",
79 "keystore/java/**/*.aidl",
80 ],
81 path: "keystore/java",
82}
83
84filegroup {
85 name: "framework-location-sources",
86 srcs: [
87 "location/java/**/*.java",
88 "location/java/**/*.aidl",
89 ],
90 path: "location/java",
91}
92
93filegroup {
94 name: "framework-lowpan-sources",
95 srcs: [
96 "lowpan/java/**/*.java",
97 "lowpan/java/**/*.aidl",
98 ],
99 path: "lowpan/java",
100}
101
102filegroup {
103 name: "framework-media-sources",
104 srcs: [
105 "media/java/**/*.java",
106 "media/java/**/*.aidl",
107 ],
108 path: "media/java",
109}
110
111filegroup {
112 name: "framework-mca-effect-sources",
113 srcs: [
114 "media/mca/effect/java/**/*.java",
115 ],
116 path: "media/mca/effect/java",
117}
118
119filegroup {
120 name: "framework-mca-filterfw-sources",
121 srcs: [
122 "media/mca/filterfw/java/**/*.java",
123 ],
124 path: "media/mca/filterfw/java",
125}
126
127filegroup {
128 name: "framework-mca-filterpacks-sources",
129 srcs: [
130 "media/mca/filterpacks/java/**/*.java",
131 ],
132 path: "media/mca/filterpacks/java",
133}
134
135filegroup {
Tobias Thierer878c77b2019-08-18 15:19:45 +0100136 name: "framework-mime-sources",
137 srcs: [
138 "mime/java/**/*.java",
139 ],
140 path: "mime/java",
141}
142
143filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900144 name: "framework-opengl-sources",
145 srcs: [
146 "opengl/java/**/*.java",
147 ],
148 path: "opengl/java",
149}
150
151filegroup {
152 name: "framework-rs-sources",
153 srcs: [
154 "rs/java/**/*.java",
155 ],
156 path: "rs/java",
157}
158
159filegroup {
160 name: "framework-sax-sources",
161 srcs: [
162 "sax/java/**/*.java",
163 ],
164 path: "sax/java",
165}
166
167filegroup {
168 name: "framework-telecomm-sources",
169 srcs: [
170 "telecomm/java/**/*.java",
171 "telecomm/java/**/*.aidl",
172 ],
173 path: "telecomm/java",
174}
175
176filegroup {
177 name: "framework-telephony-sources",
178 srcs: [
179 "telephony/java/**/*.java",
180 "telephony/java/**/*.aidl",
181 ],
182 path: "telephony/java",
183}
184
185filegroup {
Amit Mahajanac0fd652019-09-23 17:59:57 -0700186 name: "framework-telephony-common-sources",
187 srcs: [
188 "telephony/common/**/*.java",
189 ],
190 path: "telephony/common",
191}
192
193filegroup {
Amit Mahajan153d31b2019-10-07 17:41:26 -0700194 name: "framework-mms-sources",
195 srcs: [
196 "mms/java/**/*.java",
197 "mms/java/**/*.aidl",
198 ],
199 path: "mms/java",
200}
201
202filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900203 name: "framework-wifi-sources",
204 srcs: [
205 "wifi/java/**/*.java",
206 "wifi/java/**/*.aidl",
207 ],
208 path: "wifi/java",
209}
210
Jiyong Park5366ea22019-08-19 15:24:49 +0900211filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900212 name: "framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900213 srcs: [
214 // Java/AIDL sources under frameworks/base
215 ":framework-core-sources",
216 ":framework-drm-sources",
217 ":framework-graphics-sources",
218 ":framework-keystore-sources",
219 ":framework-location-sources",
220 ":framework-lowpan-sources",
221 ":framework-media-sources",
222 ":framework-mca-effect-sources",
223 ":framework-mca-filterfw-sources",
224 ":framework-mca-filterpacks-sources",
Tobias Thierer878c77b2019-08-18 15:19:45 +0100225 ":framework-mime-sources",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700226 ":framework-mms-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900227 ":framework-opengl-sources",
228 ":framework-rs-sources",
229 ":framework-sax-sources",
230 ":framework-telecomm-sources",
Amit Mahajanac0fd652019-09-23 17:59:57 -0700231 ":framework-telephony-common-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900232 ":framework-telephony-sources",
233 ":framework-wifi-sources",
234 ":PacProcessor-aidl-sources",
235 ":ProxyHandler-aidl-sources",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900236
atrostff948d82019-10-10 19:27:31 +0100237 // AIDL from frameworks/base/native/
238 ":platform-compat-native-aidl",
239
Jiyong Park5366ea22019-08-19 15:24:49 +0900240 // AIDL sources from external directories
241 ":dumpstate_aidl",
242 ":framework_native_aidl",
243 ":gatekeeper_aidl",
244 ":gsiservice_aidl",
245 ":incidentcompanion_aidl",
246 ":installd_aidl",
247 ":keystore_aidl",
248 ":libaudioclient_aidl",
249 ":libbinder_aidl",
250 ":libbluetooth-binder-aidl",
251 ":libcamera_client_aidl",
252 ":libcamera_client_framework_aidl",
253 ":libupdate_engine_aidl",
254 ":storaged_aidl",
255 ":vold_aidl",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900256
Jiyong Park5366ea22019-08-19 15:24:49 +0900257 // For the generated R.java and Manifest.java
258 ":framework-res{.aapt.srcjar}",
259
260 // etc.
261 ":framework-javastream-protos",
262 ":framework-statslog-gen",
263 ],
264}
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900265
Jiyong Parkae9972b2019-09-15 20:19:02 +0900266filegroup {
267 name: "framework-all-sources",
268 srcs: [
269 ":framework-non-updatable-sources",
270 ":updatable-media-srcs",
271 ],
272}
273
Artur Satayev005d7352019-08-02 16:42:07 +0100274java_defaults {
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900275 name: "framework-aidl-export-defaults",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800276 aidl: {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900277 export_include_dirs: [
278 "core/java",
279 "drm/java",
280 "graphics/java",
281 "keystore/java",
282 "location/java",
283 "lowpan/java",
284 "media/java",
285 "media/apex/java",
286 "media/mca/effect/java",
287 "media/mca/filterfw/java",
288 "media/mca/filterpacks/java",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700289 "mms/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900290 "opengl/java",
291 "rs/java",
292 "sax/java",
293 "telecomm/java",
294 "telephony/java",
295 "wifi/java",
296 ],
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900297 },
298}
Colin Crosscf3a0b52017-11-16 00:15:28 -0800299
Jiyong Park5366ea22019-08-19 15:24:49 +0900300// Collection of classes that are generated from non-Java files that are not listed in
301// framework_srcs. These have no or very limited dependency to the framework.
302java_library {
303 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800304 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100305 "apex_aidl_interface-java",
Kalesh Singh759af322019-06-19 12:17:43 -0700306 "suspend_control_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800307 "framework-protos",
Peiyong Lin9ca1dd82019-01-12 17:44:29 -0800308 "game-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800309 "android.hidl.base-V1.0-java",
Henry Fang5215ac92019-02-01 19:24:55 +0000310 "android.hardware.cas-V1.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800311 "android.hardware.cas-V1.0-java",
312 "android.hardware.contexthub-V1.0-java",
313 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800314 "android.hardware.radio-V1.0-java",
315 "android.hardware.radio-V1.1-java",
316 "android.hardware.radio-V1.2-java",
317 "android.hardware.radio-V1.3-java",
318 "android.hardware.radio-V1.4-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800319 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800320 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700321 "android.hardware.thermal-V1.1-java",
322 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800323 "android.hardware.tv.input-V1.0-java-constants",
324 "android.hardware.usb-V1.0-java-constants",
325 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800326 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800327 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000328 "android.hardware.vibrator-V1.0-java",
329 "android.hardware.vibrator-V1.1-java",
330 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900331 "android.hardware.vibrator-V1.3-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800332 "android.hardware.wifi-V1.0-java-constants",
arangelov1ab61492018-11-22 13:56:50 +0000333 "devicepolicyprotosnano",
Inseob Kim617a7222019-07-30 18:23:26 +0900334
335 "com.android.sysprop.apex",
336 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800337 ],
Jiyong Park5366ea22019-08-19 15:24:49 +0900338 sdk_version: "core_platform",
339 installable: false,
340}
341
342java_defaults {
343 name: "framework-defaults",
344 defaults: ["framework-aidl-export-defaults"],
345 installable: true,
346
Jiyong Park5366ea22019-08-19 15:24:49 +0900347 aidl: {
348 generate_get_transaction_name: true,
349 },
350
Jiyong Parkae9972b2019-09-15 20:19:02 +0900351 srcs: ["core/java/**/*.logtags"],
352
Jiyong Park5366ea22019-08-19 15:24:49 +0900353 exclude_srcs: [
354 // See comment on framework-atb-backward-compatibility module below
355 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
356 ],
357
358 sdk_version: "core_platform",
359 libs: [
360 "ext",
361 "updatable_media_stubs",
362 ],
363
364 jarjar_rules: ":framework-jarjar-rules",
365
Tobias Thierer878c77b2019-08-18 15:19:45 +0100366 static_libs: [
367 "framework-internal-utils",
368 "mimemap",
369 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800370
Wei Jia0a8a8f02017-12-05 17:05:29 -0800371 required: [
Anton Hansson11905c62018-11-27 12:10:30 +0000372 // TODO: remove gps_debug when the build system propagates "required" properly.
373 "gps_debug.conf",
Logan Chien71ddfea2018-02-27 16:43:50 +0800374 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800375
Colin Crosscf3a0b52017-11-16 00:15:28 -0800376 dxflags: [
377 "--core-library",
378 "--multi-dex",
379 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100380
Ashley Roseb47ddd42019-01-28 19:54:09 -0500381 plugins: ["view-inspector-annotation-processor"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100382}
383
Colin Crossbc2dc312018-10-26 22:34:06 -0700384filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800385 name: "framework-jarjar-rules",
386 srcs: ["jarjar_rules_hidl.txt"],
387}
388
389filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700390 name: "libincident_aidl",
391 srcs: [
392 "core/java/android/os/IIncidentManager.aidl",
393 "core/java/android/os/IIncidentReportStatusListener.aidl",
394 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700395 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700396}
397
398filegroup {
399 name: "statsd_aidl",
400 srcs: [
401 "core/java/android/os/IStatsCompanionService.aidl",
402 "core/java/android/os/IStatsManager.aidl",
Tej Singha0c89dd2019-01-25 16:39:18 -0800403 "core/java/android/os/IStatsPullerCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700404 ],
Dan Willemsena38ff9f2019-06-11 10:56:01 -0700405 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700406}
407
Michael Wrightc390fbe2018-12-12 19:45:09 +0000408filegroup {
409 name: "libvibrator_aidl",
410 srcs: [
411 "core/java/android/os/IExternalVibrationController.aidl",
412 "core/java/android/os/IExternalVibratorService.aidl",
413 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700414 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000415}
416
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100417java_library {
Jiyong Parkc893b462019-10-28 15:33:08 +0900418 name: "framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100419 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900420 srcs: [":framework-non-updatable-sources"],
atrost1a945502019-11-04 17:03:54 +0000421 libs: ["app-compat-annotations"],
Jiyong Parkc893b462019-10-28 15:33:08 +0900422 installable: true,
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100423 javac_shard_size: 150,
atrostb9c34502019-08-05 12:22:18 +0100424 required: [
425 "framework-platform-compat-config",
426 "libcore-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100427 "services-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100428 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900429 // For backwards compatibility.
430 stem: "framework",
431}
432
433// This "framework" module is NOT installed to the device. It's
434// "framework-minus-apex" that gets installed to the device. Note that
435// the filename is still framework.jar (via the stem property) for
436// compatibility reason. The purpose of this module is to provide
437// framework APIs (both public and private) for bundled apps.
438// "framework-minus-apex" can't be used for the purpose because 1)
439// many apps have already hardcoded the name "framework" and
440// 2) it lacks API symbols from updatable modules - as it's clear from
441// its suffix "-minus-apex".
442java_library {
443 name: "framework",
444 defaults: ["framework-aidl-export-defaults"],
445 installable: false, // this lib is a build-only library
446 static_libs: [
447 "framework-minus-apex",
448 // TODO(jiyong): add stubs for APEXes here
449 ],
450 sdk_version: "core_platform",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100451}
452
453java_library {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900454 name: "framework-all",
455 defaults: ["framework-defaults"],
456 srcs: [":framework-all-sources"],
457 installable: false,
atrost1a945502019-11-04 17:03:54 +0000458 libs: ["app-compat-annotations"],
Jiyong Parkf0fdd682019-11-14 03:20:36 +0000459}
460
461java_library {
462 name: "framework-annotation-proc",
463 defaults: ["framework-defaults"],
464 srcs: [":framework-all-sources"],
465 libs: ["app-compat-annotations"],
466 installable: false,
atrostb9c34502019-08-05 12:22:18 +0100467 plugins: [
468 "unsupportedappusage-annotation-processor",
469 "compat-changeid-annotation-processor",
470 ],
471}
472
473platform_compat_config {
474 name: "framework-platform-compat-config",
Jiyong Parkf0fdd682019-11-14 03:20:36 +0000475 src: ":framework-annotation-proc",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100476}
477
Paul Duffin521975802019-06-05 10:35:08 +0100478// A library including just UnsupportedAppUsage.java classes.
479//
480// Provided for target so that libraries can use it without depending on
481// the whole of framework or the core platform API.
482//
483// Built for host so that the annotation processor can also use this annotation.
484java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100485 name: "unsupportedappusage-annotation",
Paul Duffin521975802019-06-05 10:35:08 +0100486 host_supported: true,
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100487 srcs: [
488 "core/java/android/annotation/IntDef.java",
489 "core/java/android/annotation/UnsupportedAppUsage.java",
Paul Duffinc1308012019-10-10 16:33:42 +0100490 ],
491 static_libs: [
492 "art.module.api.annotations",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100493 ],
Paul Duffin521975802019-06-05 10:35:08 +0100494
495 sdk_version: "core_current",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800496}
497
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000498// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000499// android.test.base library has been removed and which provides support for
500// maintaining backwards compatibility for APKs that target pre-P and depend on
501// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
502// specified on the build command line.
503java_library {
504 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000505 installable: true,
atrost1a945502019-11-04 17:03:54 +0000506 libs: ["app-compat-annotations"],
Paul Duffina3b69212018-01-25 09:58:32 +0000507 srcs: [
508 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
509 ],
510}
511
Colin Crosscf3a0b52017-11-16 00:15:28 -0800512genrule {
513 name: "framework-statslog-gen",
514 tools: ["stats-log-api-gen"],
515 cmd: "$(location stats-log-api-gen) --java $(out)",
David Chen0a368b22017-12-06 16:28:16 -0800516 out: ["android/util/StatsLogInternal.java"],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800517}
518
519gensrcs {
520 name: "framework-javastream-protos",
521 depfile: true,
522
Tobias Thiererbc050342019-05-23 16:20:12 +0100523 tool_files: ["tools/genprotos.sh"],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800524 tools: [
525 "aprotoc",
526 "protoc-gen-javastream",
527 "soong_zip",
528 ],
529
Alex Light159799d2018-08-08 07:05:19 -0700530 // TODO This should not be needed. If you set a custom OUT_DIR or OUT_DIR_COMMON_BASE you can
531 // end up with a command that is extremely long, potentially going passed MAX_ARG_STRLEN due to
532 // the way sbox rewrites the command. See b/70221552.
533 cmd: "$(location tools/genprotos.sh) " +
Tobias Thiererbc050342019-05-23 16:20:12 +0100534 " $(location aprotoc) " +
535 " $(location protoc-gen-javastream) " +
536 " $(location soong_zip) " +
537 " $(genDir) " +
538 " $(depfile) " +
539 " $(in) " +
540 " $(out)",
Yi Jin437aa6e2018-01-10 11:34:26 -0800541 srcs: [
542 "core/proto/**/*.proto",
543 "libs/incident/**/*.proto",
544 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800545 output_extension: "srcjar",
546}
547
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900548filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900549 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900550 srcs: [
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900551 "core/java/android/annotation/NonNull.java",
552 "core/java/android/annotation/Nullable.java",
553 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900554 "core/java/android/annotation/IntRange.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900555 "core/java/android/annotation/UnsupportedAppUsage.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900556 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900557 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Tobias Thiererbc050342019-05-23 16:20:12 +0100558 ],
Chalard Jean95213512019-01-30 21:04:58 +0900559}
560
561filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900562 name: "framework-networkstack-shared-srcs",
563 srcs: [
564 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900565 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900566 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900567 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900568 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900569 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900570 "core/java/com/android/internal/util/IState.java",
571 "core/java/com/android/internal/util/MessageUtils.java",
572 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900573 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900574 "core/java/com/android/internal/util/State.java",
575 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900576 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900577 "core/java/com/android/internal/util/WakeupMessage.java",
578 "core/java/android/net/shared/*.java",
Tobias Thiererbc050342019-05-23 16:20:12 +0100579 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900580}
581
markchiena6ba54d2019-09-03 15:58:06 +0800582filegroup {
583 name: "framework-tethering-shared-srcs",
584 srcs: [
585 "core/java/android/util/LocalLog.java",
586 ],
587}
Colin Crossd8e02252017-10-02 17:14:22 -0700588// Build ext.jar
589// ============================================================
590java_library {
591 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700592 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100593 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700594 static_libs: [
595 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700596 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000597 "rappor",
Tony Mak64c4cb22018-09-25 13:38:28 +0100598 "libtextclassifier-java",
599 ],
600 required: [
601 "libtextclassifier",
Colin Crossd8e02252017-10-02 17:14:22 -0700602 ],
603 dxflags: ["--core-library"],
604}
605
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700606// ==== java proto host library ==============================
607java_library_host {
608 name: "platformprotos",
609 srcs: [
610 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700611 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700612 "core/proto/**/*.proto",
613 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700614 ],
615 proto: {
616 include_dirs: ["external/protobuf/src"],
617 type: "full",
618 },
619 errorprone: {
Tobias Thiererbc050342019-05-23 16:20:12 +0100620 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700621 },
622}
623
Colin Cross43214162018-08-20 13:57:24 -0700624// ==== java proto device library (for test only) ==============================
625java_library {
626 name: "platformprotosnano",
627 proto: {
628 type: "nano",
629 output_params: ["store_unknown_fields=true"],
630 include_dirs: ["external/protobuf/src"],
631 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000632 exclude_srcs: [
633 "core/proto/android/privacy.proto",
634 "core/proto/android/section.proto",
635 ],
Colin Cross43214162018-08-20 13:57:24 -0700636 sdk_version: "current",
637 srcs: [
638 "core/proto/**/*.proto",
639 "libs/incident/proto/android/os/**/*.proto",
640 ],
641}
642
643// ==== java proto device library (for test only) ==============================
644java_library {
645 name: "platformprotoslite",
646 proto: {
647 type: "lite",
648 include_dirs: ["external/protobuf/src"],
649 },
650
651 srcs: [
652 "core/proto/**/*.proto",
653 "libs/incident/proto/android/os/**/*.proto",
654 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000655 exclude_srcs: [
656 "core/proto/android/privacy.proto",
657 "core/proto/android/section.proto",
658 ],
Colin Cross43214162018-08-20 13:57:24 -0700659 // Protos have lots of MissingOverride and similar.
660 errorprone: {
661 javacflags: ["-XepDisableAllChecks"],
662 },
663}
664
Colin Crossaa0d4352017-05-02 14:14:56 -0700665// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000666cc_defaults {
667 name: "libplatformprotos-defaults",
668
Colin Crossaa0d4352017-05-02 14:14:56 -0700669 proto: {
670 export_proto_headers: true,
671 include_dirs: ["external/protobuf/src"],
672 },
673
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700674 cflags: [
675 "-Wall",
676 "-Werror",
677 "-Wno-unused-parameter",
678 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800679
680 srcs: [
681 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800682 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000683}
684
685cc_library {
686 name: "libplatformprotos",
687 defaults: ["libplatformprotos-defaults"],
688 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800689
Colin Crossaa0d4352017-05-02 14:14:56 -0700690 target: {
691 host: {
692 proto: {
693 type: "full",
694 },
695 },
696 android: {
697 proto: {
698 type: "lite",
699 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000700 shared_libs: [
701 "libprotobuf-cpp-lite",
702 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700703 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700704 enabled: false,
705 },
706 },
707 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700708}
709
Joe Onorato9bd5db72019-04-03 18:19:43 -0700710// This library is meant for vendor code that needs to output protobuf. It links
711// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
712// binary compatibility.
713cc_library {
714 name: "libplatformprotos-static",
715 defaults: ["libplatformprotos-defaults"],
716 host_supported: false,
717
718 // This is okay because this library is only built as a static library. The C++
719 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
720 // but is not authorized to be used outside of debugging.
721 vendor_available: true,
722
723 target: {
724 android: {
725 proto: {
726 type: "lite",
727 },
728 static_libs: [
729 "libprotobuf-cpp-lite",
730 ],
731 shared: {
732 enabled: false,
733 },
734 },
735 },
736}
737
738
Joe Onorato99598ee2019-02-11 15:55:13 +0000739// This is the full proto version of libplatformprotos. It may only
740// be used by test code that is not shipped on the device.
741cc_library {
742 name: "libplatformprotos-test",
743 defaults: ["libplatformprotos-defaults"],
744 host_supported: false,
745
746 target: {
747 android: {
748 proto: {
749 type: "full",
750 },
751 shared: {
752 enabled: false,
753 },
754 },
755 },
756}
757
758
Yi Jin04625ad2017-10-17 18:29:33 -0700759gensrcs {
760 name: "gen-platform-proto-constants",
761 depfile: true,
762
763 tools: [
764 "aprotoc",
765 "protoc-gen-cppstream",
766 ],
767
768 srcs: [
Kweku Adamseadd1232018-02-05 16:45:13 -0800769 "core/proto/android/os/backtrace.proto",
Kweku Adams59e6fd72017-12-27 15:48:14 -0800770 "core/proto/android/os/batterytype.proto",
Yi Jin0eb22342017-11-06 17:17:27 -0800771 "core/proto/android/os/cpufreq.proto",
Yi Jine2f7f792017-11-01 17:08:27 -0700772 "core/proto/android/os/cpuinfo.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700773 "core/proto/android/os/data.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700774 "core/proto/android/os/kernelwake.proto",
775 "core/proto/android/os/pagetypeinfo.proto",
776 "core/proto/android/os/procrank.proto",
Kweku Adamsf5cc5752017-12-20 17:59:17 -0800777 "core/proto/android/os/ps.proto",
Yi Jin0dfa7522017-11-06 17:43:47 -0800778 "core/proto/android/os/system_properties.proto",
Yi Jin3c034c92017-12-22 17:36:47 -0800779 "core/proto/android/util/event_log_tags.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700780 "core/proto/android/util/log.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700781 ],
782
783 // Append protoc-gen-cppstream tool's PATH otherwise aprotoc can't find the plugin tool
Yi Jin3c034c92017-12-22 17:36:47 -0800784 cmd: "mkdir -p $(genDir) " +
785 "&& $(location aprotoc) " +
786 " --plugin=$(location protoc-gen-cppstream) " +
787 " --dependency_out=$(depfile) " +
788 " --cppstream_out=$(genDir) " +
789 " -Iexternal/protobuf/src " +
790 " -I . " +
791 " $(in)",
Yi Jin04625ad2017-10-17 18:29:33 -0700792
Logan Chien71ddfea2018-02-27 16:43:50 +0800793 output_extension: "proto.h",
Yi Jin04625ad2017-10-17 18:29:33 -0700794}
795
Joe Onorato99598ee2019-02-11 15:55:13 +0000796
Dan Albert2a8d9c22016-09-23 15:55:49 -0700797subdirs = [
Yi Jin0a3406f2017-06-22 19:23:11 -0700798 "cmds/*",
Jeff Sharkey0c686e72017-10-23 16:04:31 -0600799 "core/*",
Colin Cross4f8d9e62016-12-01 15:55:00 -0800800 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -0700801 "media/*",
Colin Cross747e7c12017-10-24 16:21:22 -0700802 "proto",
Fabien Sanglard19160202017-01-12 14:24:31 -0500803 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700804 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -0700805 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700806]
Svetoslav Ganov74c99832016-12-05 20:07:20 -0800807
808optional_subdirs = [
809 "core/tests/utiltests/jni",
810]
Steven Morelandeddafe92017-10-02 16:58:41 -0700811
Colin Crossa2b78a72018-03-29 13:31:04 -0700812// TODO(b/77285514): remove this once the last few hidl interfaces have been
813// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -0700814java_library {
815 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +0100816 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -0700817
818 srcs: [
819 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800820 "core/java/android/annotation/IntDef.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700821 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -0800822 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800823 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -0800824 "core/java/android/annotation/TestApi.java",
Andrei Onea24ec3212019-03-15 17:35:05 +0000825 "core/java/android/annotation/UnsupportedAppUsage.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700826 "core/java/android/os/HwBinder.java",
827 "core/java/android/os/HwBlob.java",
828 "core/java/android/os/HwParcel.java",
829 "core/java/android/os/IHwBinder.java",
830 "core/java/android/os/IHwInterface.java",
831 "core/java/android/os/DeadObjectException.java",
832 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -0700833 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700834 "core/java/android/os/RemoteException.java",
835 "core/java/android/util/AndroidException.java",
836 ],
837
838 dxflags: ["--core-library"],
839 installable: false,
840}
Nan Zhang2db709d2017-11-08 20:48:46 -0800841
842python_defaults {
843 name: "base_default",
844 version: {
845 py2: {
846 enabled: true,
847 embedded_launcher: true,
848 },
849 py3: {
850 enabled: false,
851 embedded_launcher: false,
852 },
853 },
854}
855
856python_binary_host {
857 name: "fontchain_linter",
858 defaults: ["base_default"],
859 main: "tools/fonts/fontchain_linter.py",
860 srcs: [
861 "tools/fonts/fontchain_linter.py",
862 ],
863 libs: [
864 "fontTools",
865 ],
866}
Nan Zhang172875b2018-02-27 11:24:03 -0800867
Jiyong Park5366ea22019-08-19 15:24:49 +0900868// TODO: Don't rely on this list by switching package.html into package-info.java
Nan Zhang172875b2018-02-27 11:24:03 -0800869frameworks_base_subdirs = [
870 "core/java",
871 "graphics/java",
872 "location/java",
873 "media/java",
874 "media/mca/effect/java",
875 "media/mca/filterfw/java",
876 "media/mca/filterpacks/java",
877 "drm/java",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700878 "mms/java",
Nan Zhang172875b2018-02-27 11:24:03 -0800879 "opengl/java",
880 "sax/java",
881 "telecomm/java",
Amit Mahajanac0fd652019-09-23 17:59:57 -0700882 "telephony/common",
Nan Zhang172875b2018-02-27 11:24:03 -0800883 "telephony/java",
884 "wifi/java",
885 "lowpan/java",
886 "keystore/java",
887 "rs/java",
888]
889
Paul Duffin0440e1f2019-02-11 16:13:25 +0000890// Make the api/current.txt file available for use by modules in other
891// directories.
892filegroup {
893 name: "frameworks-base-api-current.txt",
894 srcs: [
895 "api/current.txt",
896 ],
897}
898
Paul Duffincd35de32019-05-30 15:12:47 +0100899// Make the api/system-current.txt file available for use by modules in other
900// directories.
901filegroup {
902 name: "frameworks-base-api-system-current.txt",
903 srcs: [
904 "api/system-current.txt",
905 ],
906}
907
908// Make the api/system-removed.txt file available for use by modules in other
909// directories.
910filegroup {
911 name: "frameworks-base-api-system-removed.txt",
912 srcs: [
913 "api/system-removed.txt",
914 ],
915}
916
Nan Zhang7764a4b2018-08-22 11:27:31 -0700917framework_docs_only_args = " -android -manifest $(location core/res/AndroidManifest.xml) " +
Tobias Thiererbc050342019-05-23 16:20:12 +0100918 "-werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 " +
919 "-overview $(location core/java/overview.html) " +
920 // Federate Support Library references against local API file.
921 "-federate SupportLib https://developer.android.com " +
922 "-federationapi SupportLib $(location :current-support-api) "
Nan Zhang172875b2018-02-27 11:24:03 -0800923
Nan Zhang7764a4b2018-08-22 11:27:31 -0700924framework_docs_only_libs = [
Nan Zhang7764a4b2018-08-22 11:27:31 -0700925 "voip-common",
926 "android.test.mock",
927 "android-support-annotations",
928 "android-support-compat",
929 "android-support-core-ui",
930 "android-support-core-utils",
931 "android-support-customtabs",
932 "android-support-design",
933 "android-support-dynamic-animation",
934 "android-support-exifinterface",
935 "android-support-fragment",
936 "android-support-media-compat",
937 "android-support-percent",
938 "android-support-recommendation",
939 "android-support-transition",
940 "android-support-tv-provider",
941 "android-support-v7-cardview",
942 "android-support-v7-gridlayout",
943 "android-support-v7-mediarouter",
944 "android-support-v7-palette",
945 "android-support-v7-preference",
946 "android-support-v13",
947 "android-support-v14-preference",
948 "android-support-v17-leanback",
949 "android-support-v17-preference-leanback",
950 "android-support-wear",
951 "android-support-vectordrawable",
952 "android-support-animatedvectordrawable",
953 "android-support-v7-appcompat",
954 "android-support-v7-recyclerview",
955 "android-support-emoji",
956 "android-support-emoji-appcompat",
957 "android-support-emoji-bundled",
958 "android-support-v8-renderscript",
959 "android-support-multidex",
960 "android-support-multidex-instrumentation",
961]
962
963metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
Paul Duffin179d9702019-10-18 13:57:19 +0100964 "--ignore-classes-on-classpath " +
Paul Duffin7fb76962019-11-06 14:18:38 +0000965 "--hide-package com.android.server " +
Adrian Roosc6e2fc82018-12-12 15:08:44 +0100966 "--error UnhiddenSystemApi " +
Nan Zhang7764a4b2018-08-22 11:27:31 -0700967 "--hide RequiresPermission " +
Adrian Roosa90de2e2019-11-01 18:35:53 +0100968 "--hide CallbackInterface " +
Nan Zhang7764a4b2018-08-22 11:27:31 -0700969 "--hide MissingPermission --hide BroadcastBehavior " +
970 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
Tobias Thierer8f559412019-05-22 20:17:49 +0100971 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo "
972
Jiyong Parkae9972b2019-09-15 20:19:02 +0900973packages_to_document = [
974 "android",
Jiyong Parkb1d27012019-09-17 14:51:28 +0900975 "dalvik",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900976 "java",
977 "javax",
Jiyong Parkb1d27012019-09-17 14:51:28 +0900978 "junit",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900979 "org.apache.http",
980 "org.json",
981 "org.w3c.dom",
982 "org.xml.sax",
983 "org.xmlpull",
984]
985
Nan Zhang7764a4b2018-08-22 11:27:31 -0700986stubs_defaults {
987 name: "framework-doc-stubs-default",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000988 srcs: [
Jiyong Parkae9972b2019-09-15 20:19:02 +0900989 ":framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900990 "core/java/**/*.logtags",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000991 "test-base/src/**/*.java",
992 ":opt-telephony-srcs",
993 ":opt-net-voip-srcs",
Paul Duffine86cc6f2019-10-04 10:10:58 +0100994 ":core-current-stubs-source",
Neil Fuller3b1b7032019-02-26 12:00:38 +0000995 ":core_public_api_files",
Jiyong Parkdf6c25d2019-08-20 20:48:47 +0900996 ":updatable-media-srcs",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000997 "test-mock/src/**/*.java",
998 "test-runner/src/**/*.java",
999 ],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001000 libs: framework_docs_only_libs,
Nan Zhang3e15ba82018-07-26 18:41:12 +00001001 local_sourcepaths: frameworks_base_subdirs,
Nan Zhang7764a4b2018-08-22 11:27:31 -07001002 create_doc_stubs: true,
1003 annotations_enabled: true,
1004 api_levels_annotations_enabled: true,
1005 api_levels_annotations_dirs: [
1006 "sdk-dir",
1007 "api-versions-jars-dir",
1008 ],
1009 previous_api: ":last-released-public-api",
1010 merge_annotations_dirs: [
1011 "metalava-manual",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001012 ],
1013}
1014
1015doc_defaults {
1016 name: "framework-docs-default",
Nan Zhangb03396e2018-10-11 18:06:10 -07001017 libs: framework_docs_only_libs +
Tobias Thiererbc050342019-05-23 16:20:12 +01001018 ["stub-annotations"],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001019 html_dirs: [
1020 "docs/html",
1021 ],
1022 knowntags: [
1023 "docs/knowntags.txt",
1024 ":known-oj-tags",
1025 ],
1026 custom_template: "droiddoc-templates-sdk",
1027 resourcesdir: "docs/html/reference/images/",
1028 resourcesoutdir: "reference/android/images/",
1029 hdf: [
1030 "dac true",
1031 "sdk.codename O",
1032 "sdk.preview.version 1",
1033 "sdk.version 7.0",
1034 "sdk.rel.id 1",
1035 "sdk.preview 0",
1036 ],
1037 arg_files: [
1038 "core/res/AndroidManifest.xml",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001039 "core/java/overview.html",
1040 ":current-support-api",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001041 ],
1042 create_stubs: false,
1043}
1044
Tiem Song730c19b2019-08-26 11:27:27 -07001045doc_defaults {
1046 name: "framework-dokka-docs-default",
1047 create_stubs: false,
1048}
1049
Nan Zhang894c9ec2018-09-10 18:58:39 -07001050stubs_defaults {
Nan Zhangd25ad462018-08-22 10:48:15 -07001051 name: "metalava-api-stubs-default",
1052 srcs: [
Jiyong Parkae9972b2019-09-15 20:19:02 +09001053 ":framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +09001054 "core/java/**/*.logtags",
Nan Zhangd25ad462018-08-22 10:48:15 -07001055 ":opt-telephony-srcs",
1056 ":opt-net-voip-srcs",
Paul Duffine86cc6f2019-10-04 10:10:58 +01001057 ":core-current-stubs-source",
Neil Fuller3b1b7032019-02-26 12:00:38 +00001058 ":core_public_api_files",
Jiyong Parkdf6c25d2019-08-20 20:48:47 +09001059 ":updatable-media-srcs",
Nan Zhangd25ad462018-08-22 10:48:15 -07001060 ],
Jiyong Park5366ea22019-08-19 15:24:49 +09001061 libs: ["framework-internal-utils"],
Nan Zhangd25ad462018-08-22 10:48:15 -07001062 local_sourcepaths: frameworks_base_subdirs,
1063 installable: false,
Nan Zhang894c9ec2018-09-10 18:58:39 -07001064 annotations_enabled: true,
1065 previous_api: ":last-released-public-api",
1066 merge_annotations_dirs: [
Nan Zhangd25ad462018-08-22 10:48:15 -07001067 "metalava-manual",
Nan Zhangd25ad462018-08-22 10:48:15 -07001068 ],
Nan Zhang91cc7662018-09-18 10:46:10 -07001069 api_levels_annotations_enabled: true,
1070 api_levels_annotations_dirs: [
1071 "sdk-dir",
1072 "api-versions-jars-dir",
1073 ],
Jiyong Park5366ea22019-08-19 15:24:49 +09001074 sdk_version: "core_platform",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001075 filter_packages: packages_to_document,
Nan Zhangd25ad462018-08-22 10:48:15 -07001076}
1077
Nan Zhang7764a4b2018-08-22 11:27:31 -07001078droidstubs {
1079 name: "framework-doc-stubs",
1080 defaults: ["framework-doc-stubs-default"],
1081 arg_files: [
1082 "core/res/AndroidManifest.xml",
1083 ],
1084 args: metalava_framework_docs_args,
Jerome Gaillardb59a1cd2019-10-10 19:09:21 +01001085 write_sdk_values: true,
Nan Zhang7764a4b2018-08-22 11:27:31 -07001086}
1087
1088droidstubs {
1089 name: "framework-doc-system-stubs",
1090 defaults: ["framework-doc-stubs-default"],
1091 arg_files: [
1092 "core/res/AndroidManifest.xml",
1093 ],
1094 args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi ",
Jerome Gaillardb59a1cd2019-10-10 19:09:21 +01001095 write_sdk_values: true,
Nan Zhang7764a4b2018-08-22 11:27:31 -07001096}
1097
Nan Zhang3e15ba82018-07-26 18:41:12 +00001098droiddoc {
1099 name: "doc-comment-check-docs",
1100 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001101 srcs: [
1102 ":framework-doc-stubs",
1103 ],
1104 args: framework_docs_only_args + " -referenceonly -parsecomments",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001105 installable: false,
1106}
1107
1108droiddoc {
1109 name: "offline-sdk-docs",
1110 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001111 srcs: [
1112 ":framework-doc-stubs",
1113 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001114 hdf: [
1115 "android.whichdoc offline",
1116 ],
1117 proofread_file: "offline-sdk-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001118 args: framework_docs_only_args + " -offlinemode -title \"Android SDK\"",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001119 static_doc_index_redirect: "docs/docs-preview-index.html",
1120}
1121
1122droiddoc {
Nan Zhang963612b2018-09-21 17:16:49 -07001123 // Please sync with android-api-council@ before making any changes for the name property below.
1124 // Since there's cron jobs that fetch offline-sdk-referenceonly-docs-docs.zip periodically.
1125 // See b/116221385 for reference.
Nan Zhang3e15ba82018-07-26 18:41:12 +00001126 name: "offline-sdk-referenceonly-docs",
1127 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001128 srcs: [
1129 ":framework-doc-stubs",
1130 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001131 hdf: [
1132 "android.whichdoc offline",
1133 ],
1134 proofread_file: "offline-sdk-referenceonly-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001135 args: framework_docs_only_args + " -offlinemode -title \"Android SDK\" -referenceonly",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001136 static_doc_index_redirect: "docs/docs-documentation-redirect.html",
1137 static_doc_properties: "docs/source.properties",
1138}
1139
1140droiddoc {
Nan Zhang963612b2018-09-21 17:16:49 -07001141 // Please sync with android-api-council@ before making any changes for the name property below.
1142 // Since there's cron jobs that fetch offline-system-sdk-referenceonly-docs-docs.zip periodically.
1143 // See b/116221385 for reference.
Nan Zhang3e15ba82018-07-26 18:41:12 +00001144 name: "offline-system-sdk-referenceonly-docs",
1145 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001146 srcs: [
1147 ":framework-doc-system-stubs",
1148 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001149 hdf: [
1150 "android.whichdoc offline",
1151 ],
1152 proofread_file: "offline-system-sdk-referenceonly-docs-proofrerad.txt",
Tobias Thiererbc050342019-05-23 16:20:12 +01001153 args: framework_docs_only_args + " -hide 101 -hide 104 -hide 108" +
1154 " -offlinemode -title \"Android System SDK\" -referenceonly",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001155 static_doc_index_redirect: "docs/docs-documentation-redirect.html",
1156 static_doc_properties: "docs/source.properties",
1157}
1158
1159droiddoc {
1160 name: "online-sdk-docs",
1161 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001162 srcs: [
1163 ":framework-doc-stubs",
1164 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001165 hdf: [
1166 "android.whichdoc online",
1167 "android.hasSamples true",
1168 ],
1169 proofread_file: "online-sdk-docs-proofrerad.txt",
Tobias Thiererbc050342019-05-23 16:20:12 +01001170 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001171 " -toroot / -samplegroup Admin " +
1172 " -samplegroup Background " +
1173 " -samplegroup Connectivity " +
1174 " -samplegroup Content " +
1175 " -samplegroup Input " +
1176 " -samplegroup Media " +
1177 " -samplegroup Notification " +
1178 " -samplegroup RenderScript " +
1179 " -samplegroup Security " +
1180 " -samplegroup Sensors " +
1181 " -samplegroup System " +
1182 " -samplegroup Testing " +
1183 " -samplegroup UI " +
1184 " -samplegroup Views " +
1185 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1186}
1187
1188droiddoc {
1189 name: "online-system-api-sdk-docs",
1190 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001191 srcs: [
1192 ":framework-doc-system-stubs",
1193 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001194 hdf: [
1195 "android.whichdoc online",
1196 "android.hasSamples true",
1197 ],
1198 proofread_file: "online-system-api-sdk-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001199 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001200 " -referenceonly " +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001201 " -title \"Android SDK - Including system APIs.\" " +
1202 " -hide 101 " +
1203 " -hide 104 " +
1204 " -hide 108 " +
1205 " -toroot / -samplegroup Admin " +
1206 " -samplegroup Background " +
1207 " -samplegroup Connectivity " +
1208 " -samplegroup Content " +
1209 " -samplegroup Input " +
1210 " -samplegroup Media " +
1211 " -samplegroup Notification " +
1212 " -samplegroup RenderScript " +
1213 " -samplegroup Security " +
1214 " -samplegroup Sensors " +
1215 " -samplegroup System " +
1216 " -samplegroup Testing " +
1217 " -samplegroup UI " +
1218 " -samplegroup Views " +
1219 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1220 installable: false,
1221}
1222
1223droiddoc {
Tiem Song730c19b2019-08-26 11:27:27 -07001224 name: "ds-docs-java",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001225 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001226 srcs: [
1227 ":framework-doc-stubs",
1228 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001229 hdf: [
1230 "android.whichdoc online",
1231 "android.hasSamples true",
1232 ],
1233 proofread_file: "ds-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001234 args: framework_docs_only_args +
Dirk Dougherty14b05b12019-02-22 20:36:41 -08001235 " -toroot / -yamlV2 -metalavaApiSince -samplegroup Admin " +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001236 " -samplegroup Background " +
1237 " -samplegroup Connectivity " +
1238 " -samplegroup Content " +
1239 " -samplegroup Input " +
1240 " -samplegroup Media " +
1241 " -samplegroup Notification " +
1242 " -samplegroup RenderScript " +
1243 " -samplegroup Security " +
1244 " -samplegroup Sensors " +
1245 " -samplegroup System " +
1246 " -samplegroup Testing " +
1247 " -samplegroup UI " +
1248 " -samplegroup Views " +
1249 " -samplegroup Wearable -devsite -samplesdir development/samples/browseable ",
1250}
1251
1252droiddoc {
Tiem Song730c19b2019-08-26 11:27:27 -07001253 name: "ds-docs-kt",
1254 defaults: ["framework-dokka-docs-default"],
1255 srcs: [
1256 ":framework-doc-stubs",
1257 ],
1258 args: "-noJdkLink -links https://kotlinlang.org/api/latest/jvm/stdlib/^external/dokka/package-list " +
1259 "-noStdlibLink",
1260 proofread_file: "ds-dokka-proofread.txt",
1261 dokka_enabled: true,
1262}
1263
1264java_genrule {
1265 name: "ds-docs",
1266 tools: [
1267 "zip2zip",
1268 "merge_zips",
1269 ],
1270 srcs: [
1271 ":ds-docs-java{.docs.zip}",
1272 ":ds-docs-kt{.docs.zip}",
1273 ],
1274 out: ["ds-docs.zip"],
1275 dist: {
1276 targets: ["docs"],
1277 },
1278 cmd: "$(location zip2zip) -i $(location :ds-docs-kt{.docs.zip}) -o $(genDir)/ds-docs-kt-moved.zip **/*:en/reference/kotlin && " +
1279 "$(location merge_zips) $(out) $(location :ds-docs-java{.docs.zip}) $(genDir)/ds-docs-kt-moved.zip",
1280}
1281
1282java_genrule {
1283 name: "ds-docs-switched",
1284 tools: [
1285 "switcher4",
1286 "soong_zip",
1287 ],
1288 srcs: [
1289 ":ds-docs-java{.docs.zip}",
1290 ":ds-docs-kt{.docs.zip}",
1291 ],
1292 out: ["ds-docs-switched.zip"],
1293 dist: {
1294 targets: ["docs"],
1295 },
1296 cmd: "unzip $(location :ds-docs-java{.docs.zip}) -d $(genDir) && " +
1297 "unzip $(location :ds-docs-kt{.docs.zip}) -d $(genDir)/en/reference/kotlin && " +
1298 "SWITCHER=$$(cd $$(dirname $(location switcher4)) && pwd)/$$(basename $(location switcher4)) && " +
1299 "(cd $(genDir)/en/reference && $$SWITCHER --work platform) && " +
1300 "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)",
1301}
1302
1303
1304droiddoc {
Nan Zhang3e15ba82018-07-26 18:41:12 +00001305 name: "ds-static-docs",
1306 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001307 srcs: [
1308 ":framework-doc-stubs",
1309 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001310 hdf: [
1311 "android.whichdoc online",
1312 ],
1313 proofread_file: "ds-static-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001314 args: framework_docs_only_args +
Tobias Thiererbc050342019-05-23 16:20:12 +01001315 " -staticonly " +
1316 " -toroot / " +
1317 " -devsite " +
1318 " -ignoreJdLinks ",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001319}
1320
1321droiddoc {
1322 name: "ds-ref-navtree-docs",
1323 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001324 srcs: [
1325 ":framework-doc-stubs",
1326 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001327 hdf: [
1328 "android.whichdoc online",
1329 ],
1330 proofread_file: "ds-ref-navtree-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001331 args: framework_docs_only_args +
Tobias Thiererbc050342019-05-23 16:20:12 +01001332 " -toroot / " +
1333 " -atLinksNavtree " +
1334 " -navtreeonly ",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001335}
1336
1337droiddoc {
1338 name: "online-sdk-dev-docs",
1339 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001340 srcs: [
1341 ":framework-doc-stubs",
1342 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001343 hdf: [
1344 "android.whichdoc online",
1345 "android.hasSamples true",
1346 ],
1347 proofread_file: "online-sdk-dev-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001348 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001349 " -toroot / -samplegroup Admin " +
1350 " -samplegroup Background " +
1351 " -samplegroup Connectivity " +
1352 " -samplegroup Content " +
1353 " -samplegroup Input " +
1354 " -samplegroup Media " +
1355 " -samplegroup Notification " +
1356 " -samplegroup RenderScript " +
1357 " -samplegroup Security " +
1358 " -samplegroup Sensors " +
1359 " -samplegroup System " +
1360 " -samplegroup Testing " +
1361 " -samplegroup UI " +
1362 " -samplegroup Views " +
1363 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1364}
1365
1366droiddoc {
1367 name: "hidden-docs",
1368 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001369 srcs: [
1370 ":framework-doc-stubs",
1371 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001372 proofread_file: "hidden-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001373 args: framework_docs_only_args +
Tobias Thiererbc050342019-05-23 16:20:12 +01001374 " -referenceonly " +
1375 " -title \"Android SDK - Including hidden APIs.\"",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001376}
1377
Nan Zhang7764a4b2018-08-22 11:27:31 -07001378droidstubs {
Colin Crossa2b78a72018-03-29 13:31:04 -07001379 name: "hwbinder-stubs-docs",
1380 srcs: [
1381 "core/java/android/os/HidlSupport.java",
1382 "core/java/android/annotation/IntDef.java",
1383 "core/java/android/annotation/NonNull.java",
1384 "core/java/android/annotation/SystemApi.java",
1385 "core/java/android/os/HwBinder.java",
1386 "core/java/android/os/HwBlob.java",
1387 "core/java/android/os/HwParcel.java",
1388 "core/java/android/os/IHwBinder.java",
1389 "core/java/android/os/IHwInterface.java",
1390 "core/java/android/os/DeadObjectException.java",
1391 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -07001392 "core/java/android/os/NativeHandle.java",
Colin Crossa2b78a72018-03-29 13:31:04 -07001393 "core/java/android/os/RemoteException.java",
1394 "core/java/android/util/AndroidException.java",
1395 ],
Colin Crossa2b78a72018-03-29 13:31:04 -07001396 installable: false,
Paul Duffin8fcace42019-06-12 13:47:18 +01001397 sdk_version: "core_platform",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001398 annotations_enabled: true,
1399 previous_api: ":last-released-public-api",
1400 merge_annotations_dirs: [
1401 "metalava-manual",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001402 ],
1403 args: " --show-annotation android.annotation.SystemApi",
Colin Crossa2b78a72018-03-29 13:31:04 -07001404}
1405
1406java_library_static {
1407 name: "hwbinder.stubs",
1408 sdk_version: "core_current",
1409 srcs: [
1410 ":hwbinder-stubs-docs",
1411 ],
1412}
Nan Zhanga0f91af2018-04-09 17:41:51 -07001413
Nan Zhang894c9ec2018-09-10 18:58:39 -07001414droidstubs {
Nan Zhangd25ad462018-08-22 10:48:15 -07001415 name: "hiddenapi-lists-docs",
1416 defaults: ["metalava-api-stubs-default"],
David Brazdil4f9d4d52018-04-26 14:05:13 +01001417 arg_files: [
1418 "core/res/AndroidManifest.xml",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001419 ],
David Brazdil6f6a1262018-05-31 13:58:41 +01001420 dex_api_filename: "public-dex.txt",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001421 private_dex_api_filename: "private-dex.txt",
1422 removed_dex_api_filename: "removed-dex.txt",
Nan Zhangd25ad462018-08-22 10:48:15 -07001423 args: metalava_framework_docs_args +
1424 " --show-unannotated " +
1425 " --show-annotation android.annotation.SystemApi " +
Tobias Thiererbc050342019-05-23 16:20:12 +01001426 " --show-annotation android.annotation.TestApi ",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001427}
1428
Nan Zhang7764a4b2018-08-22 11:27:31 -07001429droidstubs {
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001430 name: "hiddenapi-mappings",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001431 defaults: ["metalava-api-stubs-default"],
Jiyong Park0323b4d2019-08-23 20:36:58 +09001432 srcs: [
Andrei Onea6dd843a2019-03-13 15:27:23 +00001433 ":opt-telephony-common-srcs",
Paul Duffina0cb5382018-10-31 10:34:51 +00001434 ],
Jiyong Park5366ea22019-08-19 15:24:49 +09001435
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001436 arg_files: [
1437 "core/res/AndroidManifest.xml",
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001438 ],
1439 dex_mapping_filename: "dex-mapping.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001440 args: metalava_framework_docs_args +
Adrian Roos9bdbd302018-12-07 13:53:40 +01001441 " --hide ReferencesHidden " +
Adrian Roosc6e2fc82018-12-12 15:08:44 +01001442 " --hide UnhiddenSystemApi " +
Nan Zhang7764a4b2018-08-22 11:27:31 -07001443 " --show-unannotated " +
1444 " --show-annotation android.annotation.SystemApi " +
Tobias Thiererbc050342019-05-23 16:20:12 +01001445 " --show-annotation android.annotation.TestApi ",
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001446}
1447
Nan Zhang894c9ec2018-09-10 18:58:39 -07001448droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001449 name: "api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001450 defaults: ["metalava-api-stubs-default"],
Nan Zhang4212eb12018-04-25 17:23:33 -07001451 api_filename: "public_api.txt",
1452 private_api_filename: "private.txt",
1453 removed_api_filename: "removed.txt",
1454 arg_files: [
1455 "core/res/AndroidManifest.xml",
1456 ],
1457 args: metalava_framework_docs_args,
Nan Zhange5612602018-08-16 16:16:00 -07001458 check_api: {
1459 current: {
1460 api_file: "api/current.txt",
1461 removed_api_file: "api/removed.txt",
1462 },
Nan Zhangcd060d92018-08-20 20:34:26 -07001463 last_released: {
1464 api_file: ":last-released-public-api",
1465 removed_api_file: "api/removed.txt",
Adrian Roos9597f8c2019-08-12 17:47:39 +02001466 baseline_file: ":public-api-incompatibilities-with-last-released",
Nan Zhangcd060d92018-08-20 20:34:26 -07001467 },
Adrian Roos487c6462019-10-10 12:14:22 +02001468 api_lint: {
1469 enabled: true,
1470 new_since: ":last-released-public-api",
1471 baseline_file: "api/lint-baseline.txt",
1472 },
Nan Zhange5612602018-08-16 16:16:00 -07001473 },
Nan Zhang81f29f52018-09-17 14:33:08 -07001474 jdiff_enabled: true,
Nan Zhang4212eb12018-04-25 17:23:33 -07001475}
1476
Nan Zhang894c9ec2018-09-10 18:58:39 -07001477droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001478 name: "system-api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001479 defaults: ["metalava-api-stubs-default"],
Nan Zhang4d3f5012018-08-07 13:40:33 -07001480 api_tag_name: "SYSTEM",
Nan Zhang4212eb12018-04-25 17:23:33 -07001481 api_filename: "system-api.txt",
1482 private_api_filename: "system-private.txt",
1483 private_dex_api_filename: "system-private-dex.txt",
1484 removed_api_filename: "system-removed.txt",
1485 arg_files: [
1486 "core/res/AndroidManifest.xml",
1487 ],
1488 args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi",
Nan Zhange5612602018-08-16 16:16:00 -07001489 check_api: {
1490 current: {
1491 api_file: "api/system-current.txt",
1492 removed_api_file: "api/system-removed.txt",
1493 },
Nan Zhangcd060d92018-08-20 20:34:26 -07001494 last_released: {
1495 api_file: ":last-released-system-api",
1496 removed_api_file: "api/system-removed.txt",
Adrian Roos9597f8c2019-08-12 17:47:39 +02001497 baseline_file: ":system-api-incompatibilities-with-last-released"
Nan Zhangcd060d92018-08-20 20:34:26 -07001498 },
Adrian Roos487c6462019-10-10 12:14:22 +02001499 api_lint: {
1500 enabled: true,
1501 new_since: ":last-released-system-api",
1502 baseline_file: "api/system-lint-baseline.txt",
1503 },
Nan Zhange5612602018-08-16 16:16:00 -07001504 },
Nan Zhang81f29f52018-09-17 14:33:08 -07001505 jdiff_enabled: true,
Nan Zhang4212eb12018-04-25 17:23:33 -07001506}
1507
Nan Zhang894c9ec2018-09-10 18:58:39 -07001508droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001509 name: "test-api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001510 defaults: ["metalava-api-stubs-default"],
Nan Zhang4d3f5012018-08-07 13:40:33 -07001511 api_tag_name: "TEST",
Nan Zhang4212eb12018-04-25 17:23:33 -07001512 api_filename: "test-api.txt",
1513 removed_api_filename: "test-removed.txt",
1514 arg_files: [
1515 "core/res/AndroidManifest.xml",
1516 ],
1517 args: metalava_framework_docs_args + " --show-annotation android.annotation.TestApi",
Nan Zhange5612602018-08-16 16:16:00 -07001518 check_api: {
1519 current: {
1520 api_file: "api/test-current.txt",
1521 removed_api_file: "api/test-removed.txt",
1522 },
Adrian Roosd1715e82019-10-31 16:54:47 +01001523 api_lint: {
1524 enabled: true,
1525 baseline_file: "api/test-lint-baseline.txt",
1526 },
Nan Zhange5612602018-08-16 16:16:00 -07001527 },
Nan Zhang4212eb12018-04-25 17:23:33 -07001528}
Nan Zhangaf251302018-08-30 10:59:51 -07001529
1530filegroup {
1531 name: "framework-annotation-nonnull-srcs",
1532 srcs: [
1533 "core/java/android/annotation/NonNull.java",
1534 ],
1535}
Insun Kang06b25ae2018-11-20 10:05:44 +09001536
1537filegroup {
1538 name: "framework-media-annotation-srcs",
1539 srcs: [
1540 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001541 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001542 "core/java/android/annotation/DrawableRes.java",
1543 "core/java/android/annotation/IntDef.java",
1544 "core/java/android/annotation/LongDef.java",
1545 "core/java/android/annotation/NonNull.java",
1546 "core/java/android/annotation/Nullable.java",
1547 "core/java/android/annotation/RequiresPermission.java",
1548 "core/java/android/annotation/SdkConstant.java",
1549 "core/java/android/annotation/StringDef.java",
Sungsoo Limbb3b4012019-01-23 13:17:53 +09001550 "core/java/android/annotation/SystemApi.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001551 "core/java/android/annotation/TestApi.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001552 "core/java/android/annotation/UnsupportedAppUsage.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001553 "core/java/com/android/internal/annotations/GuardedBy.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001554 ],
1555}
1556
Andrei Onea7a2985c2019-02-18 15:28:35 +00001557// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1558// annotations to private apis
1559aidl_mapping {
1560 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001561 srcs: [":framework-all-sources"],
Tobias Thiererbc050342019-05-23 16:20:12 +01001562 output: "framework-aidl-mappings.txt",
Dario Freni2ce84342019-04-26 13:06:22 +01001563}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001564
1565genrule {
1566 name: "framework-annotation-proc-index",
Jiyong Parkf0fdd682019-11-14 03:20:36 +00001567 srcs: [":framework-annotation-proc"],
Anna Trostanetski97088e92019-06-26 14:47:58 +01001568 cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)",
1569 out: ["unsupportedappusage_index.csv"],
1570 dist: {
1571 targets: ["droidcore"],
1572 },
1573}
Chen Xu0e9d6752019-10-08 18:39:03 -07001574
1575// Avoid including Parcelable classes as we don't want to have two copies of
1576// Parcelable cross the process.
1577filegroup {
1578 name: "framework-cellbroadcast-shared-srcs",
1579 srcs: [
1580 "core/java/android/util/LocalLog.java",
1581 "core/java/android/util/Slog.java",
1582 "core/java/com/android/internal/util/State.java",
1583 "core/java/com/android/internal/util/StateMachine.java",
1584 ],
1585}