blob: 5f06a63ceacc7964f974efb8d09d7ad159262318 [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 Parkae9972b2019-09-15 20:19:02 +0900459}
460
461java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100462 name: "framework-annotation-proc",
463 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900464 srcs: [":framework-all-sources"],
atrost1a945502019-11-04 17:03:54 +0000465 libs: ["app-compat-annotations"],
Anna Trostanetski97088e92019-06-26 14:47:58 +0100466 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",
atrostb9c34502019-08-05 12:22:18 +0100475 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
523 tools: [
524 "aprotoc",
525 "protoc-gen-javastream",
526 "soong_zip",
527 ],
528
Anton Hanssond82b2f72019-11-18 13:34:56 +0000529 cmd: "mkdir -p $(genDir)/$(in) " +
530 "&& $(location aprotoc) " +
531 " --plugin=$(location protoc-gen-javastream) " +
532 " --dependency_out=$(depfile) " +
533 " --javastream_out=$(genDir)/$(in) " +
534 " -Iexternal/protobuf/src " +
535 " -I . " +
536 " $(in) " +
537 "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)",
538
Yi Jin437aa6e2018-01-10 11:34:26 -0800539 srcs: [
540 "core/proto/**/*.proto",
541 "libs/incident/**/*.proto",
542 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800543 output_extension: "srcjar",
544}
545
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900546filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900547 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900548 srcs: [
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900549 "core/java/android/annotation/NonNull.java",
550 "core/java/android/annotation/Nullable.java",
551 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900552 "core/java/android/annotation/IntRange.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900553 "core/java/android/annotation/UnsupportedAppUsage.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900554 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900555 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Tobias Thiererbc050342019-05-23 16:20:12 +0100556 ],
Chalard Jean95213512019-01-30 21:04:58 +0900557}
558
559filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900560 name: "framework-networkstack-shared-srcs",
561 srcs: [
562 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900563 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900564 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900565 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900566 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900567 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900568 "core/java/com/android/internal/util/IState.java",
569 "core/java/com/android/internal/util/MessageUtils.java",
570 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900571 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900572 "core/java/com/android/internal/util/State.java",
573 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900574 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900575 "core/java/com/android/internal/util/WakeupMessage.java",
576 "core/java/android/net/shared/*.java",
Tobias Thiererbc050342019-05-23 16:20:12 +0100577 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900578}
579
markchiena6ba54d2019-09-03 15:58:06 +0800580filegroup {
581 name: "framework-tethering-shared-srcs",
582 srcs: [
583 "core/java/android/util/LocalLog.java",
584 ],
585}
Colin Crossd8e02252017-10-02 17:14:22 -0700586// Build ext.jar
587// ============================================================
588java_library {
589 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700590 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100591 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700592 static_libs: [
593 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700594 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000595 "rappor",
Tony Mak64c4cb22018-09-25 13:38:28 +0100596 "libtextclassifier-java",
597 ],
598 required: [
599 "libtextclassifier",
Colin Crossd8e02252017-10-02 17:14:22 -0700600 ],
601 dxflags: ["--core-library"],
602}
603
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700604// ==== java proto host library ==============================
605java_library_host {
606 name: "platformprotos",
607 srcs: [
608 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700609 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700610 "core/proto/**/*.proto",
611 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700612 ],
613 proto: {
614 include_dirs: ["external/protobuf/src"],
615 type: "full",
616 },
617 errorprone: {
Tobias Thiererbc050342019-05-23 16:20:12 +0100618 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700619 },
620}
621
Colin Cross43214162018-08-20 13:57:24 -0700622// ==== java proto device library (for test only) ==============================
623java_library {
624 name: "platformprotosnano",
625 proto: {
626 type: "nano",
627 output_params: ["store_unknown_fields=true"],
628 include_dirs: ["external/protobuf/src"],
629 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000630 exclude_srcs: [
631 "core/proto/android/privacy.proto",
632 "core/proto/android/section.proto",
633 ],
Colin Cross43214162018-08-20 13:57:24 -0700634 sdk_version: "current",
635 srcs: [
636 "core/proto/**/*.proto",
637 "libs/incident/proto/android/os/**/*.proto",
638 ],
639}
640
641// ==== java proto device library (for test only) ==============================
642java_library {
643 name: "platformprotoslite",
644 proto: {
645 type: "lite",
646 include_dirs: ["external/protobuf/src"],
647 },
648
649 srcs: [
650 "core/proto/**/*.proto",
651 "libs/incident/proto/android/os/**/*.proto",
652 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000653 exclude_srcs: [
654 "core/proto/android/privacy.proto",
655 "core/proto/android/section.proto",
656 ],
Colin Cross43214162018-08-20 13:57:24 -0700657 // Protos have lots of MissingOverride and similar.
658 errorprone: {
659 javacflags: ["-XepDisableAllChecks"],
660 },
661}
662
Colin Crossaa0d4352017-05-02 14:14:56 -0700663// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000664cc_defaults {
665 name: "libplatformprotos-defaults",
666
Colin Crossaa0d4352017-05-02 14:14:56 -0700667 proto: {
668 export_proto_headers: true,
669 include_dirs: ["external/protobuf/src"],
670 },
671
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700672 cflags: [
673 "-Wall",
674 "-Werror",
675 "-Wno-unused-parameter",
676 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800677
678 srcs: [
679 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800680 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000681}
682
683cc_library {
684 name: "libplatformprotos",
685 defaults: ["libplatformprotos-defaults"],
686 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800687
Colin Crossaa0d4352017-05-02 14:14:56 -0700688 target: {
689 host: {
690 proto: {
691 type: "full",
692 },
693 },
694 android: {
695 proto: {
696 type: "lite",
697 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000698 shared_libs: [
699 "libprotobuf-cpp-lite",
700 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700701 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700702 enabled: false,
703 },
704 },
705 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700706}
707
Joe Onorato9bd5db72019-04-03 18:19:43 -0700708// This library is meant for vendor code that needs to output protobuf. It links
709// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
710// binary compatibility.
711cc_library {
712 name: "libplatformprotos-static",
713 defaults: ["libplatformprotos-defaults"],
714 host_supported: false,
715
716 // This is okay because this library is only built as a static library. The C++
717 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
718 // but is not authorized to be used outside of debugging.
719 vendor_available: true,
720
721 target: {
722 android: {
723 proto: {
724 type: "lite",
725 },
726 static_libs: [
727 "libprotobuf-cpp-lite",
728 ],
729 shared: {
730 enabled: false,
731 },
732 },
733 },
734}
735
736
Joe Onorato99598ee2019-02-11 15:55:13 +0000737// This is the full proto version of libplatformprotos. It may only
738// be used by test code that is not shipped on the device.
739cc_library {
740 name: "libplatformprotos-test",
741 defaults: ["libplatformprotos-defaults"],
742 host_supported: false,
743
744 target: {
745 android: {
746 proto: {
747 type: "full",
748 },
749 shared: {
750 enabled: false,
751 },
752 },
753 },
754}
755
756
Yi Jin04625ad2017-10-17 18:29:33 -0700757gensrcs {
758 name: "gen-platform-proto-constants",
759 depfile: true,
760
761 tools: [
762 "aprotoc",
763 "protoc-gen-cppstream",
764 ],
765
766 srcs: [
Kweku Adamseadd1232018-02-05 16:45:13 -0800767 "core/proto/android/os/backtrace.proto",
Kweku Adams59e6fd72017-12-27 15:48:14 -0800768 "core/proto/android/os/batterytype.proto",
Yi Jin0eb22342017-11-06 17:17:27 -0800769 "core/proto/android/os/cpufreq.proto",
Yi Jine2f7f792017-11-01 17:08:27 -0700770 "core/proto/android/os/cpuinfo.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700771 "core/proto/android/os/data.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700772 "core/proto/android/os/kernelwake.proto",
773 "core/proto/android/os/pagetypeinfo.proto",
774 "core/proto/android/os/procrank.proto",
Kweku Adamsf5cc5752017-12-20 17:59:17 -0800775 "core/proto/android/os/ps.proto",
Yi Jin0dfa7522017-11-06 17:43:47 -0800776 "core/proto/android/os/system_properties.proto",
Yi Jin3c034c92017-12-22 17:36:47 -0800777 "core/proto/android/util/event_log_tags.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700778 "core/proto/android/util/log.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700779 ],
780
781 // Append protoc-gen-cppstream tool's PATH otherwise aprotoc can't find the plugin tool
Yi Jin3c034c92017-12-22 17:36:47 -0800782 cmd: "mkdir -p $(genDir) " +
783 "&& $(location aprotoc) " +
784 " --plugin=$(location protoc-gen-cppstream) " +
785 " --dependency_out=$(depfile) " +
786 " --cppstream_out=$(genDir) " +
787 " -Iexternal/protobuf/src " +
788 " -I . " +
789 " $(in)",
Yi Jin04625ad2017-10-17 18:29:33 -0700790
Logan Chien71ddfea2018-02-27 16:43:50 +0800791 output_extension: "proto.h",
Yi Jin04625ad2017-10-17 18:29:33 -0700792}
793
Joe Onorato99598ee2019-02-11 15:55:13 +0000794
Dan Albert2a8d9c22016-09-23 15:55:49 -0700795subdirs = [
Yi Jin0a3406f2017-06-22 19:23:11 -0700796 "cmds/*",
Jeff Sharkey0c686e72017-10-23 16:04:31 -0600797 "core/*",
Colin Cross4f8d9e62016-12-01 15:55:00 -0800798 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -0700799 "media/*",
Colin Cross747e7c12017-10-24 16:21:22 -0700800 "proto",
Fabien Sanglard19160202017-01-12 14:24:31 -0500801 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700802 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -0700803 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700804]
Svetoslav Ganov74c99832016-12-05 20:07:20 -0800805
806optional_subdirs = [
807 "core/tests/utiltests/jni",
808]
Steven Morelandeddafe92017-10-02 16:58:41 -0700809
Colin Crossa2b78a72018-03-29 13:31:04 -0700810// TODO(b/77285514): remove this once the last few hidl interfaces have been
811// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -0700812java_library {
813 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +0100814 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -0700815
816 srcs: [
817 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800818 "core/java/android/annotation/IntDef.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -0800819 "core/java/android/annotation/IntRange.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700820 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -0800821 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800822 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -0800823 "core/java/android/annotation/TestApi.java",
Andrei Onea24ec3212019-03-15 17:35:05 +0000824 "core/java/android/annotation/UnsupportedAppUsage.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -0800825 "core/java/android/os/HidlMemory.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
Paul Duffin0440e1f2019-02-11 16:13:25 +0000868// Make the api/current.txt file available for use by modules in other
869// directories.
870filegroup {
871 name: "frameworks-base-api-current.txt",
872 srcs: [
873 "api/current.txt",
874 ],
875}
876
Paul Duffincd35de32019-05-30 15:12:47 +0100877// Make the api/system-current.txt file available for use by modules in other
878// directories.
879filegroup {
880 name: "frameworks-base-api-system-current.txt",
881 srcs: [
882 "api/system-current.txt",
883 ],
884}
885
886// Make the api/system-removed.txt file available for use by modules in other
887// directories.
888filegroup {
889 name: "frameworks-base-api-system-removed.txt",
890 srcs: [
891 "api/system-removed.txt",
892 ],
893}
894
Nan Zhang7764a4b2018-08-22 11:27:31 -0700895framework_docs_only_args = " -android -manifest $(location core/res/AndroidManifest.xml) " +
Tobias Thiererbc050342019-05-23 16:20:12 +0100896 "-werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 " +
897 "-overview $(location core/java/overview.html) " +
898 // Federate Support Library references against local API file.
899 "-federate SupportLib https://developer.android.com " +
Charles Munger1b1c0ca2019-11-19 14:01:19 -0800900 "-federationapi SupportLib $(location :current-support-api) " +
901 // Federate Support Library references against local API file.
902 "-federate AndroidX https://developer.android.com " +
903 "-federationapi AndroidX $(location :current-androidx-api) "
Nan Zhang172875b2018-02-27 11:24:03 -0800904
Nan Zhang7764a4b2018-08-22 11:27:31 -0700905framework_docs_only_libs = [
Nan Zhang7764a4b2018-08-22 11:27:31 -0700906 "voip-common",
907 "android.test.mock",
908 "android-support-annotations",
909 "android-support-compat",
910 "android-support-core-ui",
911 "android-support-core-utils",
912 "android-support-customtabs",
913 "android-support-design",
914 "android-support-dynamic-animation",
915 "android-support-exifinterface",
916 "android-support-fragment",
917 "android-support-media-compat",
918 "android-support-percent",
919 "android-support-recommendation",
920 "android-support-transition",
921 "android-support-tv-provider",
922 "android-support-v7-cardview",
923 "android-support-v7-gridlayout",
924 "android-support-v7-mediarouter",
925 "android-support-v7-palette",
926 "android-support-v7-preference",
927 "android-support-v13",
928 "android-support-v14-preference",
929 "android-support-v17-leanback",
930 "android-support-v17-preference-leanback",
931 "android-support-wear",
932 "android-support-vectordrawable",
933 "android-support-animatedvectordrawable",
934 "android-support-v7-appcompat",
935 "android-support-v7-recyclerview",
936 "android-support-emoji",
937 "android-support-emoji-appcompat",
938 "android-support-emoji-bundled",
939 "android-support-v8-renderscript",
940 "android-support-multidex",
941 "android-support-multidex-instrumentation",
942]
943
944metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
Paul Duffin179d9702019-10-18 13:57:19 +0100945 "--ignore-classes-on-classpath " +
Paul Duffin7fb76962019-11-06 14:18:38 +0000946 "--hide-package com.android.server " +
Adrian Roosc6e2fc82018-12-12 15:08:44 +0100947 "--error UnhiddenSystemApi " +
Nan Zhang7764a4b2018-08-22 11:27:31 -0700948 "--hide RequiresPermission " +
Adrian Roosa90de2e2019-11-01 18:35:53 +0100949 "--hide CallbackInterface " +
Nan Zhang7764a4b2018-08-22 11:27:31 -0700950 "--hide MissingPermission --hide BroadcastBehavior " +
951 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
Tobias Thierer8f559412019-05-22 20:17:49 +0100952 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo "
953
Jiyong Parkae9972b2019-09-15 20:19:02 +0900954packages_to_document = [
955 "android",
Jiyong Parkb1d27012019-09-17 14:51:28 +0900956 "dalvik",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900957 "java",
958 "javax",
Jiyong Parkb1d27012019-09-17 14:51:28 +0900959 "junit",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900960 "org.apache.http",
961 "org.json",
962 "org.w3c.dom",
963 "org.xml.sax",
964 "org.xmlpull",
965]
966
Nan Zhang7764a4b2018-08-22 11:27:31 -0700967stubs_defaults {
968 name: "framework-doc-stubs-default",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000969 srcs: [
Jiyong Parkae9972b2019-09-15 20:19:02 +0900970 ":framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900971 "core/java/**/*.logtags",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000972 "test-base/src/**/*.java",
973 ":opt-telephony-srcs",
974 ":opt-net-voip-srcs",
Paul Duffine86cc6f2019-10-04 10:10:58 +0100975 ":core-current-stubs-source",
Neil Fuller3b1b7032019-02-26 12:00:38 +0000976 ":core_public_api_files",
Jiyong Parkdf6c25d2019-08-20 20:48:47 +0900977 ":updatable-media-srcs",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000978 "test-mock/src/**/*.java",
979 "test-runner/src/**/*.java",
980 ],
Nan Zhang7764a4b2018-08-22 11:27:31 -0700981 libs: framework_docs_only_libs,
Nan Zhang7764a4b2018-08-22 11:27:31 -0700982 create_doc_stubs: true,
983 annotations_enabled: true,
984 api_levels_annotations_enabled: true,
985 api_levels_annotations_dirs: [
986 "sdk-dir",
987 "api-versions-jars-dir",
988 ],
989 previous_api: ":last-released-public-api",
990 merge_annotations_dirs: [
991 "metalava-manual",
Nan Zhang7764a4b2018-08-22 11:27:31 -0700992 ],
993}
994
995doc_defaults {
996 name: "framework-docs-default",
Nan Zhangb03396e2018-10-11 18:06:10 -0700997 libs: framework_docs_only_libs +
Tobias Thiererbc050342019-05-23 16:20:12 +0100998 ["stub-annotations"],
Nan Zhang3e15ba82018-07-26 18:41:12 +0000999 html_dirs: [
1000 "docs/html",
1001 ],
1002 knowntags: [
1003 "docs/knowntags.txt",
1004 ":known-oj-tags",
1005 ],
1006 custom_template: "droiddoc-templates-sdk",
1007 resourcesdir: "docs/html/reference/images/",
1008 resourcesoutdir: "reference/android/images/",
1009 hdf: [
1010 "dac true",
1011 "sdk.codename O",
1012 "sdk.preview.version 1",
1013 "sdk.version 7.0",
1014 "sdk.rel.id 1",
1015 "sdk.preview 0",
1016 ],
1017 arg_files: [
1018 "core/res/AndroidManifest.xml",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001019 "core/java/overview.html",
1020 ":current-support-api",
Charles Munger1b1c0ca2019-11-19 14:01:19 -08001021 ":current-androidx-api",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001022 ],
1023 create_stubs: false,
1024}
1025
Tiem Song730c19b2019-08-26 11:27:27 -07001026doc_defaults {
1027 name: "framework-dokka-docs-default",
1028 create_stubs: false,
1029}
1030
Nan Zhang894c9ec2018-09-10 18:58:39 -07001031stubs_defaults {
Nan Zhangd25ad462018-08-22 10:48:15 -07001032 name: "metalava-api-stubs-default",
1033 srcs: [
Jiyong Parkae9972b2019-09-15 20:19:02 +09001034 ":framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +09001035 "core/java/**/*.logtags",
Nan Zhangd25ad462018-08-22 10:48:15 -07001036 ":opt-telephony-srcs",
1037 ":opt-net-voip-srcs",
Paul Duffine86cc6f2019-10-04 10:10:58 +01001038 ":core-current-stubs-source",
Neil Fuller3b1b7032019-02-26 12:00:38 +00001039 ":core_public_api_files",
Jiyong Parkdf6c25d2019-08-20 20:48:47 +09001040 ":updatable-media-srcs",
evitayan69d77da2019-10-30 19:58:48 -07001041 ":ike-api-srcs",
Nan Zhangd25ad462018-08-22 10:48:15 -07001042 ],
Jiyong Park5366ea22019-08-19 15:24:49 +09001043 libs: ["framework-internal-utils"],
Nan Zhangd25ad462018-08-22 10:48:15 -07001044 installable: false,
Nan Zhang894c9ec2018-09-10 18:58:39 -07001045 annotations_enabled: true,
1046 previous_api: ":last-released-public-api",
1047 merge_annotations_dirs: [
Nan Zhangd25ad462018-08-22 10:48:15 -07001048 "metalava-manual",
Nan Zhangd25ad462018-08-22 10:48:15 -07001049 ],
Nan Zhang91cc7662018-09-18 10:46:10 -07001050 api_levels_annotations_enabled: true,
1051 api_levels_annotations_dirs: [
1052 "sdk-dir",
1053 "api-versions-jars-dir",
1054 ],
Jiyong Park5366ea22019-08-19 15:24:49 +09001055 sdk_version: "core_platform",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001056 filter_packages: packages_to_document,
Nan Zhangd25ad462018-08-22 10:48:15 -07001057}
1058
Nan Zhang7764a4b2018-08-22 11:27:31 -07001059droidstubs {
1060 name: "framework-doc-stubs",
1061 defaults: ["framework-doc-stubs-default"],
1062 arg_files: [
1063 "core/res/AndroidManifest.xml",
1064 ],
1065 args: metalava_framework_docs_args,
Jerome Gaillardb59a1cd2019-10-10 19:09:21 +01001066 write_sdk_values: true,
Nan Zhang7764a4b2018-08-22 11:27:31 -07001067}
1068
1069droidstubs {
1070 name: "framework-doc-system-stubs",
1071 defaults: ["framework-doc-stubs-default"],
1072 arg_files: [
1073 "core/res/AndroidManifest.xml",
1074 ],
1075 args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi ",
Jerome Gaillardb59a1cd2019-10-10 19:09:21 +01001076 write_sdk_values: true,
Nan Zhang7764a4b2018-08-22 11:27:31 -07001077}
1078
Nan Zhang3e15ba82018-07-26 18:41:12 +00001079droiddoc {
1080 name: "doc-comment-check-docs",
1081 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001082 srcs: [
1083 ":framework-doc-stubs",
1084 ],
1085 args: framework_docs_only_args + " -referenceonly -parsecomments",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001086 installable: false,
1087}
1088
1089droiddoc {
1090 name: "offline-sdk-docs",
1091 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001092 srcs: [
1093 ":framework-doc-stubs",
1094 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001095 hdf: [
1096 "android.whichdoc offline",
1097 ],
1098 proofread_file: "offline-sdk-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001099 args: framework_docs_only_args + " -offlinemode -title \"Android SDK\"",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001100 static_doc_index_redirect: "docs/docs-preview-index.html",
1101}
1102
1103droiddoc {
Nan Zhang963612b2018-09-21 17:16:49 -07001104 // Please sync with android-api-council@ before making any changes for the name property below.
1105 // Since there's cron jobs that fetch offline-sdk-referenceonly-docs-docs.zip periodically.
1106 // See b/116221385 for reference.
Nan Zhang3e15ba82018-07-26 18:41:12 +00001107 name: "offline-sdk-referenceonly-docs",
1108 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001109 srcs: [
1110 ":framework-doc-stubs",
1111 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001112 hdf: [
1113 "android.whichdoc offline",
1114 ],
1115 proofread_file: "offline-sdk-referenceonly-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001116 args: framework_docs_only_args + " -offlinemode -title \"Android SDK\" -referenceonly",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001117 static_doc_index_redirect: "docs/docs-documentation-redirect.html",
1118 static_doc_properties: "docs/source.properties",
1119}
1120
1121droiddoc {
Nan Zhang963612b2018-09-21 17:16:49 -07001122 // Please sync with android-api-council@ before making any changes for the name property below.
1123 // Since there's cron jobs that fetch offline-system-sdk-referenceonly-docs-docs.zip periodically.
1124 // See b/116221385 for reference.
Nan Zhang3e15ba82018-07-26 18:41:12 +00001125 name: "offline-system-sdk-referenceonly-docs",
1126 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001127 srcs: [
1128 ":framework-doc-system-stubs",
1129 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001130 hdf: [
1131 "android.whichdoc offline",
1132 ],
1133 proofread_file: "offline-system-sdk-referenceonly-docs-proofrerad.txt",
Tobias Thiererbc050342019-05-23 16:20:12 +01001134 args: framework_docs_only_args + " -hide 101 -hide 104 -hide 108" +
1135 " -offlinemode -title \"Android System 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 {
1141 name: "online-sdk-docs",
1142 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001143 srcs: [
1144 ":framework-doc-stubs",
1145 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001146 hdf: [
1147 "android.whichdoc online",
1148 "android.hasSamples true",
1149 ],
1150 proofread_file: "online-sdk-docs-proofrerad.txt",
Tobias Thiererbc050342019-05-23 16:20:12 +01001151 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001152 " -toroot / -samplegroup Admin " +
1153 " -samplegroup Background " +
1154 " -samplegroup Connectivity " +
1155 " -samplegroup Content " +
1156 " -samplegroup Input " +
1157 " -samplegroup Media " +
1158 " -samplegroup Notification " +
1159 " -samplegroup RenderScript " +
1160 " -samplegroup Security " +
1161 " -samplegroup Sensors " +
1162 " -samplegroup System " +
1163 " -samplegroup Testing " +
1164 " -samplegroup UI " +
1165 " -samplegroup Views " +
1166 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1167}
1168
1169droiddoc {
1170 name: "online-system-api-sdk-docs",
1171 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001172 srcs: [
1173 ":framework-doc-system-stubs",
1174 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001175 hdf: [
1176 "android.whichdoc online",
1177 "android.hasSamples true",
1178 ],
1179 proofread_file: "online-system-api-sdk-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001180 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001181 " -referenceonly " +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001182 " -title \"Android SDK - Including system APIs.\" " +
1183 " -hide 101 " +
1184 " -hide 104 " +
1185 " -hide 108 " +
1186 " -toroot / -samplegroup Admin " +
1187 " -samplegroup Background " +
1188 " -samplegroup Connectivity " +
1189 " -samplegroup Content " +
1190 " -samplegroup Input " +
1191 " -samplegroup Media " +
1192 " -samplegroup Notification " +
1193 " -samplegroup RenderScript " +
1194 " -samplegroup Security " +
1195 " -samplegroup Sensors " +
1196 " -samplegroup System " +
1197 " -samplegroup Testing " +
1198 " -samplegroup UI " +
1199 " -samplegroup Views " +
1200 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1201 installable: false,
1202}
1203
1204droiddoc {
Tiem Song730c19b2019-08-26 11:27:27 -07001205 name: "ds-docs-java",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001206 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001207 srcs: [
1208 ":framework-doc-stubs",
1209 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001210 hdf: [
1211 "android.whichdoc online",
1212 "android.hasSamples true",
1213 ],
1214 proofread_file: "ds-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001215 args: framework_docs_only_args +
Dirk Dougherty14b05b12019-02-22 20:36:41 -08001216 " -toroot / -yamlV2 -metalavaApiSince -samplegroup Admin " +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001217 " -samplegroup Background " +
1218 " -samplegroup Connectivity " +
1219 " -samplegroup Content " +
1220 " -samplegroup Input " +
1221 " -samplegroup Media " +
1222 " -samplegroup Notification " +
1223 " -samplegroup RenderScript " +
1224 " -samplegroup Security " +
1225 " -samplegroup Sensors " +
1226 " -samplegroup System " +
1227 " -samplegroup Testing " +
1228 " -samplegroup UI " +
1229 " -samplegroup Views " +
1230 " -samplegroup Wearable -devsite -samplesdir development/samples/browseable ",
1231}
1232
1233droiddoc {
Tiem Song730c19b2019-08-26 11:27:27 -07001234 name: "ds-docs-kt",
1235 defaults: ["framework-dokka-docs-default"],
1236 srcs: [
1237 ":framework-doc-stubs",
1238 ],
1239 args: "-noJdkLink -links https://kotlinlang.org/api/latest/jvm/stdlib/^external/dokka/package-list " +
1240 "-noStdlibLink",
1241 proofread_file: "ds-dokka-proofread.txt",
1242 dokka_enabled: true,
1243}
1244
1245java_genrule {
1246 name: "ds-docs",
1247 tools: [
1248 "zip2zip",
1249 "merge_zips",
1250 ],
1251 srcs: [
1252 ":ds-docs-java{.docs.zip}",
1253 ":ds-docs-kt{.docs.zip}",
1254 ],
1255 out: ["ds-docs.zip"],
1256 dist: {
1257 targets: ["docs"],
1258 },
1259 cmd: "$(location zip2zip) -i $(location :ds-docs-kt{.docs.zip}) -o $(genDir)/ds-docs-kt-moved.zip **/*:en/reference/kotlin && " +
1260 "$(location merge_zips) $(out) $(location :ds-docs-java{.docs.zip}) $(genDir)/ds-docs-kt-moved.zip",
1261}
1262
1263java_genrule {
1264 name: "ds-docs-switched",
1265 tools: [
1266 "switcher4",
1267 "soong_zip",
1268 ],
1269 srcs: [
1270 ":ds-docs-java{.docs.zip}",
1271 ":ds-docs-kt{.docs.zip}",
1272 ],
1273 out: ["ds-docs-switched.zip"],
1274 dist: {
1275 targets: ["docs"],
1276 },
1277 cmd: "unzip $(location :ds-docs-java{.docs.zip}) -d $(genDir) && " +
1278 "unzip $(location :ds-docs-kt{.docs.zip}) -d $(genDir)/en/reference/kotlin && " +
1279 "SWITCHER=$$(cd $$(dirname $(location switcher4)) && pwd)/$$(basename $(location switcher4)) && " +
1280 "(cd $(genDir)/en/reference && $$SWITCHER --work platform) && " +
1281 "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)",
1282}
1283
1284
1285droiddoc {
Nan Zhang3e15ba82018-07-26 18:41:12 +00001286 name: "ds-static-docs",
1287 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001288 srcs: [
1289 ":framework-doc-stubs",
1290 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001291 hdf: [
1292 "android.whichdoc online",
1293 ],
1294 proofread_file: "ds-static-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001295 args: framework_docs_only_args +
Tobias Thiererbc050342019-05-23 16:20:12 +01001296 " -staticonly " +
1297 " -toroot / " +
1298 " -devsite " +
1299 " -ignoreJdLinks ",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001300}
1301
1302droiddoc {
1303 name: "ds-ref-navtree-docs",
1304 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001305 srcs: [
1306 ":framework-doc-stubs",
1307 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001308 hdf: [
1309 "android.whichdoc online",
1310 ],
1311 proofread_file: "ds-ref-navtree-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001312 args: framework_docs_only_args +
Tobias Thiererbc050342019-05-23 16:20:12 +01001313 " -toroot / " +
1314 " -atLinksNavtree " +
1315 " -navtreeonly ",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001316}
1317
1318droiddoc {
1319 name: "online-sdk-dev-docs",
1320 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001321 srcs: [
1322 ":framework-doc-stubs",
1323 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001324 hdf: [
1325 "android.whichdoc online",
1326 "android.hasSamples true",
1327 ],
1328 proofread_file: "online-sdk-dev-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001329 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001330 " -toroot / -samplegroup Admin " +
1331 " -samplegroup Background " +
1332 " -samplegroup Connectivity " +
1333 " -samplegroup Content " +
1334 " -samplegroup Input " +
1335 " -samplegroup Media " +
1336 " -samplegroup Notification " +
1337 " -samplegroup RenderScript " +
1338 " -samplegroup Security " +
1339 " -samplegroup Sensors " +
1340 " -samplegroup System " +
1341 " -samplegroup Testing " +
1342 " -samplegroup UI " +
1343 " -samplegroup Views " +
1344 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1345}
1346
1347droiddoc {
1348 name: "hidden-docs",
1349 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001350 srcs: [
1351 ":framework-doc-stubs",
1352 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001353 proofread_file: "hidden-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001354 args: framework_docs_only_args +
Tobias Thiererbc050342019-05-23 16:20:12 +01001355 " -referenceonly " +
1356 " -title \"Android SDK - Including hidden APIs.\"",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001357}
1358
Nan Zhang7764a4b2018-08-22 11:27:31 -07001359droidstubs {
Colin Crossa2b78a72018-03-29 13:31:04 -07001360 name: "hwbinder-stubs-docs",
1361 srcs: [
1362 "core/java/android/os/HidlSupport.java",
1363 "core/java/android/annotation/IntDef.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -08001364 "core/java/android/annotation/IntRange.java",
Colin Crossa2b78a72018-03-29 13:31:04 -07001365 "core/java/android/annotation/NonNull.java",
1366 "core/java/android/annotation/SystemApi.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -08001367 "core/java/android/os/HidlMemory.java",
Colin Crossa2b78a72018-03-29 13:31:04 -07001368 "core/java/android/os/HwBinder.java",
1369 "core/java/android/os/HwBlob.java",
1370 "core/java/android/os/HwParcel.java",
1371 "core/java/android/os/IHwBinder.java",
1372 "core/java/android/os/IHwInterface.java",
1373 "core/java/android/os/DeadObjectException.java",
1374 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -07001375 "core/java/android/os/NativeHandle.java",
Colin Crossa2b78a72018-03-29 13:31:04 -07001376 "core/java/android/os/RemoteException.java",
1377 "core/java/android/util/AndroidException.java",
1378 ],
Colin Crossa2b78a72018-03-29 13:31:04 -07001379 installable: false,
Paul Duffin8fcace42019-06-12 13:47:18 +01001380 sdk_version: "core_platform",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001381 annotations_enabled: true,
1382 previous_api: ":last-released-public-api",
1383 merge_annotations_dirs: [
1384 "metalava-manual",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001385 ],
1386 args: " --show-annotation android.annotation.SystemApi",
Colin Crossa2b78a72018-03-29 13:31:04 -07001387}
1388
1389java_library_static {
1390 name: "hwbinder.stubs",
1391 sdk_version: "core_current",
1392 srcs: [
1393 ":hwbinder-stubs-docs",
1394 ],
1395}
Nan Zhanga0f91af2018-04-09 17:41:51 -07001396
Nan Zhang894c9ec2018-09-10 18:58:39 -07001397droidstubs {
Nan Zhangd25ad462018-08-22 10:48:15 -07001398 name: "hiddenapi-lists-docs",
1399 defaults: ["metalava-api-stubs-default"],
David Brazdil4f9d4d52018-04-26 14:05:13 +01001400 arg_files: [
1401 "core/res/AndroidManifest.xml",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001402 ],
David Brazdil6f6a1262018-05-31 13:58:41 +01001403 dex_api_filename: "public-dex.txt",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001404 private_dex_api_filename: "private-dex.txt",
1405 removed_dex_api_filename: "removed-dex.txt",
Nan Zhangd25ad462018-08-22 10:48:15 -07001406 args: metalava_framework_docs_args +
1407 " --show-unannotated " +
1408 " --show-annotation android.annotation.SystemApi " +
Tobias Thiererbc050342019-05-23 16:20:12 +01001409 " --show-annotation android.annotation.TestApi ",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001410}
1411
Nan Zhang7764a4b2018-08-22 11:27:31 -07001412droidstubs {
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001413 name: "hiddenapi-mappings",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001414 defaults: ["metalava-api-stubs-default"],
Jiyong Park0323b4d2019-08-23 20:36:58 +09001415 srcs: [
Andrei Onea6dd843a2019-03-13 15:27:23 +00001416 ":opt-telephony-common-srcs",
Paul Duffina0cb5382018-10-31 10:34:51 +00001417 ],
Jiyong Park5366ea22019-08-19 15:24:49 +09001418
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001419 arg_files: [
1420 "core/res/AndroidManifest.xml",
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001421 ],
1422 dex_mapping_filename: "dex-mapping.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001423 args: metalava_framework_docs_args +
Adrian Roos9bdbd302018-12-07 13:53:40 +01001424 " --hide ReferencesHidden " +
Adrian Roosc6e2fc82018-12-12 15:08:44 +01001425 " --hide UnhiddenSystemApi " +
Nan Zhang7764a4b2018-08-22 11:27:31 -07001426 " --show-unannotated " +
1427 " --show-annotation android.annotation.SystemApi " +
Tobias Thiererbc050342019-05-23 16:20:12 +01001428 " --show-annotation android.annotation.TestApi ",
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001429}
1430
Nan Zhang894c9ec2018-09-10 18:58:39 -07001431droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001432 name: "api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001433 defaults: ["metalava-api-stubs-default"],
Nan Zhang4212eb12018-04-25 17:23:33 -07001434 api_filename: "public_api.txt",
1435 private_api_filename: "private.txt",
1436 removed_api_filename: "removed.txt",
1437 arg_files: [
1438 "core/res/AndroidManifest.xml",
1439 ],
1440 args: metalava_framework_docs_args,
Nan Zhange5612602018-08-16 16:16:00 -07001441 check_api: {
1442 current: {
1443 api_file: "api/current.txt",
1444 removed_api_file: "api/removed.txt",
1445 },
Nan Zhangcd060d92018-08-20 20:34:26 -07001446 last_released: {
1447 api_file: ":last-released-public-api",
1448 removed_api_file: "api/removed.txt",
Adrian Roos9597f8c2019-08-12 17:47:39 +02001449 baseline_file: ":public-api-incompatibilities-with-last-released",
Nan Zhangcd060d92018-08-20 20:34:26 -07001450 },
Adrian Roos487c6462019-10-10 12:14:22 +02001451 api_lint: {
1452 enabled: true,
1453 new_since: ":last-released-public-api",
1454 baseline_file: "api/lint-baseline.txt",
1455 },
Nan Zhange5612602018-08-16 16:16:00 -07001456 },
Nan Zhang81f29f52018-09-17 14:33:08 -07001457 jdiff_enabled: true,
Nan Zhang4212eb12018-04-25 17:23:33 -07001458}
1459
Nan Zhang894c9ec2018-09-10 18:58:39 -07001460droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001461 name: "system-api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001462 defaults: ["metalava-api-stubs-default"],
Nan Zhang4d3f5012018-08-07 13:40:33 -07001463 api_tag_name: "SYSTEM",
Nan Zhang4212eb12018-04-25 17:23:33 -07001464 api_filename: "system-api.txt",
1465 private_api_filename: "system-private.txt",
1466 private_dex_api_filename: "system-private-dex.txt",
1467 removed_api_filename: "system-removed.txt",
1468 arg_files: [
1469 "core/res/AndroidManifest.xml",
1470 ],
1471 args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi",
Nan Zhange5612602018-08-16 16:16:00 -07001472 check_api: {
1473 current: {
1474 api_file: "api/system-current.txt",
1475 removed_api_file: "api/system-removed.txt",
1476 },
Nan Zhangcd060d92018-08-20 20:34:26 -07001477 last_released: {
1478 api_file: ":last-released-system-api",
1479 removed_api_file: "api/system-removed.txt",
Adrian Roos9597f8c2019-08-12 17:47:39 +02001480 baseline_file: ":system-api-incompatibilities-with-last-released"
Nan Zhangcd060d92018-08-20 20:34:26 -07001481 },
Adrian Roos487c6462019-10-10 12:14:22 +02001482 api_lint: {
1483 enabled: true,
1484 new_since: ":last-released-system-api",
1485 baseline_file: "api/system-lint-baseline.txt",
1486 },
Nan Zhange5612602018-08-16 16:16:00 -07001487 },
Nan Zhang81f29f52018-09-17 14:33:08 -07001488 jdiff_enabled: true,
Nan Zhang4212eb12018-04-25 17:23:33 -07001489}
1490
Nan Zhang894c9ec2018-09-10 18:58:39 -07001491droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001492 name: "test-api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001493 defaults: ["metalava-api-stubs-default"],
Nan Zhang4d3f5012018-08-07 13:40:33 -07001494 api_tag_name: "TEST",
Nan Zhang4212eb12018-04-25 17:23:33 -07001495 api_filename: "test-api.txt",
1496 removed_api_filename: "test-removed.txt",
1497 arg_files: [
1498 "core/res/AndroidManifest.xml",
1499 ],
1500 args: metalava_framework_docs_args + " --show-annotation android.annotation.TestApi",
Nan Zhange5612602018-08-16 16:16:00 -07001501 check_api: {
1502 current: {
1503 api_file: "api/test-current.txt",
1504 removed_api_file: "api/test-removed.txt",
1505 },
Adrian Roosd1715e82019-10-31 16:54:47 +01001506 api_lint: {
1507 enabled: true,
1508 baseline_file: "api/test-lint-baseline.txt",
1509 },
Nan Zhange5612602018-08-16 16:16:00 -07001510 },
Nan Zhang4212eb12018-04-25 17:23:33 -07001511}
Nan Zhangaf251302018-08-30 10:59:51 -07001512
1513filegroup {
1514 name: "framework-annotation-nonnull-srcs",
1515 srcs: [
1516 "core/java/android/annotation/NonNull.java",
1517 ],
1518}
Insun Kang06b25ae2018-11-20 10:05:44 +09001519
1520filegroup {
1521 name: "framework-media-annotation-srcs",
1522 srcs: [
1523 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001524 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001525 "core/java/android/annotation/DrawableRes.java",
1526 "core/java/android/annotation/IntDef.java",
1527 "core/java/android/annotation/LongDef.java",
1528 "core/java/android/annotation/NonNull.java",
1529 "core/java/android/annotation/Nullable.java",
1530 "core/java/android/annotation/RequiresPermission.java",
1531 "core/java/android/annotation/SdkConstant.java",
1532 "core/java/android/annotation/StringDef.java",
Sungsoo Limbb3b4012019-01-23 13:17:53 +09001533 "core/java/android/annotation/SystemApi.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001534 "core/java/android/annotation/TestApi.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001535 "core/java/android/annotation/UnsupportedAppUsage.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001536 "core/java/com/android/internal/annotations/GuardedBy.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001537 ],
1538}
1539
Andrei Onea7a2985c2019-02-18 15:28:35 +00001540// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1541// annotations to private apis
1542aidl_mapping {
1543 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001544 srcs: [":framework-all-sources"],
Tobias Thiererbc050342019-05-23 16:20:12 +01001545 output: "framework-aidl-mappings.txt",
Dario Freni2ce84342019-04-26 13:06:22 +01001546}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001547
1548genrule {
1549 name: "framework-annotation-proc-index",
1550 srcs: [":framework-annotation-proc"],
1551 cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)",
1552 out: ["unsupportedappusage_index.csv"],
1553 dist: {
1554 targets: ["droidcore"],
1555 },
1556}
Chen Xu0e9d6752019-10-08 18:39:03 -07001557
1558// Avoid including Parcelable classes as we don't want to have two copies of
1559// Parcelable cross the process.
1560filegroup {
1561 name: "framework-cellbroadcast-shared-srcs",
1562 srcs: [
1563 "core/java/android/util/LocalLog.java",
1564 "core/java/android/util/Slog.java",
1565 "core/java/com/android/internal/util/State.java",
1566 "core/java/com/android/internal/util/StateMachine.java",
1567 ],
1568}