blob: feb43d1068b93fe91bd9c95ea9146388b6abc5ae [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 API docs are generated:
16//
17// raw source files --(metalava)--> stub source files --(doclava)--> API doc
18//
19// The metalava conversion is done by droidstub modules framework-doc-*-stubs.
20// The API doc generation is done by the various droiddoc modules each of which
21// is for different format.
22
23/////////////////////////////////////////////////////////////////////
24// stub source files are generated using metalava
25/////////////////////////////////////////////////////////////////////
26
27framework_docs_only_libs = [
28 "voip-common",
29 "android.test.mock",
30 "android-support-annotations",
31 "android-support-compat",
32 "android-support-core-ui",
33 "android-support-core-utils",
34 "android-support-design",
35 "android-support-dynamic-animation",
36 "android-support-exifinterface",
37 "android-support-fragment",
38 "android-support-media-compat",
39 "android-support-percent",
40 "android-support-transition",
41 "android-support-v7-cardview",
42 "android-support-v7-gridlayout",
43 "android-support-v7-mediarouter",
44 "android-support-v7-palette",
45 "android-support-v7-preference",
46 "android-support-v13",
47 "android-support-v14-preference",
48 "android-support-v17-leanback",
49 "android-support-vectordrawable",
50 "android-support-animatedvectordrawable",
51 "android-support-v7-appcompat",
52 "android-support-v7-recyclerview",
53 "android-support-v8-renderscript",
54 "android-support-multidex",
55 "android-support-multidex-instrumentation",
56]
57
58stubs_defaults {
Anton Hansson867f94c2021-05-05 10:32:31 +010059 name: "android-non-updatable-doc-stubs-defaults",
60 defaults: ["android-non-updatable-stubs-defaults"],
61 srcs: [
62 // No longer part of the stubs, but are included in the docs.
63 "test-base/src/**/*.java",
64 "test-mock/src/**/*.java",
65 "test-runner/src/**/*.java",
66 ],
67 libs: framework_docs_only_libs,
68 create_doc_stubs: true,
69 write_sdk_values: true,
70}
71
72stubs_defaults {
Jiyong Park7fb4b182019-12-20 14:35:43 +090073 name: "framework-doc-stubs-default",
74 srcs: [
Anton Hansson867f94c2021-05-05 10:32:31 +010075 ":android-non-updatable-stub-sources",
Anton Hansson35c0b092021-03-30 10:46:48 +010076
77 // Module sources
Paul Duffin404b26a2020-09-16 14:26:47 +010078 ":art.module.public.api{.public.stubs.source}",
Paul Duffine55d4e32020-05-14 17:55:46 +010079 ":conscrypt.module.public.api{.public.stubs.source}",
Paul Duffin5a4e8f22020-11-25 15:45:43 +000080 ":i18n.module.public.api{.public.stubs.source}",
Anton Hansson35c0b092021-03-30 10:46:48 +010081
82 // No longer part of the stubs, but are included in the docs.
Anton Hansson2e25fdc2021-05-10 12:40:05 +010083 ":android-test-base-sources",
84 ":android-test-mock-sources",
85 ":android-test-runner-sources",
Jiyong Park7fb4b182019-12-20 14:35:43 +090086 ],
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +010087 arg_files: [
88 "core/res/AndroidManifest.xml",
89 ],
Jiyong Park7fb4b182019-12-20 14:35:43 +090090 libs: framework_docs_only_libs,
91 create_doc_stubs: true,
92 annotations_enabled: true,
Anton Hansson76ac4cc2021-05-05 19:22:52 +010093 filter_packages: packages_to_document,
Jiyong Park7fb4b182019-12-20 14:35:43 +090094 api_levels_annotations_enabled: true,
95 api_levels_annotations_dirs: [
96 "sdk-dir",
97 "api-versions-jars-dir",
98 ],
Anton Hanssonf68ddea2020-05-02 17:49:26 +010099 previous_api: ":android.api.public.latest",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900100 merge_annotations_dirs: [
101 "metalava-manual",
102 ],
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +0100103 write_sdk_values: true,
Ytai Ben-Tsvida7c21e2020-09-16 13:04:31 -0700104 // TODO(b/169090544): remove below aidl includes.
105 aidl: {
106 local_include_dirs: ["media/aidl"],
Jeff Sharkey75d4f932021-07-26 15:41:01 -0600107 include_dirs: [
108 "frameworks/av/aidl",
109 "frameworks/native/libs/permission/aidl",
110 ],
Ytai Ben-Tsvida7c21e2020-09-16 13:04:31 -0700111 },
Jiyong Park7fb4b182019-12-20 14:35:43 +0900112}
113
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +0100114// Defaults module for doc-stubs targets that use module source code as input.
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +0100115stubs_defaults {
116 name: "framework-doc-stubs-sources-default",
117 defaults: ["framework-doc-stubs-default"],
118 srcs: [
119 ":framework-appsearch-sources",
120 ":framework-connectivity-sources",
paulhuf45fe962021-12-14 23:09:55 +0800121 ":framework-connectivity-tiramisu-updatable-sources",
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +0100122 ":framework-graphics-srcs",
123 ":framework-mediaprovider-sources",
Chun Zhanga615ce52021-10-29 14:57:55 -0700124 ":framework-nearby-sources",
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +0100125 ":framework-permission-sources",
126 ":framework-permission-s-sources",
127 ":framework-scheduling-sources",
128 ":framework-sdkextensions-sources",
129 ":framework-statsd-sources",
Gavin Corkerybc006442021-11-16 22:33:10 +0000130 ":framework-supplementalprocess-sources",
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +0100131 ":framework-tethering-srcs",
Roshan Piusde6f1ca2021-10-14 07:34:07 -0700132 ":framework-uwb-updatable-sources",
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +0100133 ":framework-wifi-updatable-sources",
134 ":ike-srcs",
135 ":updatable-media-srcs",
136 ],
137}
138
Jiyong Park7fb4b182019-12-20 14:35:43 +0900139droidstubs {
Anton Hansson867f94c2021-05-05 10:32:31 +0100140 name: "android-non-updatable-doc-stubs",
141 defaults: ["android-non-updatable-doc-stubs-defaults"],
142 args: metalava_framework_docs_args,
143}
144
145droidstubs {
146 name: "android-non-updatable-doc-stubs-system",
147 defaults: ["android-non-updatable-doc-stubs-defaults"],
148 args: metalava_framework_docs_args +
149 " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.PRIVILEGED_APPS\\) ",
150}
151
152droidstubs {
Jiyong Park7fb4b182019-12-20 14:35:43 +0900153 name: "framework-doc-system-stubs",
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +0100154 defaults: ["framework-doc-stubs-sources-default"],
Anton Hansson121ccbc2020-12-17 14:56:06 +0000155 args: metalava_framework_docs_args +
Anton Hansson121ccbc2020-12-17 14:56:06 +0000156 " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.PRIVILEGED_APPS\\) ",
satayevbc7c83e2021-06-29 22:27:06 +0100157 api_levels_sdk_type: "system",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900158}
159
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +0100160droidstubs {
Anton Hansson111e1582021-10-26 14:12:10 +0000161 name: "framework-doc-stubs",
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +0100162 defaults: ["framework-doc-stubs-default"],
163 args: metalava_framework_docs_args,
164 srcs: [
165 ":android.net.ipsec.ike{.public.stubs.source}",
166 ":framework-appsearch{.public.stubs.source}",
167 ":framework-connectivity{.public.stubs.source}",
paulhuf45fe962021-12-14 23:09:55 +0800168 ":framework-connectivity-tiramisu{.public.stubs.source}",
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +0100169 ":framework-graphics{.public.stubs.source}",
170 ":framework-media{.public.stubs.source}",
171 ":framework-mediaprovider{.public.stubs.source}",
Chun Zhanga615ce52021-10-29 14:57:55 -0700172 ":framework-nearby{.public.stubs.source}",
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +0100173 ":framework-permission{.public.stubs.source}",
174 ":framework-permission-s{.public.stubs.source}",
175 ":framework-scheduling{.public.stubs.source}",
176 ":framework-sdkextensions{.public.stubs.source}",
177 ":framework-statsd{.public.stubs.source}",
Gavin Corkerybc006442021-11-16 22:33:10 +0000178 ":framework-supplementalprocess{.public.stubs.source}",
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +0100179 ":framework-tethering{.public.stubs.source}",
Roshan Piusde6f1ca2021-10-14 07:34:07 -0700180 ":framework-uwb{.public.stubs.source}",
Anton Hanssonfa5d0bc2021-09-17 16:09:08 +0100181 ":framework-wifi{.public.stubs.source}",
182 ],
183 aidl: {
184 local_include_dirs: [
185 "apex/media/aidl/stable",
186 ],
187 include_dirs: [
188 "packages/modules/Connectivity/framework/aidl-export",
189 ],
190 },
191}
192
Anton Hansson1bf568e2021-09-24 13:16:19 +0100193// This produces the same annotations.zip as framework-doc-stubs, but by using
194// outputs from individual modules instead of all the source code.
195genrule {
196 name: "sdk-annotations.zip",
197 srcs: [
198 ":android-non-updatable-doc-stubs{.annotations.zip}",
199
200 // Conscrypt and i18n currently do not enable annotations
201 // ":conscrypt.module.public.api{.public.annotations.zip}",
202 // ":i18n.module.public.api{.public.annotations.zip}",
203
204 // Modules that enable annotations below
205 ":android.net.ipsec.ike{.public.annotations.zip}",
206 ":art.module.public.api{.public.annotations.zip}",
207 ":framework-appsearch{.public.annotations.zip}",
208 ":framework-connectivity{.public.annotations.zip}",
paulhuf45fe962021-12-14 23:09:55 +0800209 ":framework-connectivity-tiramisu{.public.annotations.zip}",
Anton Hansson1bf568e2021-09-24 13:16:19 +0100210 ":framework-graphics{.public.annotations.zip}",
211 ":framework-media{.public.annotations.zip}",
212 ":framework-mediaprovider{.public.annotations.zip}",
Chun Zhanga615ce52021-10-29 14:57:55 -0700213 ":framework-nearby{.public.annotations.zip}",
Anton Hansson1bf568e2021-09-24 13:16:19 +0100214 ":framework-permission{.public.annotations.zip}",
215 ":framework-permission-s{.public.annotations.zip}",
216 ":framework-scheduling{.public.annotations.zip}",
217 ":framework-sdkextensions{.public.annotations.zip}",
218 ":framework-statsd{.public.annotations.zip}",
Gavin Corkerybc006442021-11-16 22:33:10 +0000219 ":framework-supplementalprocess{.public.annotations.zip}",
Anton Hansson1bf568e2021-09-24 13:16:19 +0100220 ":framework-tethering{.public.annotations.zip}",
Roshan Piusde6f1ca2021-10-14 07:34:07 -0700221 ":framework-uwb{.public.annotations.zip}",
Anton Hansson1bf568e2021-09-24 13:16:19 +0100222 ":framework-wifi{.public.annotations.zip}",
223 ],
224 out: ["annotations.zip"],
225 tools: [
226 "merge_annotation_zips",
227 "soong_zip",
228 ],
229 cmd: "$(location merge_annotation_zips) $(genDir)/out $(in) && " +
230 "$(location soong_zip) -o $(out) -C $(genDir)/out -D $(genDir)/out",
231}
232
Jiyong Park7fb4b182019-12-20 14:35:43 +0900233/////////////////////////////////////////////////////////////////////
234// API docs are created from the generated stub source files
235// using droiddoc
236/////////////////////////////////////////////////////////////////////
237
238framework_docs_only_args = " -android -manifest $(location core/res/AndroidManifest.xml) " +
239 "-werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 " +
240 "-overview $(location core/java/overview.html) " +
241 // Federate Support Library references against local API file.
242 "-federate SupportLib https://developer.android.com " +
243 "-federationapi SupportLib $(location :current-support-api) " +
244 // Federate Support Library references against local API file.
245 "-federate AndroidX https://developer.android.com " +
246 "-federationapi AndroidX $(location :current-androidx-api) "
247
248doc_defaults {
249 name: "framework-docs-default",
Artur Satayevffd7f952020-01-13 16:16:27 +0000250 libs: framework_docs_only_libs + [
251 "stub-annotations",
252 "unsupportedappusage",
253 ],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900254 html_dirs: [
255 "docs/html",
256 ],
257 knowntags: [
258 "docs/knowntags.txt",
Paul Duffin8c083f62020-09-08 20:22:49 +0100259 ":art.module.public.api{.doctags}",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900260 ],
261 custom_template: "droiddoc-templates-sdk",
262 resourcesdir: "docs/html/reference/images/",
263 resourcesoutdir: "reference/android/images/",
264 hdf: [
265 "dac true",
266 "sdk.codename O",
267 "sdk.preview.version 1",
268 "sdk.version 7.0",
269 "sdk.rel.id 1",
270 "sdk.preview 0",
271 ],
272 arg_files: [
273 "core/res/AndroidManifest.xml",
274 "core/java/overview.html",
275 ":current-support-api",
276 ":current-androidx-api",
277 ],
Ytai Ben-Tsvida7c21e2020-09-16 13:04:31 -0700278 // TODO(b/169090544): remove below aidl includes.
279 aidl: {
280 local_include_dirs: ["media/aidl"],
Jeff Sharkey75d4f932021-07-26 15:41:01 -0600281 include_dirs: [
282 "frameworks/av/aidl",
283 "frameworks/native/libs/permission/aidl",
284 ],
Ytai Ben-Tsvida7c21e2020-09-16 13:04:31 -0700285 },
Jiyong Park7fb4b182019-12-20 14:35:43 +0900286}
287
288doc_defaults {
289 name: "framework-dokka-docs-default",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900290}
291
292droiddoc {
293 name: "doc-comment-check-docs",
294 defaults: ["framework-docs-default"],
295 srcs: [
296 ":framework-doc-stubs",
297 ],
298 args: framework_docs_only_args + " -referenceonly -parsecomments",
299 installable: false,
300}
301
302droiddoc {
303 name: "offline-sdk-docs",
304 defaults: ["framework-docs-default"],
305 srcs: [
306 ":framework-doc-stubs",
307 ],
308 hdf: [
309 "android.whichdoc offline",
310 ],
atrostb1ee27b2020-02-03 11:03:16 +0000311 compat_config: ":global-compat-config",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900312 proofread_file: "offline-sdk-docs-proofrerad.txt",
313 args: framework_docs_only_args + " -offlinemode -title \"Android SDK\"",
314 static_doc_index_redirect: "docs/docs-preview-index.html",
315}
316
317droiddoc {
318 // Please sync with android-api-council@ before making any changes for the name property below.
319 // Since there's cron jobs that fetch offline-sdk-referenceonly-docs-docs.zip periodically.
320 // See b/116221385 for reference.
321 name: "offline-sdk-referenceonly-docs",
322 defaults: ["framework-docs-default"],
323 srcs: [
324 ":framework-doc-stubs",
325 ],
326 hdf: [
327 "android.whichdoc offline",
328 ],
329 proofread_file: "offline-sdk-referenceonly-docs-proofrerad.txt",
330 args: framework_docs_only_args + " -offlinemode -title \"Android SDK\" -referenceonly",
331 static_doc_index_redirect: "docs/docs-documentation-redirect.html",
332 static_doc_properties: "docs/source.properties",
333}
334
335droiddoc {
336 // Please sync with android-api-council@ before making any changes for the name property below.
337 // Since there's cron jobs that fetch offline-system-sdk-referenceonly-docs-docs.zip periodically.
338 // See b/116221385 for reference.
339 name: "offline-system-sdk-referenceonly-docs",
340 defaults: ["framework-docs-default"],
341 srcs: [
342 ":framework-doc-system-stubs",
343 ],
344 hdf: [
345 "android.whichdoc offline",
346 ],
347 proofread_file: "offline-system-sdk-referenceonly-docs-proofrerad.txt",
348 args: framework_docs_only_args + " -hide 101 -hide 104 -hide 108" +
349 " -offlinemode -title \"Android System SDK\" -referenceonly",
350 static_doc_index_redirect: "docs/docs-documentation-redirect.html",
351 static_doc_properties: "docs/source.properties",
352}
353
354droiddoc {
355 name: "online-sdk-docs",
356 defaults: ["framework-docs-default"],
357 srcs: [
358 ":framework-doc-stubs",
359 ],
360 hdf: [
361 "android.whichdoc online",
362 "android.hasSamples true",
363 ],
364 proofread_file: "online-sdk-docs-proofrerad.txt",
365 args: framework_docs_only_args +
366 " -toroot / -samplegroup Admin " +
367 " -samplegroup Background " +
368 " -samplegroup Connectivity " +
369 " -samplegroup Content " +
370 " -samplegroup Input " +
371 " -samplegroup Media " +
372 " -samplegroup Notification " +
373 " -samplegroup RenderScript " +
374 " -samplegroup Security " +
375 " -samplegroup Sensors " +
376 " -samplegroup System " +
377 " -samplegroup Testing " +
378 " -samplegroup UI " +
379 " -samplegroup Views " +
380 " -samplegroup Wearable -samplesdir development/samples/browseable ",
381}
382
383droiddoc {
384 name: "online-system-api-sdk-docs",
385 defaults: ["framework-docs-default"],
386 srcs: [
387 ":framework-doc-system-stubs",
388 ],
389 hdf: [
390 "android.whichdoc online",
391 "android.hasSamples true",
392 ],
393 proofread_file: "online-system-api-sdk-docs-proofrerad.txt",
394 args: framework_docs_only_args +
395 " -referenceonly " +
396 " -title \"Android SDK - Including system APIs.\" " +
397 " -hide 101 " +
398 " -hide 104 " +
399 " -hide 108 " +
400 " -toroot / -samplegroup Admin " +
401 " -samplegroup Background " +
402 " -samplegroup Connectivity " +
403 " -samplegroup Content " +
404 " -samplegroup Input " +
405 " -samplegroup Media " +
406 " -samplegroup Notification " +
407 " -samplegroup RenderScript " +
408 " -samplegroup Security " +
409 " -samplegroup Sensors " +
410 " -samplegroup System " +
411 " -samplegroup Testing " +
412 " -samplegroup UI " +
413 " -samplegroup Views " +
414 " -samplegroup Wearable -samplesdir development/samples/browseable ",
415 installable: false,
416}
417
418droiddoc {
419 name: "ds-docs-java",
420 defaults: ["framework-docs-default"],
421 srcs: [
422 ":framework-doc-stubs",
423 ],
424 hdf: [
425 "android.whichdoc online",
426 "android.hasSamples true",
427 ],
428 proofread_file: "ds-docs-proofrerad.txt",
429 args: framework_docs_only_args +
430 " -toroot / -yamlV2 -metalavaApiSince -samplegroup Admin " +
431 " -samplegroup Background " +
432 " -samplegroup Connectivity " +
433 " -samplegroup Content " +
434 " -samplegroup Input " +
435 " -samplegroup Media " +
436 " -samplegroup Notification " +
437 " -samplegroup RenderScript " +
438 " -samplegroup Security " +
439 " -samplegroup Sensors " +
440 " -samplegroup System " +
441 " -samplegroup Testing " +
442 " -samplegroup UI " +
443 " -samplegroup Views " +
444 " -samplegroup Wearable -devsite -samplesdir development/samples/browseable ",
445}
446
447droiddoc {
448 name: "ds-docs-kt",
449 defaults: ["framework-dokka-docs-default"],
450 srcs: [
451 ":framework-doc-stubs",
452 ],
453 args: "-noJdkLink -links https://kotlinlang.org/api/latest/jvm/stdlib/^external/dokka/package-list " +
Dan Willemsencece97c2020-04-20 22:32:45 -0700454 "-noStdlibLink",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900455 proofread_file: "ds-dokka-proofread.txt",
456 dokka_enabled: true,
457}
458
459java_genrule {
460 name: "ds-docs",
461 tools: [
462 "zip2zip",
463 "merge_zips",
464 ],
465 srcs: [
466 ":ds-docs-java{.docs.zip}",
467 ":ds-docs-kt{.docs.zip}",
468 ],
469 out: ["ds-docs.zip"],
470 dist: {
471 targets: ["docs"],
472 },
473 cmd: "$(location zip2zip) -i $(location :ds-docs-kt{.docs.zip}) -o $(genDir)/ds-docs-kt-moved.zip **/*:en/reference/kotlin && " +
Dan Willemsencece97c2020-04-20 22:32:45 -0700474 "$(location merge_zips) $(out) $(location :ds-docs-java{.docs.zip}) $(genDir)/ds-docs-kt-moved.zip",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900475}
476
477java_genrule {
478 name: "ds-docs-switched",
479 tools: [
480 "switcher4",
481 "soong_zip",
482 ],
483 srcs: [
484 ":ds-docs-java{.docs.zip}",
485 ":ds-docs-kt{.docs.zip}",
486 ],
487 out: ["ds-docs-switched.zip"],
488 dist: {
489 targets: ["docs"],
490 },
Colin Crossa2410eb2020-02-26 13:04:57 -0800491 cmd: "unzip -q $(location :ds-docs-java{.docs.zip}) -d $(genDir) && " +
Dan Willemsencece97c2020-04-20 22:32:45 -0700492 "unzip -q $(location :ds-docs-kt{.docs.zip}) -d $(genDir)/en/reference/kotlin && " +
493 "SWITCHER=$$(cd $$(dirname $(location switcher4)) && pwd)/$$(basename $(location switcher4)) && " +
494 "(cd $(genDir)/en/reference && $$SWITCHER --work platform) > /dev/null && " +
495 "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900496}
497
498droiddoc {
499 name: "ds-static-docs",
500 defaults: ["framework-docs-default"],
501 srcs: [
502 ":framework-doc-stubs",
503 ],
504 hdf: [
505 "android.whichdoc online",
506 ],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900507 args: framework_docs_only_args +
508 " -staticonly " +
509 " -toroot / " +
510 " -devsite " +
511 " -ignoreJdLinks ",
512}
513
514droiddoc {
515 name: "ds-ref-navtree-docs",
516 defaults: ["framework-docs-default"],
517 srcs: [
518 ":framework-doc-stubs",
519 ],
520 hdf: [
521 "android.whichdoc online",
522 ],
Jiyong Park7fb4b182019-12-20 14:35:43 +0900523 args: framework_docs_only_args +
524 " -toroot / " +
525 " -atLinksNavtree " +
526 " -navtreeonly ",
527}
528
529droiddoc {
530 name: "online-sdk-dev-docs",
531 defaults: ["framework-docs-default"],
532 srcs: [
533 ":framework-doc-stubs",
534 ],
535 hdf: [
536 "android.whichdoc online",
537 "android.hasSamples true",
538 ],
539 proofread_file: "online-sdk-dev-docs-proofrerad.txt",
540 args: framework_docs_only_args +
541 " -toroot / -samplegroup Admin " +
542 " -samplegroup Background " +
543 " -samplegroup Connectivity " +
544 " -samplegroup Content " +
545 " -samplegroup Input " +
546 " -samplegroup Media " +
547 " -samplegroup Notification " +
548 " -samplegroup RenderScript " +
549 " -samplegroup Security " +
550 " -samplegroup Sensors " +
551 " -samplegroup System " +
552 " -samplegroup Testing " +
553 " -samplegroup UI " +
554 " -samplegroup Views " +
555 " -samplegroup Wearable -samplesdir development/samples/browseable ",
556}
557
558droiddoc {
559 name: "hidden-docs",
560 defaults: ["framework-docs-default"],
561 srcs: [
562 ":framework-doc-stubs",
563 ],
564 proofread_file: "hidden-docs-proofrerad.txt",
565 args: framework_docs_only_args +
566 " -referenceonly " +
567 " -title \"Android SDK - Including hidden APIs.\"",
568}