blob: 34b5e7e9b60b207f6c264b98c6059032788acf00 [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
Colin Crossd8e02252017-10-02 17:14:22 -0700511// Build ext.jar
512// ============================================================
513java_library {
514 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700515 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100516 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700517 static_libs: [
518 "libphonenumber-platform",
519 "nist-sip",
520 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000521 "rappor",
Tony Mak64c4cb22018-09-25 13:38:28 +0100522 "libtextclassifier-java",
523 ],
524 required: [
525 "libtextclassifier",
Colin Crossd8e02252017-10-02 17:14:22 -0700526 ],
527 dxflags: ["--core-library"],
528}
529
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700530// ==== java proto host library ==============================
531java_library_host {
532 name: "platformprotos",
533 srcs: [
534 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700535 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700536 "core/proto/**/*.proto",
537 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700538 ],
539 proto: {
540 include_dirs: ["external/protobuf/src"],
541 type: "full",
542 },
543 errorprone: {
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100544 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700545 },
546}
547
Colin Cross43214162018-08-20 13:57:24 -0700548// ==== java proto device library (for test only) ==============================
549java_library {
550 name: "platformprotosnano",
551 proto: {
552 type: "nano",
553 output_params: ["store_unknown_fields=true"],
554 include_dirs: ["external/protobuf/src"],
555 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000556 exclude_srcs: [
557 "core/proto/android/privacy.proto",
558 "core/proto/android/section.proto",
559 ],
Colin Cross43214162018-08-20 13:57:24 -0700560 sdk_version: "current",
561 srcs: [
562 "core/proto/**/*.proto",
563 "libs/incident/proto/android/os/**/*.proto",
564 ],
565}
566
567// ==== java proto device library (for test only) ==============================
568java_library {
569 name: "platformprotoslite",
570 proto: {
571 type: "lite",
572 include_dirs: ["external/protobuf/src"],
573 },
574
575 srcs: [
576 "core/proto/**/*.proto",
577 "libs/incident/proto/android/os/**/*.proto",
578 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000579 exclude_srcs: [
580 "core/proto/android/privacy.proto",
581 "core/proto/android/section.proto",
582 ],
Colin Cross43214162018-08-20 13:57:24 -0700583 // Protos have lots of MissingOverride and similar.
584 errorprone: {
585 javacflags: ["-XepDisableAllChecks"],
586 },
587}
588
Colin Crossaa0d4352017-05-02 14:14:56 -0700589// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000590cc_defaults {
591 name: "libplatformprotos-defaults",
592
Colin Crossaa0d4352017-05-02 14:14:56 -0700593 proto: {
594 export_proto_headers: true,
595 include_dirs: ["external/protobuf/src"],
596 },
597
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700598 cflags: [
599 "-Wall",
600 "-Werror",
601 "-Wno-unused-parameter",
602 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800603
604 srcs: [
605 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800606 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000607}
608
609cc_library {
610 name: "libplatformprotos",
611 defaults: ["libplatformprotos-defaults"],
612 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800613
Colin Crossaa0d4352017-05-02 14:14:56 -0700614 target: {
615 host: {
616 proto: {
617 type: "full",
618 },
619 },
620 android: {
621 proto: {
622 type: "lite",
623 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000624 shared_libs: [
625 "libprotobuf-cpp-lite",
626 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700627 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700628 enabled: false,
629 },
630 },
631 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700632}
633
Joe Onorato9bd5db72019-04-03 18:19:43 -0700634// This library is meant for vendor code that needs to output protobuf. It links
635// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
636// binary compatibility.
637cc_library {
638 name: "libplatformprotos-static",
639 defaults: ["libplatformprotos-defaults"],
640 host_supported: false,
641
642 // This is okay because this library is only built as a static library. The C++
643 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
644 // but is not authorized to be used outside of debugging.
645 vendor_available: true,
646
647 target: {
648 android: {
649 proto: {
650 type: "lite",
651 },
652 static_libs: [
653 "libprotobuf-cpp-lite",
654 ],
655 shared: {
656 enabled: false,
657 },
658 },
659 },
660}
661
662
Joe Onorato99598ee2019-02-11 15:55:13 +0000663// This is the full proto version of libplatformprotos. It may only
664// be used by test code that is not shipped on the device.
665cc_library {
666 name: "libplatformprotos-test",
667 defaults: ["libplatformprotos-defaults"],
668 host_supported: false,
669
670 target: {
671 android: {
672 proto: {
673 type: "full",
674 },
675 shared: {
676 enabled: false,
677 },
678 },
679 },
680}
681
682
Yi Jin04625ad2017-10-17 18:29:33 -0700683gensrcs {
684 name: "gen-platform-proto-constants",
685 depfile: true,
686
687 tools: [
688 "aprotoc",
689 "protoc-gen-cppstream",
690 ],
691
692 srcs: [
Kweku Adamseadd1232018-02-05 16:45:13 -0800693 "core/proto/android/os/backtrace.proto",
Kweku Adams59e6fd72017-12-27 15:48:14 -0800694 "core/proto/android/os/batterytype.proto",
Yi Jin0eb22342017-11-06 17:17:27 -0800695 "core/proto/android/os/cpufreq.proto",
Yi Jine2f7f792017-11-01 17:08:27 -0700696 "core/proto/android/os/cpuinfo.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700697 "core/proto/android/os/data.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700698 "core/proto/android/os/kernelwake.proto",
699 "core/proto/android/os/pagetypeinfo.proto",
700 "core/proto/android/os/procrank.proto",
Kweku Adamsf5cc5752017-12-20 17:59:17 -0800701 "core/proto/android/os/ps.proto",
Yi Jin0dfa7522017-11-06 17:43:47 -0800702 "core/proto/android/os/system_properties.proto",
Yi Jin3c034c92017-12-22 17:36:47 -0800703 "core/proto/android/util/event_log_tags.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -0700704 "core/proto/android/util/log.proto",
Yi Jin04625ad2017-10-17 18:29:33 -0700705 ],
706
707 // Append protoc-gen-cppstream tool's PATH otherwise aprotoc can't find the plugin tool
Yi Jin3c034c92017-12-22 17:36:47 -0800708 cmd: "mkdir -p $(genDir) " +
709 "&& $(location aprotoc) " +
710 " --plugin=$(location protoc-gen-cppstream) " +
711 " --dependency_out=$(depfile) " +
712 " --cppstream_out=$(genDir) " +
713 " -Iexternal/protobuf/src " +
714 " -I . " +
715 " $(in)",
Yi Jin04625ad2017-10-17 18:29:33 -0700716
Logan Chien71ddfea2018-02-27 16:43:50 +0800717 output_extension: "proto.h",
Yi Jin04625ad2017-10-17 18:29:33 -0700718}
719
Joe Onorato99598ee2019-02-11 15:55:13 +0000720
Dan Albert2a8d9c22016-09-23 15:55:49 -0700721subdirs = [
Yi Jin0a3406f2017-06-22 19:23:11 -0700722 "cmds/*",
Jeff Sharkey0c686e72017-10-23 16:04:31 -0600723 "core/*",
Colin Cross4f8d9e62016-12-01 15:55:00 -0800724 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -0700725 "media/*",
Colin Cross747e7c12017-10-24 16:21:22 -0700726 "proto",
Fabien Sanglard19160202017-01-12 14:24:31 -0500727 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700728 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -0700729 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -0700730]
Svetoslav Ganov74c99832016-12-05 20:07:20 -0800731
732optional_subdirs = [
733 "core/tests/utiltests/jni",
734]
Steven Morelandeddafe92017-10-02 16:58:41 -0700735
Colin Crossa2b78a72018-03-29 13:31:04 -0700736// TODO(b/77285514): remove this once the last few hidl interfaces have been
737// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -0700738java_library {
739 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +0100740 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -0700741
742 srcs: [
743 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800744 "core/java/android/annotation/IntDef.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700745 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -0800746 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -0800747 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -0800748 "core/java/android/annotation/TestApi.java",
Andrei Onea24ec3212019-03-15 17:35:05 +0000749 "core/java/android/annotation/UnsupportedAppUsage.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700750 "core/java/android/os/HwBinder.java",
751 "core/java/android/os/HwBlob.java",
752 "core/java/android/os/HwParcel.java",
753 "core/java/android/os/IHwBinder.java",
754 "core/java/android/os/IHwInterface.java",
755 "core/java/android/os/DeadObjectException.java",
756 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -0700757 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -0700758 "core/java/android/os/RemoteException.java",
759 "core/java/android/util/AndroidException.java",
760 ],
761
762 dxflags: ["--core-library"],
763 installable: false,
764}
Nan Zhang2db709d2017-11-08 20:48:46 -0800765
766python_defaults {
767 name: "base_default",
768 version: {
769 py2: {
770 enabled: true,
771 embedded_launcher: true,
772 },
773 py3: {
774 enabled: false,
775 embedded_launcher: false,
776 },
777 },
778}
779
780python_binary_host {
781 name: "fontchain_linter",
782 defaults: ["base_default"],
783 main: "tools/fonts/fontchain_linter.py",
784 srcs: [
785 "tools/fonts/fontchain_linter.py",
786 ],
787 libs: [
788 "fontTools",
789 ],
790}
Nan Zhang172875b2018-02-27 11:24:03 -0800791
Jiyong Park5366ea22019-08-19 15:24:49 +0900792// TODO: Don't rely on this list by switching package.html into package-info.java
Nan Zhang172875b2018-02-27 11:24:03 -0800793frameworks_base_subdirs = [
794 "core/java",
795 "graphics/java",
796 "location/java",
797 "media/java",
798 "media/mca/effect/java",
799 "media/mca/filterfw/java",
800 "media/mca/filterpacks/java",
801 "drm/java",
802 "opengl/java",
803 "sax/java",
804 "telecomm/java",
805 "telephony/java",
806 "wifi/java",
807 "lowpan/java",
808 "keystore/java",
809 "rs/java",
810]
811
Paul Duffin0440e1f2019-02-11 16:13:25 +0000812// Make the api/current.txt file available for use by modules in other
813// directories.
814filegroup {
815 name: "frameworks-base-api-current.txt",
816 srcs: [
817 "api/current.txt",
818 ],
819}
820
Paul Duffincd35de32019-05-30 15:12:47 +0100821// Make the api/system-current.txt file available for use by modules in other
822// directories.
823filegroup {
824 name: "frameworks-base-api-system-current.txt",
825 srcs: [
826 "api/system-current.txt",
827 ],
828}
829
830// Make the api/system-removed.txt file available for use by modules in other
831// directories.
832filegroup {
833 name: "frameworks-base-api-system-removed.txt",
834 srcs: [
835 "api/system-removed.txt",
836 ],
837}
838
Nan Zhang7764a4b2018-08-22 11:27:31 -0700839framework_docs_only_args = " -android -manifest $(location core/res/AndroidManifest.xml) " +
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100840 "-werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 " +
841 "-overview $(location core/java/overview.html) " +
842 // Federate Support Library references against local API file.
843 "-federate SupportLib https://developer.android.com " +
844 "-federationapi SupportLib $(location :current-support-api) "
Nan Zhang172875b2018-02-27 11:24:03 -0800845
Nan Zhang7764a4b2018-08-22 11:27:31 -0700846framework_docs_only_libs = [
Nan Zhang7764a4b2018-08-22 11:27:31 -0700847 "voip-common",
848 "android.test.mock",
849 "android-support-annotations",
850 "android-support-compat",
851 "android-support-core-ui",
852 "android-support-core-utils",
853 "android-support-customtabs",
854 "android-support-design",
855 "android-support-dynamic-animation",
856 "android-support-exifinterface",
857 "android-support-fragment",
858 "android-support-media-compat",
859 "android-support-percent",
860 "android-support-recommendation",
861 "android-support-transition",
862 "android-support-tv-provider",
863 "android-support-v7-cardview",
864 "android-support-v7-gridlayout",
865 "android-support-v7-mediarouter",
866 "android-support-v7-palette",
867 "android-support-v7-preference",
868 "android-support-v13",
869 "android-support-v14-preference",
870 "android-support-v17-leanback",
871 "android-support-v17-preference-leanback",
872 "android-support-wear",
873 "android-support-vectordrawable",
874 "android-support-animatedvectordrawable",
875 "android-support-v7-appcompat",
876 "android-support-v7-recyclerview",
877 "android-support-emoji",
878 "android-support-emoji-appcompat",
879 "android-support-emoji-bundled",
880 "android-support-v8-renderscript",
881 "android-support-multidex",
882 "android-support-multidex-instrumentation",
883]
884
885metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
886 "--hide-package com.android.okhttp " +
887 "--hide-package com.android.org.conscrypt --hide-package com.android.server " +
Adrian Roosc6e2fc82018-12-12 15:08:44 +0100888 "--error UnhiddenSystemApi " +
Nan Zhang7764a4b2018-08-22 11:27:31 -0700889 "--hide RequiresPermission " +
890 "--hide MissingPermission --hide BroadcastBehavior " +
891 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
Tobias Thierer8f559412019-05-22 20:17:49 +0100892 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo "
893
894// http://b/129765390 Rewrite links to "platform" or "technotes" folders
895// which are siblings (and thus outside of) {@docRoot}.
896//
897// We have to escape \ as \\ and $ as $$ here because they get resolved by
898// different layers of the build tooling. The arguments are wrapped in '' so
899// that the shell doesn't add yet another level of escaping.
900metalava_framework_docs_args += " --replace-documentation " +
901 // packages whose descendants to apply replacement to (all packages from
902 // libcore/ojluni/src/main/java that contribute to documentation).
903 "com.sun:java:javax:jdk.net:sun " +
904 // regex of the string to replace
905 "'(<a\\s+href\\s?=[\\*\\s]*\")(?:(?:\\{@docRoot\\}/\\.\\./)|(?:(?:\\.\\./)+))((?:platform|technotes).+)\">' " +
906 // replacement (with $1, $2 backreferences to the regex groups)
907 "'$$1https://docs.oracle.com/javase/8/docs/$$2\">' "
Nan Zhang7764a4b2018-08-22 11:27:31 -0700908
Jiyong Parkae9972b2019-09-15 20:19:02 +0900909packages_to_document = [
910 "android",
Jiyong Parkb1d27012019-09-17 14:51:28 +0900911 "dalvik",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900912 "java",
913 "javax",
Jiyong Parkb1d27012019-09-17 14:51:28 +0900914 "junit",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900915 "org.apache.http",
916 "org.json",
917 "org.w3c.dom",
918 "org.xml.sax",
919 "org.xmlpull",
920]
921
Nan Zhang7764a4b2018-08-22 11:27:31 -0700922stubs_defaults {
923 name: "framework-doc-stubs-default",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000924 srcs: [
Jiyong Parkae9972b2019-09-15 20:19:02 +0900925 ":framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900926 "core/java/**/*.logtags",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000927 "test-base/src/**/*.java",
928 ":opt-telephony-srcs",
929 ":opt-net-voip-srcs",
Paul Duffine86cc6f2019-10-04 10:10:58 +0100930 ":core-current-stubs-source",
Neil Fuller3b1b7032019-02-26 12:00:38 +0000931 ":core_public_api_files",
Jiyong Parkdf6c25d2019-08-20 20:48:47 +0900932 ":updatable-media-srcs",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000933 "test-mock/src/**/*.java",
934 "test-runner/src/**/*.java",
935 ],
Nan Zhang7764a4b2018-08-22 11:27:31 -0700936 libs: framework_docs_only_libs,
Nan Zhang3e15ba82018-07-26 18:41:12 +0000937 local_sourcepaths: frameworks_base_subdirs,
Nan Zhang7764a4b2018-08-22 11:27:31 -0700938 create_doc_stubs: true,
939 annotations_enabled: true,
940 api_levels_annotations_enabled: true,
941 api_levels_annotations_dirs: [
942 "sdk-dir",
943 "api-versions-jars-dir",
944 ],
945 previous_api: ":last-released-public-api",
946 merge_annotations_dirs: [
947 "metalava-manual",
Pete Gillinff978192018-09-17 15:45:33 +0100948 "ojluni-annotated-sdk-stubs",
Nan Zhang7764a4b2018-08-22 11:27:31 -0700949 ],
950}
951
952doc_defaults {
953 name: "framework-docs-default",
Nan Zhangb03396e2018-10-11 18:06:10 -0700954 libs: framework_docs_only_libs +
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100955 ["stub-annotations"],
Nan Zhang3e15ba82018-07-26 18:41:12 +0000956 html_dirs: [
957 "docs/html",
958 ],
959 knowntags: [
960 "docs/knowntags.txt",
961 ":known-oj-tags",
962 ],
963 custom_template: "droiddoc-templates-sdk",
964 resourcesdir: "docs/html/reference/images/",
965 resourcesoutdir: "reference/android/images/",
966 hdf: [
967 "dac true",
968 "sdk.codename O",
969 "sdk.preview.version 1",
970 "sdk.version 7.0",
971 "sdk.rel.id 1",
972 "sdk.preview 0",
973 ],
974 arg_files: [
975 "core/res/AndroidManifest.xml",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000976 "core/java/overview.html",
977 ":current-support-api",
Nan Zhang3e15ba82018-07-26 18:41:12 +0000978 ],
979 create_stubs: false,
980}
981
Tiem Song730c19b2019-08-26 11:27:27 -0700982doc_defaults {
983 name: "framework-dokka-docs-default",
984 create_stubs: false,
985}
986
Nan Zhang894c9ec2018-09-10 18:58:39 -0700987stubs_defaults {
Nan Zhangd25ad462018-08-22 10:48:15 -0700988 name: "metalava-api-stubs-default",
989 srcs: [
Jiyong Parkae9972b2019-09-15 20:19:02 +0900990 ":framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900991 "core/java/**/*.logtags",
Nan Zhangd25ad462018-08-22 10:48:15 -0700992 ":opt-telephony-srcs",
993 ":opt-net-voip-srcs",
Paul Duffine86cc6f2019-10-04 10:10:58 +0100994 ":core-current-stubs-source",
Neil Fuller3b1b7032019-02-26 12:00:38 +0000995 ":core_public_api_files",
Jiyong Parkdf6c25d2019-08-20 20:48:47 +0900996 ":updatable-media-srcs",
Nan Zhangd25ad462018-08-22 10:48:15 -0700997 ],
Jiyong Park5366ea22019-08-19 15:24:49 +0900998 libs: ["framework-internal-utils"],
Nan Zhangd25ad462018-08-22 10:48:15 -0700999 local_sourcepaths: frameworks_base_subdirs,
1000 installable: false,
Nan Zhang894c9ec2018-09-10 18:58:39 -07001001 annotations_enabled: true,
1002 previous_api: ":last-released-public-api",
1003 merge_annotations_dirs: [
Nan Zhangd25ad462018-08-22 10:48:15 -07001004 "metalava-manual",
Pete Gillinff978192018-09-17 15:45:33 +01001005 "ojluni-annotated-sdk-stubs",
Nan Zhangd25ad462018-08-22 10:48:15 -07001006 ],
Nan Zhang91cc7662018-09-18 10:46:10 -07001007 api_levels_annotations_enabled: true,
1008 api_levels_annotations_dirs: [
1009 "sdk-dir",
1010 "api-versions-jars-dir",
1011 ],
Jiyong Park5366ea22019-08-19 15:24:49 +09001012 sdk_version: "core_platform",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001013 filter_packages: packages_to_document,
Nan Zhangd25ad462018-08-22 10:48:15 -07001014}
1015
Nan Zhang7764a4b2018-08-22 11:27:31 -07001016droidstubs {
1017 name: "framework-doc-stubs",
1018 defaults: ["framework-doc-stubs-default"],
1019 arg_files: [
1020 "core/res/AndroidManifest.xml",
1021 ],
1022 args: metalava_framework_docs_args,
1023}
1024
1025droidstubs {
1026 name: "framework-doc-system-stubs",
1027 defaults: ["framework-doc-stubs-default"],
1028 arg_files: [
1029 "core/res/AndroidManifest.xml",
1030 ],
1031 args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi ",
1032}
1033
Nan Zhang3e15ba82018-07-26 18:41:12 +00001034droiddoc {
1035 name: "doc-comment-check-docs",
1036 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001037 srcs: [
1038 ":framework-doc-stubs",
1039 ],
1040 args: framework_docs_only_args + " -referenceonly -parsecomments",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001041 installable: false,
1042}
1043
1044droiddoc {
1045 name: "offline-sdk-docs",
1046 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001047 srcs: [
1048 ":framework-doc-stubs",
1049 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001050 hdf: [
1051 "android.whichdoc offline",
1052 ],
1053 proofread_file: "offline-sdk-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001054 args: framework_docs_only_args + " -offlinemode -title \"Android SDK\"",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001055 write_sdk_values: true,
1056 static_doc_index_redirect: "docs/docs-preview-index.html",
1057}
1058
1059droiddoc {
Nan Zhang963612b2018-09-21 17:16:49 -07001060 // Please sync with android-api-council@ before making any changes for the name property below.
1061 // Since there's cron jobs that fetch offline-sdk-referenceonly-docs-docs.zip periodically.
1062 // See b/116221385 for reference.
Nan Zhang3e15ba82018-07-26 18:41:12 +00001063 name: "offline-sdk-referenceonly-docs",
1064 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001065 srcs: [
1066 ":framework-doc-stubs",
1067 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001068 hdf: [
1069 "android.whichdoc offline",
1070 ],
1071 proofread_file: "offline-sdk-referenceonly-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001072 args: framework_docs_only_args + " -offlinemode -title \"Android SDK\" -referenceonly",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001073 write_sdk_values: true,
1074 static_doc_index_redirect: "docs/docs-documentation-redirect.html",
1075 static_doc_properties: "docs/source.properties",
1076}
1077
1078droiddoc {
Nan Zhang963612b2018-09-21 17:16:49 -07001079 // Please sync with android-api-council@ before making any changes for the name property below.
1080 // Since there's cron jobs that fetch offline-system-sdk-referenceonly-docs-docs.zip periodically.
1081 // See b/116221385 for reference.
Nan Zhang3e15ba82018-07-26 18:41:12 +00001082 name: "offline-system-sdk-referenceonly-docs",
1083 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001084 srcs: [
1085 ":framework-doc-system-stubs",
1086 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001087 hdf: [
1088 "android.whichdoc offline",
1089 ],
1090 proofread_file: "offline-system-sdk-referenceonly-docs-proofrerad.txt",
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001091 args: framework_docs_only_args + " -hide 101 -hide 104 -hide 108" +
1092 " -offlinemode -title \"Android System SDK\" -referenceonly",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001093 write_sdk_values: true,
1094 static_doc_index_redirect: "docs/docs-documentation-redirect.html",
1095 static_doc_properties: "docs/source.properties",
1096}
1097
1098droiddoc {
1099 name: "online-sdk-docs",
1100 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001101 srcs: [
1102 ":framework-doc-stubs",
1103 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001104 hdf: [
1105 "android.whichdoc online",
1106 "android.hasSamples true",
1107 ],
1108 proofread_file: "online-sdk-docs-proofrerad.txt",
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001109 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001110 " -toroot / -samplegroup Admin " +
1111 " -samplegroup Background " +
1112 " -samplegroup Connectivity " +
1113 " -samplegroup Content " +
1114 " -samplegroup Input " +
1115 " -samplegroup Media " +
1116 " -samplegroup Notification " +
1117 " -samplegroup RenderScript " +
1118 " -samplegroup Security " +
1119 " -samplegroup Sensors " +
1120 " -samplegroup System " +
1121 " -samplegroup Testing " +
1122 " -samplegroup UI " +
1123 " -samplegroup Views " +
1124 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1125}
1126
1127droiddoc {
1128 name: "online-system-api-sdk-docs",
1129 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001130 srcs: [
1131 ":framework-doc-system-stubs",
1132 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001133 hdf: [
1134 "android.whichdoc online",
1135 "android.hasSamples true",
1136 ],
1137 proofread_file: "online-system-api-sdk-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001138 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001139 " -referenceonly " +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001140 " -title \"Android SDK - Including system APIs.\" " +
1141 " -hide 101 " +
1142 " -hide 104 " +
1143 " -hide 108 " +
1144 " -toroot / -samplegroup Admin " +
1145 " -samplegroup Background " +
1146 " -samplegroup Connectivity " +
1147 " -samplegroup Content " +
1148 " -samplegroup Input " +
1149 " -samplegroup Media " +
1150 " -samplegroup Notification " +
1151 " -samplegroup RenderScript " +
1152 " -samplegroup Security " +
1153 " -samplegroup Sensors " +
1154 " -samplegroup System " +
1155 " -samplegroup Testing " +
1156 " -samplegroup UI " +
1157 " -samplegroup Views " +
1158 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1159 installable: false,
1160}
1161
1162droiddoc {
Tiem Song730c19b2019-08-26 11:27:27 -07001163 name: "ds-docs-java",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001164 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001165 srcs: [
1166 ":framework-doc-stubs",
1167 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001168 hdf: [
1169 "android.whichdoc online",
1170 "android.hasSamples true",
1171 ],
1172 proofread_file: "ds-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001173 args: framework_docs_only_args +
Dirk Dougherty14b05b12019-02-22 20:36:41 -08001174 " -toroot / -yamlV2 -metalavaApiSince -samplegroup Admin " +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001175 " -samplegroup Background " +
1176 " -samplegroup Connectivity " +
1177 " -samplegroup Content " +
1178 " -samplegroup Input " +
1179 " -samplegroup Media " +
1180 " -samplegroup Notification " +
1181 " -samplegroup RenderScript " +
1182 " -samplegroup Security " +
1183 " -samplegroup Sensors " +
1184 " -samplegroup System " +
1185 " -samplegroup Testing " +
1186 " -samplegroup UI " +
1187 " -samplegroup Views " +
1188 " -samplegroup Wearable -devsite -samplesdir development/samples/browseable ",
1189}
1190
1191droiddoc {
Tiem Song730c19b2019-08-26 11:27:27 -07001192 name: "ds-docs-kt",
1193 defaults: ["framework-dokka-docs-default"],
1194 srcs: [
1195 ":framework-doc-stubs",
1196 ],
1197 args: "-noJdkLink -links https://kotlinlang.org/api/latest/jvm/stdlib/^external/dokka/package-list " +
1198 "-noStdlibLink",
1199 proofread_file: "ds-dokka-proofread.txt",
1200 dokka_enabled: true,
1201}
1202
1203java_genrule {
1204 name: "ds-docs",
1205 tools: [
1206 "zip2zip",
1207 "merge_zips",
1208 ],
1209 srcs: [
1210 ":ds-docs-java{.docs.zip}",
1211 ":ds-docs-kt{.docs.zip}",
1212 ],
1213 out: ["ds-docs.zip"],
1214 dist: {
1215 targets: ["docs"],
1216 },
1217 cmd: "$(location zip2zip) -i $(location :ds-docs-kt{.docs.zip}) -o $(genDir)/ds-docs-kt-moved.zip **/*:en/reference/kotlin && " +
1218 "$(location merge_zips) $(out) $(location :ds-docs-java{.docs.zip}) $(genDir)/ds-docs-kt-moved.zip",
1219}
1220
1221java_genrule {
1222 name: "ds-docs-switched",
1223 tools: [
1224 "switcher4",
1225 "soong_zip",
1226 ],
1227 srcs: [
1228 ":ds-docs-java{.docs.zip}",
1229 ":ds-docs-kt{.docs.zip}",
1230 ],
1231 out: ["ds-docs-switched.zip"],
1232 dist: {
1233 targets: ["docs"],
1234 },
1235 cmd: "unzip $(location :ds-docs-java{.docs.zip}) -d $(genDir) && " +
1236 "unzip $(location :ds-docs-kt{.docs.zip}) -d $(genDir)/en/reference/kotlin && " +
1237 "SWITCHER=$$(cd $$(dirname $(location switcher4)) && pwd)/$$(basename $(location switcher4)) && " +
1238 "(cd $(genDir)/en/reference && $$SWITCHER --work platform) && " +
1239 "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)",
1240}
1241
1242
1243droiddoc {
Nan Zhang3e15ba82018-07-26 18:41:12 +00001244 name: "ds-static-docs",
1245 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001246 srcs: [
1247 ":framework-doc-stubs",
1248 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001249 hdf: [
1250 "android.whichdoc online",
1251 ],
1252 proofread_file: "ds-static-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001253 args: framework_docs_only_args +
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001254 " -staticonly " +
1255 " -toroot / " +
1256 " -devsite " +
1257 " -ignoreJdLinks ",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001258}
1259
1260droiddoc {
1261 name: "ds-ref-navtree-docs",
1262 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001263 srcs: [
1264 ":framework-doc-stubs",
1265 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001266 hdf: [
1267 "android.whichdoc online",
1268 ],
1269 proofread_file: "ds-ref-navtree-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001270 args: framework_docs_only_args +
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001271 " -toroot / " +
1272 " -atLinksNavtree " +
1273 " -navtreeonly ",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001274}
1275
1276droiddoc {
1277 name: "online-sdk-dev-docs",
1278 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001279 srcs: [
1280 ":framework-doc-stubs",
1281 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001282 hdf: [
1283 "android.whichdoc online",
1284 "android.hasSamples true",
1285 ],
1286 proofread_file: "online-sdk-dev-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001287 args: framework_docs_only_args +
Nan Zhang3e15ba82018-07-26 18:41:12 +00001288 " -toroot / -samplegroup Admin " +
1289 " -samplegroup Background " +
1290 " -samplegroup Connectivity " +
1291 " -samplegroup Content " +
1292 " -samplegroup Input " +
1293 " -samplegroup Media " +
1294 " -samplegroup Notification " +
1295 " -samplegroup RenderScript " +
1296 " -samplegroup Security " +
1297 " -samplegroup Sensors " +
1298 " -samplegroup System " +
1299 " -samplegroup Testing " +
1300 " -samplegroup UI " +
1301 " -samplegroup Views " +
1302 " -samplegroup Wearable -samplesdir development/samples/browseable ",
1303}
1304
1305droiddoc {
1306 name: "hidden-docs",
1307 defaults: ["framework-docs-default"],
Nan Zhang7764a4b2018-08-22 11:27:31 -07001308 srcs: [
1309 ":framework-doc-stubs",
1310 ],
Nan Zhang3e15ba82018-07-26 18:41:12 +00001311 proofread_file: "hidden-docs-proofrerad.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001312 args: framework_docs_only_args +
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001313 " -referenceonly " +
1314 " -title \"Android SDK - Including hidden APIs.\"",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001315}
1316
Nan Zhang7764a4b2018-08-22 11:27:31 -07001317droidstubs {
Colin Crossa2b78a72018-03-29 13:31:04 -07001318 name: "hwbinder-stubs-docs",
1319 srcs: [
1320 "core/java/android/os/HidlSupport.java",
1321 "core/java/android/annotation/IntDef.java",
1322 "core/java/android/annotation/NonNull.java",
1323 "core/java/android/annotation/SystemApi.java",
1324 "core/java/android/os/HwBinder.java",
1325 "core/java/android/os/HwBlob.java",
1326 "core/java/android/os/HwParcel.java",
1327 "core/java/android/os/IHwBinder.java",
1328 "core/java/android/os/IHwInterface.java",
1329 "core/java/android/os/DeadObjectException.java",
1330 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -07001331 "core/java/android/os/NativeHandle.java",
Colin Crossa2b78a72018-03-29 13:31:04 -07001332 "core/java/android/os/RemoteException.java",
1333 "core/java/android/util/AndroidException.java",
1334 ],
Colin Crossa2b78a72018-03-29 13:31:04 -07001335 installable: false,
Paul Duffin8fcace42019-06-12 13:47:18 +01001336 sdk_version: "core_platform",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001337 annotations_enabled: true,
1338 previous_api: ":last-released-public-api",
1339 merge_annotations_dirs: [
1340 "metalava-manual",
Pete Gillinff978192018-09-17 15:45:33 +01001341 "ojluni-annotated-sdk-stubs",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001342 ],
1343 args: " --show-annotation android.annotation.SystemApi",
Colin Crossa2b78a72018-03-29 13:31:04 -07001344}
1345
1346java_library_static {
1347 name: "hwbinder.stubs",
1348 sdk_version: "core_current",
1349 srcs: [
1350 ":hwbinder-stubs-docs",
1351 ],
1352}
Nan Zhanga0f91af2018-04-09 17:41:51 -07001353
Nan Zhang894c9ec2018-09-10 18:58:39 -07001354droidstubs {
Nan Zhangd25ad462018-08-22 10:48:15 -07001355 name: "hiddenapi-lists-docs",
1356 defaults: ["metalava-api-stubs-default"],
David Brazdil4f9d4d52018-04-26 14:05:13 +01001357 arg_files: [
1358 "core/res/AndroidManifest.xml",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001359 ],
David Brazdil6f6a1262018-05-31 13:58:41 +01001360 dex_api_filename: "public-dex.txt",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001361 private_dex_api_filename: "private-dex.txt",
1362 removed_dex_api_filename: "removed-dex.txt",
Nan Zhangd25ad462018-08-22 10:48:15 -07001363 args: metalava_framework_docs_args +
1364 " --show-unannotated " +
1365 " --show-annotation android.annotation.SystemApi " +
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001366 " --show-annotation android.annotation.TestApi ",
David Brazdil4f9d4d52018-04-26 14:05:13 +01001367}
1368
Nan Zhang7764a4b2018-08-22 11:27:31 -07001369droidstubs {
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001370 name: "hiddenapi-mappings",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001371 defaults: ["metalava-api-stubs-default"],
Jiyong Park0323b4d2019-08-23 20:36:58 +09001372 srcs: [
Paul Duffina0cb5382018-10-31 10:34:51 +00001373 ":non_openjdk_java_files",
Artur Satayev005d7352019-08-02 16:42:07 +01001374 ":openjdk_java_files",
Andrei Onea6dd843a2019-03-13 15:27:23 +00001375 ":opt-telephony-common-srcs",
Paul Duffina0cb5382018-10-31 10:34:51 +00001376 ],
Jiyong Park5366ea22019-08-19 15:24:49 +09001377
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001378 arg_files: [
1379 "core/res/AndroidManifest.xml",
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001380 ],
1381 dex_mapping_filename: "dex-mapping.txt",
Nan Zhang7764a4b2018-08-22 11:27:31 -07001382 args: metalava_framework_docs_args +
Adrian Roos9bdbd302018-12-07 13:53:40 +01001383 " --hide ReferencesHidden " +
Adrian Roosc6e2fc82018-12-12 15:08:44 +01001384 " --hide UnhiddenSystemApi " +
Nan Zhang7764a4b2018-08-22 11:27:31 -07001385 " --show-unannotated " +
1386 " --show-annotation android.annotation.SystemApi " +
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001387 " --show-annotation android.annotation.TestApi ",
Mathew Inwood0a6a2732018-06-22 15:30:02 +01001388}
1389
Nan Zhanga0f91af2018-04-09 17:41:51 -07001390filegroup {
1391 name: "apache-http-stubs-sources",
1392 srcs: [
1393 "core/java/org/apache/http/conn/ConnectTimeoutException.java",
1394 "core/java/org/apache/http/conn/scheme/HostNameResolver.java",
1395 "core/java/org/apache/http/conn/scheme/LayeredSocketFactory.java",
1396 "core/java/org/apache/http/conn/scheme/SocketFactory.java",
1397 "core/java/org/apache/http/conn/ssl/AbstractVerifier.java",
1398 "core/java/org/apache/http/conn/ssl/AllowAllHostnameVerifier.java",
1399 "core/java/org/apache/http/conn/ssl/AndroidDistinguishedNameParser.java",
1400 "core/java/org/apache/http/conn/ssl/BrowserCompatHostnameVerifier.java",
1401 "core/java/org/apache/http/conn/ssl/SSLSocketFactory.java",
1402 "core/java/org/apache/http/conn/ssl/StrictHostnameVerifier.java",
1403 "core/java/org/apache/http/conn/ssl/X509HostnameVerifier.java",
1404 "core/java/org/apache/http/params/CoreConnectionPNames.java",
1405 "core/java/org/apache/http/params/HttpConnectionParams.java",
1406 "core/java/org/apache/http/params/HttpParams.java",
Nan Zhanga0f91af2018-04-09 17:41:51 -07001407 "core/java/android/net/http/SslCertificate.java",
1408 "core/java/android/net/http/SslError.java",
1409 "core/java/com/android/internal/util/HexDump.java",
1410 ],
1411}
Nan Zhang4212eb12018-04-25 17:23:33 -07001412
Nan Zhang894c9ec2018-09-10 18:58:39 -07001413droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001414 name: "api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001415 defaults: ["metalava-api-stubs-default"],
Nan Zhang4212eb12018-04-25 17:23:33 -07001416 api_filename: "public_api.txt",
1417 private_api_filename: "private.txt",
1418 removed_api_filename: "removed.txt",
1419 arg_files: [
1420 "core/res/AndroidManifest.xml",
1421 ],
1422 args: metalava_framework_docs_args,
Nan Zhange5612602018-08-16 16:16:00 -07001423 check_api: {
1424 current: {
1425 api_file: "api/current.txt",
1426 removed_api_file: "api/removed.txt",
1427 },
Nan Zhangcd060d92018-08-20 20:34:26 -07001428 last_released: {
1429 api_file: ":last-released-public-api",
1430 removed_api_file: "api/removed.txt",
Adrian Roos9597f8c2019-08-12 17:47:39 +02001431 baseline_file: ":public-api-incompatibilities-with-last-released",
Nan Zhangcd060d92018-08-20 20:34:26 -07001432 },
Nan Zhange5612602018-08-16 16:16:00 -07001433 },
Nan Zhang81f29f52018-09-17 14:33:08 -07001434 jdiff_enabled: true,
Nan Zhang4212eb12018-04-25 17:23:33 -07001435}
1436
Nan Zhang894c9ec2018-09-10 18:58:39 -07001437droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001438 name: "system-api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001439 defaults: ["metalava-api-stubs-default"],
Nan Zhang4d3f5012018-08-07 13:40:33 -07001440 api_tag_name: "SYSTEM",
Nan Zhang4212eb12018-04-25 17:23:33 -07001441 api_filename: "system-api.txt",
1442 private_api_filename: "system-private.txt",
1443 private_dex_api_filename: "system-private-dex.txt",
1444 removed_api_filename: "system-removed.txt",
1445 arg_files: [
1446 "core/res/AndroidManifest.xml",
1447 ],
1448 args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi",
Nan Zhange5612602018-08-16 16:16:00 -07001449 check_api: {
1450 current: {
1451 api_file: "api/system-current.txt",
1452 removed_api_file: "api/system-removed.txt",
1453 },
Nan Zhangcd060d92018-08-20 20:34:26 -07001454 last_released: {
1455 api_file: ":last-released-system-api",
1456 removed_api_file: "api/system-removed.txt",
Adrian Roos9597f8c2019-08-12 17:47:39 +02001457 baseline_file: ":system-api-incompatibilities-with-last-released"
Nan Zhangcd060d92018-08-20 20:34:26 -07001458 },
Nan Zhange5612602018-08-16 16:16:00 -07001459 },
Nan Zhang81f29f52018-09-17 14:33:08 -07001460 jdiff_enabled: true,
Nan Zhang4212eb12018-04-25 17:23:33 -07001461}
1462
Nan Zhang894c9ec2018-09-10 18:58:39 -07001463droidstubs {
Nan Zhang4d3f5012018-08-07 13:40:33 -07001464 name: "test-api-stubs-docs",
Nan Zhang3e15ba82018-07-26 18:41:12 +00001465 defaults: ["metalava-api-stubs-default"],
Nan Zhang4d3f5012018-08-07 13:40:33 -07001466 api_tag_name: "TEST",
Nan Zhang4212eb12018-04-25 17:23:33 -07001467 api_filename: "test-api.txt",
1468 removed_api_filename: "test-removed.txt",
1469 arg_files: [
1470 "core/res/AndroidManifest.xml",
1471 ],
1472 args: metalava_framework_docs_args + " --show-annotation android.annotation.TestApi",
Nan Zhange5612602018-08-16 16:16:00 -07001473 check_api: {
1474 current: {
1475 api_file: "api/test-current.txt",
1476 removed_api_file: "api/test-removed.txt",
1477 },
1478 },
Nan Zhang4212eb12018-04-25 17:23:33 -07001479}
Nan Zhangaf251302018-08-30 10:59:51 -07001480
1481filegroup {
1482 name: "framework-annotation-nonnull-srcs",
1483 srcs: [
1484 "core/java/android/annotation/NonNull.java",
1485 ],
1486}
Insun Kang06b25ae2018-11-20 10:05:44 +09001487
1488filegroup {
1489 name: "framework-media-annotation-srcs",
1490 srcs: [
1491 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001492 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001493 "core/java/android/annotation/DrawableRes.java",
1494 "core/java/android/annotation/IntDef.java",
1495 "core/java/android/annotation/LongDef.java",
1496 "core/java/android/annotation/NonNull.java",
1497 "core/java/android/annotation/Nullable.java",
1498 "core/java/android/annotation/RequiresPermission.java",
1499 "core/java/android/annotation/SdkConstant.java",
1500 "core/java/android/annotation/StringDef.java",
Sungsoo Limbb3b4012019-01-23 13:17:53 +09001501 "core/java/android/annotation/SystemApi.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001502 "core/java/android/annotation/TestApi.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001503 "core/java/android/annotation/UnsupportedAppUsage.java",
Dongwon Kang3584c662018-11-27 11:14:08 -08001504 "core/java/com/android/internal/annotations/GuardedBy.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001505 ],
1506}
1507
Andrei Onea7a2985c2019-02-18 15:28:35 +00001508// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1509// annotations to private apis
1510aidl_mapping {
1511 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001512 srcs: [":framework-all-sources"],
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001513 output: "framework-aidl-mappings.txt",
Dario Freni2ce84342019-04-26 13:06:22 +01001514}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001515
1516genrule {
1517 name: "framework-annotation-proc-index",
1518 srcs: [":framework-annotation-proc"],
1519 cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)",
1520 out: ["unsupportedappusage_index.csv"],
1521 dist: {
1522 targets: ["droidcore"],
1523 },
1524}