blob: 77f4d1119d7390c9fc2b718c2432c27954d6f203 [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 Satayev3cc3fa42019-08-02 16:42:07 +010028filegroup {
Jiyong Parkb3609312019-08-16 21:17:14 +090029 name: "framework-core-sources",
Artur Satayev3cc3fa42019-08-02 16:42:07 +010030 srcs: [
Artur Satayev3cc3fa42019-08-02 16:42:07 +010031 "core/java/**/*.java",
Jiyong Parkb3609312019-08-16 21:17:14 +090032 "core/java/**/*.aidl",
Artur Satayev3cc3fa42019-08-02 16:42:07 +010033 ],
Jiyong Parkb3609312019-08-16 21:17:14 +090034 path: "core/java",
Artur Satayev3cc3fa42019-08-02 16:42:07 +010035}
36
Jiyong Parkb3609312019-08-16 21:17:14 +090037filegroup {
38 name: "framework-drm-sources",
39 srcs: [
40 "drm/java/**/*.java",
41 ],
42 path: "drm/java",
43}
Jiyong Park1cc95662019-08-07 22:45:07 +090044
Jiyong Parkb3609312019-08-16 21:17:14 +090045filegroup {
46 name: "framework-graphics-sources",
47 srcs: [
48 "graphics/java/**/*.java",
49 "graphics/java/**/*.aidl",
50 ],
51 path: "graphics/java",
52}
53
54filegroup {
55 name: "framework-keystore-sources",
56 srcs: [
57 "keystore/java/**/*.java",
58 "keystore/java/**/*.aidl",
59 ],
60 path: "keystore/java",
61}
62
63filegroup {
64 name: "framework-location-sources",
65 srcs: [
66 "location/java/**/*.java",
67 "location/java/**/*.aidl",
68 ],
69 path: "location/java",
70}
71
72filegroup {
73 name: "framework-lowpan-sources",
74 srcs: [
75 "lowpan/java/**/*.java",
76 "lowpan/java/**/*.aidl",
77 ],
78 path: "lowpan/java",
79}
80
81filegroup {
82 name: "framework-media-sources",
83 srcs: [
84 "media/java/**/*.java",
85 "media/java/**/*.aidl",
86 ],
87 path: "media/java",
88}
89
90filegroup {
91 name: "framework-mca-effect-sources",
92 srcs: [
93 "media/mca/effect/java/**/*.java",
94 ],
95 path: "media/mca/effect/java",
96}
97
98filegroup {
99 name: "framework-mca-filterfw-sources",
100 srcs: [
101 "media/mca/filterfw/java/**/*.java",
102 ],
103 path: "media/mca/filterfw/java",
104}
105
106filegroup {
107 name: "framework-mca-filterpacks-sources",
108 srcs: [
109 "media/mca/filterpacks/java/**/*.java",
110 ],
111 path: "media/mca/filterpacks/java",
112}
113
114filegroup {
Tobias Thierer878c77b2019-08-18 15:19:45 +0100115 name: "framework-mime-sources",
116 srcs: [
117 "mime/java/**/*.java",
118 ],
119 path: "mime/java",
120}
121
122filegroup {
Jiyong Parkb3609312019-08-16 21:17:14 +0900123 name: "framework-opengl-sources",
124 srcs: [
125 "opengl/java/**/*.java",
126 ],
127 path: "opengl/java",
128}
129
130filegroup {
131 name: "framework-rs-sources",
132 srcs: [
133 "rs/java/**/*.java",
134 ],
135 path: "rs/java",
136}
137
138filegroup {
139 name: "framework-sax-sources",
140 srcs: [
141 "sax/java/**/*.java",
142 ],
143 path: "sax/java",
144}
145
146filegroup {
147 name: "framework-telecomm-sources",
148 srcs: [
149 "telecomm/java/**/*.java",
150 "telecomm/java/**/*.aidl",
151 ],
152 path: "telecomm/java",
153}
154
155filegroup {
156 name: "framework-telephony-sources",
157 srcs: [
158 "telephony/java/**/*.java",
159 "telephony/java/**/*.aidl",
160 ],
161 path: "telephony/java",
162}
163
164filegroup {
165 name: "framework-wifi-sources",
166 srcs: [
167 "wifi/java/**/*.java",
168 "wifi/java/**/*.aidl",
169 ],
170 path: "wifi/java",
171}
172
Jiyong Park20426532019-08-19 15:24:49 +0900173filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900174 name: "framework-non-updatable-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900175 srcs: [
176 // Java/AIDL sources under frameworks/base
177 ":framework-core-sources",
178 ":framework-drm-sources",
179 ":framework-graphics-sources",
180 ":framework-keystore-sources",
181 ":framework-location-sources",
182 ":framework-lowpan-sources",
183 ":framework-media-sources",
184 ":framework-mca-effect-sources",
185 ":framework-mca-filterfw-sources",
186 ":framework-mca-filterpacks-sources",
Tobias Thierer878c77b2019-08-18 15:19:45 +0100187 ":framework-mime-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900188 ":framework-opengl-sources",
189 ":framework-rs-sources",
190 ":framework-sax-sources",
191 ":framework-telecomm-sources",
192 ":framework-telephony-sources",
193 ":framework-wifi-sources",
194 ":PacProcessor-aidl-sources",
195 ":ProxyHandler-aidl-sources",
Jiyong Parkb3609312019-08-16 21:17:14 +0900196
Jiyong Park20426532019-08-19 15:24:49 +0900197 // AIDL sources from external directories
198 ":dumpstate_aidl",
199 ":framework_native_aidl",
200 ":gatekeeper_aidl",
201 ":gsiservice_aidl",
202 ":incidentcompanion_aidl",
203 ":installd_aidl",
204 ":keystore_aidl",
205 ":libaudioclient_aidl",
206 ":libbinder_aidl",
207 ":libbluetooth-binder-aidl",
208 ":libcamera_client_aidl",
209 ":libcamera_client_framework_aidl",
210 ":libupdate_engine_aidl",
211 ":storaged_aidl",
212 ":vold_aidl",
Jiyong Park1cc95662019-08-07 22:45:07 +0900213
Jiyong Park20426532019-08-19 15:24:49 +0900214 // For the generated R.java and Manifest.java
215 ":framework-res{.aapt.srcjar}",
216
217 // etc.
218 ":framework-javastream-protos",
219 ":framework-statslog-gen",
220 ],
221}
Jiyong Park1cc95662019-08-07 22:45:07 +0900222
Jiyong Parkae9972b2019-09-15 20:19:02 +0900223filegroup {
224 name: "framework-all-sources",
225 srcs: [
226 ":framework-non-updatable-sources",
227 ":updatable-media-srcs",
228 ],
229}
230
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100231java_defaults {
Makoto Onuki62242c42019-08-05 12:54:20 -0700232 name: "framework-aidl-export-defaults",
Makoto Onuki62242c42019-08-05 12:54:20 -0700233 aidl: {
Jiyong Parkb3609312019-08-16 21:17:14 +0900234 export_include_dirs: [
235 "core/java",
236 "drm/java",
237 "graphics/java",
238 "keystore/java",
239 "location/java",
240 "lowpan/java",
241 "media/java",
242 "media/apex/java",
243 "media/mca/effect/java",
244 "media/mca/filterfw/java",
245 "media/mca/filterpacks/java",
246 "opengl/java",
247 "rs/java",
248 "sax/java",
249 "telecomm/java",
250 "telephony/java",
251 "wifi/java",
252 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700253 },
Adam Pardyl50207032019-09-09 14:37:27 +0200254
255 required: [
Adam Pardyl0f1b3d42019-08-19 15:24:11 +0200256 // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly.
Adam Pardyl50207032019-09-09 14:37:27 +0200257 "gps_debug.conf",
Adam Pardyl0f1b3d42019-08-19 15:24:11 +0200258 "protolog.conf.json.gz",
Adam Pardyl50207032019-09-09 14:37:27 +0200259 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700260}
261
Jiyong Park20426532019-08-19 15:24:49 +0900262// Collection of classes that are generated from non-Java files that are not listed in
263// framework_srcs. These have no or very limited dependency to the framework.
264java_library {
265 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800266 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100267 "apex_aidl_interface-java",
Kalesh Singh759af322019-06-19 12:17:43 -0700268 "suspend_control_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800269 "framework-protos",
Peiyong Lin9ca1dd82019-01-12 17:44:29 -0800270 "game-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800271 "android.hidl.base-V1.0-java",
Henry Fang5215ac92019-02-01 19:24:55 +0000272 "android.hardware.cas-V1.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800273 "android.hardware.cas-V1.0-java",
274 "android.hardware.contexthub-V1.0-java",
275 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800276 "android.hardware.radio-V1.0-java",
277 "android.hardware.radio-V1.1-java",
278 "android.hardware.radio-V1.2-java",
279 "android.hardware.radio-V1.3-java",
280 "android.hardware.radio-V1.4-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800281 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800282 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700283 "android.hardware.thermal-V1.1-java",
284 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800285 "android.hardware.tv.input-V1.0-java-constants",
286 "android.hardware.usb-V1.0-java-constants",
287 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800288 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800289 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000290 "android.hardware.vibrator-V1.0-java",
291 "android.hardware.vibrator-V1.1-java",
292 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900293 "android.hardware.vibrator-V1.3-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800294 "android.hardware.wifi-V1.0-java-constants",
arangelov1ab61492018-11-22 13:56:50 +0000295 "devicepolicyprotosnano",
Inseob Kim4fe9f0f2019-07-30 18:23:26 +0900296
297 "com.android.sysprop.apex",
298 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800299 ],
Jiyong Park20426532019-08-19 15:24:49 +0900300 sdk_version: "core_platform",
301 installable: false,
302}
303
304java_defaults {
305 name: "framework-defaults",
306 defaults: ["framework-aidl-export-defaults"],
307 installable: true,
308
Jiyong Park20426532019-08-19 15:24:49 +0900309 aidl: {
310 generate_get_transaction_name: true,
311 },
312
Jiyong Parkae9972b2019-09-15 20:19:02 +0900313 srcs: ["core/java/**/*.logtags"],
314
Jiyong Park20426532019-08-19 15:24:49 +0900315 exclude_srcs: [
316 // See comment on framework-atb-backward-compatibility module below
Winson Chiu8e18a0a2019-09-30 20:37:25 +0000317 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
Jiyong Park20426532019-08-19 15:24:49 +0900318 ],
319
320 sdk_version: "core_platform",
321 libs: [
322 "ext",
323 "updatable_media_stubs",
324 ],
325
326 jarjar_rules: ":framework-jarjar-rules",
327
Tobias Thierer878c77b2019-08-18 15:19:45 +0100328 static_libs: [
329 "framework-internal-utils",
330 "mimemap",
331 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800332
Colin Crosscf3a0b52017-11-16 00:15:28 -0800333 dxflags: [
334 "--core-library",
335 "--multi-dex",
336 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100337
Eugene Susla3b2fe612019-08-06 18:47:14 -0700338 plugins: [
339 "view-inspector-annotation-processor",
340 "staledataclass-annotation-processor",
341 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100342}
343
Colin Crossbc2dc312018-10-26 22:34:06 -0700344filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800345 name: "framework-jarjar-rules",
346 srcs: ["jarjar_rules_hidl.txt"],
347}
348
349filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700350 name: "libincident_aidl",
351 srcs: [
352 "core/java/android/os/IIncidentManager.aidl",
353 "core/java/android/os/IIncidentReportStatusListener.aidl",
354 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700355 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700356}
357
358filegroup {
359 name: "statsd_aidl",
360 srcs: [
361 "core/java/android/os/IStatsCompanionService.aidl",
362 "core/java/android/os/IStatsManager.aidl",
Tej Singha0c89dd2019-01-25 16:39:18 -0800363 "core/java/android/os/IStatsPullerCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700364 ],
Dan Willemsena38ff9f2019-06-11 10:56:01 -0700365 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700366}
367
Michael Wrightc390fbe2018-12-12 19:45:09 +0000368filegroup {
369 name: "libvibrator_aidl",
370 srcs: [
371 "core/java/android/os/IExternalVibrationController.aidl",
372 "core/java/android/os/IExternalVibratorService.aidl",
373 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700374 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000375}
376
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100377java_library {
Makoto Onuki62242c42019-08-05 12:54:20 -0700378 name: "framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100379 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900380 srcs: [":framework-non-updatable-sources"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100381 javac_shard_size: 150,
382}
383
384java_library {
Makoto Onuki62242c42019-08-05 12:54:20 -0700385 name: "framework",
386 defaults: ["framework-aidl-export-defaults"],
387 installable: true,
388 static_libs: [
389 "framework-minus-apex",
390 "jobscheduler-framework",
391 ],
atrostaec9bc12019-08-16 18:14:09 +0100392 required: [
393 "framework-platform-compat-config",
394 "libcore-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100395 "services-platform-compat-config",
atrostaec9bc12019-08-16 18:14:09 +0100396 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700397 sdk_version: "core_platform",
398}
399
400java_library {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900401 name: "framework-all",
402 defaults: ["framework-defaults"],
403 srcs: [":framework-all-sources"],
404 installable: false,
405}
406
407java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100408 name: "framework-annotation-proc",
409 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900410 srcs: [":framework-all-sources"],
Anna Trostanetski97088e92019-06-26 14:47:58 +0100411 installable: false,
atrostb9c34502019-08-05 12:22:18 +0100412 plugins: [
413 "unsupportedappusage-annotation-processor",
414 "compat-changeid-annotation-processor",
415 ],
416}
417
418platform_compat_config {
419 name: "framework-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100420 src: ":framework-annotation-proc",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100421}
422
Paul Duffin521975802019-06-05 10:35:08 +0100423// A library including just UnsupportedAppUsage.java classes.
424//
425// Provided for target so that libraries can use it without depending on
426// the whole of framework or the core platform API.
427//
428// Built for host so that the annotation processor can also use this annotation.
429java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100430 name: "unsupportedappusage-annotation",
Paul Duffin521975802019-06-05 10:35:08 +0100431 host_supported: true,
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100432 srcs: [
433 "core/java/android/annotation/IntDef.java",
434 "core/java/android/annotation/UnsupportedAppUsage.java",
Andrei Onea5e226142019-05-08 13:50:16 +0100435 ":unsupportedappusage_annotation_files",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100436 ],
Paul Duffin521975802019-06-05 10:35:08 +0100437
438 sdk_version: "core_current",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800439}
440
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000441// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000442// android.test.base library has been removed and which provides support for
443// maintaining backwards compatibility for APKs that target pre-P and depend on
444// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
445// specified on the build command line.
446java_library {
447 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000448 installable: true,
Paul Duffina3b69212018-01-25 09:58:32 +0000449 srcs: [
Winson Chiu8e18a0a2019-09-30 20:37:25 +0000450 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
Paul Duffina3b69212018-01-25 09:58:32 +0000451 ],
452}
453
Colin Crosscf3a0b52017-11-16 00:15:28 -0800454genrule {
455 name: "framework-statslog-gen",
456 tools: ["stats-log-api-gen"],
457 cmd: "$(location stats-log-api-gen) --java $(out)",
David Chen0a368b22017-12-06 16:28:16 -0800458 out: ["android/util/StatsLogInternal.java"],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800459}
460
461gensrcs {
462 name: "framework-javastream-protos",
463 depfile: true,
464
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100465 tool_files: ["tools/genprotos.sh"],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800466 tools: [
467 "aprotoc",
468 "protoc-gen-javastream",
469 "soong_zip",
470 ],
471
Alex Light159799d2018-08-08 07:05:19 -0700472 // TODO This should not be needed. If you set a custom OUT_DIR or OUT_DIR_COMMON_BASE you can
473 // end up with a command that is extremely long, potentially going passed MAX_ARG_STRLEN due to
474 // the way sbox rewrites the command. See b/70221552.
475 cmd: "$(location tools/genprotos.sh) " +
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100476 " $(location aprotoc) " +
477 " $(location protoc-gen-javastream) " +
478 " $(location soong_zip) " +
479 " $(genDir) " +
480 " $(depfile) " +
481 " $(in) " +
482 " $(out)",
Yi Jin437aa6e2018-01-10 11:34:26 -0800483 srcs: [
484 "core/proto/**/*.proto",
485 "libs/incident/**/*.proto",
486 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800487 output_extension: "srcjar",
488}
489
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900490filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900491 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900492 srcs: [
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900493 "core/java/android/annotation/NonNull.java",
494 "core/java/android/annotation/Nullable.java",
495 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900496 "core/java/android/annotation/IntRange.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900497 "core/java/android/annotation/UnsupportedAppUsage.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900498 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900499 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100500 ],
Chalard Jean95213512019-01-30 21:04:58 +0900501}
502
503filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900504 name: "framework-networkstack-shared-srcs",
505 srcs: [
506 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900507 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900508 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900509 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900510 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900511 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900512 "core/java/com/android/internal/util/IState.java",
513 "core/java/com/android/internal/util/MessageUtils.java",
514 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900515 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900516 "core/java/com/android/internal/util/State.java",
517 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900518 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900519 "core/java/com/android/internal/util/WakeupMessage.java",
520 "core/java/android/net/shared/*.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100521 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900522}
523
Colin Crossd8e02252017-10-02 17:14:22 -0700524// Build ext.jar
525// ============================================================
526java_library {
527 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700528 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100529 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700530 static_libs: [
531 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700532 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000533 "rappor",
Tony Mak64c4cb22018-09-25 13:38:28 +0100534 "libtextclassifier-java",
535 ],
536 required: [
537 "libtextclassifier",
Colin Crossd8e02252017-10-02 17:14:22 -0700538 ],
539 dxflags: ["--core-library"],
540}
541
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700542// ==== java proto host library ==============================
543java_library_host {
544 name: "platformprotos",
545 srcs: [
546 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700547 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700548 "core/proto/**/*.proto",
549 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700550 ],
551 proto: {
552 include_dirs: ["external/protobuf/src"],
553 type: "full",
554 },
555 errorprone: {
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100556 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700557 },
558}
559
Colin Cross43214162018-08-20 13:57:24 -0700560// ==== java proto device library (for test only) ==============================
561java_library {
562 name: "platformprotosnano",
563 proto: {
564 type: "nano",
565 output_params: ["store_unknown_fields=true"],
566 include_dirs: ["external/protobuf/src"],
567 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000568 exclude_srcs: [
569 "core/proto/android/privacy.proto",
570 "core/proto/android/section.proto",
571 ],
Colin Cross43214162018-08-20 13:57:24 -0700572 sdk_version: "current",
573 srcs: [
574 "core/proto/**/*.proto",
575 "libs/incident/proto/android/os/**/*.proto",
576 ],
577}
578
579// ==== java proto device library (for test only) ==============================
580java_library {
581 name: "platformprotoslite",
582 proto: {
583 type: "lite",
584 include_dirs: ["external/protobuf/src"],
585 },
586
587 srcs: [
588 "core/proto/**/*.proto",
589 "libs/incident/proto/android/os/**/*.proto",
590 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000591 exclude_srcs: [
592 "core/proto/android/privacy.proto",
593 "core/proto/android/section.proto",
594 ],
Colin Cross43214162018-08-20 13:57:24 -0700595 // Protos have lots of MissingOverride and similar.
596 errorprone: {
597 javacflags: ["-XepDisableAllChecks"],
598 },
599}
600
Colin Crossaa0d4352017-05-02 14:14:56 -0700601// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000602cc_defaults {
603 name: "libplatformprotos-defaults",
604
Colin Crossaa0d4352017-05-02 14:14:56 -0700605 proto: {
606 export_proto_headers: true,
607 include_dirs: ["external/protobuf/src"],
608 },
609
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700610 cflags: [
611 "-Wall",
612 "-Werror",
613 "-Wno-unused-parameter",
614 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800615
616 srcs: [
617 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800618 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000619}
620
621cc_library {
622 name: "libplatformprotos",
623 defaults: ["libplatformprotos-defaults"],
624 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800625
Colin Crossaa0d4352017-05-02 14:14:56 -0700626 target: {
627 host: {
628 proto: {
629 type: "full",
630 },
631 },
632 android: {
633 proto: {
634 type: "lite",
635 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000636 shared_libs: [
637 "libprotobuf-cpp-lite",
638 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700639 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700640 enabled: false,
641 },
642 },
643 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700644}
645
Joe Onorato9bd5db72019-04-03 18:19:43 -0700646// This library is meant for vendor code that needs to output protobuf. It links
647// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
648// binary compatibility.
649cc_library {
650 name: "libplatformprotos-static",
651 defaults: ["libplatformprotos-defaults"],
652 host_supported: false,
653
654 // This is okay because this library is only built as a static library. The C++
655 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
656 // but is not authorized to be used outside of debugging.
657 vendor_available: true,
658
659 target: {
660 android: {
661 proto: {
662 type: "lite",
663 },
664 static_libs: [
665 "libprotobuf-cpp-lite",
666 ],
667 shared: {
668 enabled: false,
669 },
670 },
671 },
672}
673
674
Joe Onorato99598ee2019-02-11 15:55:13 +0000675// This is the full proto version of libplatformprotos. It may only
676// be used by test code that is not shipped on the device.
677cc_library {
678 name: "libplatformprotos-test",
679 defaults: ["libplatformprotos-defaults"],
680 host_supported: false,
681
682 target: {
683 android: {
684 proto: {
685 type: "full",
686 },
687 shared: {
688 enabled: false,
689 },
690 },
691 },
692}
693
694
Yi Jin04625ad2017-10-17 18:29:33 -0700695gensrcs {
696 name: "gen-platform-proto-constants",
697 depfile: true,
698
699 tools: [
700 "aprotoc",
701 "protoc-gen-cppstream",
702 ],
703
704 srcs: [
Kweku Adamseadd1232018-02-05 16:45:13 -0800705 "core/proto/android/os/backtrace.proto",
Kweku Adams59e6fd72017-12-27 15:48:14 -0800706 "core/proto/android/os/batterytype.proto",
Yi Jin0eb22342017-11-06 17:17:27 -0800707 "core/proto/android/os/cpufreq.proto",
Yi Jine2f7f792017-11-01 17:08:27 -0700708 "core/proto/android/os/cpuinfo.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700709 "core/proto/android/os/data.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700710 "core/proto/android/os/kernelwake.proto",
711 "core/proto/android/os/pagetypeinfo.proto",
712 "core/proto/android/os/procrank.proto",
Kweku Adamsf5cc5752017-12-20 17:59:17 -0800713 "core/proto/android/os/ps.proto",
Yi Jin0dfa7522017-11-06 17:43:47 -0800714 "core/proto/android/os/system_properties.proto",
Yi Jin3c034c92017-12-22 17:36:47 -0800715 "core/proto/android/util/event_log_tags.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700716 "core/proto/android/util/log.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700717 ],
718
719 // Append protoc-gen-cppstream tool's PATH otherwise aprotoc can't find the plugin tool
Yi Jin3c034c92017-12-22 17:36:47 -0800720 cmd: "mkdir -p $(genDir) " +
721 "&& $(location aprotoc) " +
722 " --plugin=$(location protoc-gen-cppstream) " +
723 " --dependency_out=$(depfile) " +
724 " --cppstream_out=$(genDir) " +
725 " -Iexternal/protobuf/src " +
726 " -I . " +
727 " $(in)",
Yi Jin04625ad2017-10-17 18:29:33 -0700728
Logan Chien71ddfea2018-02-27 16:43:50 +0800729 output_extension: "proto.h",
Yi Jin04625ad2017-10-17 18:29:33 -0700730}
731
Joe Onorato99598ee2019-02-11 15:55:13 +0000732
Dan Albert2a8d9c22016-09-23 15:55:49 -0700733subdirs = [
Yi Jin0a3406f2017-06-22 19:23:11 -0700734 "cmds/*",
Jeff Sharkey0c686e72017-10-23 16:04:31 -0600735 "core/*",
Colin Cross4f8d9e62016-12-01 15:55:00 -0800736 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -0700737 "media/*",
Colin Cross747e7c12017-10-24 16:21:22 -0700738 "proto",
Fabien Sanglard19160202017-01-12 14:24:31 -0500739 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700740 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -0700741 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700742]
Svetoslav Ganov74c99832016-12-05 20:07:20 -0800743
744optional_subdirs = [
745 "core/tests/utiltests/jni",
746]
Steven Morelandeddafe92017-10-02 16:58:41 -0700747
Colin Crossa2b78a72018-03-29 13:31:04 -0700748// TODO(b/77285514): remove this once the last few hidl interfaces have been
749// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -0700750java_library {
751 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +0100752 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -0700753
754 srcs: [
755 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800756 "core/java/android/annotation/IntDef.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700757 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -0800758 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800759 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -0800760 "core/java/android/annotation/TestApi.java",
Andrei Onea24ec3212019-03-15 17:35:05 +0000761 "core/java/android/annotation/UnsupportedAppUsage.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700762 "core/java/android/os/HwBinder.java",
763 "core/java/android/os/HwBlob.java",
764 "core/java/android/os/HwParcel.java",
765 "core/java/android/os/IHwBinder.java",
766 "core/java/android/os/IHwInterface.java",
767 "core/java/android/os/DeadObjectException.java",
768 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -0700769 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700770 "core/java/android/os/RemoteException.java",
771 "core/java/android/util/AndroidException.java",
772 ],
773
774 dxflags: ["--core-library"],
775 installable: false,
776}
Nan Zhang2db709d2017-11-08 20:48:46 -0800777
778python_defaults {
779 name: "base_default",
780 version: {
781 py2: {
782 enabled: true,
783 embedded_launcher: true,
784 },
785 py3: {
786 enabled: false,
787 embedded_launcher: false,
788 },
789 },
790}
791
792python_binary_host {
793 name: "fontchain_linter",
794 defaults: ["base_default"],
795 main: "tools/fonts/fontchain_linter.py",
796 srcs: [
797 "tools/fonts/fontchain_linter.py",
798 ],
799 libs: [
800 "fontTools",
801 ],
802}
Nan Zhang172875b2018-02-27 11:24:03 -0800803
Jiyong Park20426532019-08-19 15:24:49 +0900804// TODO: Don't rely on this list by switching package.html into package-info.java
Nan Zhang172875b2018-02-27 11:24:03 -0800805frameworks_base_subdirs = [
806 "core/java",
807 "graphics/java",
808 "location/java",
809 "media/java",
810 "media/mca/effect/java",
811 "media/mca/filterfw/java",
812 "media/mca/filterpacks/java",
813 "drm/java",
814 "opengl/java",
815 "sax/java",
816 "telecomm/java",
817 "telephony/java",
818 "wifi/java",
819 "lowpan/java",
820 "keystore/java",
821 "rs/java",
822]
823
Paul Duffin0440e1f2019-02-11 16:13:25 +0000824// Make the api/current.txt file available for use by modules in other
825// directories.
826filegroup {
827 name: "frameworks-base-api-current.txt",
828 srcs: [
829 "api/current.txt",
830 ],
831}
832
Paul Duffincd35de32019-05-30 15:12:47 +0100833// Make the api/system-current.txt file available for use by modules in other
834// directories.
835filegroup {
836 name: "frameworks-base-api-system-current.txt",
837 srcs: [
838 "api/system-current.txt",
839 ],
840}
841
842// Make the api/system-removed.txt file available for use by modules in other
843// directories.
844filegroup {
845 name: "frameworks-base-api-system-removed.txt",
846 srcs: [
847 "api/system-removed.txt",
848 ],
849}
850
Nan Zhang7764a4b2018-08-22 11:27:31 -0700851framework_docs_only_args = " -android -manifest $(location core/res/AndroidManifest.xml) " +
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100852 "-werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 " +
853 "-overview $(location core/java/overview.html) " +
854 // Federate Support Library references against local API file.
855 "-federate SupportLib https://developer.android.com " +
856 "-federationapi SupportLib $(location :current-support-api) "
Nan Zhang172875b2018-02-27 11:24:03 -0800857
Nan Zhang7764a4b2018-08-22 11:27:31 -0700858framework_docs_only_libs = [
Nan Zhang7764a4b2018-08-22 11:27:31 -0700859 "voip-common",
860 "android.test.mock",
861 "android-support-annotations",
862 "android-support-compat",
863 "android-support-core-ui",
864 "android-support-core-utils",
Nan Zhang7764a4b2018-08-22 11:27:31 -0700865 "android-support-design",
866 "android-support-dynamic-animation",
867 "android-support-exifinterface",
868 "android-support-fragment",
869 "android-support-media-compat",
870 "android-support-percent",
Nan Zhang7764a4b2018-08-22 11:27:31 -0700871 "android-support-transition",
Nan Zhang7764a4b2018-08-22 11:27:31 -0700872 "android-support-v7-cardview",
873 "android-support-v7-gridlayout",
874 "android-support-v7-mediarouter",
875 "android-support-v7-palette",
876 "android-support-v7-preference",
877 "android-support-v13",
878 "android-support-v14-preference",
879 "android-support-v17-leanback",
Nan Zhang7764a4b2018-08-22 11:27:31 -0700880 "android-support-vectordrawable",
881 "android-support-animatedvectordrawable",
882 "android-support-v7-appcompat",
883 "android-support-v7-recyclerview",
Nan Zhang7764a4b2018-08-22 11:27:31 -0700884 "android-support-v8-renderscript",
885 "android-support-multidex",
886 "android-support-multidex-instrumentation",
887]
888
889metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
890 "--hide-package com.android.okhttp " +
891 "--hide-package com.android.org.conscrypt --hide-package com.android.server " +
Adrian Roosc6e2fc82018-12-12 15:08:44 +0100892 "--error UnhiddenSystemApi " +
Nan Zhang7764a4b2018-08-22 11:27:31 -0700893 "--hide RequiresPermission " +
894 "--hide MissingPermission --hide BroadcastBehavior " +
895 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
Tobias Thierer8f559412019-05-22 20:17:49 +0100896 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo "
897
898// http://b/129765390 Rewrite links to "platform" or "technotes" folders
899// which are siblings (and thus outside of) {@docRoot}.
900//
901// We have to escape \ as \\ and $ as $$ here because they get resolved by
902// different layers of the build tooling. The arguments are wrapped in '' so
903// that the shell doesn't add yet another level of escaping.
904metalava_framework_docs_args += " --replace-documentation " +
905 // packages whose descendants to apply replacement to (all packages from
906 // libcore/ojluni/src/main/java that contribute to documentation).
907 "com.sun:java:javax:jdk.net:sun " +
908 // regex of the string to replace
909 "'(<a\\s+href\\s?=[\\*\\s]*\")(?:(?:\\{@docRoot\\}/\\.\\./)|(?:(?:\\.\\./)+))((?:platform|technotes).+)\">' " +
910 // replacement (with $1, $2 backreferences to the regex groups)
911 "'$$1https://docs.oracle.com/javase/8/docs/$$2\">' "
Nan Zhang7764a4b2018-08-22 11:27:31 -0700912
Jiyong Parkae9972b2019-09-15 20:19:02 +0900913packages_to_document = [
914 "android",
Jiyong Parkb1d27012019-09-17 14:51:28 +0900915 "dalvik",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900916 "java",
917 "javax",
Jiyong Parkb1d27012019-09-17 14:51:28 +0900918 "junit",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900919 "org.apache.http",
920 "org.json",
921 "org.w3c.dom",
922 "org.xml.sax",
923 "org.xmlpull",
924]
925
Nan Zhang7764a4b2018-08-22 11:27:31 -0700926stubs_defaults {
927 name: "framework-doc-stubs-default",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000928 srcs: [
Jiyong Parkae9972b2019-09-15 20:19:02 +0900929 ":framework-non-updatable-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900930 "core/java/**/*.logtags",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000931 "test-base/src/**/*.java",
932 ":opt-telephony-srcs",
933 ":opt-net-voip-srcs",
Neil Fuller3b1b7032019-02-26 12:00:38 +0000934 ":core_public_api_files",
Jiyong Parkd2411f72019-08-20 20:48:47 +0900935 ":updatable-media-srcs",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000936 "test-mock/src/**/*.java",
937 "test-runner/src/**/*.java",
Makoto Onuki62242c42019-08-05 12:54:20 -0700938 ":jobscheduler-framework-source",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000939 ],
Nan Zhang7764a4b2018-08-22 11:27:31 -0700940 libs: framework_docs_only_libs,
Nan Zhang3e15ba82018-07-26 18:41:12 +0000941 local_sourcepaths: frameworks_base_subdirs,
Nan Zhang7764a4b2018-08-22 11:27:31 -0700942 create_doc_stubs: true,
943 annotations_enabled: true,
944 api_levels_annotations_enabled: true,
945 api_levels_annotations_dirs: [
946 "sdk-dir",
947 "api-versions-jars-dir",
948 ],
Jeff Gaston1b511422019-09-20 14:37:00 -0400949 previous_api: ":last-released-public-api-for-metalava-annotations",
Nan Zhang7764a4b2018-08-22 11:27:31 -0700950 merge_annotations_dirs: [
951 "metalava-manual",
Pete Gillinff978192018-09-17 15:45:33 +0100952 "ojluni-annotated-sdk-stubs",
Nan Zhang7764a4b2018-08-22 11:27:31 -0700953 ],
954}
955
956doc_defaults {
957 name: "framework-docs-default",
Nan Zhangb03396e2018-10-11 18:06:10 -0700958 libs: framework_docs_only_libs +
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100959 ["stub-annotations"],
Nan Zhang3e15ba82018-07-26 18:41:12 +0000960 html_dirs: [
961 "docs/html",
962 ],
963 knowntags: [
964 "docs/knowntags.txt",
965 ":known-oj-tags",
966 ],
967 custom_template: "droiddoc-templates-sdk",
968 resourcesdir: "docs/html/reference/images/",
969 resourcesoutdir: "reference/android/images/",
970 hdf: [
971 "dac true",
972 "sdk.codename O",
973 "sdk.preview.version 1",
974 "sdk.version 7.0",
975 "sdk.rel.id 1",
976 "sdk.preview 0",
977 ],
978 arg_files: [
979 "core/res/AndroidManifest.xml",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000980 "core/java/overview.html",
981 ":current-support-api",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000982 ],
983 create_stubs: false,
984}
985
Tiem Song730c19b2019-08-26 11:27:27 -0700986doc_defaults {
987 name: "framework-dokka-docs-default",
988 create_stubs: false,
989}
990
Nan Zhang894c9ec2018-09-10 18:58:39 -0700991stubs_defaults {
Nan Zhangd25ad462018-08-22 10:48:15 -0700992 name: "metalava-api-stubs-default",
993 srcs: [
Jiyong Parkae9972b2019-09-15 20:19:02 +0900994 ":framework-non-updatable-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900995 "core/java/**/*.logtags",
Nan Zhangd25ad462018-08-22 10:48:15 -0700996 ":opt-telephony-srcs",
997 ":opt-net-voip-srcs",
Neil Fuller3b1b7032019-02-26 12:00:38 +0000998 ":core_public_api_files",
Jiyong Parkd2411f72019-08-20 20:48:47 +0900999 ":updatable-media-srcs",
Makoto Onuki62242c42019-08-05 12:54:20 -07001000 ":jobscheduler-framework-source",
Nan Zhangd25ad462018-08-22 10:48:15 -07001001 ],
Jiyong Park20426532019-08-19 15:24:49 +09001002 libs: ["framework-internal-utils"],
Nan Zhangd25ad462018-08-22 10:48:15 -07001003 local_sourcepaths: frameworks_base_subdirs,
1004 installable: false,
Nan Zhang894c9ec2018-09-10 18:58:39 -07001005 annotations_enabled: true,
Jeff Gaston1b511422019-09-20 14:37:00 -04001006 previous_api: ":last-released-public-api-for-metalava-annotations",
Nan Zhang894c9ec2018-09-10 18:58:39 -07001007 merge_annotations_dirs: [
Nan Zhangd25ad462018-08-22 10:48:15 -07001008 "metalava-manual",
Pete Gillinff978192018-09-17 15:45:33 +01001009 "ojluni-annotated-sdk-stubs",
Nan Zhangd25ad462018-08-22 10:48:15 -07001010 ],
Nan Zhang91cc7662018-09-18 10:46:10 -07001011 api_levels_annotations_enabled: true,
1012 api_levels_annotations_dirs: [
1013 "sdk-dir",
1014 "api-versions-jars-dir",
1015 ],
Jiyong Park20426532019-08-19 15:24:49 +09001016 sdk_version: "core_platform",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001017 filter_packages: packages_to_document,
Nan Zhangd25ad462018-08-22 10:48:15 -07001018}
1019
Nan Zhang7764a4b2018-08-22 11:27:31 -07001020droidstubs {
1021 name: "framework-doc-stubs",
1022 defaults: ["framework-doc-stubs-default"],
1023 arg_files: [
1024 "core/res/AndroidManifest.xml",
1025 ],
1026 args: metalava_framework_docs_args,
1027}
1028
1029droidstubs {
1030 name: "framework-doc-system-stubs",
1031 defaults: ["framework-doc-stubs-default"],
1032 arg_files: [
1033 "core/res/AndroidManifest.xml",
1034 ],
1035 args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi ",
1036}
1037
Nan Zhang3e15ba82018-07-26 18:41:12 +00001038droiddoc {
1039 name: "doc-comment-check-docs",
1040 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001041 srcs: [
1042 ":framework-doc-stubs",
1043 ],
1044 args: framework_docs_only_args + " -referenceonly -parsecomments",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001045 installable: false,
1046}
1047
1048droiddoc {
1049 name: "offline-sdk-docs",
1050 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001051 srcs: [
1052 ":framework-doc-stubs",
1053 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001054 hdf: [
1055 "android.whichdoc offline",
1056 ],
1057 proofread_file: "offline-sdk-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001058 args: framework_docs_only_args + " -offlinemode -title \"Android SDK\"",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001059 write_sdk_values: true,
1060 static_doc_index_redirect: "docs/docs-preview-index.html",
1061}
1062
1063droiddoc {
Nan Zhang963612b2018-09-21 17:16:49 -07001064 // Please sync with android-api-council@ before making any changes for the name property below.
1065 // Since there's cron jobs that fetch offline-sdk-referenceonly-docs-docs.zip periodically.
1066 // See b/116221385 for reference.
Nan Zhang3e15ba82018-07-26 18:41:12 +00001067 name: "offline-sdk-referenceonly-docs",
1068 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001069 srcs: [
1070 ":framework-doc-stubs",
1071 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001072 hdf: [
1073 "android.whichdoc offline",
1074 ],
1075 proofread_file: "offline-sdk-referenceonly-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001076 args: framework_docs_only_args + " -offlinemode -title \"Android SDK\" -referenceonly",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001077 write_sdk_values: true,
1078 static_doc_index_redirect: "docs/docs-documentation-redirect.html",
1079 static_doc_properties: "docs/source.properties",
1080}
1081
1082droiddoc {
Nan Zhang963612b2018-09-21 17:16:49 -07001083 // Please sync with android-api-council@ before making any changes for the name property below.
1084 // Since there's cron jobs that fetch offline-system-sdk-referenceonly-docs-docs.zip periodically.
1085 // See b/116221385 for reference.
Nan Zhang3e15ba82018-07-26 18:41:12 +00001086 name: "offline-system-sdk-referenceonly-docs",
1087 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001088 srcs: [
1089 ":framework-doc-system-stubs",
1090 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001091 hdf: [
1092 "android.whichdoc offline",
1093 ],
1094 proofread_file: "offline-system-sdk-referenceonly-docs-proofrerad.txt",
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001095 args: framework_docs_only_args + " -hide 101 -hide 104 -hide 108" +
1096 " -offlinemode -title \"Android System SDK\" -referenceonly",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001097 write_sdk_values: true,
1098 static_doc_index_redirect: "docs/docs-documentation-redirect.html",
1099 static_doc_properties: "docs/source.properties",
1100}
1101
1102droiddoc {
1103 name: "online-sdk-docs",
1104 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001105 srcs: [
1106 ":framework-doc-stubs",
1107 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001108 hdf: [
1109 "android.whichdoc online",
1110 "android.hasSamples true",
1111 ],
1112 proofread_file: "online-sdk-docs-proofrerad.txt",
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001113 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001114 " -toroot / -samplegroup Admin " +
1115 " -samplegroup Background " +
1116 " -samplegroup Connectivity " +
1117 " -samplegroup Content " +
1118 " -samplegroup Input " +
1119 " -samplegroup Media " +
1120 " -samplegroup Notification " +
1121 " -samplegroup RenderScript " +
1122 " -samplegroup Security " +
1123 " -samplegroup Sensors " +
1124 " -samplegroup System " +
1125 " -samplegroup Testing " +
1126 " -samplegroup UI " +
1127 " -samplegroup Views " +
1128 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1129}
1130
1131droiddoc {
1132 name: "online-system-api-sdk-docs",
1133 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001134 srcs: [
1135 ":framework-doc-system-stubs",
1136 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001137 hdf: [
1138 "android.whichdoc online",
1139 "android.hasSamples true",
1140 ],
1141 proofread_file: "online-system-api-sdk-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001142 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001143 " -referenceonly " +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001144 " -title \"Android SDK - Including system APIs.\" " +
1145 " -hide 101 " +
1146 " -hide 104 " +
1147 " -hide 108 " +
1148 " -toroot / -samplegroup Admin " +
1149 " -samplegroup Background " +
1150 " -samplegroup Connectivity " +
1151 " -samplegroup Content " +
1152 " -samplegroup Input " +
1153 " -samplegroup Media " +
1154 " -samplegroup Notification " +
1155 " -samplegroup RenderScript " +
1156 " -samplegroup Security " +
1157 " -samplegroup Sensors " +
1158 " -samplegroup System " +
1159 " -samplegroup Testing " +
1160 " -samplegroup UI " +
1161 " -samplegroup Views " +
1162 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1163 installable: false,
1164}
1165
1166droiddoc {
Tiem Song730c19b2019-08-26 11:27:27 -07001167 name: "ds-docs-java",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001168 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001169 srcs: [
1170 ":framework-doc-stubs",
1171 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001172 hdf: [
1173 "android.whichdoc online",
1174 "android.hasSamples true",
1175 ],
1176 proofread_file: "ds-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001177 args: framework_docs_only_args +
Dirk Dougherty14b05b12019-02-22 20:36:41 -08001178 " -toroot / -yamlV2 -metalavaApiSince -samplegroup Admin " +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001179 " -samplegroup Background " +
1180 " -samplegroup Connectivity " +
1181 " -samplegroup Content " +
1182 " -samplegroup Input " +
1183 " -samplegroup Media " +
1184 " -samplegroup Notification " +
1185 " -samplegroup RenderScript " +
1186 " -samplegroup Security " +
1187 " -samplegroup Sensors " +
1188 " -samplegroup System " +
1189 " -samplegroup Testing " +
1190 " -samplegroup UI " +
1191 " -samplegroup Views " +
1192 " -samplegroup Wearable -devsite -samplesdir development/samples/browseable ",
1193}
1194
1195droiddoc {
Tiem Song730c19b2019-08-26 11:27:27 -07001196 name: "ds-docs-kt",
1197 defaults: ["framework-dokka-docs-default"],
1198 srcs: [
1199 ":framework-doc-stubs",
1200 ],
1201 args: "-noJdkLink -links https://kotlinlang.org/api/latest/jvm/stdlib/^external/dokka/package-list " +
1202 "-noStdlibLink",
1203 proofread_file: "ds-dokka-proofread.txt",
1204 dokka_enabled: true,
1205}
1206
1207java_genrule {
1208 name: "ds-docs",
1209 tools: [
1210 "zip2zip",
1211 "merge_zips",
1212 ],
1213 srcs: [
1214 ":ds-docs-java{.docs.zip}",
1215 ":ds-docs-kt{.docs.zip}",
1216 ],
1217 out: ["ds-docs.zip"],
1218 dist: {
1219 targets: ["docs"],
1220 },
1221 cmd: "$(location zip2zip) -i $(location :ds-docs-kt{.docs.zip}) -o $(genDir)/ds-docs-kt-moved.zip **/*:en/reference/kotlin && " +
1222 "$(location merge_zips) $(out) $(location :ds-docs-java{.docs.zip}) $(genDir)/ds-docs-kt-moved.zip",
1223}
1224
1225java_genrule {
1226 name: "ds-docs-switched",
1227 tools: [
1228 "switcher4",
1229 "soong_zip",
1230 ],
1231 srcs: [
1232 ":ds-docs-java{.docs.zip}",
1233 ":ds-docs-kt{.docs.zip}",
1234 ],
1235 out: ["ds-docs-switched.zip"],
1236 dist: {
1237 targets: ["docs"],
1238 },
1239 cmd: "unzip $(location :ds-docs-java{.docs.zip}) -d $(genDir) && " +
1240 "unzip $(location :ds-docs-kt{.docs.zip}) -d $(genDir)/en/reference/kotlin && " +
1241 "SWITCHER=$$(cd $$(dirname $(location switcher4)) && pwd)/$$(basename $(location switcher4)) && " +
1242 "(cd $(genDir)/en/reference && $$SWITCHER --work platform) && " +
1243 "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)",
1244}
1245
1246
1247droiddoc {
Nan Zhang3e15ba82018-07-26 18:41:12 +00001248 name: "ds-static-docs",
1249 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001250 srcs: [
1251 ":framework-doc-stubs",
1252 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001253 hdf: [
1254 "android.whichdoc online",
1255 ],
1256 proofread_file: "ds-static-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001257 args: framework_docs_only_args +
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001258 " -staticonly " +
1259 " -toroot / " +
1260 " -devsite " +
1261 " -ignoreJdLinks ",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001262}
1263
1264droiddoc {
1265 name: "ds-ref-navtree-docs",
1266 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001267 srcs: [
1268 ":framework-doc-stubs",
1269 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001270 hdf: [
1271 "android.whichdoc online",
1272 ],
1273 proofread_file: "ds-ref-navtree-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001274 args: framework_docs_only_args +
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001275 " -toroot / " +
1276 " -atLinksNavtree " +
1277 " -navtreeonly ",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001278}
1279
1280droiddoc {
1281 name: "online-sdk-dev-docs",
1282 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001283 srcs: [
1284 ":framework-doc-stubs",
1285 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001286 hdf: [
1287 "android.whichdoc online",
1288 "android.hasSamples true",
1289 ],
1290 proofread_file: "online-sdk-dev-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001291 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001292 " -toroot / -samplegroup Admin " +
1293 " -samplegroup Background " +
1294 " -samplegroup Connectivity " +
1295 " -samplegroup Content " +
1296 " -samplegroup Input " +
1297 " -samplegroup Media " +
1298 " -samplegroup Notification " +
1299 " -samplegroup RenderScript " +
1300 " -samplegroup Security " +
1301 " -samplegroup Sensors " +
1302 " -samplegroup System " +
1303 " -samplegroup Testing " +
1304 " -samplegroup UI " +
1305 " -samplegroup Views " +
1306 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1307}
1308
1309droiddoc {
1310 name: "hidden-docs",
1311 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001312 srcs: [
1313 ":framework-doc-stubs",
1314 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001315 proofread_file: "hidden-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001316 args: framework_docs_only_args +
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001317 " -referenceonly " +
1318 " -title \"Android SDK - Including hidden APIs.\"",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001319}
1320
Nan Zhang7764a4b2018-08-22 11:27:31 -07001321droidstubs {
Colin Crossa2b78a72018-03-29 13:31:04 -07001322 name: "hwbinder-stubs-docs",
1323 srcs: [
1324 "core/java/android/os/HidlSupport.java",
1325 "core/java/android/annotation/IntDef.java",
1326 "core/java/android/annotation/NonNull.java",
1327 "core/java/android/annotation/SystemApi.java",
1328 "core/java/android/os/HwBinder.java",
1329 "core/java/android/os/HwBlob.java",
1330 "core/java/android/os/HwParcel.java",
1331 "core/java/android/os/IHwBinder.java",
1332 "core/java/android/os/IHwInterface.java",
1333 "core/java/android/os/DeadObjectException.java",
1334 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -07001335 "core/java/android/os/NativeHandle.java",
Colin Crossa2b78a72018-03-29 13:31:04 -07001336 "core/java/android/os/RemoteException.java",
1337 "core/java/android/util/AndroidException.java",
1338 ],
Colin Crossa2b78a72018-03-29 13:31:04 -07001339 installable: false,
Paul Duffin8fcace42019-06-12 13:47:18 +01001340 sdk_version: "core_platform",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001341 annotations_enabled: true,
Jeff Gaston1b511422019-09-20 14:37:00 -04001342 previous_api: ":last-released-public-api-for-metalava-annotations",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001343 merge_annotations_dirs: [
1344 "metalava-manual",
Pete Gillinff978192018-09-17 15:45:33 +01001345 "ojluni-annotated-sdk-stubs",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001346 ],
1347 args: " --show-annotation android.annotation.SystemApi",
Colin Crossa2b78a72018-03-29 13:31:04 -07001348}
1349
1350java_library_static {
1351 name: "hwbinder.stubs",
1352 sdk_version: "core_current",
1353 srcs: [
1354 ":hwbinder-stubs-docs",
1355 ],
1356}
Nan Zhanga0f91af2018-04-09 17:41:51 -07001357
Nan Zhang894c9ec2018-09-10 18:58:39 -07001358droidstubs {
Nan Zhangd25ad462018-08-22 10:48:15 -07001359 name: "hiddenapi-lists-docs",
1360 defaults: ["metalava-api-stubs-default"],
David Brazdil4f9d4d52018-04-26 14:05:13 +01001361 arg_files: [
1362 "core/res/AndroidManifest.xml",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001363 ],
David Brazdil6f6a1262018-05-31 13:58:41 +01001364 dex_api_filename: "public-dex.txt",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001365 private_dex_api_filename: "private-dex.txt",
1366 removed_dex_api_filename: "removed-dex.txt",
Nan Zhangd25ad462018-08-22 10:48:15 -07001367 args: metalava_framework_docs_args +
1368 " --show-unannotated " +
1369 " --show-annotation android.annotation.SystemApi " +
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001370 " --show-annotation android.annotation.TestApi ",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001371}
1372
Nan Zhang7764a4b2018-08-22 11:27:31 -07001373droidstubs {
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001374 name: "hiddenapi-mappings",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001375 defaults: ["metalava-api-stubs-default"],
Jiyong Park68020f82019-08-23 20:36:58 +09001376 srcs: [
Paul Duffina0cb5382018-10-31 10:34:51 +00001377 ":non_openjdk_java_files",
Artur Satayev3cc3fa42019-08-02 16:42:07 +01001378 ":openjdk_java_files",
Andrei Onea6dd843a2019-03-13 15:27:23 +00001379 ":opt-telephony-common-srcs",
Paul Duffina0cb5382018-10-31 10:34:51 +00001380 ],
Jiyong Park20426532019-08-19 15:24:49 +09001381
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001382 arg_files: [
1383 "core/res/AndroidManifest.xml",
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001384 ],
1385 dex_mapping_filename: "dex-mapping.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001386 args: metalava_framework_docs_args +
Adrian Roos9bdbd302018-12-07 13:53:40 +01001387 " --hide ReferencesHidden " +
Adrian Roosc6e2fc82018-12-12 15:08:44 +01001388 " --hide UnhiddenSystemApi " +
Nan Zhang7764a4b2018-08-22 11:27:31 -07001389 " --show-unannotated " +
1390 " --show-annotation android.annotation.SystemApi " +
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001391 " --show-annotation android.annotation.TestApi ",
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001392}
1393
Nan Zhanga0f91af2018-04-09 17:41:51 -07001394filegroup {
1395 name: "apache-http-stubs-sources",
1396 srcs: [
1397 "core/java/org/apache/http/conn/ConnectTimeoutException.java",
1398 "core/java/org/apache/http/conn/scheme/HostNameResolver.java",
1399 "core/java/org/apache/http/conn/scheme/LayeredSocketFactory.java",
1400 "core/java/org/apache/http/conn/scheme/SocketFactory.java",
1401 "core/java/org/apache/http/conn/ssl/AbstractVerifier.java",
1402 "core/java/org/apache/http/conn/ssl/AllowAllHostnameVerifier.java",
1403 "core/java/org/apache/http/conn/ssl/AndroidDistinguishedNameParser.java",
1404 "core/java/org/apache/http/conn/ssl/BrowserCompatHostnameVerifier.java",
1405 "core/java/org/apache/http/conn/ssl/SSLSocketFactory.java",
1406 "core/java/org/apache/http/conn/ssl/StrictHostnameVerifier.java",
1407 "core/java/org/apache/http/conn/ssl/X509HostnameVerifier.java",
1408 "core/java/org/apache/http/params/CoreConnectionPNames.java",
1409 "core/java/org/apache/http/params/HttpConnectionParams.java",
1410 "core/java/org/apache/http/params/HttpParams.java",
Nan Zhanga0f91af2018-04-09 17:41:51 -07001411 "core/java/android/net/http/SslCertificate.java",
1412 "core/java/android/net/http/SslError.java",
1413 "core/java/com/android/internal/util/HexDump.java",
1414 ],
1415}
Nan Zhang4212eb12018-04-25 17:23:33 -07001416
Nan Zhang894c9ec2018-09-10 18:58:39 -07001417droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001418 name: "api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001419 defaults: ["metalava-api-stubs-default"],
Nan Zhang4212eb12018-04-25 17:23:33 -07001420 api_filename: "public_api.txt",
1421 private_api_filename: "private.txt",
1422 removed_api_filename: "removed.txt",
1423 arg_files: [
1424 "core/res/AndroidManifest.xml",
1425 ],
1426 args: metalava_framework_docs_args,
Nan Zhange5612602018-08-16 16:16:00 -07001427 check_api: {
1428 current: {
1429 api_file: "api/current.txt",
1430 removed_api_file: "api/removed.txt",
1431 },
Nan Zhangcd060d92018-08-20 20:34:26 -07001432 last_released: {
1433 api_file: ":last-released-public-api",
1434 removed_api_file: "api/removed.txt",
Adrian Roos9597f8c2019-08-12 17:47:39 +02001435 baseline_file: ":public-api-incompatibilities-with-last-released",
Nan Zhangcd060d92018-08-20 20:34:26 -07001436 },
Nan Zhange5612602018-08-16 16:16:00 -07001437 },
Nan Zhang81f29f52018-09-17 14:33:08 -07001438 jdiff_enabled: true,
Nan Zhang4212eb12018-04-25 17:23:33 -07001439}
1440
Nan Zhang894c9ec2018-09-10 18:58:39 -07001441droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001442 name: "system-api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001443 defaults: ["metalava-api-stubs-default"],
Nan Zhang4d3f5012018-08-07 13:40:33 -07001444 api_tag_name: "SYSTEM",
Nan Zhang4212eb12018-04-25 17:23:33 -07001445 api_filename: "system-api.txt",
1446 private_api_filename: "system-private.txt",
1447 private_dex_api_filename: "system-private-dex.txt",
1448 removed_api_filename: "system-removed.txt",
1449 arg_files: [
1450 "core/res/AndroidManifest.xml",
1451 ],
1452 args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi",
Nan Zhange5612602018-08-16 16:16:00 -07001453 check_api: {
1454 current: {
1455 api_file: "api/system-current.txt",
1456 removed_api_file: "api/system-removed.txt",
1457 },
Nan Zhangcd060d92018-08-20 20:34:26 -07001458 last_released: {
1459 api_file: ":last-released-system-api",
1460 removed_api_file: "api/system-removed.txt",
Adrian Roos9597f8c2019-08-12 17:47:39 +02001461 baseline_file: ":system-api-incompatibilities-with-last-released"
Nan Zhangcd060d92018-08-20 20:34:26 -07001462 },
Nan Zhange5612602018-08-16 16:16:00 -07001463 },
Nan Zhang81f29f52018-09-17 14:33:08 -07001464 jdiff_enabled: true,
Nan Zhang4212eb12018-04-25 17:23:33 -07001465}
1466
Nan Zhang894c9ec2018-09-10 18:58:39 -07001467droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001468 name: "test-api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001469 defaults: ["metalava-api-stubs-default"],
Nan Zhang4d3f5012018-08-07 13:40:33 -07001470 api_tag_name: "TEST",
Nan Zhang4212eb12018-04-25 17:23:33 -07001471 api_filename: "test-api.txt",
1472 removed_api_filename: "test-removed.txt",
1473 arg_files: [
1474 "core/res/AndroidManifest.xml",
1475 ],
1476 args: metalava_framework_docs_args + " --show-annotation android.annotation.TestApi",
Nan Zhange5612602018-08-16 16:16:00 -07001477 check_api: {
1478 current: {
1479 api_file: "api/test-current.txt",
1480 removed_api_file: "api/test-removed.txt",
1481 },
1482 },
Nan Zhang4212eb12018-04-25 17:23:33 -07001483}
Nan Zhangaf251302018-08-30 10:59:51 -07001484
1485filegroup {
1486 name: "framework-annotation-nonnull-srcs",
1487 srcs: [
1488 "core/java/android/annotation/NonNull.java",
1489 ],
1490}
Insun Kang06b25ae2018-11-20 10:05:44 +09001491
1492filegroup {
1493 name: "framework-media-annotation-srcs",
1494 srcs: [
1495 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001496 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001497 "core/java/android/annotation/DrawableRes.java",
1498 "core/java/android/annotation/IntDef.java",
1499 "core/java/android/annotation/LongDef.java",
1500 "core/java/android/annotation/NonNull.java",
1501 "core/java/android/annotation/Nullable.java",
1502 "core/java/android/annotation/RequiresPermission.java",
1503 "core/java/android/annotation/SdkConstant.java",
1504 "core/java/android/annotation/StringDef.java",
Sungsoo Limbb3b4012019-01-23 13:17:53 +09001505 "core/java/android/annotation/SystemApi.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001506 "core/java/android/annotation/TestApi.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001507 "core/java/android/annotation/UnsupportedAppUsage.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001508 "core/java/com/android/internal/annotations/GuardedBy.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001509 ],
1510}
1511
Andrei Onea7a2985c2019-02-18 15:28:35 +00001512// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1513// annotations to private apis
1514aidl_mapping {
1515 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001516 srcs: [":framework-all-sources"],
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001517 output: "framework-aidl-mappings.txt",
Kyunglyul Hyund51666d2019-04-11 04:08:40 +00001518}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001519
1520genrule {
1521 name: "framework-annotation-proc-index",
1522 srcs: [":framework-annotation-proc"],
1523 cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)",
1524 out: ["unsupportedappusage_index.csv"],
1525 dist: {
1526 targets: ["droidcore"],
1527 },
1528}
Chen Xu192bf1f2019-09-05 22:07:42 -07001529
1530// Avoid including Parcelable classes as we don't want to have two copies of
1531// Parcelable cross the process.
1532filegroup {
1533 name: "framework-telephony-stack-shared-srcs",
1534 srcs: [
1535 "core/java/android/os/RegistrantList.java",
1536 "core/java/android/os/Registrant.java",
1537 "core/java/android/util/LocalLog.java",
1538 "core/java/android/util/Slog.java",
1539 "core/java/android/util/TimeUtils.java",
1540 "core/java/com/android/internal/os/SomeArgs.java",
1541 "core/java/com/android/internal/util/Preconditions.java",
1542 "core/java/com/android/internal/util/State.java",
1543 "core/java/com/android/internal/util/StateMachine.java",
1544 "core/java/com/android/internal/util/XmlUtils.java",
1545 "core/java/com/android/internal/util/HexDump.java",
1546 "core/java/com/android/internal/util/IndentingPrintWriter.java",
1547 "core/java/com/android/internal/util/DumpUtils.java"
1548 ],
1549}
1550