blob: 9604466a0edd675cba8363158f4fa3400d5ddfba [file] [log] [blame]
Jiyong Park7fb4b182019-12-20 14:35:43 +09001// Copyright (C) 2019 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
15// How stubs are generated:
16//
17// raw source files --(metalava)--> stub source files --(javac)--> stub jar files
18//
19// The metalava conversion is done by droidstub modules *-api-stubs-docs.
20// The javac compilation is done by java_library modules android_*_stubs_current.
21// The metalava conversion is also responsible for creating API signature files
22// and comparing them against the last API signature in api/*-current.txt files
23// and also against the latest frozen API signature in prebuilts/sdk/*/*/api/android.txt
24// files.
25
26/////////////////////////////////////////////////////////////////////
27// Common metalava configs
28/////////////////////////////////////////////////////////////////////
29
30packages_to_document = [
31 "android",
32 "dalvik",
33 "java",
34 "javax",
35 "junit",
36 "org.apache.http",
37 "org.json",
38 "org.w3c.dom",
39 "org.xml.sax",
40 "org.xmlpull",
41]
42
43stubs_defaults {
Anton Hansson822cdb32020-03-06 17:16:06 +000044 name: "metalava-base-api-stubs-default",
Jiyong Park7fb4b182019-12-20 14:35:43 +090045 srcs: [
46 ":framework-non-updatable-sources",
Jiyong Park7fb4b182019-12-20 14:35:43 +090047 "core/java/**/*.logtags",
48 ":opt-telephony-srcs",
49 ":opt-net-voip-srcs",
Paul Duffin404b26a2020-09-16 14:26:47 +010050 ":art.module.public.api{.public.stubs.source}",
Paul Duffin5c89e702020-03-26 15:33:48 +000051 ":android_icu4j_public_api_files",
Ramy Medhataaa83862020-05-04 05:54:30 -040052 "**/package.html",
Jiyong Park7fb4b182019-12-20 14:35:43 +090053 ],
Ytai Ben-Tsvida7c21e2020-09-16 13:04:31 -070054 // TODO(b/147699819, b/169090544): remove below aidl includes.
Chen Xu546ce5e2020-01-10 08:38:31 -080055 aidl: {
Ytai Ben-Tsvida7c21e2020-09-16 13:04:31 -070056 local_include_dirs: [
57 "telephony/java",
58 "media/aidl",
59 ],
Chen Xu546ce5e2020-01-10 08:38:31 -080060 },
Jiyong Parkc0f8a282020-09-29 13:43:00 +090061 // These are libs from framework-internal-utils that are required (i.e. being referenced)
62 // from framework-non-updatable-sources. Add more here when there's a need.
63 // DO NOT add the entire framework-internal-utils. It might cause unnecessary circular
64 // dependencies gets bigger.
65 libs: [
66 "android.hardware.cas-V1.2-java",
67 "android.hardware.health-V1.0-java-constants",
68 "android.hardware.radio-V1.5-java",
69 "android.hardware.thermal-V1.0-java-constants",
70 "android.hardware.thermal-V2.0-java",
71 "android.hardware.tv.input-V1.0-java-constants",
72 "android.hardware.tv.tuner-V1.0-java-constants",
Amy Zhang782aa902020-10-12 13:55:52 -070073 "android.hardware.tv.tuner-V1.1-java-constants",
Jiyong Parkc0f8a282020-09-29 13:43:00 +090074 "android.hardware.usb-V1.0-java-constants",
75 "android.hardware.usb-V1.1-java-constants",
76 "android.hardware.usb.gadget-V1.0-java",
77 "android.hardware.vibrator-V1.3-java",
78 "framework-protos",
79 ],
Jiyong Park7fb4b182019-12-20 14:35:43 +090080 installable: false,
81 annotations_enabled: true,
Anton Hansson48ee95e2020-05-02 17:49:26 +010082 previous_api: ":android.api.public.latest",
Jiyong Park7fb4b182019-12-20 14:35:43 +090083 merge_annotations_dirs: [
84 "metalava-manual",
85 ],
Aurimas Liutikas94bac9c2020-03-12 17:06:12 -070086 api_levels_annotations_enabled: false,
Jiyong Park7fb4b182019-12-20 14:35:43 +090087 filter_packages: packages_to_document,
88}
89
Jiyong Parke3095162019-12-20 15:30:28 +090090stubs_defaults {
Anton Hansson822cdb32020-03-06 17:16:06 +000091 name: "metalava-full-api-stubs-default",
92 defaults: ["metalava-base-api-stubs-default"],
Anton Hanssone89d37d2020-05-07 12:06:00 +010093 srcs: [
Paul Duffine55d4e32020-05-14 17:55:46 +010094 ":conscrypt.module.public.api{.public.stubs.source}",
Anton Hanssone89d37d2020-05-07 12:06:00 +010095 ":framework-updatable-sources",
96 ],
Jiyong Parke3095162019-12-20 15:30:28 +090097 sdk_version: "core_platform",
98}
99
Anton Hansson822cdb32020-03-06 17:16:06 +0000100stubs_defaults {
101 name: "metalava-non-updatable-api-stubs-default",
102 defaults: ["metalava-base-api-stubs-default"],
Anton Hansson92d79fd2020-03-20 09:12:52 +0000103 sdk_version: "core_platform",
Anton Hansson394febc2020-04-14 16:35:36 +0100104 // There are a few classes from modules used as type arguments that
105 // need to be resolved by metalava. For now, we can use a previously
106 // finalized stub library to resolve them. If a new class gets added,
107 // this may be need to be revisited to use a manually maintained stub
108 // library with empty classes in order to resolve those references.
Anton Hansson76d3db42020-04-09 14:16:37 +0100109 libs: ["sdk_system_30_android"],
Anton Hansson92d79fd2020-03-20 09:12:52 +0000110 aidl: {
Anton Hansson394febc2020-04-14 16:35:36 +0100111 local_include_dirs: ["apex/media/aidl/stable"],
Anton Hansson92d79fd2020-03-20 09:12:52 +0000112 },
Anton Hansson822cdb32020-03-06 17:16:06 +0000113}
114
Jiyong Park7fb4b182019-12-20 14:35:43 +0900115/////////////////////////////////////////////////////////////////////
116// *-api-stubs-docs modules providing source files for the stub libraries
117/////////////////////////////////////////////////////////////////////
118
Jiyong Parke3095162019-12-20 15:30:28 +0900119// api-stubs-docs, system-api-stubs-docs, and test-api-stubs-docs have APIs
120// from the non-updatable part of the platform as well as from the updatable
121// modules
Jiyong Park7fb4b182019-12-20 14:35:43 +0900122droidstubs {
123 name: "api-stubs-docs",
Anton Hansson822cdb32020-03-06 17:16:06 +0000124 defaults: ["metalava-full-api-stubs-default"],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900125 arg_files: [
126 "core/res/AndroidManifest.xml",
127 ],
128 args: metalava_framework_docs_args,
129 check_api: {
130 current: {
131 api_file: "api/current.txt",
132 removed_api_file: "api/removed.txt",
133 },
134 last_released: {
Anton Hansson48ee95e2020-05-02 17:49:26 +0100135 api_file: ":android.api.public.latest",
Anton Hansson960c6752020-05-02 18:00:30 +0100136 removed_api_file: ":removed.api.public.latest",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900137 baseline_file: ":public-api-incompatibilities-with-last-released",
138 },
139 api_lint: {
140 enabled: true,
Anton Hansson48ee95e2020-05-02 17:49:26 +0100141 new_since: ":android.api.public.latest",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900142 baseline_file: "api/lint-baseline.txt",
143 },
144 },
Jiyong Park7fb4b182019-12-20 14:35:43 +0900145}
146
Anton Hansson76d3db42020-04-09 14:16:37 +0100147droidstubs {
148 name: "api-stubs-docs-non-updatable",
149 defaults: ["metalava-non-updatable-api-stubs-default"],
150 arg_files: ["core/res/AndroidManifest.xml"],
151 args: metalava_framework_docs_args,
152 check_api: {
153 current: {
154 api_file: "non-updatable-api/current.txt",
155 removed_api_file: "non-updatable-api/removed.txt",
156 },
Anton Hansson37e102e2020-10-05 16:42:40 +0100157 last_released: {
158 api_file: ":android-non-updatable.api.public.latest",
159 removed_api_file: ":android-non-updatable-removed.api.public.latest",
160 baseline_file: ":public-api-incompatibilities-with-last-released",
161 },
Anton Hansson76d3db42020-04-09 14:16:37 +0100162 api_lint: {
163 enabled: true,
164 new_since: ":android-non-updatable.api.public.latest",
165 },
166 },
167}
168
Anton Hansson81969c22020-02-03 20:45:56 +0000169priv_apps = " " +
170 "--show-annotation android.annotation.SystemApi\\(" +
171 "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS" +
172 "\\) "
173
174module_libs = " " +
175 " --show-annotation android.annotation.SystemApi\\(" +
176 "client=android.annotation.SystemApi.Client.MODULE_LIBRARIES" +
Makoto Onuki41ccbfb2020-07-10 12:05:21 -0700177 "\\)" +
178 " --show-for-stub-purposes-annotation android.annotation.SystemApi\\(" +
179 "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS" +
Anton Hansson81969c22020-02-03 20:45:56 +0000180 "\\) "
181
Jiyong Park7fb4b182019-12-20 14:35:43 +0900182droidstubs {
183 name: "system-api-stubs-docs",
Anton Hansson822cdb32020-03-06 17:16:06 +0000184 defaults: ["metalava-full-api-stubs-default"],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900185 arg_files: [
186 "core/res/AndroidManifest.xml",
187 ],
Anton Hansson81969c22020-02-03 20:45:56 +0000188 args: metalava_framework_docs_args + priv_apps,
Jiyong Park7fb4b182019-12-20 14:35:43 +0900189 check_api: {
190 current: {
191 api_file: "api/system-current.txt",
192 removed_api_file: "api/system-removed.txt",
193 },
194 last_released: {
Anton Hansson48ee95e2020-05-02 17:49:26 +0100195 api_file: ":android.api.system.latest",
Anton Hansson960c6752020-05-02 18:00:30 +0100196 removed_api_file: ":removed.api.system.latest",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900197 baseline_file: ":system-api-incompatibilities-with-last-released"
198 },
199 api_lint: {
200 enabled: true,
Anton Hansson48ee95e2020-05-02 17:49:26 +0100201 new_since: ":android.api.system.latest",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900202 baseline_file: "api/system-lint-baseline.txt",
203 },
204 },
Jiyong Park7fb4b182019-12-20 14:35:43 +0900205}
206
207droidstubs {
Anton Hansson76d3db42020-04-09 14:16:37 +0100208 name: "system-api-stubs-docs-non-updatable",
209 defaults: ["metalava-non-updatable-api-stubs-default"],
210 arg_files: ["core/res/AndroidManifest.xml"],
211 args: metalava_framework_docs_args + priv_apps,
212 check_api: {
213 current: {
214 api_file: "non-updatable-api/system-current.txt",
215 removed_api_file: "non-updatable-api/system-removed.txt",
216 },
Anton Hansson37e102e2020-10-05 16:42:40 +0100217 last_released: {
218 api_file: ":android-non-updatable.api.system.latest",
219 removed_api_file: ":android-non-updatable-removed.api.system.latest",
220 baseline_file: ":system-api-incompatibilities-with-last-released"
221 },
Anton Hansson76d3db42020-04-09 14:16:37 +0100222 api_lint: {
223 enabled: true,
224 new_since: ":android-non-updatable.api.system.latest",
225 baseline_file: "non-updatable-api/system-lint-baseline.txt",
226 },
227 },
228}
229
230droidstubs {
Jiyong Park7fb4b182019-12-20 14:35:43 +0900231 name: "test-api-stubs-docs",
Anton Hansson7ce31c12020-10-15 18:38:49 +0100232 defaults: ["metalava-non-updatable-api-stubs-default"],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900233 arg_files: [
234 "core/res/AndroidManifest.xml",
235 ],
Anton Hanssona2b34972020-10-09 10:13:51 +0100236 args: metalava_framework_docs_args
237 + " --show-annotation android.annotation.TestApi"
238 + " --show-for-stub-purposes-annotation android.annotation.SystemApi\\("
239 + "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS"
240 + "\\)",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900241 check_api: {
242 current: {
243 api_file: "api/test-current.txt",
244 removed_api_file: "api/test-removed.txt",
245 },
246 api_lint: {
247 enabled: true,
248 baseline_file: "api/test-lint-baseline.txt",
249 },
250 },
Anton Hanssond9a3fee2020-03-23 18:08:55 +0000251 dist: {
252 targets: ["sdk", "win_sdk"],
253 dir: "apistubs/android/test/api",
254 dest: "android.txt",
255 },
Jiyong Park7fb4b182019-12-20 14:35:43 +0900256}
257
258/////////////////////////////////////////////////////////////////////
Makoto Onuki41ccbfb2020-07-10 12:05:21 -0700259// Following droidstubs modules are for extra APIs for modules,
260// namely @SystemApi(client=MODULE_LIBRARIES) APIs.
Jiyong Parke3095162019-12-20 15:30:28 +0900261/////////////////////////////////////////////////////////////////////
262
Jiyong Parke3095162019-12-20 15:30:28 +0900263droidstubs {
264 name: "module-lib-api",
Anton Hansson822cdb32020-03-06 17:16:06 +0000265 defaults: ["metalava-full-api-stubs-default"],
Jiyong Parke3095162019-12-20 15:30:28 +0900266 arg_files: ["core/res/AndroidManifest.xml"],
Anton Hansson81969c22020-02-03 20:45:56 +0000267 args: metalava_framework_docs_args + module_libs,
Paul Duffin4c5dc182020-04-08 18:28:15 +0100268
269 // Do not generate stubs as they are not needed
270 generate_stubs: false,
271
Jiyong Parke3095162019-12-20 15:30:28 +0900272 check_api: {
273 current: {
274 api_file: "api/module-lib-current.txt",
275 removed_api_file: "api/module-lib-removed.txt",
276 },
Anton Hansson79e35c32020-02-11 14:36:40 +0000277 last_released: {
Anton Hansson48ee95e2020-05-02 17:49:26 +0100278 api_file: ":android.api.module-lib.latest",
Anton Hansson960c6752020-05-02 18:00:30 +0100279 removed_api_file: ":removed.api.module-lib.latest",
Anton Hansson79e35c32020-02-11 14:36:40 +0000280 baseline_file: ":module-lib-api-incompatibilities-with-last-released"
281 },
282 api_lint: {
283 enabled: true,
Anton Hansson48ee95e2020-05-02 17:49:26 +0100284 new_since: ":android.api.module-lib.latest",
Anton Hansson79e35c32020-02-11 14:36:40 +0000285 baseline_file: "api/module-lib-lint-baseline.txt",
286 },
Jiyong Parke3095162019-12-20 15:30:28 +0900287 },
Jiyong Parke3095162019-12-20 15:30:28 +0900288}
289
Anton Hansson76d3db42020-04-09 14:16:37 +0100290droidstubs {
291 name: "module-lib-api-stubs-docs-non-updatable",
292 defaults: ["metalava-non-updatable-api-stubs-default"],
293 arg_files: ["core/res/AndroidManifest.xml"],
Makoto Onukif4a486e2020-07-15 10:38:04 -0700294 args: metalava_framework_docs_args + priv_apps + module_libs,
Anton Hansson76d3db42020-04-09 14:16:37 +0100295 check_api: {
296 current: {
297 api_file: "non-updatable-api/module-lib-current.txt",
298 removed_api_file: "non-updatable-api/module-lib-removed.txt",
299 },
Anton Hanssonc3ef1f562020-10-07 14:55:36 +0100300 last_released: {
301 api_file: ":android-non-updatable.api.module-lib.latest",
302 removed_api_file: ":android-non-updatable-removed.api.module-lib.latest",
303 },
Anton Hansson76d3db42020-04-09 14:16:37 +0100304 api_lint: {
305 enabled: true,
306 new_since: ":android-non-updatable.api.module-lib.latest",
307 },
308 },
309}
Anton Hansson81969c22020-02-03 20:45:56 +0000310
Jiyong Parke3095162019-12-20 15:30:28 +0900311/////////////////////////////////////////////////////////////////////
Jiyong Park7fb4b182019-12-20 14:35:43 +0900312// android_*_stubs_current modules are the stubs libraries compiled
313// from *-api-stubs-docs
314/////////////////////////////////////////////////////////////////////
315
316java_defaults {
Anton Hanssonfbd32f32020-04-09 14:16:37 +0100317 name: "android_defaults_stubs_current",
Anton Hansson08b48bb2020-02-08 20:43:19 +0000318 libs: [ "stub-annotations" ],
Paul Duffina281e922020-03-25 10:13:33 +0000319 static_libs: [
Paul Duffina281e922020-03-25 10:13:33 +0000320 // License notices from art module
321 "art-notices-for-framework-stubs-jar",
Anton Hanssoncf42e982020-08-13 19:40:13 +0100322 "framework-res-package-jar", // Export package of framework-res
Paul Duffina281e922020-03-25 10:13:33 +0000323 ],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900324 errorprone: {
325 javacflags: [
326 "-XepDisableAllChecks",
327 ],
328 },
Anton Hanssonfbd32f32020-04-09 14:16:37 +0100329 sdk_version: "none",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900330 system_modules: "none",
331 java_version: "1.8",
332 compile_dex: true,
333}
334
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000335java_defaults {
336 name: "android_stubs_dists_default",
337 dist: {
338 targets: ["sdk", "win_sdk"],
339 tag: ".jar",
340 dest: "android.jar",
341 },
342}
343
Jiyong Park7fb4b182019-12-20 14:35:43 +0900344java_library_static {
Anton Hansson76d3db42020-04-09 14:16:37 +0100345 name: "android_monolith_stubs_current",
Anton Hansson08b48bb2020-02-08 20:43:19 +0000346 srcs: [ ":api-stubs-docs" ],
Anton Hanssonbf63f942020-05-20 12:06:23 +0100347 static_libs: [ "private-stub-annotations-jar" ],
Anton Hanssonfbd32f32020-04-09 14:16:37 +0100348 defaults: ["android_defaults_stubs_current"],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900349}
350
351java_library_static {
Anton Hansson76d3db42020-04-09 14:16:37 +0100352 name: "android_merged_stubs_current",
353 srcs: [ ":api-stubs-docs-non-updatable" ],
354 static_libs: [
355 "conscrypt.module.public.api.stubs",
Anton Hanssond74139e2020-10-08 14:59:17 +0100356 "framework-appsearch.stubs",
Paul Duffin4e006622020-05-31 16:55:13 +0100357 "framework-graphics.stubs",
Paul Duffin8b864fb2020-05-31 11:35:50 +0100358 "framework-media.stubs",
359 "framework-mediaprovider.stubs",
360 "framework-permission.stubs",
361 "framework-sdkextensions.stubs",
362 "framework-statsd.stubs",
363 "framework-tethering.stubs",
364 "framework-wifi.stubs",
Anton Hanssonbf63f942020-05-20 12:06:23 +0100365 "private-stub-annotations-jar",
Anton Hansson76d3db42020-04-09 14:16:37 +0100366 ],
367 defaults: ["android_defaults_stubs_current"],
368}
369
370java_library_static {
371 name: "android_stubs_current",
372 static_libs: ["android_merged_stubs_current"],
373 defaults: ["android_defaults_stubs_current"],
374}
375
376java_library_static {
377 name: "android_system_monolith_stubs_current",
Anton Hansson08b48bb2020-02-08 20:43:19 +0000378 srcs: [ ":system-api-stubs-docs" ],
Anton Hanssonbf63f942020-05-20 12:06:23 +0100379 static_libs: [ "private-stub-annotations-jar" ],
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000380 defaults: [
381 "android_defaults_stubs_current",
382 "android_stubs_dists_default",
383 ],
384 dist: {
385 dir: "apistubs/android/system",
386 },
387 dists: [
388 {
389 // Legacy dist path
390 targets: ["sdk", "win_sdk"],
391 tag: ".jar",
392 dest: "android_system.jar",
393 },
394 ],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900395}
396
397java_library_static {
Anton Hansson76d3db42020-04-09 14:16:37 +0100398 name: "android_system_merged_stubs_current",
399 srcs: [ ":system-api-stubs-docs-non-updatable" ],
400 static_libs: [
401 "conscrypt.module.public.api.stubs",
Anton Hansson25a0a2b2020-10-08 13:43:48 +0100402 "framework-appsearch.stubs.system",
Paul Duffin4e006622020-05-31 16:55:13 +0100403 "framework-graphics.stubs.system",
Paul Duffin8b864fb2020-05-31 11:35:50 +0100404 "framework-media.stubs.system",
405 "framework-mediaprovider.stubs.system",
406 "framework-permission.stubs.system",
407 "framework-sdkextensions.stubs.system",
408 "framework-statsd.stubs.system",
409 "framework-tethering.stubs.system",
410 "framework-wifi.stubs.system",
Anton Hanssonbf63f942020-05-20 12:06:23 +0100411 "private-stub-annotations-jar",
Anton Hansson76d3db42020-04-09 14:16:37 +0100412 ],
413 defaults: ["android_defaults_stubs_current"],
414}
415
416java_library_static {
417 name: "android_system_stubs_current",
418 static_libs: ["android_system_merged_stubs_current"],
419 defaults: ["android_defaults_stubs_current"],
420}
421
422java_library_static {
Jiyong Park7fb4b182019-12-20 14:35:43 +0900423 name: "android_test_stubs_current",
Anton Hansson08b48bb2020-02-08 20:43:19 +0000424 srcs: [ ":test-api-stubs-docs" ],
Anton Hansson7ce31c12020-10-15 18:38:49 +0100425 static_libs: [
426 // Modules do not have test APIs, but we want to include their SystemApis, like we include
427 // the SystemApi of framework-non-updatable-sources.
428 "conscrypt.module.public.api.stubs",
429 "framework-appsearch.stubs.system",
430 "framework-graphics.stubs.system",
431 "framework-media.stubs.system",
432 "framework-mediaprovider.stubs.system",
433 "framework-permission.stubs.system",
434 "framework-sdkextensions.stubs.system",
435 "framework-statsd.stubs.system",
436 "framework-tethering.stubs.system",
437 "framework-wifi.stubs.system",
438 "private-stub-annotations-jar",
439 ],
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000440 defaults: [
441 "android_defaults_stubs_current",
442 "android_stubs_dists_default",
443 ],
444 dist: {
445 dir: "apistubs/android/test",
446 },
447 dists: [
448 {
449 // Legacy dist path
450 targets: ["sdk", "win_sdk"],
451 tag: ".jar",
452 dest: "android_test.jar",
453 },
454 ],
Jiyong Parke3095162019-12-20 15:30:28 +0900455}
456
457java_library_static {
Anton Hansson1b9cf092020-01-30 12:09:02 +0000458 name: "android_module_lib_stubs_current",
Makoto Onukif4a486e2020-07-15 10:38:04 -0700459 srcs: [ ":module-lib-api-stubs-docs-non-updatable" ],
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000460 defaults: [
461 "android_defaults_stubs_current",
462 "android_stubs_dists_default",
463 ],
Anton Hansson394febc2020-04-14 16:35:36 +0100464 libs: ["sdk_system_29_android"],
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000465 dist: {
466 dir: "apistubs/android/module-lib",
467 },
Jiyong Park7fb4b182019-12-20 14:35:43 +0900468}
469
Anton Hansson76d3db42020-04-09 14:16:37 +0100470java_library_static {
471 name: "android_non_updatable_stubs_current",
472 srcs: [":api-stubs-docs-non-updatable"],
473 defaults: ["android_defaults_stubs_current"],
474 libs: ["sdk_system_29_android"],
475}
476
477java_library_static {
478 name: "android_system_non_updatable_stubs_current",
479 srcs: [":system-api-stubs-docs-non-updatable"],
480 defaults: ["android_defaults_stubs_current"],
481 libs: ["sdk_system_29_android"],
482}
483
Jiyong Park7fb4b182019-12-20 14:35:43 +0900484/////////////////////////////////////////////////////////////////////
485// hwbinder.stubs provides APIs required for building HIDL Java
486// libraries.
487/////////////////////////////////////////////////////////////////////
488
489droidstubs {
490 name: "hwbinder-stubs-docs",
491 srcs: [
492 "core/java/android/os/HidlSupport.java",
493 "core/java/android/annotation/IntDef.java",
494 "core/java/android/annotation/IntRange.java",
495 "core/java/android/annotation/NonNull.java",
496 "core/java/android/annotation/SystemApi.java",
497 "core/java/android/os/HidlMemory.java",
498 "core/java/android/os/HwBinder.java",
499 "core/java/android/os/HwBlob.java",
500 "core/java/android/os/HwParcel.java",
501 "core/java/android/os/IHwBinder.java",
502 "core/java/android/os/IHwInterface.java",
503 "core/java/android/os/DeadObjectException.java",
504 "core/java/android/os/DeadSystemException.java",
505 "core/java/android/os/NativeHandle.java",
506 "core/java/android/os/RemoteException.java",
507 "core/java/android/util/AndroidException.java",
508 ],
509 installable: false,
510 sdk_version: "core_platform",
511 annotations_enabled: true,
Anton Hansson48ee95e2020-05-02 17:49:26 +0100512 previous_api: ":android.api.public.latest",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900513 merge_annotations_dirs: [
514 "metalava-manual",
515 ],
Anton Hansson81969c22020-02-03 20:45:56 +0000516 args: priv_apps,
Jiyong Park7fb4b182019-12-20 14:35:43 +0900517}
518
519java_library_static {
520 name: "hwbinder.stubs",
521 sdk_version: "core_current",
522 srcs: [
523 ":hwbinder-stubs-docs",
524 ],
525}