blob: 0e1996253a00765243548ab28081ee01891e4c5b [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 Park7e1339e2019-08-16 21:17:14 +090037filegroup {
38 name: "framework-drm-sources",
39 srcs: [
40 "drm/java/**/*.java",
41 ],
42 path: "drm/java",
43}
44
45filegroup {
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 Park7e1339e2019-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 Park5366ea22019-08-19 15:24:49 +0900173filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900174 name: "framework-non-updatable-sources",
Jiyong Park5366ea22019-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 Park5366ea22019-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 Park0c6dc7b2019-08-07 22:45:07 +0900196
Jiyong Park5366ea22019-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 Park0c6dc7b2019-08-07 22:45:07 +0900213
Jiyong Park5366ea22019-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 Park0c6dc7b2019-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
Artur Satayev005d7352019-08-02 16:42:07 +0100231java_defaults {
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900232 name: "framework-aidl-export-defaults",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800233 aidl: {
Jiyong Park7e1339e2019-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 ],
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900253 },
254}
Colin Crosscf3a0b52017-11-16 00:15:28 -0800255
Jiyong Park5366ea22019-08-19 15:24:49 +0900256// Collection of classes that are generated from non-Java files that are not listed in
257// framework_srcs. These have no or very limited dependency to the framework.
258java_library {
259 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800260 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100261 "apex_aidl_interface-java",
Kalesh Singh759af322019-06-19 12:17:43 -0700262 "suspend_control_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800263 "framework-protos",
Peiyong Lin9ca1dd82019-01-12 17:44:29 -0800264 "game-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800265 "android.hidl.base-V1.0-java",
Henry Fang5215ac92019-02-01 19:24:55 +0000266 "android.hardware.cas-V1.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800267 "android.hardware.cas-V1.0-java",
268 "android.hardware.contexthub-V1.0-java",
269 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800270 "android.hardware.radio-V1.0-java",
271 "android.hardware.radio-V1.1-java",
272 "android.hardware.radio-V1.2-java",
273 "android.hardware.radio-V1.3-java",
274 "android.hardware.radio-V1.4-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800275 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800276 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700277 "android.hardware.thermal-V1.1-java",
278 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800279 "android.hardware.tv.input-V1.0-java-constants",
280 "android.hardware.usb-V1.0-java-constants",
281 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800282 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800283 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000284 "android.hardware.vibrator-V1.0-java",
285 "android.hardware.vibrator-V1.1-java",
286 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900287 "android.hardware.vibrator-V1.3-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800288 "android.hardware.wifi-V1.0-java-constants",
arangelov1ab61492018-11-22 13:56:50 +0000289 "devicepolicyprotosnano",
Inseob Kim617a7222019-07-30 18:23:26 +0900290
291 "com.android.sysprop.apex",
292 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800293 ],
Jiyong Park5366ea22019-08-19 15:24:49 +0900294 sdk_version: "core_platform",
295 installable: false,
296}
297
298java_defaults {
299 name: "framework-defaults",
300 defaults: ["framework-aidl-export-defaults"],
301 installable: true,
302
Jiyong Park5366ea22019-08-19 15:24:49 +0900303 aidl: {
304 generate_get_transaction_name: true,
305 },
306
Jiyong Parkae9972b2019-09-15 20:19:02 +0900307 srcs: ["core/java/**/*.logtags"],
308
Jiyong Park5366ea22019-08-19 15:24:49 +0900309 exclude_srcs: [
310 // See comment on framework-atb-backward-compatibility module below
311 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
312 ],
313
314 sdk_version: "core_platform",
315 libs: [
316 "ext",
317 "updatable_media_stubs",
318 ],
319
320 jarjar_rules: ":framework-jarjar-rules",
321
Tobias Thierer878c77b2019-08-18 15:19:45 +0100322 static_libs: [
323 "framework-internal-utils",
324 "mimemap",
325 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800326
Wei Jia0a8a8f02017-12-05 17:05:29 -0800327 required: [
Anton Hansson11905c62018-11-27 12:10:30 +0000328 // TODO: remove gps_debug when the build system propagates "required" properly.
329 "gps_debug.conf",
Logan Chien71ddfea2018-02-27 16:43:50 +0800330 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800331
Colin Crosscf3a0b52017-11-16 00:15:28 -0800332 dxflags: [
333 "--core-library",
334 "--multi-dex",
335 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100336
Ashley Roseb47ddd42019-01-28 19:54:09 -0500337 plugins: ["view-inspector-annotation-processor"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100338}
339
Colin Crossbc2dc312018-10-26 22:34:06 -0700340filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800341 name: "framework-jarjar-rules",
342 srcs: ["jarjar_rules_hidl.txt"],
343}
344
345filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700346 name: "libincident_aidl",
347 srcs: [
348 "core/java/android/os/IIncidentManager.aidl",
349 "core/java/android/os/IIncidentReportStatusListener.aidl",
350 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700351 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700352}
353
354filegroup {
355 name: "statsd_aidl",
356 srcs: [
357 "core/java/android/os/IStatsCompanionService.aidl",
358 "core/java/android/os/IStatsManager.aidl",
Tej Singha0c89dd2019-01-25 16:39:18 -0800359 "core/java/android/os/IStatsPullerCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700360 ],
Dan Willemsena38ff9f2019-06-11 10:56:01 -0700361 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700362}
363
Michael Wrightc390fbe2018-12-12 19:45:09 +0000364filegroup {
365 name: "libvibrator_aidl",
366 srcs: [
367 "core/java/android/os/IExternalVibrationController.aidl",
368 "core/java/android/os/IExternalVibratorService.aidl",
369 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700370 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000371}
372
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100373java_library {
374 name: "framework",
375 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900376 srcs: [":framework-non-updatable-sources"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100377 javac_shard_size: 150,
atrostb9c34502019-08-05 12:22:18 +0100378 required: [
379 "framework-platform-compat-config",
380 "libcore-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100381 "services-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100382 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100383}
384
385java_library {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900386 name: "framework-all",
387 defaults: ["framework-defaults"],
388 srcs: [":framework-all-sources"],
389 installable: false,
390}
391
392java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100393 name: "framework-annotation-proc",
394 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900395 srcs: [":framework-all-sources"],
Anna Trostanetski97088e92019-06-26 14:47:58 +0100396 installable: false,
atrostb9c34502019-08-05 12:22:18 +0100397 plugins: [
398 "unsupportedappusage-annotation-processor",
399 "compat-changeid-annotation-processor",
400 ],
401}
402
403platform_compat_config {
404 name: "framework-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100405 src: ":framework-annotation-proc",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100406}
407
Paul Duffin521975802019-06-05 10:35:08 +0100408// A library including just UnsupportedAppUsage.java classes.
409//
410// Provided for target so that libraries can use it without depending on
411// the whole of framework or the core platform API.
412//
413// Built for host so that the annotation processor can also use this annotation.
414java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100415 name: "unsupportedappusage-annotation",
Paul Duffin521975802019-06-05 10:35:08 +0100416 host_supported: true,
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100417 srcs: [
418 "core/java/android/annotation/IntDef.java",
419 "core/java/android/annotation/UnsupportedAppUsage.java",
Paul Duffinc1308012019-10-10 16:33:42 +0100420 ],
421 static_libs: [
422 "art.module.api.annotations",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100423 ],
Paul Duffin521975802019-06-05 10:35:08 +0100424
425 sdk_version: "core_current",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800426}
427
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000428// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000429// android.test.base library has been removed and which provides support for
430// maintaining backwards compatibility for APKs that target pre-P and depend on
431// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
432// specified on the build command line.
433java_library {
434 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000435 installable: true,
Paul Duffina3b69212018-01-25 09:58:32 +0000436 srcs: [
437 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
438 ],
439}
440
Colin Crosscf3a0b52017-11-16 00:15:28 -0800441genrule {
442 name: "framework-statslog-gen",
443 tools: ["stats-log-api-gen"],
444 cmd: "$(location stats-log-api-gen) --java $(out)",
David Chen0a368b22017-12-06 16:28:16 -0800445 out: ["android/util/StatsLogInternal.java"],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800446}
447
448gensrcs {
449 name: "framework-javastream-protos",
450 depfile: true,
451
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100452 tool_files: ["tools/genprotos.sh"],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800453 tools: [
454 "aprotoc",
455 "protoc-gen-javastream",
456 "soong_zip",
457 ],
458
Alex Light159799d2018-08-08 07:05:19 -0700459 // TODO This should not be needed. If you set a custom OUT_DIR or OUT_DIR_COMMON_BASE you can
460 // end up with a command that is extremely long, potentially going passed MAX_ARG_STRLEN due to
461 // the way sbox rewrites the command. See b/70221552.
462 cmd: "$(location tools/genprotos.sh) " +
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100463 " $(location aprotoc) " +
464 " $(location protoc-gen-javastream) " +
465 " $(location soong_zip) " +
466 " $(genDir) " +
467 " $(depfile) " +
468 " $(in) " +
469 " $(out)",
Yi Jin437aa6e2018-01-10 11:34:26 -0800470 srcs: [
471 "core/proto/**/*.proto",
472 "libs/incident/**/*.proto",
473 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800474 output_extension: "srcjar",
475}
476
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900477filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900478 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900479 srcs: [
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900480 "core/java/android/annotation/NonNull.java",
481 "core/java/android/annotation/Nullable.java",
482 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900483 "core/java/android/annotation/IntRange.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900484 "core/java/android/annotation/UnsupportedAppUsage.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900485 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900486 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100487 ],
Chalard Jean95213512019-01-30 21:04:58 +0900488}
489
490filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900491 name: "framework-networkstack-shared-srcs",
492 srcs: [
493 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900494 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900495 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900496 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900497 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900498 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900499 "core/java/com/android/internal/util/IState.java",
500 "core/java/com/android/internal/util/MessageUtils.java",
501 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900502 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900503 "core/java/com/android/internal/util/State.java",
504 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900505 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900506 "core/java/com/android/internal/util/WakeupMessage.java",
507 "core/java/android/net/shared/*.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100508 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900509}
510
markchiena6ba54d2019-09-03 15:58:06 +0800511filegroup {
512 name: "framework-tethering-shared-srcs",
513 srcs: [
514 "core/java/android/util/LocalLog.java",
515 ],
516}
Colin Crossd8e02252017-10-02 17:14:22 -0700517// Build ext.jar
518// ============================================================
519java_library {
520 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700521 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100522 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700523 static_libs: [
524 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700525 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000526 "rappor",
Tony Mak64c4cb22018-09-25 13:38:28 +0100527 "libtextclassifier-java",
528 ],
529 required: [
530 "libtextclassifier",
Colin Crossd8e02252017-10-02 17:14:22 -0700531 ],
532 dxflags: ["--core-library"],
533}
534
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700535// ==== java proto host library ==============================
536java_library_host {
537 name: "platformprotos",
538 srcs: [
539 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700540 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700541 "core/proto/**/*.proto",
542 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700543 ],
544 proto: {
545 include_dirs: ["external/protobuf/src"],
546 type: "full",
547 },
548 errorprone: {
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100549 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700550 },
551}
552
Colin Cross43214162018-08-20 13:57:24 -0700553// ==== java proto device library (for test only) ==============================
554java_library {
555 name: "platformprotosnano",
556 proto: {
557 type: "nano",
558 output_params: ["store_unknown_fields=true"],
559 include_dirs: ["external/protobuf/src"],
560 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000561 exclude_srcs: [
562 "core/proto/android/privacy.proto",
563 "core/proto/android/section.proto",
564 ],
Colin Cross43214162018-08-20 13:57:24 -0700565 sdk_version: "current",
566 srcs: [
567 "core/proto/**/*.proto",
568 "libs/incident/proto/android/os/**/*.proto",
569 ],
570}
571
572// ==== java proto device library (for test only) ==============================
573java_library {
574 name: "platformprotoslite",
575 proto: {
576 type: "lite",
577 include_dirs: ["external/protobuf/src"],
578 },
579
580 srcs: [
581 "core/proto/**/*.proto",
582 "libs/incident/proto/android/os/**/*.proto",
583 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000584 exclude_srcs: [
585 "core/proto/android/privacy.proto",
586 "core/proto/android/section.proto",
587 ],
Colin Cross43214162018-08-20 13:57:24 -0700588 // Protos have lots of MissingOverride and similar.
589 errorprone: {
590 javacflags: ["-XepDisableAllChecks"],
591 },
592}
593
Colin Crossaa0d4352017-05-02 14:14:56 -0700594// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000595cc_defaults {
596 name: "libplatformprotos-defaults",
597
Colin Crossaa0d4352017-05-02 14:14:56 -0700598 proto: {
599 export_proto_headers: true,
600 include_dirs: ["external/protobuf/src"],
601 },
602
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700603 cflags: [
604 "-Wall",
605 "-Werror",
606 "-Wno-unused-parameter",
607 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800608
609 srcs: [
610 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800611 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000612}
613
614cc_library {
615 name: "libplatformprotos",
616 defaults: ["libplatformprotos-defaults"],
617 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800618
Colin Crossaa0d4352017-05-02 14:14:56 -0700619 target: {
620 host: {
621 proto: {
622 type: "full",
623 },
624 },
625 android: {
626 proto: {
627 type: "lite",
628 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000629 shared_libs: [
630 "libprotobuf-cpp-lite",
631 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700632 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700633 enabled: false,
634 },
635 },
636 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700637}
638
Joe Onorato9bd5db72019-04-03 18:19:43 -0700639// This library is meant for vendor code that needs to output protobuf. It links
640// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
641// binary compatibility.
642cc_library {
643 name: "libplatformprotos-static",
644 defaults: ["libplatformprotos-defaults"],
645 host_supported: false,
646
647 // This is okay because this library is only built as a static library. The C++
648 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
649 // but is not authorized to be used outside of debugging.
650 vendor_available: true,
651
652 target: {
653 android: {
654 proto: {
655 type: "lite",
656 },
657 static_libs: [
658 "libprotobuf-cpp-lite",
659 ],
660 shared: {
661 enabled: false,
662 },
663 },
664 },
665}
666
667
Joe Onorato99598ee2019-02-11 15:55:13 +0000668// This is the full proto version of libplatformprotos. It may only
669// be used by test code that is not shipped on the device.
670cc_library {
671 name: "libplatformprotos-test",
672 defaults: ["libplatformprotos-defaults"],
673 host_supported: false,
674
675 target: {
676 android: {
677 proto: {
678 type: "full",
679 },
680 shared: {
681 enabled: false,
682 },
683 },
684 },
685}
686
687
Yi Jin04625ad2017-10-17 18:29:33 -0700688gensrcs {
689 name: "gen-platform-proto-constants",
690 depfile: true,
691
692 tools: [
693 "aprotoc",
694 "protoc-gen-cppstream",
695 ],
696
697 srcs: [
Kweku Adamseadd1232018-02-05 16:45:13 -0800698 "core/proto/android/os/backtrace.proto",
Kweku Adams59e6fd72017-12-27 15:48:14 -0800699 "core/proto/android/os/batterytype.proto",
Yi Jin0eb22342017-11-06 17:17:27 -0800700 "core/proto/android/os/cpufreq.proto",
Yi Jine2f7f792017-11-01 17:08:27 -0700701 "core/proto/android/os/cpuinfo.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700702 "core/proto/android/os/data.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700703 "core/proto/android/os/kernelwake.proto",
704 "core/proto/android/os/pagetypeinfo.proto",
705 "core/proto/android/os/procrank.proto",
Kweku Adamsf5cc5752017-12-20 17:59:17 -0800706 "core/proto/android/os/ps.proto",
Yi Jin0dfa7522017-11-06 17:43:47 -0800707 "core/proto/android/os/system_properties.proto",
Yi Jin3c034c92017-12-22 17:36:47 -0800708 "core/proto/android/util/event_log_tags.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700709 "core/proto/android/util/log.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700710 ],
711
712 // Append protoc-gen-cppstream tool's PATH otherwise aprotoc can't find the plugin tool
Yi Jin3c034c92017-12-22 17:36:47 -0800713 cmd: "mkdir -p $(genDir) " +
714 "&& $(location aprotoc) " +
715 " --plugin=$(location protoc-gen-cppstream) " +
716 " --dependency_out=$(depfile) " +
717 " --cppstream_out=$(genDir) " +
718 " -Iexternal/protobuf/src " +
719 " -I . " +
720 " $(in)",
Yi Jin04625ad2017-10-17 18:29:33 -0700721
Logan Chien71ddfea2018-02-27 16:43:50 +0800722 output_extension: "proto.h",
Yi Jin04625ad2017-10-17 18:29:33 -0700723}
724
Joe Onorato99598ee2019-02-11 15:55:13 +0000725
Dan Albert2a8d9c22016-09-23 15:55:49 -0700726subdirs = [
Yi Jin0a3406f2017-06-22 19:23:11 -0700727 "cmds/*",
Jeff Sharkey0c686e72017-10-23 16:04:31 -0600728 "core/*",
Colin Cross4f8d9e62016-12-01 15:55:00 -0800729 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -0700730 "media/*",
Colin Cross747e7c12017-10-24 16:21:22 -0700731 "proto",
Fabien Sanglard19160202017-01-12 14:24:31 -0500732 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700733 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -0700734 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700735]
Svetoslav Ganov74c99832016-12-05 20:07:20 -0800736
737optional_subdirs = [
738 "core/tests/utiltests/jni",
739]
Steven Morelandeddafe92017-10-02 16:58:41 -0700740
Colin Crossa2b78a72018-03-29 13:31:04 -0700741// TODO(b/77285514): remove this once the last few hidl interfaces have been
742// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -0700743java_library {
744 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +0100745 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -0700746
747 srcs: [
748 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800749 "core/java/android/annotation/IntDef.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700750 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -0800751 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800752 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -0800753 "core/java/android/annotation/TestApi.java",
Andrei Onea24ec3212019-03-15 17:35:05 +0000754 "core/java/android/annotation/UnsupportedAppUsage.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700755 "core/java/android/os/HwBinder.java",
756 "core/java/android/os/HwBlob.java",
757 "core/java/android/os/HwParcel.java",
758 "core/java/android/os/IHwBinder.java",
759 "core/java/android/os/IHwInterface.java",
760 "core/java/android/os/DeadObjectException.java",
761 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -0700762 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700763 "core/java/android/os/RemoteException.java",
764 "core/java/android/util/AndroidException.java",
765 ],
766
767 dxflags: ["--core-library"],
768 installable: false,
769}
Nan Zhang2db709d2017-11-08 20:48:46 -0800770
771python_defaults {
772 name: "base_default",
773 version: {
774 py2: {
775 enabled: true,
776 embedded_launcher: true,
777 },
778 py3: {
779 enabled: false,
780 embedded_launcher: false,
781 },
782 },
783}
784
785python_binary_host {
786 name: "fontchain_linter",
787 defaults: ["base_default"],
788 main: "tools/fonts/fontchain_linter.py",
789 srcs: [
790 "tools/fonts/fontchain_linter.py",
791 ],
792 libs: [
793 "fontTools",
794 ],
795}
Nan Zhang172875b2018-02-27 11:24:03 -0800796
Jiyong Park5366ea22019-08-19 15:24:49 +0900797// TODO: Don't rely on this list by switching package.html into package-info.java
Nan Zhang172875b2018-02-27 11:24:03 -0800798frameworks_base_subdirs = [
799 "core/java",
800 "graphics/java",
801 "location/java",
802 "media/java",
803 "media/mca/effect/java",
804 "media/mca/filterfw/java",
805 "media/mca/filterpacks/java",
806 "drm/java",
807 "opengl/java",
808 "sax/java",
809 "telecomm/java",
810 "telephony/java",
811 "wifi/java",
812 "lowpan/java",
813 "keystore/java",
814 "rs/java",
815]
816
Paul Duffin0440e1f2019-02-11 16:13:25 +0000817// Make the api/current.txt file available for use by modules in other
818// directories.
819filegroup {
820 name: "frameworks-base-api-current.txt",
821 srcs: [
822 "api/current.txt",
823 ],
824}
825
Paul Duffincd35de32019-05-30 15:12:47 +0100826// Make the api/system-current.txt file available for use by modules in other
827// directories.
828filegroup {
829 name: "frameworks-base-api-system-current.txt",
830 srcs: [
831 "api/system-current.txt",
832 ],
833}
834
835// Make the api/system-removed.txt file available for use by modules in other
836// directories.
837filegroup {
838 name: "frameworks-base-api-system-removed.txt",
839 srcs: [
840 "api/system-removed.txt",
841 ],
842}
843
Nan Zhang7764a4b2018-08-22 11:27:31 -0700844framework_docs_only_args = " -android -manifest $(location core/res/AndroidManifest.xml) " +
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100845 "-werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 " +
846 "-overview $(location core/java/overview.html) " +
847 // Federate Support Library references against local API file.
848 "-federate SupportLib https://developer.android.com " +
849 "-federationapi SupportLib $(location :current-support-api) "
Nan Zhang172875b2018-02-27 11:24:03 -0800850
Nan Zhang7764a4b2018-08-22 11:27:31 -0700851framework_docs_only_libs = [
Nan Zhang7764a4b2018-08-22 11:27:31 -0700852 "voip-common",
853 "android.test.mock",
854 "android-support-annotations",
855 "android-support-compat",
856 "android-support-core-ui",
857 "android-support-core-utils",
858 "android-support-customtabs",
859 "android-support-design",
860 "android-support-dynamic-animation",
861 "android-support-exifinterface",
862 "android-support-fragment",
863 "android-support-media-compat",
864 "android-support-percent",
865 "android-support-recommendation",
866 "android-support-transition",
867 "android-support-tv-provider",
868 "android-support-v7-cardview",
869 "android-support-v7-gridlayout",
870 "android-support-v7-mediarouter",
871 "android-support-v7-palette",
872 "android-support-v7-preference",
873 "android-support-v13",
874 "android-support-v14-preference",
875 "android-support-v17-leanback",
876 "android-support-v17-preference-leanback",
877 "android-support-wear",
878 "android-support-vectordrawable",
879 "android-support-animatedvectordrawable",
880 "android-support-v7-appcompat",
881 "android-support-v7-recyclerview",
882 "android-support-emoji",
883 "android-support-emoji-appcompat",
884 "android-support-emoji-bundled",
885 "android-support-v8-renderscript",
886 "android-support-multidex",
887 "android-support-multidex-instrumentation",
888]
889
890metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
891 "--hide-package com.android.okhttp " +
892 "--hide-package com.android.org.conscrypt --hide-package com.android.server " +
Adrian Roosc6e2fc82018-12-12 15:08:44 +0100893 "--error UnhiddenSystemApi " +
Nan Zhang7764a4b2018-08-22 11:27:31 -0700894 "--hide RequiresPermission " +
895 "--hide MissingPermission --hide BroadcastBehavior " +
896 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
Tobias Thierer8f559412019-05-22 20:17:49 +0100897 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo "
898
899// http://b/129765390 Rewrite links to "platform" or "technotes" folders
900// which are siblings (and thus outside of) {@docRoot}.
901//
902// We have to escape \ as \\ and $ as $$ here because they get resolved by
903// different layers of the build tooling. The arguments are wrapped in '' so
904// that the shell doesn't add yet another level of escaping.
905metalava_framework_docs_args += " --replace-documentation " +
906 // packages whose descendants to apply replacement to (all packages from
907 // libcore/ojluni/src/main/java that contribute to documentation).
908 "com.sun:java:javax:jdk.net:sun " +
909 // regex of the string to replace
910 "'(<a\\s+href\\s?=[\\*\\s]*\")(?:(?:\\{@docRoot\\}/\\.\\./)|(?:(?:\\.\\./)+))((?:platform|technotes).+)\">' " +
911 // replacement (with $1, $2 backreferences to the regex groups)
912 "'$$1https://docs.oracle.com/javase/8/docs/$$2\">' "
Nan Zhang7764a4b2018-08-22 11:27:31 -0700913
Jiyong Parkae9972b2019-09-15 20:19:02 +0900914packages_to_document = [
915 "android",
Jiyong Parkb1d27012019-09-17 14:51:28 +0900916 "dalvik",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900917 "java",
918 "javax",
Jiyong Parkb1d27012019-09-17 14:51:28 +0900919 "junit",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900920 "org.apache.http",
921 "org.json",
922 "org.w3c.dom",
923 "org.xml.sax",
924 "org.xmlpull",
925]
926
Nan Zhang7764a4b2018-08-22 11:27:31 -0700927stubs_defaults {
928 name: "framework-doc-stubs-default",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000929 srcs: [
Jiyong Parkae9972b2019-09-15 20:19:02 +0900930 ":framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900931 "core/java/**/*.logtags",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000932 "test-base/src/**/*.java",
933 ":opt-telephony-srcs",
934 ":opt-net-voip-srcs",
Paul Duffine86cc6f2019-10-04 10:10:58 +0100935 ":core-current-stubs-source",
Neil Fuller3b1b7032019-02-26 12:00:38 +0000936 ":core_public_api_files",
Jiyong Parkdf6c25d2019-08-20 20:48:47 +0900937 ":updatable-media-srcs",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000938 "test-mock/src/**/*.java",
939 "test-runner/src/**/*.java",
940 ],
Nan Zhang7764a4b2018-08-22 11:27:31 -0700941 libs: framework_docs_only_libs,
Nan Zhang3e15ba82018-07-26 18:41:12 +0000942 local_sourcepaths: frameworks_base_subdirs,
Nan Zhang7764a4b2018-08-22 11:27:31 -0700943 create_doc_stubs: true,
944 annotations_enabled: true,
945 api_levels_annotations_enabled: true,
946 api_levels_annotations_dirs: [
947 "sdk-dir",
948 "api-versions-jars-dir",
949 ],
950 previous_api: ":last-released-public-api",
951 merge_annotations_dirs: [
952 "metalava-manual",
Pete Gillinff978192018-09-17 15:45:33 +0100953 "ojluni-annotated-sdk-stubs",
Nan Zhang7764a4b2018-08-22 11:27:31 -0700954 ],
955}
956
957doc_defaults {
958 name: "framework-docs-default",
Nan Zhangb03396e2018-10-11 18:06:10 -0700959 libs: framework_docs_only_libs +
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100960 ["stub-annotations"],
Nan Zhang3e15ba82018-07-26 18:41:12 +0000961 html_dirs: [
962 "docs/html",
963 ],
964 knowntags: [
965 "docs/knowntags.txt",
966 ":known-oj-tags",
967 ],
968 custom_template: "droiddoc-templates-sdk",
969 resourcesdir: "docs/html/reference/images/",
970 resourcesoutdir: "reference/android/images/",
971 hdf: [
972 "dac true",
973 "sdk.codename O",
974 "sdk.preview.version 1",
975 "sdk.version 7.0",
976 "sdk.rel.id 1",
977 "sdk.preview 0",
978 ],
979 arg_files: [
980 "core/res/AndroidManifest.xml",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000981 "core/java/overview.html",
982 ":current-support-api",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000983 ],
984 create_stubs: false,
985}
986
Tiem Song730c19b2019-08-26 11:27:27 -0700987doc_defaults {
988 name: "framework-dokka-docs-default",
989 create_stubs: false,
990}
991
Nan Zhang894c9ec2018-09-10 18:58:39 -0700992stubs_defaults {
Nan Zhangd25ad462018-08-22 10:48:15 -0700993 name: "metalava-api-stubs-default",
994 srcs: [
Jiyong Parkae9972b2019-09-15 20:19:02 +0900995 ":framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900996 "core/java/**/*.logtags",
Nan Zhangd25ad462018-08-22 10:48:15 -0700997 ":opt-telephony-srcs",
998 ":opt-net-voip-srcs",
Paul Duffine86cc6f2019-10-04 10:10:58 +0100999 ":core-current-stubs-source",
Neil Fuller3b1b7032019-02-26 12:00:38 +00001000 ":core_public_api_files",
Jiyong Parkdf6c25d2019-08-20 20:48:47 +09001001 ":updatable-media-srcs",
Nan Zhangd25ad462018-08-22 10:48:15 -07001002 ],
Jiyong Park5366ea22019-08-19 15:24:49 +09001003 libs: ["framework-internal-utils"],
Nan Zhangd25ad462018-08-22 10:48:15 -07001004 local_sourcepaths: frameworks_base_subdirs,
1005 installable: false,
Nan Zhang894c9ec2018-09-10 18:58:39 -07001006 annotations_enabled: true,
1007 previous_api: ":last-released-public-api",
1008 merge_annotations_dirs: [
Nan Zhangd25ad462018-08-22 10:48:15 -07001009 "metalava-manual",
Pete Gillinff978192018-09-17 15:45:33 +01001010 "ojluni-annotated-sdk-stubs",
Nan Zhangd25ad462018-08-22 10:48:15 -07001011 ],
Nan Zhang91cc7662018-09-18 10:46:10 -07001012 api_levels_annotations_enabled: true,
1013 api_levels_annotations_dirs: [
1014 "sdk-dir",
1015 "api-versions-jars-dir",
1016 ],
Jiyong Park5366ea22019-08-19 15:24:49 +09001017 sdk_version: "core_platform",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001018 filter_packages: packages_to_document,
Nan Zhangd25ad462018-08-22 10:48:15 -07001019}
1020
Nan Zhang7764a4b2018-08-22 11:27:31 -07001021droidstubs {
1022 name: "framework-doc-stubs",
1023 defaults: ["framework-doc-stubs-default"],
1024 arg_files: [
1025 "core/res/AndroidManifest.xml",
1026 ],
1027 args: metalava_framework_docs_args,
Jerome Gaillardb59a1cd2019-10-10 19:09:21 +01001028 write_sdk_values: true,
Nan Zhang7764a4b2018-08-22 11:27:31 -07001029}
1030
1031droidstubs {
1032 name: "framework-doc-system-stubs",
1033 defaults: ["framework-doc-stubs-default"],
1034 arg_files: [
1035 "core/res/AndroidManifest.xml",
1036 ],
1037 args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi ",
Jerome Gaillardb59a1cd2019-10-10 19:09:21 +01001038 write_sdk_values: true,
Nan Zhang7764a4b2018-08-22 11:27:31 -07001039}
1040
Nan Zhang3e15ba82018-07-26 18:41:12 +00001041droiddoc {
1042 name: "doc-comment-check-docs",
1043 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001044 srcs: [
1045 ":framework-doc-stubs",
1046 ],
1047 args: framework_docs_only_args + " -referenceonly -parsecomments",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001048 installable: false,
1049}
1050
1051droiddoc {
1052 name: "offline-sdk-docs",
1053 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001054 srcs: [
1055 ":framework-doc-stubs",
1056 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001057 hdf: [
1058 "android.whichdoc offline",
1059 ],
1060 proofread_file: "offline-sdk-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001061 args: framework_docs_only_args + " -offlinemode -title \"Android SDK\"",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001062 static_doc_index_redirect: "docs/docs-preview-index.html",
1063}
1064
1065droiddoc {
Nan Zhang963612b2018-09-21 17:16:49 -07001066 // Please sync with android-api-council@ before making any changes for the name property below.
1067 // Since there's cron jobs that fetch offline-sdk-referenceonly-docs-docs.zip periodically.
1068 // See b/116221385 for reference.
Nan Zhang3e15ba82018-07-26 18:41:12 +00001069 name: "offline-sdk-referenceonly-docs",
1070 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001071 srcs: [
1072 ":framework-doc-stubs",
1073 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001074 hdf: [
1075 "android.whichdoc offline",
1076 ],
1077 proofread_file: "offline-sdk-referenceonly-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001078 args: framework_docs_only_args + " -offlinemode -title \"Android SDK\" -referenceonly",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001079 static_doc_index_redirect: "docs/docs-documentation-redirect.html",
1080 static_doc_properties: "docs/source.properties",
1081}
1082
1083droiddoc {
Nan Zhang963612b2018-09-21 17:16:49 -07001084 // Please sync with android-api-council@ before making any changes for the name property below.
1085 // Since there's cron jobs that fetch offline-system-sdk-referenceonly-docs-docs.zip periodically.
1086 // See b/116221385 for reference.
Nan Zhang3e15ba82018-07-26 18:41:12 +00001087 name: "offline-system-sdk-referenceonly-docs",
1088 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001089 srcs: [
1090 ":framework-doc-system-stubs",
1091 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001092 hdf: [
1093 "android.whichdoc offline",
1094 ],
1095 proofread_file: "offline-system-sdk-referenceonly-docs-proofrerad.txt",
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001096 args: framework_docs_only_args + " -hide 101 -hide 104 -hide 108" +
1097 " -offlinemode -title \"Android System SDK\" -referenceonly",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001098 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,
1342 previous_api: ":last-released-public-api",
1343 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 Park0323b4d2019-08-23 20:36:58 +09001376 srcs: [
Paul Duffina0cb5382018-10-31 10:34:51 +00001377 ":non_openjdk_java_files",
Artur Satayev005d7352019-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 Park5366ea22019-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 },
Adrian Roos487c6462019-10-10 12:14:22 +02001437 api_lint: {
1438 enabled: true,
1439 new_since: ":last-released-public-api",
1440 baseline_file: "api/lint-baseline.txt",
1441 },
Nan Zhange5612602018-08-16 16:16:00 -07001442 },
Nan Zhang81f29f52018-09-17 14:33:08 -07001443 jdiff_enabled: true,
Nan Zhang4212eb12018-04-25 17:23:33 -07001444}
1445
Nan Zhang894c9ec2018-09-10 18:58:39 -07001446droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001447 name: "system-api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001448 defaults: ["metalava-api-stubs-default"],
Nan Zhang4d3f5012018-08-07 13:40:33 -07001449 api_tag_name: "SYSTEM",
Nan Zhang4212eb12018-04-25 17:23:33 -07001450 api_filename: "system-api.txt",
1451 private_api_filename: "system-private.txt",
1452 private_dex_api_filename: "system-private-dex.txt",
1453 removed_api_filename: "system-removed.txt",
1454 arg_files: [
1455 "core/res/AndroidManifest.xml",
1456 ],
1457 args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi",
Nan Zhange5612602018-08-16 16:16:00 -07001458 check_api: {
1459 current: {
1460 api_file: "api/system-current.txt",
1461 removed_api_file: "api/system-removed.txt",
1462 },
Nan Zhangcd060d92018-08-20 20:34:26 -07001463 last_released: {
1464 api_file: ":last-released-system-api",
1465 removed_api_file: "api/system-removed.txt",
Adrian Roos9597f8c2019-08-12 17:47:39 +02001466 baseline_file: ":system-api-incompatibilities-with-last-released"
Nan Zhangcd060d92018-08-20 20:34:26 -07001467 },
Adrian Roos487c6462019-10-10 12:14:22 +02001468 api_lint: {
1469 enabled: true,
1470 new_since: ":last-released-system-api",
1471 baseline_file: "api/system-lint-baseline.txt",
1472 },
Nan Zhange5612602018-08-16 16:16:00 -07001473 },
Nan Zhang81f29f52018-09-17 14:33:08 -07001474 jdiff_enabled: true,
Nan Zhang4212eb12018-04-25 17:23:33 -07001475}
1476
Nan Zhang894c9ec2018-09-10 18:58:39 -07001477droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001478 name: "test-api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001479 defaults: ["metalava-api-stubs-default"],
Nan Zhang4d3f5012018-08-07 13:40:33 -07001480 api_tag_name: "TEST",
Nan Zhang4212eb12018-04-25 17:23:33 -07001481 api_filename: "test-api.txt",
1482 removed_api_filename: "test-removed.txt",
1483 arg_files: [
1484 "core/res/AndroidManifest.xml",
1485 ],
1486 args: metalava_framework_docs_args + " --show-annotation android.annotation.TestApi",
Nan Zhange5612602018-08-16 16:16:00 -07001487 check_api: {
1488 current: {
1489 api_file: "api/test-current.txt",
1490 removed_api_file: "api/test-removed.txt",
1491 },
1492 },
Nan Zhang4212eb12018-04-25 17:23:33 -07001493}
Nan Zhangaf251302018-08-30 10:59:51 -07001494
1495filegroup {
1496 name: "framework-annotation-nonnull-srcs",
1497 srcs: [
1498 "core/java/android/annotation/NonNull.java",
1499 ],
1500}
Insun Kang06b25ae2018-11-20 10:05:44 +09001501
1502filegroup {
1503 name: "framework-media-annotation-srcs",
1504 srcs: [
1505 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001506 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001507 "core/java/android/annotation/DrawableRes.java",
1508 "core/java/android/annotation/IntDef.java",
1509 "core/java/android/annotation/LongDef.java",
1510 "core/java/android/annotation/NonNull.java",
1511 "core/java/android/annotation/Nullable.java",
1512 "core/java/android/annotation/RequiresPermission.java",
1513 "core/java/android/annotation/SdkConstant.java",
1514 "core/java/android/annotation/StringDef.java",
Sungsoo Limbb3b4012019-01-23 13:17:53 +09001515 "core/java/android/annotation/SystemApi.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001516 "core/java/android/annotation/TestApi.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001517 "core/java/android/annotation/UnsupportedAppUsage.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001518 "core/java/com/android/internal/annotations/GuardedBy.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001519 ],
1520}
1521
Andrei Onea7a2985c2019-02-18 15:28:35 +00001522// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1523// annotations to private apis
1524aidl_mapping {
1525 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001526 srcs: [":framework-all-sources"],
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001527 output: "framework-aidl-mappings.txt",
Dario Freni2ce84342019-04-26 13:06:22 +01001528}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001529
1530genrule {
1531 name: "framework-annotation-proc-index",
1532 srcs: [":framework-annotation-proc"],
1533 cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)",
1534 out: ["unsupportedappusage_index.csv"],
1535 dist: {
1536 targets: ["droidcore"],
1537 },
1538}
Chen Xu0e9d6752019-10-08 18:39:03 -07001539
1540// Avoid including Parcelable classes as we don't want to have two copies of
1541// Parcelable cross the process.
1542filegroup {
1543 name: "framework-cellbroadcast-shared-srcs",
1544 srcs: [
1545 "core/java/android/util/LocalLog.java",
1546 "core/java/android/util/Slog.java",
1547 "core/java/com/android/internal/util/State.java",
1548 "core/java/com/android/internal/util/StateMachine.java",
1549 ],
1550}