blob: a913324aa9caee5ab34f02957c7e1de21ec2ebb9 [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
atrostff948d82019-10-10 19:27:31 +0100197 // AIDL from frameworks/base/native/
198 ":platform-compat-native-aidl",
199
Jiyong Park5366ea22019-08-19 15:24:49 +0900200 // AIDL sources from external directories
201 ":dumpstate_aidl",
202 ":framework_native_aidl",
203 ":gatekeeper_aidl",
204 ":gsiservice_aidl",
205 ":incidentcompanion_aidl",
206 ":installd_aidl",
207 ":keystore_aidl",
208 ":libaudioclient_aidl",
209 ":libbinder_aidl",
210 ":libbluetooth-binder-aidl",
211 ":libcamera_client_aidl",
212 ":libcamera_client_framework_aidl",
213 ":libupdate_engine_aidl",
214 ":storaged_aidl",
215 ":vold_aidl",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900216
Jiyong Park5366ea22019-08-19 15:24:49 +0900217 // For the generated R.java and Manifest.java
218 ":framework-res{.aapt.srcjar}",
219
220 // etc.
221 ":framework-javastream-protos",
222 ":framework-statslog-gen",
223 ],
224}
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900225
Jiyong Parkae9972b2019-09-15 20:19:02 +0900226filegroup {
227 name: "framework-all-sources",
228 srcs: [
229 ":framework-non-updatable-sources",
230 ":updatable-media-srcs",
231 ],
232}
233
Artur Satayev005d7352019-08-02 16:42:07 +0100234java_defaults {
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900235 name: "framework-aidl-export-defaults",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800236 aidl: {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900237 export_include_dirs: [
238 "core/java",
239 "drm/java",
240 "graphics/java",
241 "keystore/java",
242 "location/java",
243 "lowpan/java",
244 "media/java",
245 "media/apex/java",
246 "media/mca/effect/java",
247 "media/mca/filterfw/java",
248 "media/mca/filterpacks/java",
249 "opengl/java",
250 "rs/java",
251 "sax/java",
252 "telecomm/java",
253 "telephony/java",
254 "wifi/java",
255 ],
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900256 },
257}
Colin Crosscf3a0b52017-11-16 00:15:28 -0800258
Jiyong Park5366ea22019-08-19 15:24:49 +0900259// Collection of classes that are generated from non-Java files that are not listed in
260// framework_srcs. These have no or very limited dependency to the framework.
261java_library {
262 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800263 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100264 "apex_aidl_interface-java",
Kalesh Singh759af322019-06-19 12:17:43 -0700265 "suspend_control_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800266 "framework-protos",
Peiyong Lin9ca1dd82019-01-12 17:44:29 -0800267 "game-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800268 "android.hidl.base-V1.0-java",
Henry Fang5215ac92019-02-01 19:24:55 +0000269 "android.hardware.cas-V1.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800270 "android.hardware.cas-V1.0-java",
271 "android.hardware.contexthub-V1.0-java",
272 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800273 "android.hardware.radio-V1.0-java",
274 "android.hardware.radio-V1.1-java",
275 "android.hardware.radio-V1.2-java",
276 "android.hardware.radio-V1.3-java",
277 "android.hardware.radio-V1.4-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800278 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800279 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700280 "android.hardware.thermal-V1.1-java",
281 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800282 "android.hardware.tv.input-V1.0-java-constants",
283 "android.hardware.usb-V1.0-java-constants",
284 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800285 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800286 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000287 "android.hardware.vibrator-V1.0-java",
288 "android.hardware.vibrator-V1.1-java",
289 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900290 "android.hardware.vibrator-V1.3-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800291 "android.hardware.wifi-V1.0-java-constants",
arangelov1ab61492018-11-22 13:56:50 +0000292 "devicepolicyprotosnano",
Inseob Kim617a7222019-07-30 18:23:26 +0900293
294 "com.android.sysprop.apex",
295 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800296 ],
Jiyong Park5366ea22019-08-19 15:24:49 +0900297 sdk_version: "core_platform",
298 installable: false,
299}
300
301java_defaults {
302 name: "framework-defaults",
303 defaults: ["framework-aidl-export-defaults"],
304 installable: true,
305
Jiyong Park5366ea22019-08-19 15:24:49 +0900306 aidl: {
307 generate_get_transaction_name: true,
308 },
309
Jiyong Parkae9972b2019-09-15 20:19:02 +0900310 srcs: ["core/java/**/*.logtags"],
311
Jiyong Park5366ea22019-08-19 15:24:49 +0900312 exclude_srcs: [
313 // See comment on framework-atb-backward-compatibility module below
314 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
315 ],
316
317 sdk_version: "core_platform",
318 libs: [
319 "ext",
320 "updatable_media_stubs",
321 ],
322
323 jarjar_rules: ":framework-jarjar-rules",
324
Tobias Thierer878c77b2019-08-18 15:19:45 +0100325 static_libs: [
326 "framework-internal-utils",
327 "mimemap",
328 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800329
Wei Jia0a8a8f02017-12-05 17:05:29 -0800330 required: [
Anton Hansson11905c62018-11-27 12:10:30 +0000331 // TODO: remove gps_debug when the build system propagates "required" properly.
332 "gps_debug.conf",
Logan Chien71ddfea2018-02-27 16:43:50 +0800333 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800334
Colin Crosscf3a0b52017-11-16 00:15:28 -0800335 dxflags: [
336 "--core-library",
337 "--multi-dex",
338 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100339
Ashley Roseb47ddd42019-01-28 19:54:09 -0500340 plugins: ["view-inspector-annotation-processor"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100341}
342
Colin Crossbc2dc312018-10-26 22:34:06 -0700343filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800344 name: "framework-jarjar-rules",
345 srcs: ["jarjar_rules_hidl.txt"],
346}
347
348filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700349 name: "libincident_aidl",
350 srcs: [
351 "core/java/android/os/IIncidentManager.aidl",
352 "core/java/android/os/IIncidentReportStatusListener.aidl",
353 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700354 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700355}
356
357filegroup {
358 name: "statsd_aidl",
359 srcs: [
360 "core/java/android/os/IStatsCompanionService.aidl",
361 "core/java/android/os/IStatsManager.aidl",
Tej Singha0c89dd2019-01-25 16:39:18 -0800362 "core/java/android/os/IStatsPullerCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700363 ],
Dan Willemsena38ff9f2019-06-11 10:56:01 -0700364 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700365}
366
Michael Wrightc390fbe2018-12-12 19:45:09 +0000367filegroup {
368 name: "libvibrator_aidl",
369 srcs: [
370 "core/java/android/os/IExternalVibrationController.aidl",
371 "core/java/android/os/IExternalVibratorService.aidl",
372 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700373 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000374}
375
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100376java_library {
377 name: "framework",
378 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900379 srcs: [":framework-non-updatable-sources"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100380 javac_shard_size: 150,
atrostb9c34502019-08-05 12:22:18 +0100381 required: [
382 "framework-platform-compat-config",
383 "libcore-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100384 "services-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100385 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100386}
387
388java_library {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900389 name: "framework-all",
390 defaults: ["framework-defaults"],
391 srcs: [":framework-all-sources"],
392 installable: false,
393}
394
395java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100396 name: "framework-annotation-proc",
397 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900398 srcs: [":framework-all-sources"],
Anna Trostanetski97088e92019-06-26 14:47:58 +0100399 installable: false,
atrostb9c34502019-08-05 12:22:18 +0100400 plugins: [
401 "unsupportedappusage-annotation-processor",
402 "compat-changeid-annotation-processor",
403 ],
404}
405
406platform_compat_config {
407 name: "framework-platform-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100408 src: ":framework-annotation-proc",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100409}
410
Paul Duffin521975802019-06-05 10:35:08 +0100411// A library including just UnsupportedAppUsage.java classes.
412//
413// Provided for target so that libraries can use it without depending on
414// the whole of framework or the core platform API.
415//
416// Built for host so that the annotation processor can also use this annotation.
417java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100418 name: "unsupportedappusage-annotation",
Paul Duffin521975802019-06-05 10:35:08 +0100419 host_supported: true,
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100420 srcs: [
421 "core/java/android/annotation/IntDef.java",
422 "core/java/android/annotation/UnsupportedAppUsage.java",
Paul Duffinc1308012019-10-10 16:33:42 +0100423 ],
424 static_libs: [
425 "art.module.api.annotations",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100426 ],
Paul Duffin521975802019-06-05 10:35:08 +0100427
428 sdk_version: "core_current",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800429}
430
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000431// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000432// android.test.base library has been removed and which provides support for
433// maintaining backwards compatibility for APKs that target pre-P and depend on
434// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
435// specified on the build command line.
436java_library {
437 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000438 installable: true,
Paul Duffina3b69212018-01-25 09:58:32 +0000439 srcs: [
440 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
441 ],
442}
443
Colin Crosscf3a0b52017-11-16 00:15:28 -0800444genrule {
445 name: "framework-statslog-gen",
446 tools: ["stats-log-api-gen"],
447 cmd: "$(location stats-log-api-gen) --java $(out)",
David Chen0a368b22017-12-06 16:28:16 -0800448 out: ["android/util/StatsLogInternal.java"],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800449}
450
451gensrcs {
452 name: "framework-javastream-protos",
453 depfile: true,
454
Tobias Thiererbc050342019-05-23 16:20:12 +0100455 tool_files: ["tools/genprotos.sh"],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800456 tools: [
457 "aprotoc",
458 "protoc-gen-javastream",
459 "soong_zip",
460 ],
461
Alex Light159799d2018-08-08 07:05:19 -0700462 // TODO This should not be needed. If you set a custom OUT_DIR or OUT_DIR_COMMON_BASE you can
463 // end up with a command that is extremely long, potentially going passed MAX_ARG_STRLEN due to
464 // the way sbox rewrites the command. See b/70221552.
465 cmd: "$(location tools/genprotos.sh) " +
Tobias Thiererbc050342019-05-23 16:20:12 +0100466 " $(location aprotoc) " +
467 " $(location protoc-gen-javastream) " +
468 " $(location soong_zip) " +
469 " $(genDir) " +
470 " $(depfile) " +
471 " $(in) " +
472 " $(out)",
Yi Jin437aa6e2018-01-10 11:34:26 -0800473 srcs: [
474 "core/proto/**/*.proto",
475 "libs/incident/**/*.proto",
476 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800477 output_extension: "srcjar",
478}
479
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900480filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900481 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900482 srcs: [
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900483 "core/java/android/annotation/NonNull.java",
484 "core/java/android/annotation/Nullable.java",
485 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900486 "core/java/android/annotation/IntRange.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900487 "core/java/android/annotation/UnsupportedAppUsage.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900488 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900489 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Tobias Thiererbc050342019-05-23 16:20:12 +0100490 ],
Chalard Jean95213512019-01-30 21:04:58 +0900491}
492
493filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900494 name: "framework-networkstack-shared-srcs",
495 srcs: [
496 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900497 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900498 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900499 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900500 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900501 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900502 "core/java/com/android/internal/util/IState.java",
503 "core/java/com/android/internal/util/MessageUtils.java",
504 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900505 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900506 "core/java/com/android/internal/util/State.java",
507 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900508 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900509 "core/java/com/android/internal/util/WakeupMessage.java",
510 "core/java/android/net/shared/*.java",
Tobias Thiererbc050342019-05-23 16:20:12 +0100511 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900512}
513
markchiena6ba54d2019-09-03 15:58:06 +0800514filegroup {
515 name: "framework-tethering-shared-srcs",
516 srcs: [
517 "core/java/android/util/LocalLog.java",
518 ],
519}
Colin Crossd8e02252017-10-02 17:14:22 -0700520// Build ext.jar
521// ============================================================
522java_library {
523 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700524 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100525 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700526 static_libs: [
527 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700528 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000529 "rappor",
Tony Mak64c4cb22018-09-25 13:38:28 +0100530 "libtextclassifier-java",
531 ],
532 required: [
533 "libtextclassifier",
Colin Crossd8e02252017-10-02 17:14:22 -0700534 ],
535 dxflags: ["--core-library"],
536}
537
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700538// ==== java proto host library ==============================
539java_library_host {
540 name: "platformprotos",
541 srcs: [
542 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700543 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700544 "core/proto/**/*.proto",
545 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700546 ],
547 proto: {
548 include_dirs: ["external/protobuf/src"],
549 type: "full",
550 },
551 errorprone: {
Tobias Thiererbc050342019-05-23 16:20:12 +0100552 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700553 },
554}
555
Colin Cross43214162018-08-20 13:57:24 -0700556// ==== java proto device library (for test only) ==============================
557java_library {
558 name: "platformprotosnano",
559 proto: {
560 type: "nano",
561 output_params: ["store_unknown_fields=true"],
562 include_dirs: ["external/protobuf/src"],
563 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000564 exclude_srcs: [
565 "core/proto/android/privacy.proto",
566 "core/proto/android/section.proto",
567 ],
Colin Cross43214162018-08-20 13:57:24 -0700568 sdk_version: "current",
569 srcs: [
570 "core/proto/**/*.proto",
571 "libs/incident/proto/android/os/**/*.proto",
572 ],
573}
574
575// ==== java proto device library (for test only) ==============================
576java_library {
577 name: "platformprotoslite",
578 proto: {
579 type: "lite",
580 include_dirs: ["external/protobuf/src"],
581 },
582
583 srcs: [
584 "core/proto/**/*.proto",
585 "libs/incident/proto/android/os/**/*.proto",
586 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000587 exclude_srcs: [
588 "core/proto/android/privacy.proto",
589 "core/proto/android/section.proto",
590 ],
Colin Cross43214162018-08-20 13:57:24 -0700591 // Protos have lots of MissingOverride and similar.
592 errorprone: {
593 javacflags: ["-XepDisableAllChecks"],
594 },
595}
596
Colin Crossaa0d4352017-05-02 14:14:56 -0700597// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000598cc_defaults {
599 name: "libplatformprotos-defaults",
600
Colin Crossaa0d4352017-05-02 14:14:56 -0700601 proto: {
602 export_proto_headers: true,
603 include_dirs: ["external/protobuf/src"],
604 },
605
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700606 cflags: [
607 "-Wall",
608 "-Werror",
609 "-Wno-unused-parameter",
610 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800611
612 srcs: [
613 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800614 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000615}
616
617cc_library {
618 name: "libplatformprotos",
619 defaults: ["libplatformprotos-defaults"],
620 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800621
Colin Crossaa0d4352017-05-02 14:14:56 -0700622 target: {
623 host: {
624 proto: {
625 type: "full",
626 },
627 },
628 android: {
629 proto: {
630 type: "lite",
631 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000632 shared_libs: [
633 "libprotobuf-cpp-lite",
634 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700635 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700636 enabled: false,
637 },
638 },
639 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700640}
641
Joe Onorato9bd5db72019-04-03 18:19:43 -0700642// This library is meant for vendor code that needs to output protobuf. It links
643// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
644// binary compatibility.
645cc_library {
646 name: "libplatformprotos-static",
647 defaults: ["libplatformprotos-defaults"],
648 host_supported: false,
649
650 // This is okay because this library is only built as a static library. The C++
651 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
652 // but is not authorized to be used outside of debugging.
653 vendor_available: true,
654
655 target: {
656 android: {
657 proto: {
658 type: "lite",
659 },
660 static_libs: [
661 "libprotobuf-cpp-lite",
662 ],
663 shared: {
664 enabled: false,
665 },
666 },
667 },
668}
669
670
Joe Onorato99598ee2019-02-11 15:55:13 +0000671// This is the full proto version of libplatformprotos. It may only
672// be used by test code that is not shipped on the device.
673cc_library {
674 name: "libplatformprotos-test",
675 defaults: ["libplatformprotos-defaults"],
676 host_supported: false,
677
678 target: {
679 android: {
680 proto: {
681 type: "full",
682 },
683 shared: {
684 enabled: false,
685 },
686 },
687 },
688}
689
690
Yi Jin04625ad2017-10-17 18:29:33 -0700691gensrcs {
692 name: "gen-platform-proto-constants",
693 depfile: true,
694
695 tools: [
696 "aprotoc",
697 "protoc-gen-cppstream",
698 ],
699
700 srcs: [
Kweku Adamseadd1232018-02-05 16:45:13 -0800701 "core/proto/android/os/backtrace.proto",
Kweku Adams59e6fd72017-12-27 15:48:14 -0800702 "core/proto/android/os/batterytype.proto",
Yi Jin0eb22342017-11-06 17:17:27 -0800703 "core/proto/android/os/cpufreq.proto",
Yi Jine2f7f792017-11-01 17:08:27 -0700704 "core/proto/android/os/cpuinfo.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700705 "core/proto/android/os/data.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700706 "core/proto/android/os/kernelwake.proto",
707 "core/proto/android/os/pagetypeinfo.proto",
708 "core/proto/android/os/procrank.proto",
Kweku Adamsf5cc5752017-12-20 17:59:17 -0800709 "core/proto/android/os/ps.proto",
Yi Jin0dfa7522017-11-06 17:43:47 -0800710 "core/proto/android/os/system_properties.proto",
Yi Jin3c034c92017-12-22 17:36:47 -0800711 "core/proto/android/util/event_log_tags.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700712 "core/proto/android/util/log.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700713 ],
714
715 // Append protoc-gen-cppstream tool's PATH otherwise aprotoc can't find the plugin tool
Yi Jin3c034c92017-12-22 17:36:47 -0800716 cmd: "mkdir -p $(genDir) " +
717 "&& $(location aprotoc) " +
718 " --plugin=$(location protoc-gen-cppstream) " +
719 " --dependency_out=$(depfile) " +
720 " --cppstream_out=$(genDir) " +
721 " -Iexternal/protobuf/src " +
722 " -I . " +
723 " $(in)",
Yi Jin04625ad2017-10-17 18:29:33 -0700724
Logan Chien71ddfea2018-02-27 16:43:50 +0800725 output_extension: "proto.h",
Yi Jin04625ad2017-10-17 18:29:33 -0700726}
727
Joe Onorato99598ee2019-02-11 15:55:13 +0000728
Dan Albert2a8d9c22016-09-23 15:55:49 -0700729subdirs = [
Yi Jin0a3406f2017-06-22 19:23:11 -0700730 "cmds/*",
Jeff Sharkey0c686e72017-10-23 16:04:31 -0600731 "core/*",
Colin Cross4f8d9e62016-12-01 15:55:00 -0800732 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -0700733 "media/*",
Colin Cross747e7c12017-10-24 16:21:22 -0700734 "proto",
Fabien Sanglard19160202017-01-12 14:24:31 -0500735 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700736 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -0700737 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700738]
Svetoslav Ganov74c99832016-12-05 20:07:20 -0800739
740optional_subdirs = [
741 "core/tests/utiltests/jni",
742]
Steven Morelandeddafe92017-10-02 16:58:41 -0700743
Colin Crossa2b78a72018-03-29 13:31:04 -0700744// TODO(b/77285514): remove this once the last few hidl interfaces have been
745// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -0700746java_library {
747 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +0100748 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -0700749
750 srcs: [
751 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800752 "core/java/android/annotation/IntDef.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700753 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -0800754 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800755 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -0800756 "core/java/android/annotation/TestApi.java",
Andrei Onea24ec3212019-03-15 17:35:05 +0000757 "core/java/android/annotation/UnsupportedAppUsage.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700758 "core/java/android/os/HwBinder.java",
759 "core/java/android/os/HwBlob.java",
760 "core/java/android/os/HwParcel.java",
761 "core/java/android/os/IHwBinder.java",
762 "core/java/android/os/IHwInterface.java",
763 "core/java/android/os/DeadObjectException.java",
764 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -0700765 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700766 "core/java/android/os/RemoteException.java",
767 "core/java/android/util/AndroidException.java",
768 ],
769
770 dxflags: ["--core-library"],
771 installable: false,
772}
Nan Zhang2db709d2017-11-08 20:48:46 -0800773
774python_defaults {
775 name: "base_default",
776 version: {
777 py2: {
778 enabled: true,
779 embedded_launcher: true,
780 },
781 py3: {
782 enabled: false,
783 embedded_launcher: false,
784 },
785 },
786}
787
788python_binary_host {
789 name: "fontchain_linter",
790 defaults: ["base_default"],
791 main: "tools/fonts/fontchain_linter.py",
792 srcs: [
793 "tools/fonts/fontchain_linter.py",
794 ],
795 libs: [
796 "fontTools",
797 ],
798}
Nan Zhang172875b2018-02-27 11:24:03 -0800799
Jiyong Park5366ea22019-08-19 15:24:49 +0900800// TODO: Don't rely on this list by switching package.html into package-info.java
Nan Zhang172875b2018-02-27 11:24:03 -0800801frameworks_base_subdirs = [
802 "core/java",
803 "graphics/java",
804 "location/java",
805 "media/java",
806 "media/mca/effect/java",
807 "media/mca/filterfw/java",
808 "media/mca/filterpacks/java",
809 "drm/java",
810 "opengl/java",
811 "sax/java",
812 "telecomm/java",
813 "telephony/java",
814 "wifi/java",
815 "lowpan/java",
816 "keystore/java",
817 "rs/java",
818]
819
Paul Duffin0440e1f2019-02-11 16:13:25 +0000820// Make the api/current.txt file available for use by modules in other
821// directories.
822filegroup {
823 name: "frameworks-base-api-current.txt",
824 srcs: [
825 "api/current.txt",
826 ],
827}
828
Paul Duffincd35de32019-05-30 15:12:47 +0100829// Make the api/system-current.txt file available for use by modules in other
830// directories.
831filegroup {
832 name: "frameworks-base-api-system-current.txt",
833 srcs: [
834 "api/system-current.txt",
835 ],
836}
837
838// Make the api/system-removed.txt file available for use by modules in other
839// directories.
840filegroup {
841 name: "frameworks-base-api-system-removed.txt",
842 srcs: [
843 "api/system-removed.txt",
844 ],
845}
846
Nan Zhang7764a4b2018-08-22 11:27:31 -0700847framework_docs_only_args = " -android -manifest $(location core/res/AndroidManifest.xml) " +
Tobias Thiererbc050342019-05-23 16:20:12 +0100848 "-werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 " +
849 "-overview $(location core/java/overview.html) " +
850 // Federate Support Library references against local API file.
851 "-federate SupportLib https://developer.android.com " +
852 "-federationapi SupportLib $(location :current-support-api) "
Nan Zhang172875b2018-02-27 11:24:03 -0800853
Nan Zhang7764a4b2018-08-22 11:27:31 -0700854framework_docs_only_libs = [
Nan Zhang7764a4b2018-08-22 11:27:31 -0700855 "voip-common",
856 "android.test.mock",
857 "android-support-annotations",
858 "android-support-compat",
859 "android-support-core-ui",
860 "android-support-core-utils",
861 "android-support-customtabs",
862 "android-support-design",
863 "android-support-dynamic-animation",
864 "android-support-exifinterface",
865 "android-support-fragment",
866 "android-support-media-compat",
867 "android-support-percent",
868 "android-support-recommendation",
869 "android-support-transition",
870 "android-support-tv-provider",
871 "android-support-v7-cardview",
872 "android-support-v7-gridlayout",
873 "android-support-v7-mediarouter",
874 "android-support-v7-palette",
875 "android-support-v7-preference",
876 "android-support-v13",
877 "android-support-v14-preference",
878 "android-support-v17-leanback",
879 "android-support-v17-preference-leanback",
880 "android-support-wear",
881 "android-support-vectordrawable",
882 "android-support-animatedvectordrawable",
883 "android-support-v7-appcompat",
884 "android-support-v7-recyclerview",
885 "android-support-emoji",
886 "android-support-emoji-appcompat",
887 "android-support-emoji-bundled",
888 "android-support-v8-renderscript",
889 "android-support-multidex",
890 "android-support-multidex-instrumentation",
891]
892
893metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
894 "--hide-package com.android.okhttp " +
895 "--hide-package com.android.org.conscrypt --hide-package com.android.server " +
Adrian Roosc6e2fc82018-12-12 15:08:44 +0100896 "--error UnhiddenSystemApi " +
Nan Zhang7764a4b2018-08-22 11:27:31 -0700897 "--hide RequiresPermission " +
898 "--hide MissingPermission --hide BroadcastBehavior " +
899 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
Tobias Thierer8f559412019-05-22 20:17:49 +0100900 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo "
901
902// http://b/129765390 Rewrite links to "platform" or "technotes" folders
903// which are siblings (and thus outside of) {@docRoot}.
904//
905// We have to escape \ as \\ and $ as $$ here because they get resolved by
906// different layers of the build tooling. The arguments are wrapped in '' so
907// that the shell doesn't add yet another level of escaping.
908metalava_framework_docs_args += " --replace-documentation " +
909 // packages whose descendants to apply replacement to (all packages from
910 // libcore/ojluni/src/main/java that contribute to documentation).
911 "com.sun:java:javax:jdk.net:sun " +
912 // regex of the string to replace
913 "'(<a\\s+href\\s?=[\\*\\s]*\")(?:(?:\\{@docRoot\\}/\\.\\./)|(?:(?:\\.\\./)+))((?:platform|technotes).+)\">' " +
914 // replacement (with $1, $2 backreferences to the regex groups)
915 "'$$1https://docs.oracle.com/javase/8/docs/$$2\">' "
Nan Zhang7764a4b2018-08-22 11:27:31 -0700916
Jiyong Parkae9972b2019-09-15 20:19:02 +0900917packages_to_document = [
918 "android",
Jiyong Parkb1d27012019-09-17 14:51:28 +0900919 "dalvik",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900920 "java",
921 "javax",
Jiyong Parkb1d27012019-09-17 14:51:28 +0900922 "junit",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900923 "org.apache.http",
924 "org.json",
925 "org.w3c.dom",
926 "org.xml.sax",
927 "org.xmlpull",
928]
929
Nan Zhang7764a4b2018-08-22 11:27:31 -0700930stubs_defaults {
931 name: "framework-doc-stubs-default",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000932 srcs: [
Jiyong Parkae9972b2019-09-15 20:19:02 +0900933 ":framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900934 "core/java/**/*.logtags",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000935 "test-base/src/**/*.java",
936 ":opt-telephony-srcs",
937 ":opt-net-voip-srcs",
Paul Duffine86cc6f2019-10-04 10:10:58 +0100938 ":core-current-stubs-source",
Neil Fuller3b1b7032019-02-26 12:00:38 +0000939 ":core_public_api_files",
Jiyong Parkdf6c25d2019-08-20 20:48:47 +0900940 ":updatable-media-srcs",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000941 "test-mock/src/**/*.java",
942 "test-runner/src/**/*.java",
943 ],
Nan Zhang7764a4b2018-08-22 11:27:31 -0700944 libs: framework_docs_only_libs,
Nan Zhang3e15ba82018-07-26 18:41:12 +0000945 local_sourcepaths: frameworks_base_subdirs,
Nan Zhang7764a4b2018-08-22 11:27:31 -0700946 create_doc_stubs: true,
947 annotations_enabled: true,
948 api_levels_annotations_enabled: true,
949 api_levels_annotations_dirs: [
950 "sdk-dir",
951 "api-versions-jars-dir",
952 ],
953 previous_api: ":last-released-public-api",
954 merge_annotations_dirs: [
955 "metalava-manual",
Pete Gillinff978192018-09-17 15:45:33 +0100956 "ojluni-annotated-sdk-stubs",
Nan Zhang7764a4b2018-08-22 11:27:31 -0700957 ],
958}
959
960doc_defaults {
961 name: "framework-docs-default",
Nan Zhangb03396e2018-10-11 18:06:10 -0700962 libs: framework_docs_only_libs +
Tobias Thiererbc050342019-05-23 16:20:12 +0100963 ["stub-annotations"],
Nan Zhang3e15ba82018-07-26 18:41:12 +0000964 html_dirs: [
965 "docs/html",
966 ],
967 knowntags: [
968 "docs/knowntags.txt",
969 ":known-oj-tags",
970 ],
971 custom_template: "droiddoc-templates-sdk",
972 resourcesdir: "docs/html/reference/images/",
973 resourcesoutdir: "reference/android/images/",
974 hdf: [
975 "dac true",
976 "sdk.codename O",
977 "sdk.preview.version 1",
978 "sdk.version 7.0",
979 "sdk.rel.id 1",
980 "sdk.preview 0",
981 ],
982 arg_files: [
983 "core/res/AndroidManifest.xml",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000984 "core/java/overview.html",
985 ":current-support-api",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000986 ],
987 create_stubs: false,
988}
989
Tiem Song730c19b2019-08-26 11:27:27 -0700990doc_defaults {
991 name: "framework-dokka-docs-default",
992 create_stubs: false,
993}
994
Nan Zhang894c9ec2018-09-10 18:58:39 -0700995stubs_defaults {
Nan Zhangd25ad462018-08-22 10:48:15 -0700996 name: "metalava-api-stubs-default",
997 srcs: [
Jiyong Parkae9972b2019-09-15 20:19:02 +0900998 ":framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900999 "core/java/**/*.logtags",
Nan Zhangd25ad462018-08-22 10:48:15 -07001000 ":opt-telephony-srcs",
1001 ":opt-net-voip-srcs",
Paul Duffine86cc6f2019-10-04 10:10:58 +01001002 ":core-current-stubs-source",
Neil Fuller3b1b7032019-02-26 12:00:38 +00001003 ":core_public_api_files",
Jiyong Parkdf6c25d2019-08-20 20:48:47 +09001004 ":updatable-media-srcs",
Nan Zhangd25ad462018-08-22 10:48:15 -07001005 ],
Jiyong Park5366ea22019-08-19 15:24:49 +09001006 libs: ["framework-internal-utils"],
Nan Zhangd25ad462018-08-22 10:48:15 -07001007 local_sourcepaths: frameworks_base_subdirs,
1008 installable: false,
Nan Zhang894c9ec2018-09-10 18:58:39 -07001009 annotations_enabled: true,
1010 previous_api: ":last-released-public-api",
1011 merge_annotations_dirs: [
Nan Zhangd25ad462018-08-22 10:48:15 -07001012 "metalava-manual",
Pete Gillinff978192018-09-17 15:45:33 +01001013 "ojluni-annotated-sdk-stubs",
Nan Zhangd25ad462018-08-22 10:48:15 -07001014 ],
Nan Zhang91cc7662018-09-18 10:46:10 -07001015 api_levels_annotations_enabled: true,
1016 api_levels_annotations_dirs: [
1017 "sdk-dir",
1018 "api-versions-jars-dir",
1019 ],
Jiyong Park5366ea22019-08-19 15:24:49 +09001020 sdk_version: "core_platform",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001021 filter_packages: packages_to_document,
Nan Zhangd25ad462018-08-22 10:48:15 -07001022}
1023
Nan Zhang7764a4b2018-08-22 11:27:31 -07001024droidstubs {
1025 name: "framework-doc-stubs",
1026 defaults: ["framework-doc-stubs-default"],
1027 arg_files: [
1028 "core/res/AndroidManifest.xml",
1029 ],
1030 args: metalava_framework_docs_args,
Jerome Gaillardb59a1cd2019-10-10 19:09:21 +01001031 write_sdk_values: true,
Nan Zhang7764a4b2018-08-22 11:27:31 -07001032}
1033
1034droidstubs {
1035 name: "framework-doc-system-stubs",
1036 defaults: ["framework-doc-stubs-default"],
1037 arg_files: [
1038 "core/res/AndroidManifest.xml",
1039 ],
1040 args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi ",
Jerome Gaillardb59a1cd2019-10-10 19:09:21 +01001041 write_sdk_values: true,
Nan Zhang7764a4b2018-08-22 11:27:31 -07001042}
1043
Nan Zhang3e15ba82018-07-26 18:41:12 +00001044droiddoc {
1045 name: "doc-comment-check-docs",
1046 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001047 srcs: [
1048 ":framework-doc-stubs",
1049 ],
1050 args: framework_docs_only_args + " -referenceonly -parsecomments",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001051 installable: false,
1052}
1053
1054droiddoc {
1055 name: "offline-sdk-docs",
1056 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001057 srcs: [
1058 ":framework-doc-stubs",
1059 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001060 hdf: [
1061 "android.whichdoc offline",
1062 ],
1063 proofread_file: "offline-sdk-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001064 args: framework_docs_only_args + " -offlinemode -title \"Android SDK\"",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001065 static_doc_index_redirect: "docs/docs-preview-index.html",
1066}
1067
1068droiddoc {
Nan Zhang963612b2018-09-21 17:16:49 -07001069 // Please sync with android-api-council@ before making any changes for the name property below.
1070 // Since there's cron jobs that fetch offline-sdk-referenceonly-docs-docs.zip periodically.
1071 // See b/116221385 for reference.
Nan Zhang3e15ba82018-07-26 18:41:12 +00001072 name: "offline-sdk-referenceonly-docs",
1073 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001074 srcs: [
1075 ":framework-doc-stubs",
1076 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001077 hdf: [
1078 "android.whichdoc offline",
1079 ],
1080 proofread_file: "offline-sdk-referenceonly-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001081 args: framework_docs_only_args + " -offlinemode -title \"Android SDK\" -referenceonly",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001082 static_doc_index_redirect: "docs/docs-documentation-redirect.html",
1083 static_doc_properties: "docs/source.properties",
1084}
1085
1086droiddoc {
Nan Zhang963612b2018-09-21 17:16:49 -07001087 // Please sync with android-api-council@ before making any changes for the name property below.
1088 // Since there's cron jobs that fetch offline-system-sdk-referenceonly-docs-docs.zip periodically.
1089 // See b/116221385 for reference.
Nan Zhang3e15ba82018-07-26 18:41:12 +00001090 name: "offline-system-sdk-referenceonly-docs",
1091 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001092 srcs: [
1093 ":framework-doc-system-stubs",
1094 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001095 hdf: [
1096 "android.whichdoc offline",
1097 ],
1098 proofread_file: "offline-system-sdk-referenceonly-docs-proofrerad.txt",
Tobias Thiererbc050342019-05-23 16:20:12 +01001099 args: framework_docs_only_args + " -hide 101 -hide 104 -hide 108" +
1100 " -offlinemode -title \"Android System SDK\" -referenceonly",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001101 static_doc_index_redirect: "docs/docs-documentation-redirect.html",
1102 static_doc_properties: "docs/source.properties",
1103}
1104
1105droiddoc {
1106 name: "online-sdk-docs",
1107 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001108 srcs: [
1109 ":framework-doc-stubs",
1110 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001111 hdf: [
1112 "android.whichdoc online",
1113 "android.hasSamples true",
1114 ],
1115 proofread_file: "online-sdk-docs-proofrerad.txt",
Tobias Thiererbc050342019-05-23 16:20:12 +01001116 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001117 " -toroot / -samplegroup Admin " +
1118 " -samplegroup Background " +
1119 " -samplegroup Connectivity " +
1120 " -samplegroup Content " +
1121 " -samplegroup Input " +
1122 " -samplegroup Media " +
1123 " -samplegroup Notification " +
1124 " -samplegroup RenderScript " +
1125 " -samplegroup Security " +
1126 " -samplegroup Sensors " +
1127 " -samplegroup System " +
1128 " -samplegroup Testing " +
1129 " -samplegroup UI " +
1130 " -samplegroup Views " +
1131 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1132}
1133
1134droiddoc {
1135 name: "online-system-api-sdk-docs",
1136 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001137 srcs: [
1138 ":framework-doc-system-stubs",
1139 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001140 hdf: [
1141 "android.whichdoc online",
1142 "android.hasSamples true",
1143 ],
1144 proofread_file: "online-system-api-sdk-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001145 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001146 " -referenceonly " +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001147 " -title \"Android SDK - Including system APIs.\" " +
1148 " -hide 101 " +
1149 " -hide 104 " +
1150 " -hide 108 " +
1151 " -toroot / -samplegroup Admin " +
1152 " -samplegroup Background " +
1153 " -samplegroup Connectivity " +
1154 " -samplegroup Content " +
1155 " -samplegroup Input " +
1156 " -samplegroup Media " +
1157 " -samplegroup Notification " +
1158 " -samplegroup RenderScript " +
1159 " -samplegroup Security " +
1160 " -samplegroup Sensors " +
1161 " -samplegroup System " +
1162 " -samplegroup Testing " +
1163 " -samplegroup UI " +
1164 " -samplegroup Views " +
1165 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1166 installable: false,
1167}
1168
1169droiddoc {
Tiem Song730c19b2019-08-26 11:27:27 -07001170 name: "ds-docs-java",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001171 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001172 srcs: [
1173 ":framework-doc-stubs",
1174 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001175 hdf: [
1176 "android.whichdoc online",
1177 "android.hasSamples true",
1178 ],
1179 proofread_file: "ds-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001180 args: framework_docs_only_args +
Dirk Dougherty14b05b12019-02-22 20:36:41 -08001181 " -toroot / -yamlV2 -metalavaApiSince -samplegroup Admin " +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001182 " -samplegroup Background " +
1183 " -samplegroup Connectivity " +
1184 " -samplegroup Content " +
1185 " -samplegroup Input " +
1186 " -samplegroup Media " +
1187 " -samplegroup Notification " +
1188 " -samplegroup RenderScript " +
1189 " -samplegroup Security " +
1190 " -samplegroup Sensors " +
1191 " -samplegroup System " +
1192 " -samplegroup Testing " +
1193 " -samplegroup UI " +
1194 " -samplegroup Views " +
1195 " -samplegroup Wearable -devsite -samplesdir development/samples/browseable ",
1196}
1197
1198droiddoc {
Tiem Song730c19b2019-08-26 11:27:27 -07001199 name: "ds-docs-kt",
1200 defaults: ["framework-dokka-docs-default"],
1201 srcs: [
1202 ":framework-doc-stubs",
1203 ],
1204 args: "-noJdkLink -links https://kotlinlang.org/api/latest/jvm/stdlib/^external/dokka/package-list " +
1205 "-noStdlibLink",
1206 proofread_file: "ds-dokka-proofread.txt",
1207 dokka_enabled: true,
1208}
1209
1210java_genrule {
1211 name: "ds-docs",
1212 tools: [
1213 "zip2zip",
1214 "merge_zips",
1215 ],
1216 srcs: [
1217 ":ds-docs-java{.docs.zip}",
1218 ":ds-docs-kt{.docs.zip}",
1219 ],
1220 out: ["ds-docs.zip"],
1221 dist: {
1222 targets: ["docs"],
1223 },
1224 cmd: "$(location zip2zip) -i $(location :ds-docs-kt{.docs.zip}) -o $(genDir)/ds-docs-kt-moved.zip **/*:en/reference/kotlin && " +
1225 "$(location merge_zips) $(out) $(location :ds-docs-java{.docs.zip}) $(genDir)/ds-docs-kt-moved.zip",
1226}
1227
1228java_genrule {
1229 name: "ds-docs-switched",
1230 tools: [
1231 "switcher4",
1232 "soong_zip",
1233 ],
1234 srcs: [
1235 ":ds-docs-java{.docs.zip}",
1236 ":ds-docs-kt{.docs.zip}",
1237 ],
1238 out: ["ds-docs-switched.zip"],
1239 dist: {
1240 targets: ["docs"],
1241 },
1242 cmd: "unzip $(location :ds-docs-java{.docs.zip}) -d $(genDir) && " +
1243 "unzip $(location :ds-docs-kt{.docs.zip}) -d $(genDir)/en/reference/kotlin && " +
1244 "SWITCHER=$$(cd $$(dirname $(location switcher4)) && pwd)/$$(basename $(location switcher4)) && " +
1245 "(cd $(genDir)/en/reference && $$SWITCHER --work platform) && " +
1246 "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)",
1247}
1248
1249
1250droiddoc {
Nan Zhang3e15ba82018-07-26 18:41:12 +00001251 name: "ds-static-docs",
1252 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001253 srcs: [
1254 ":framework-doc-stubs",
1255 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001256 hdf: [
1257 "android.whichdoc online",
1258 ],
1259 proofread_file: "ds-static-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001260 args: framework_docs_only_args +
Tobias Thiererbc050342019-05-23 16:20:12 +01001261 " -staticonly " +
1262 " -toroot / " +
1263 " -devsite " +
1264 " -ignoreJdLinks ",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001265}
1266
1267droiddoc {
1268 name: "ds-ref-navtree-docs",
1269 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001270 srcs: [
1271 ":framework-doc-stubs",
1272 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001273 hdf: [
1274 "android.whichdoc online",
1275 ],
1276 proofread_file: "ds-ref-navtree-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001277 args: framework_docs_only_args +
Tobias Thiererbc050342019-05-23 16:20:12 +01001278 " -toroot / " +
1279 " -atLinksNavtree " +
1280 " -navtreeonly ",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001281}
1282
1283droiddoc {
1284 name: "online-sdk-dev-docs",
1285 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001286 srcs: [
1287 ":framework-doc-stubs",
1288 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001289 hdf: [
1290 "android.whichdoc online",
1291 "android.hasSamples true",
1292 ],
1293 proofread_file: "online-sdk-dev-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001294 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001295 " -toroot / -samplegroup Admin " +
1296 " -samplegroup Background " +
1297 " -samplegroup Connectivity " +
1298 " -samplegroup Content " +
1299 " -samplegroup Input " +
1300 " -samplegroup Media " +
1301 " -samplegroup Notification " +
1302 " -samplegroup RenderScript " +
1303 " -samplegroup Security " +
1304 " -samplegroup Sensors " +
1305 " -samplegroup System " +
1306 " -samplegroup Testing " +
1307 " -samplegroup UI " +
1308 " -samplegroup Views " +
1309 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1310}
1311
1312droiddoc {
1313 name: "hidden-docs",
1314 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001315 srcs: [
1316 ":framework-doc-stubs",
1317 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001318 proofread_file: "hidden-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001319 args: framework_docs_only_args +
Tobias Thiererbc050342019-05-23 16:20:12 +01001320 " -referenceonly " +
1321 " -title \"Android SDK - Including hidden APIs.\"",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001322}
1323
Nan Zhang7764a4b2018-08-22 11:27:31 -07001324droidstubs {
Colin Crossa2b78a72018-03-29 13:31:04 -07001325 name: "hwbinder-stubs-docs",
1326 srcs: [
1327 "core/java/android/os/HidlSupport.java",
1328 "core/java/android/annotation/IntDef.java",
1329 "core/java/android/annotation/NonNull.java",
1330 "core/java/android/annotation/SystemApi.java",
1331 "core/java/android/os/HwBinder.java",
1332 "core/java/android/os/HwBlob.java",
1333 "core/java/android/os/HwParcel.java",
1334 "core/java/android/os/IHwBinder.java",
1335 "core/java/android/os/IHwInterface.java",
1336 "core/java/android/os/DeadObjectException.java",
1337 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -07001338 "core/java/android/os/NativeHandle.java",
Colin Crossa2b78a72018-03-29 13:31:04 -07001339 "core/java/android/os/RemoteException.java",
1340 "core/java/android/util/AndroidException.java",
1341 ],
Colin Crossa2b78a72018-03-29 13:31:04 -07001342 installable: false,
Paul Duffin8fcace42019-06-12 13:47:18 +01001343 sdk_version: "core_platform",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001344 annotations_enabled: true,
1345 previous_api: ":last-released-public-api",
1346 merge_annotations_dirs: [
1347 "metalava-manual",
Pete Gillinff978192018-09-17 15:45:33 +01001348 "ojluni-annotated-sdk-stubs",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001349 ],
1350 args: " --show-annotation android.annotation.SystemApi",
Colin Crossa2b78a72018-03-29 13:31:04 -07001351}
1352
1353java_library_static {
1354 name: "hwbinder.stubs",
1355 sdk_version: "core_current",
1356 srcs: [
1357 ":hwbinder-stubs-docs",
1358 ],
1359}
Nan Zhanga0f91af2018-04-09 17:41:51 -07001360
Nan Zhang894c9ec2018-09-10 18:58:39 -07001361droidstubs {
Nan Zhangd25ad462018-08-22 10:48:15 -07001362 name: "hiddenapi-lists-docs",
1363 defaults: ["metalava-api-stubs-default"],
David Brazdil4f9d4d52018-04-26 14:05:13 +01001364 arg_files: [
1365 "core/res/AndroidManifest.xml",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001366 ],
David Brazdil6f6a1262018-05-31 13:58:41 +01001367 dex_api_filename: "public-dex.txt",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001368 private_dex_api_filename: "private-dex.txt",
1369 removed_dex_api_filename: "removed-dex.txt",
Nan Zhangd25ad462018-08-22 10:48:15 -07001370 args: metalava_framework_docs_args +
1371 " --show-unannotated " +
1372 " --show-annotation android.annotation.SystemApi " +
Tobias Thiererbc050342019-05-23 16:20:12 +01001373 " --show-annotation android.annotation.TestApi ",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001374}
1375
Nan Zhang7764a4b2018-08-22 11:27:31 -07001376droidstubs {
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001377 name: "hiddenapi-mappings",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001378 defaults: ["metalava-api-stubs-default"],
Jiyong Park0323b4d2019-08-23 20:36:58 +09001379 srcs: [
Paul Duffina0cb5382018-10-31 10:34:51 +00001380 ":non_openjdk_java_files",
Artur Satayev005d7352019-08-02 16:42:07 +01001381 ":openjdk_java_files",
Andrei Onea6dd843a2019-03-13 15:27:23 +00001382 ":opt-telephony-common-srcs",
Paul Duffina0cb5382018-10-31 10:34:51 +00001383 ],
Jiyong Park5366ea22019-08-19 15:24:49 +09001384
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001385 arg_files: [
1386 "core/res/AndroidManifest.xml",
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001387 ],
1388 dex_mapping_filename: "dex-mapping.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001389 args: metalava_framework_docs_args +
Adrian Roos9bdbd302018-12-07 13:53:40 +01001390 " --hide ReferencesHidden " +
Adrian Roosc6e2fc82018-12-12 15:08:44 +01001391 " --hide UnhiddenSystemApi " +
Nan Zhang7764a4b2018-08-22 11:27:31 -07001392 " --show-unannotated " +
1393 " --show-annotation android.annotation.SystemApi " +
Tobias Thiererbc050342019-05-23 16:20:12 +01001394 " --show-annotation android.annotation.TestApi ",
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001395}
1396
Nan Zhanga0f91af2018-04-09 17:41:51 -07001397filegroup {
1398 name: "apache-http-stubs-sources",
1399 srcs: [
1400 "core/java/org/apache/http/conn/ConnectTimeoutException.java",
1401 "core/java/org/apache/http/conn/scheme/HostNameResolver.java",
1402 "core/java/org/apache/http/conn/scheme/LayeredSocketFactory.java",
1403 "core/java/org/apache/http/conn/scheme/SocketFactory.java",
1404 "core/java/org/apache/http/conn/ssl/AbstractVerifier.java",
1405 "core/java/org/apache/http/conn/ssl/AllowAllHostnameVerifier.java",
1406 "core/java/org/apache/http/conn/ssl/AndroidDistinguishedNameParser.java",
1407 "core/java/org/apache/http/conn/ssl/BrowserCompatHostnameVerifier.java",
1408 "core/java/org/apache/http/conn/ssl/SSLSocketFactory.java",
1409 "core/java/org/apache/http/conn/ssl/StrictHostnameVerifier.java",
1410 "core/java/org/apache/http/conn/ssl/X509HostnameVerifier.java",
1411 "core/java/org/apache/http/params/CoreConnectionPNames.java",
1412 "core/java/org/apache/http/params/HttpConnectionParams.java",
1413 "core/java/org/apache/http/params/HttpParams.java",
Nan Zhanga0f91af2018-04-09 17:41:51 -07001414 "core/java/android/net/http/SslCertificate.java",
1415 "core/java/android/net/http/SslError.java",
1416 "core/java/com/android/internal/util/HexDump.java",
1417 ],
1418}
Nan Zhang4212eb12018-04-25 17:23:33 -07001419
Nan Zhang894c9ec2018-09-10 18:58:39 -07001420droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001421 name: "api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001422 defaults: ["metalava-api-stubs-default"],
Nan Zhang4212eb12018-04-25 17:23:33 -07001423 api_filename: "public_api.txt",
1424 private_api_filename: "private.txt",
1425 removed_api_filename: "removed.txt",
1426 arg_files: [
1427 "core/res/AndroidManifest.xml",
1428 ],
1429 args: metalava_framework_docs_args,
Nan Zhange5612602018-08-16 16:16:00 -07001430 check_api: {
1431 current: {
1432 api_file: "api/current.txt",
1433 removed_api_file: "api/removed.txt",
1434 },
Nan Zhangcd060d92018-08-20 20:34:26 -07001435 last_released: {
1436 api_file: ":last-released-public-api",
1437 removed_api_file: "api/removed.txt",
Adrian Roos9597f8c2019-08-12 17:47:39 +02001438 baseline_file: ":public-api-incompatibilities-with-last-released",
Nan Zhangcd060d92018-08-20 20:34:26 -07001439 },
Adrian Roos487c6462019-10-10 12:14:22 +02001440 api_lint: {
1441 enabled: true,
1442 new_since: ":last-released-public-api",
1443 baseline_file: "api/lint-baseline.txt",
1444 },
Nan Zhange5612602018-08-16 16:16:00 -07001445 },
Nan Zhang81f29f52018-09-17 14:33:08 -07001446 jdiff_enabled: true,
Nan Zhang4212eb12018-04-25 17:23:33 -07001447}
1448
Nan Zhang894c9ec2018-09-10 18:58:39 -07001449droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001450 name: "system-api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001451 defaults: ["metalava-api-stubs-default"],
Nan Zhang4d3f5012018-08-07 13:40:33 -07001452 api_tag_name: "SYSTEM",
Nan Zhang4212eb12018-04-25 17:23:33 -07001453 api_filename: "system-api.txt",
1454 private_api_filename: "system-private.txt",
1455 private_dex_api_filename: "system-private-dex.txt",
1456 removed_api_filename: "system-removed.txt",
1457 arg_files: [
1458 "core/res/AndroidManifest.xml",
1459 ],
1460 args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi",
Nan Zhange5612602018-08-16 16:16:00 -07001461 check_api: {
1462 current: {
1463 api_file: "api/system-current.txt",
1464 removed_api_file: "api/system-removed.txt",
1465 },
Nan Zhangcd060d92018-08-20 20:34:26 -07001466 last_released: {
1467 api_file: ":last-released-system-api",
1468 removed_api_file: "api/system-removed.txt",
Adrian Roos9597f8c2019-08-12 17:47:39 +02001469 baseline_file: ":system-api-incompatibilities-with-last-released"
Nan Zhangcd060d92018-08-20 20:34:26 -07001470 },
Adrian Roos487c6462019-10-10 12:14:22 +02001471 api_lint: {
1472 enabled: true,
1473 new_since: ":last-released-system-api",
1474 baseline_file: "api/system-lint-baseline.txt",
1475 },
Nan Zhange5612602018-08-16 16:16:00 -07001476 },
Nan Zhang81f29f52018-09-17 14:33:08 -07001477 jdiff_enabled: true,
Nan Zhang4212eb12018-04-25 17:23:33 -07001478}
1479
Nan Zhang894c9ec2018-09-10 18:58:39 -07001480droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001481 name: "test-api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001482 defaults: ["metalava-api-stubs-default"],
Nan Zhang4d3f5012018-08-07 13:40:33 -07001483 api_tag_name: "TEST",
Nan Zhang4212eb12018-04-25 17:23:33 -07001484 api_filename: "test-api.txt",
1485 removed_api_filename: "test-removed.txt",
1486 arg_files: [
1487 "core/res/AndroidManifest.xml",
1488 ],
1489 args: metalava_framework_docs_args + " --show-annotation android.annotation.TestApi",
Nan Zhange5612602018-08-16 16:16:00 -07001490 check_api: {
1491 current: {
1492 api_file: "api/test-current.txt",
1493 removed_api_file: "api/test-removed.txt",
1494 },
1495 },
Nan Zhang4212eb12018-04-25 17:23:33 -07001496}
Nan Zhangaf251302018-08-30 10:59:51 -07001497
1498filegroup {
1499 name: "framework-annotation-nonnull-srcs",
1500 srcs: [
1501 "core/java/android/annotation/NonNull.java",
1502 ],
1503}
Insun Kang06b25ae2018-11-20 10:05:44 +09001504
1505filegroup {
1506 name: "framework-media-annotation-srcs",
1507 srcs: [
1508 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001509 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001510 "core/java/android/annotation/DrawableRes.java",
1511 "core/java/android/annotation/IntDef.java",
1512 "core/java/android/annotation/LongDef.java",
1513 "core/java/android/annotation/NonNull.java",
1514 "core/java/android/annotation/Nullable.java",
1515 "core/java/android/annotation/RequiresPermission.java",
1516 "core/java/android/annotation/SdkConstant.java",
1517 "core/java/android/annotation/StringDef.java",
Sungsoo Limbb3b4012019-01-23 13:17:53 +09001518 "core/java/android/annotation/SystemApi.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001519 "core/java/android/annotation/TestApi.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001520 "core/java/android/annotation/UnsupportedAppUsage.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001521 "core/java/com/android/internal/annotations/GuardedBy.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001522 ],
1523}
1524
Andrei Onea7a2985c2019-02-18 15:28:35 +00001525// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1526// annotations to private apis
1527aidl_mapping {
1528 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001529 srcs: [":framework-all-sources"],
Tobias Thiererbc050342019-05-23 16:20:12 +01001530 output: "framework-aidl-mappings.txt",
Dario Freni2ce84342019-04-26 13:06:22 +01001531}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001532
1533genrule {
1534 name: "framework-annotation-proc-index",
1535 srcs: [":framework-annotation-proc"],
1536 cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)",
1537 out: ["unsupportedappusage_index.csv"],
1538 dist: {
1539 targets: ["droidcore"],
1540 },
1541}
Chen Xu0e9d6752019-10-08 18:39:03 -07001542
1543// Avoid including Parcelable classes as we don't want to have two copies of
1544// Parcelable cross the process.
1545filegroup {
1546 name: "framework-cellbroadcast-shared-srcs",
1547 srcs: [
1548 "core/java/android/util/LocalLog.java",
1549 "core/java/android/util/Slog.java",
1550 "core/java/com/android/internal/util/State.java",
1551 "core/java/com/android/internal/util/StateMachine.java",
1552 ],
1553}