blob: 3b11036495c8da2337472ccdaac491ce32c50804 [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//
Anton Hansson2feb3f12020-11-13 11:44:32 +000019// - The metalava conversion is done by droidstub modules
20// - The javac compilation is done by java_library modules
21//
Jiyong Park7fb4b182019-12-20 14:35:43 +090022// The metalava conversion is also responsible for creating API signature files
Anton Hansson2feb3f12020-11-13 11:44:32 +000023// and comparing them against the checked in API signature, and also checking compatibility
24// with the latest frozen API signature.
Jiyong Park7fb4b182019-12-20 14:35:43 +090025
26/////////////////////////////////////////////////////////////////////
27// Common metalava configs
28/////////////////////////////////////////////////////////////////////
29
Jiyong Park7fb4b182019-12-20 14:35:43 +090030stubs_defaults {
Anton Hansson2feb3f12020-11-13 11:44:32 +000031 name: "metalava-non-updatable-api-stubs-default",
Anton Hansson867f94c2021-05-05 10:32:31 +010032 defaults: ["android-non-updatable-stubs-defaults"],
Aurimas Liutikas94bac9c2020-03-12 17:06:12 -070033 api_levels_annotations_enabled: false,
Anton Hansson86925682021-04-14 14:54:43 +010034 defaults_visibility: ["//visibility:private"],
Jiyong Park7fb4b182019-12-20 14:35:43 +090035}
36
37/////////////////////////////////////////////////////////////////////
Anton Hansson51861e72020-11-13 09:55:29 +000038// These modules provide source files for the stub libraries
Jiyong Park7fb4b182019-12-20 14:35:43 +090039/////////////////////////////////////////////////////////////////////
40
Anton Hansson76d3db42020-04-09 14:16:37 +010041droidstubs {
42 name: "api-stubs-docs-non-updatable",
43 defaults: ["metalava-non-updatable-api-stubs-default"],
Anton Hansson76d3db42020-04-09 14:16:37 +010044 args: metalava_framework_docs_args,
45 check_api: {
46 current: {
Anton Hansson6cbaff22020-10-29 15:28:19 +000047 api_file: "core/api/current.txt",
48 removed_api_file: "core/api/removed.txt",
Anton Hansson76d3db42020-04-09 14:16:37 +010049 },
Anton Hansson37e102e2020-10-05 16:42:40 +010050 last_released: {
51 api_file: ":android-non-updatable.api.public.latest",
52 removed_api_file: ":android-non-updatable-removed.api.public.latest",
Anton Hansson7f3393d2021-04-12 11:56:53 +010053 baseline_file: ":android-non-updatable-incompatibilities.api.public.latest",
Anton Hansson37e102e2020-10-05 16:42:40 +010054 },
Anton Hansson76d3db42020-04-09 14:16:37 +010055 api_lint: {
56 enabled: true,
Anton Hansson4f90aa52021-06-04 22:23:59 +010057 new_since: ":android.api.public.latest",
Anton Hansson76d3db42020-04-09 14:16:37 +010058 },
59 },
Anton Hansson85785fe2021-01-20 20:23:34 +000060 dists: [
61 {
Anton Hansson240ee482021-04-14 12:52:00 +010062 targets: [
63 "sdk",
64 "win_sdk",
65 ],
Anton Hansson85785fe2021-01-20 20:23:34 +000066 dir: "apistubs/android/public/api",
67 dest: "android-non-updatable.txt",
68 tag: ".api.txt",
69 },
70 {
Anton Hansson240ee482021-04-14 12:52:00 +010071 targets: [
72 "sdk",
73 "win_sdk",
74 ],
Anton Hansson85785fe2021-01-20 20:23:34 +000075 dir: "apistubs/android/public/api",
76 dest: "android-non-updatable-removed.txt",
77 tag: ".removed-api.txt",
78 },
79 ],
Anton Hansson76d3db42020-04-09 14:16:37 +010080}
81
Anton Hansson240ee482021-04-14 12:52:00 +010082priv_apps = " --show-annotation android.annotation.SystemApi\\(" +
83 "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS" +
Anton Hansson2feb3f12020-11-13 11:44:32 +000084 "\\)"
85
Anton Hansson240ee482021-04-14 12:52:00 +010086priv_apps_in_stubs = " --show-for-stub-purposes-annotation android.annotation.SystemApi\\(" +
87 "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS" +
Anton Hansson2feb3f12020-11-13 11:44:32 +000088 "\\)"
89
90test = " --show-annotation android.annotation.TestApi"
91
Anton Hansson240ee482021-04-14 12:52:00 +010092module_libs = " --show-annotation android.annotation.SystemApi\\(" +
93 "client=android.annotation.SystemApi.Client.MODULE_LIBRARIES" +
Anton Hansson2feb3f12020-11-13 11:44:32 +000094 "\\)"
Anton Hansson81969c22020-02-03 20:45:56 +000095
Jiyong Park7fb4b182019-12-20 14:35:43 +090096droidstubs {
Anton Hansson76d3db42020-04-09 14:16:37 +010097 name: "system-api-stubs-docs-non-updatable",
98 defaults: ["metalava-non-updatable-api-stubs-default"],
Anton Hansson76d3db42020-04-09 14:16:37 +010099 args: metalava_framework_docs_args + priv_apps,
100 check_api: {
101 current: {
Anton Hansson6cbaff22020-10-29 15:28:19 +0000102 api_file: "core/api/system-current.txt",
103 removed_api_file: "core/api/system-removed.txt",
Anton Hansson76d3db42020-04-09 14:16:37 +0100104 },
Anton Hansson37e102e2020-10-05 16:42:40 +0100105 last_released: {
106 api_file: ":android-non-updatable.api.system.latest",
107 removed_api_file: ":android-non-updatable-removed.api.system.latest",
Anton Hansson240ee482021-04-14 12:52:00 +0100108 baseline_file: ":android-non-updatable-incompatibilities.api.system.latest",
Anton Hansson37e102e2020-10-05 16:42:40 +0100109 },
Anton Hansson76d3db42020-04-09 14:16:37 +0100110 api_lint: {
111 enabled: true,
Anton Hansson4f90aa52021-06-04 22:23:59 +0100112 new_since: ":android.api.system.latest",
Anton Hansson6cbaff22020-10-29 15:28:19 +0000113 baseline_file: "core/api/system-lint-baseline.txt",
Anton Hansson76d3db42020-04-09 14:16:37 +0100114 },
115 },
Anton Hansson85785fe2021-01-20 20:23:34 +0000116 dists: [
117 {
Anton Hansson240ee482021-04-14 12:52:00 +0100118 targets: [
119 "sdk",
120 "win_sdk",
121 ],
Anton Hansson85785fe2021-01-20 20:23:34 +0000122 dir: "apistubs/android/system/api",
123 dest: "android-non-updatable.txt",
124 tag: ".api.txt",
125 },
126 {
Anton Hansson240ee482021-04-14 12:52:00 +0100127 targets: [
128 "sdk",
129 "win_sdk",
130 ],
Anton Hansson85785fe2021-01-20 20:23:34 +0000131 dir: "apistubs/android/system/api",
132 dest: "android-non-updatable-removed.txt",
133 tag: ".removed-api.txt",
134 },
135 ],
Anton Hansson76d3db42020-04-09 14:16:37 +0100136}
137
138droidstubs {
Anton Hansson022aac52020-11-05 10:45:13 +0000139 name: "test-api-stubs-docs-non-updatable",
Anton Hansson7ce31c12020-10-15 18:38:49 +0100140 defaults: ["metalava-non-updatable-api-stubs-default"],
Anton Hansson2feb3f12020-11-13 11:44:32 +0000141 args: metalava_framework_docs_args + test + priv_apps_in_stubs,
Jiyong Park7fb4b182019-12-20 14:35:43 +0900142 check_api: {
143 current: {
Anton Hansson022aac52020-11-05 10:45:13 +0000144 api_file: "core/api/test-current.txt",
145 removed_api_file: "core/api/test-removed.txt",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900146 },
147 api_lint: {
148 enabled: true,
Anton Hansson022aac52020-11-05 10:45:13 +0000149 baseline_file: "core/api/test-lint-baseline.txt",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900150 },
151 },
Anton Hansson85785fe2021-01-20 20:23:34 +0000152 dists: [
153 {
Anton Hansson240ee482021-04-14 12:52:00 +0100154 targets: [
155 "sdk",
156 "win_sdk",
157 ],
Anton Hansson85785fe2021-01-20 20:23:34 +0000158 dir: "apistubs/android/test/api",
159 dest: "android.txt",
160 tag: ".api.txt",
161 },
162 {
Anton Hansson240ee482021-04-14 12:52:00 +0100163 targets: [
164 "sdk",
165 "win_sdk",
166 ],
Anton Hansson85785fe2021-01-20 20:23:34 +0000167 dir: "apistubs/android/test/api",
168 dest: "removed.txt",
169 tag: ".removed-api.txt",
170 },
171 {
Anton Hansson240ee482021-04-14 12:52:00 +0100172 targets: [
173 "sdk",
174 "win_sdk",
175 ],
Anton Hansson85785fe2021-01-20 20:23:34 +0000176 dir: "apistubs/android/test/api",
177 dest: "android-non-updatable.txt",
178 tag: ".api.txt",
179 },
180 {
Anton Hansson240ee482021-04-14 12:52:00 +0100181 targets: [
182 "sdk",
183 "win_sdk",
184 ],
Anton Hansson85785fe2021-01-20 20:23:34 +0000185 dir: "apistubs/android/test/api",
186 dest: "android-non-updatable-removed.txt",
187 tag: ".removed-api.txt",
188 },
189 ],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900190}
191
Jiyong Parke3095162019-12-20 15:30:28 +0900192droidstubs {
Anton Hansson76d3db42020-04-09 14:16:37 +0100193 name: "module-lib-api-stubs-docs-non-updatable",
194 defaults: ["metalava-non-updatable-api-stubs-default"],
Anton Hansson2feb3f12020-11-13 11:44:32 +0000195 args: metalava_framework_docs_args + priv_apps_in_stubs + module_libs,
Anton Hansson76d3db42020-04-09 14:16:37 +0100196 check_api: {
197 current: {
Anton Hansson6cbaff22020-10-29 15:28:19 +0000198 api_file: "core/api/module-lib-current.txt",
199 removed_api_file: "core/api/module-lib-removed.txt",
Anton Hansson76d3db42020-04-09 14:16:37 +0100200 },
Anton Hanssonc3ef1f562020-10-07 14:55:36 +0100201 last_released: {
202 api_file: ":android-non-updatable.api.module-lib.latest",
203 removed_api_file: ":android-non-updatable-removed.api.module-lib.latest",
204 },
Anton Hansson76d3db42020-04-09 14:16:37 +0100205 api_lint: {
206 enabled: true,
Anton Hansson4f90aa52021-06-04 22:23:59 +0100207 new_since: ":android.api.module-lib.latest",
Anton Hansson1f449412021-06-04 22:30:52 +0100208 baseline_file: "core/api/module-lib-lint-baseline.txt",
Anton Hansson76d3db42020-04-09 14:16:37 +0100209 },
210 },
Anton Hansson85785fe2021-01-20 20:23:34 +0000211 dists: [
212 {
Anton Hansson240ee482021-04-14 12:52:00 +0100213 targets: [
214 "sdk",
215 "win_sdk",
216 ],
Anton Hansson85785fe2021-01-20 20:23:34 +0000217 dir: "apistubs/android/module-lib/api",
218 dest: "android-non-updatable.txt",
219 tag: ".api.txt",
220 },
221 {
Anton Hansson240ee482021-04-14 12:52:00 +0100222 targets: [
223 "sdk",
224 "win_sdk",
225 ],
Anton Hansson85785fe2021-01-20 20:23:34 +0000226 dir: "apistubs/android/module-lib/api",
227 dest: "android-non-updatable-removed.txt",
228 tag: ".removed-api.txt",
229 },
230 ],
Anton Hansson76d3db42020-04-09 14:16:37 +0100231}
Anton Hansson81969c22020-02-03 20:45:56 +0000232
Jiyong Parke3095162019-12-20 15:30:28 +0900233/////////////////////////////////////////////////////////////////////
Jiyong Park7fb4b182019-12-20 14:35:43 +0900234// android_*_stubs_current modules are the stubs libraries compiled
Anton Hansson2feb3f12020-11-13 11:44:32 +0000235// from stub sources
Jiyong Park7fb4b182019-12-20 14:35:43 +0900236/////////////////////////////////////////////////////////////////////
237
Anton Hansson33b9b852021-04-09 10:12:45 +0100238modules_public_stubs = [
239 "android.net.ipsec.ike.stubs",
240 "art.module.public.api.stubs",
241 "conscrypt.module.public.api.stubs",
242 "framework-appsearch.stubs",
243 "framework-connectivity.stubs",
244 "framework-graphics.stubs",
245 "framework-media.stubs",
246 "framework-mediaprovider.stubs",
Chun Zhanga615ce52021-10-29 14:57:55 -0700247 "framework-nearby.stubs",
Anton Hansson33b9b852021-04-09 10:12:45 +0100248 "framework-permission.stubs",
249 "framework-permission-s.stubs",
250 "framework-scheduling.stubs",
251 "framework-sdkextensions.stubs",
252 "framework-statsd.stubs",
Gavin Corkerybc006442021-11-16 22:33:10 +0000253 "framework-supplementalprocess.stubs",
Anton Hansson33b9b852021-04-09 10:12:45 +0100254 "framework-tethering.stubs",
Roshan Pius6c580dd2021-07-29 21:31:23 -0700255 "framework-uwb.stubs",
Anton Hansson33b9b852021-04-09 10:12:45 +0100256 "framework-wifi.stubs",
257 "i18n.module.public.api.stubs",
258]
259
260modules_system_stubs = [
261 "android.net.ipsec.ike.stubs.system",
Victor Chang9f5cdff2021-05-12 10:47:16 +0100262 "art.module.public.api.stubs.system",
Anton Hansson33b9b852021-04-09 10:12:45 +0100263 "conscrypt.module.public.api.stubs", // Only has public stubs
264 "framework-appsearch.stubs.system",
265 "framework-connectivity.stubs.system",
266 "framework-graphics.stubs.system",
267 "framework-media.stubs.system",
268 "framework-mediaprovider.stubs.system",
Chun Zhanga615ce52021-10-29 14:57:55 -0700269 "framework-nearby.stubs.system",
Anton Hansson33b9b852021-04-09 10:12:45 +0100270 "framework-permission.stubs.system",
271 "framework-permission-s.stubs.system",
272 "framework-scheduling.stubs.system",
273 "framework-sdkextensions.stubs.system",
274 "framework-statsd.stubs.system",
Gavin Corkerybc006442021-11-16 22:33:10 +0000275 "framework-supplementalprocess.stubs",
Anton Hansson33b9b852021-04-09 10:12:45 +0100276 "framework-tethering.stubs.system",
Roshan Pius6c580dd2021-07-29 21:31:23 -0700277 "framework-uwb.stubs.system",
Anton Hansson33b9b852021-04-09 10:12:45 +0100278 "framework-wifi.stubs.system",
279 "i18n.module.public.api.stubs", // Only has public stubs
280]
281
Jiyong Park7fb4b182019-12-20 14:35:43 +0900282java_defaults {
Anton Hanssona4748cd2021-04-09 10:16:19 +0100283 name: "android-non-updatable_defaults_stubs_current",
284 libs: ["stub-annotations"],
285 static_libs: ["framework-res-package-jar"], // Export package of framework-res
Anton Hanssonfbd32f32020-04-09 14:16:37 +0100286 sdk_version: "none",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900287 system_modules: "none",
288 java_version: "1.8",
289 compile_dex: true,
Anton Hanssona4108912021-04-09 13:40:11 +0100290 dist: {
Anton Hansson240ee482021-04-14 12:52:00 +0100291 targets: [
292 "sdk",
293 "win_sdk",
294 ],
Anton Hanssona4108912021-04-09 13:40:11 +0100295 tag: ".jar",
296 dest: "android-non-updatable.jar",
Anton Hansson240ee482021-04-14 12:52:00 +0100297 },
Anton Hansson86925682021-04-14 14:54:43 +0100298 defaults_visibility: ["//visibility:private"],
299 visibility: ["//visibility:private"],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900300}
301
Anton Hanssonbbdd64b2021-04-26 18:47:39 +0100302java_library {
Anton Hanssona4748cd2021-04-09 10:16:19 +0100303 name: "android-non-updatable.stubs",
304 defaults: ["android-non-updatable_defaults_stubs_current"],
305 srcs: [":api-stubs-docs-non-updatable"],
306 libs: modules_public_stubs,
Anton Hanssona4108912021-04-09 13:40:11 +0100307 dist: {
308 dir: "apistubs/android/public",
309 },
Anton Hanssona4748cd2021-04-09 10:16:19 +0100310}
311
Anton Hanssonbbdd64b2021-04-26 18:47:39 +0100312java_library {
Anton Hanssona4748cd2021-04-09 10:16:19 +0100313 name: "android-non-updatable.stubs.system",
314 defaults: ["android-non-updatable_defaults_stubs_current"],
Anton Hansson240ee482021-04-14 12:52:00 +0100315 srcs: [":system-api-stubs-docs-non-updatable"],
Anton Hanssona4748cd2021-04-09 10:16:19 +0100316 libs: modules_system_stubs,
Anton Hanssona4108912021-04-09 13:40:11 +0100317 dist: {
318 dir: "apistubs/android/system",
319 },
Anton Hanssona4748cd2021-04-09 10:16:19 +0100320}
321
Anton Hanssonbbdd64b2021-04-26 18:47:39 +0100322java_library {
Anton Hanssona4748cd2021-04-09 10:16:19 +0100323 name: "android-non-updatable.stubs.module_lib",
324 defaults: ["android-non-updatable_defaults_stubs_current"],
325 srcs: [":module-lib-api-stubs-docs-non-updatable"],
326 libs: [
markchiencd813a32021-11-11 00:42:55 +0800327 "sdk_module-lib_current_framework-tethering",
Anton Hanssona4748cd2021-04-09 10:16:19 +0100328 "sdk_system_current_android",
329 // NOTE: The below can be removed once the prebuilt stub contains IKE.
330 "sdk_system_current_android.net.ipsec.ike",
331 ],
Anton Hanssona4108912021-04-09 13:40:11 +0100332 dist: {
333 dir: "apistubs/android/module-lib",
334 },
Anton Hanssona4748cd2021-04-09 10:16:19 +0100335}
336
Anton Hanssonbbdd64b2021-04-26 18:47:39 +0100337java_library {
Anton Hanssona4748cd2021-04-09 10:16:19 +0100338 name: "android-non-updatable.stubs.test",
339 defaults: ["android-non-updatable_defaults_stubs_current"],
340 srcs: [":test-api-stubs-docs-non-updatable"],
341 libs: modules_system_stubs,
Anton Hanssona4108912021-04-09 13:40:11 +0100342 dist: {
343 dir: "apistubs/android/test",
344 },
Anton Hanssona4748cd2021-04-09 10:16:19 +0100345}
346
347java_defaults {
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000348 name: "android_stubs_dists_default",
349 dist: {
Anton Hansson240ee482021-04-14 12:52:00 +0100350 targets: [
351 "sdk",
352 "win_sdk",
353 ],
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000354 tag: ".jar",
355 dest: "android.jar",
356 },
Anton Hansson86925682021-04-14 14:54:43 +0100357 defaults_visibility: ["//frameworks/base/services"],
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000358}
359
Anton Hanssonbbdd64b2021-04-26 18:47:39 +0100360java_library {
Anton Hansson65aa6ea2020-11-03 19:35:56 +0000361 name: "android_stubs_current",
Anton Hansson33b9b852021-04-09 10:12:45 +0100362 static_libs: modules_public_stubs + [
Anton Hanssona4748cd2021-04-09 10:16:19 +0100363 "android-non-updatable.stubs",
Anton Hanssonbf63f942020-05-20 12:06:23 +0100364 "private-stub-annotations-jar",
Anton Hansson76d3db42020-04-09 14:16:37 +0100365 ],
Anton Hansson65057af2021-04-14 18:52:08 +0100366 defaults: ["android.jar_defaults"],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900367}
368
Anton Hanssonbbdd64b2021-04-26 18:47:39 +0100369java_library {
Anton Hansson65aa6ea2020-11-03 19:35:56 +0000370 name: "android_system_stubs_current",
Anton Hansson33b9b852021-04-09 10:12:45 +0100371 static_libs: modules_system_stubs + [
Anton Hanssona4748cd2021-04-09 10:16:19 +0100372 "android-non-updatable.stubs.system",
Anton Hanssonbf63f942020-05-20 12:06:23 +0100373 "private-stub-annotations-jar",
Anton Hansson76d3db42020-04-09 14:16:37 +0100374 ],
Anton Hanssonc3002e52020-11-18 18:23:55 +0000375 defaults: [
Anton Hansson65057af2021-04-14 18:52:08 +0100376 "android.jar_defaults",
Anton Hanssonc3002e52020-11-18 18:23:55 +0000377 "android_stubs_dists_default",
378 ],
379 dist: {
380 dir: "apistubs/android/system",
381 },
382 dists: [
383 {
384 // Legacy dist path
Anton Hansson240ee482021-04-14 12:52:00 +0100385 targets: [
386 "sdk",
387 "win_sdk",
388 ],
Anton Hanssonc3002e52020-11-18 18:23:55 +0000389 tag: ".jar",
390 dest: "android_system.jar",
391 },
392 ],
Anton Hansson76d3db42020-04-09 14:16:37 +0100393}
394
Anton Hanssonbbdd64b2021-04-26 18:47:39 +0100395java_library {
Jiyong Park7fb4b182019-12-20 14:35:43 +0900396 name: "android_test_stubs_current",
Anton Hansson33b9b852021-04-09 10:12:45 +0100397 // Modules do not have test APIs, but we want to include their SystemApis, like we include
398 // the SystemApi of framework-non-updatable-sources.
399 static_libs: modules_system_stubs + [
Anton Hanssona4748cd2021-04-09 10:16:19 +0100400 "android-non-updatable.stubs.test",
Anton Hansson7ce31c12020-10-15 18:38:49 +0100401 "private-stub-annotations-jar",
402 ],
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000403 defaults: [
Anton Hansson65057af2021-04-14 18:52:08 +0100404 "android.jar_defaults",
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000405 "android_stubs_dists_default",
406 ],
407 dist: {
408 dir: "apistubs/android/test",
409 },
Jiyong Parke3095162019-12-20 15:30:28 +0900410}
411
Anton Hanssonbbdd64b2021-04-26 18:47:39 +0100412java_library {
Anton Hansson1b9cf092020-01-30 12:09:02 +0000413 name: "android_module_lib_stubs_current",
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000414 defaults: [
Anton Hansson65057af2021-04-14 18:52:08 +0100415 "android.jar_defaults",
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000416 "android_stubs_dists_default",
417 ],
Anton Hanssona4748cd2021-04-09 10:16:19 +0100418 static_libs: [
419 "android-non-updatable.stubs.module_lib",
Victor Chang6b107a92021-06-17 23:49:42 +0100420 "art.module.public.api.stubs.module_lib",
Anton Hanssonb7d532e2021-02-05 11:40:25 +0000421 ],
Anton Hansson53cf0ba2020-08-18 12:35:31 +0000422 dist: {
423 dir: "apistubs/android/module-lib",
424 },
Jiyong Park7fb4b182019-12-20 14:35:43 +0900425}
426
Andrei Oneafaa271a2021-03-17 13:32:51 +0000427java_library {
428 name: "android_system_server_stubs_current",
429 defaults: ["android_stubs_dists_default"],
430 srcs: [":services-non-updatable-stubs"],
431 installable: false,
432 static_libs: [
433 "android_module_lib_stubs_current",
434 ],
435 sdk_version: "none",
436 system_modules: "none",
437 java_version: "1.8",
438 dist: {
439 dir: "apistubs/android/system-server",
440 },
441}
442
Jiyong Park7fb4b182019-12-20 14:35:43 +0900443/////////////////////////////////////////////////////////////////////
444// hwbinder.stubs provides APIs required for building HIDL Java
445// libraries.
446/////////////////////////////////////////////////////////////////////
447
448droidstubs {
449 name: "hwbinder-stubs-docs",
450 srcs: [
451 "core/java/android/os/HidlSupport.java",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900452 "core/java/android/os/HidlMemory.java",
453 "core/java/android/os/HwBinder.java",
454 "core/java/android/os/HwBlob.java",
455 "core/java/android/os/HwParcel.java",
456 "core/java/android/os/IHwBinder.java",
457 "core/java/android/os/IHwInterface.java",
458 "core/java/android/os/DeadObjectException.java",
459 "core/java/android/os/DeadSystemException.java",
460 "core/java/android/os/NativeHandle.java",
461 "core/java/android/os/RemoteException.java",
462 "core/java/android/util/AndroidException.java",
463 ],
Colin Cross037d7fb2021-03-25 17:01:55 -0700464 libs: ["framework-annotations-lib"],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900465 installable: false,
466 sdk_version: "core_platform",
467 annotations_enabled: true,
Anton Hansson48ee95e2020-05-02 17:49:26 +0100468 previous_api: ":android.api.public.latest",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900469 merge_annotations_dirs: [
470 "metalava-manual",
471 ],
Anton Hansson81969c22020-02-03 20:45:56 +0000472 args: priv_apps,
Anton Hansson86925682021-04-14 14:54:43 +0100473 visibility: ["//visibility:private"],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900474}
475
Anton Hanssonbbdd64b2021-04-26 18:47:39 +0100476java_library {
Jiyong Park7fb4b182019-12-20 14:35:43 +0900477 name: "hwbinder.stubs",
478 sdk_version: "core_current",
Colin Cross037d7fb2021-03-25 17:01:55 -0700479 libs: ["framework-annotations-lib"],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900480 srcs: [
481 ":hwbinder-stubs-docs",
482 ],
Anton Hansson86925682021-04-14 14:54:43 +0100483 visibility: ["//visibility:public"],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900484}