| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 1 | // 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 |  | 
|  | 27 | framework_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 |  | 
| Anton Hansson | 5aa5933 | 2022-01-21 16:32:31 +0000 | [diff] [blame] | 58 | // These defaults enable doc-stub generation, api lint database generation and sdk value generation. | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 59 | stubs_defaults { | 
| Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 60 | name: "android-non-updatable-doc-stubs-defaults", | 
| Anton Hansson | 87f04b8 | 2022-01-17 19:27:06 +0000 | [diff] [blame] | 61 | defaults: ["android-non-updatable-stubs-defaults"], | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 62 | srcs: [ | 
| Anton Hansson | 35c0b09 | 2021-03-30 10:46:48 +0100 | [diff] [blame] | 63 | // No longer part of the stubs, but are included in the docs. | 
| Anton Hansson | 2e25fdc | 2021-05-10 12:40:05 +0100 | [diff] [blame] | 64 | ":android-test-base-sources", | 
|  | 65 | ":android-test-mock-sources", | 
|  | 66 | ":android-test-runner-sources", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 67 | ], | 
|  | 68 | libs: framework_docs_only_libs, | 
|  | 69 | create_doc_stubs: true, | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 70 | write_sdk_values: true, | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 71 | } | 
|  | 72 |  | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 73 | // Defaults module for doc-stubs targets that use module source code as input. | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 74 | stubs_defaults { | 
|  | 75 | name: "framework-doc-stubs-sources-default", | 
| Anton Hansson | 5aa5933 | 2022-01-21 16:32:31 +0000 | [diff] [blame] | 76 | defaults: ["android-non-updatable-doc-stubs-defaults"], | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 77 | srcs: [ | 
| Anton Hansson | ecf9fc3 | 2022-01-14 12:10:01 +0000 | [diff] [blame] | 78 | ":art.module.public.api{.public.stubs.source}", | 
|  | 79 | ":conscrypt.module.public.api{.public.stubs.source}", | 
|  | 80 | ":i18n.module.public.api{.public.stubs.source}", | 
|  | 81 |  | 
| Neha Pattan | fa46dd2 | 2022-02-18 19:46:09 +0000 | [diff] [blame] | 82 | ":framework-adservices-sources", | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 83 | ":framework-appsearch-sources", | 
|  | 84 | ":framework-connectivity-sources", | 
| Roopa Sattiraju | 8e30577 | 2022-01-20 10:05:19 -0800 | [diff] [blame] | 85 | ":framework-bluetooth-sources", | 
| paulhu | f45fe96 | 2021-12-14 23:09:55 +0800 | [diff] [blame] | 86 | ":framework-connectivity-tiramisu-updatable-sources", | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 87 | ":framework-graphics-srcs", | 
|  | 88 | ":framework-mediaprovider-sources", | 
| Chun Zhang | a615ce5 | 2021-10-29 14:57:55 -0700 | [diff] [blame] | 89 | ":framework-nearby-sources", | 
| Frank Wang | e97ff9e | 2022-02-13 07:06:31 +0000 | [diff] [blame] | 90 | ":framework-ondevicepersonalization-sources", | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 91 | ":framework-permission-sources", | 
|  | 92 | ":framework-permission-s-sources", | 
|  | 93 | ":framework-scheduling-sources", | 
|  | 94 | ":framework-sdkextensions-sources", | 
|  | 95 | ":framework-statsd-sources", | 
| Nikita Ioffe | 59029ad | 2022-02-24 01:56:44 +0000 | [diff] [blame] | 96 | ":framework-sdksandbox-sources", | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 97 | ":framework-tethering-srcs", | 
| Roshan Pius | de6f1ca | 2021-10-14 07:34:07 -0700 | [diff] [blame] | 98 | ":framework-uwb-updatable-sources", | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 99 | ":framework-wifi-updatable-sources", | 
|  | 100 | ":ike-srcs", | 
|  | 101 | ":updatable-media-srcs", | 
|  | 102 | ], | 
|  | 103 | } | 
|  | 104 |  | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 105 | droidstubs { | 
| Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 106 | name: "android-non-updatable-doc-stubs", | 
| Anton Hansson | 5aa5933 | 2022-01-21 16:32:31 +0000 | [diff] [blame] | 107 | defaults: [ | 
|  | 108 | "android-non-updatable-doc-stubs-defaults", | 
|  | 109 | "module-classpath-stubs-defaults", | 
|  | 110 | ], | 
| Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 111 | args: metalava_framework_docs_args, | 
|  | 112 | } | 
|  | 113 |  | 
|  | 114 | droidstubs { | 
|  | 115 | name: "android-non-updatable-doc-stubs-system", | 
| Anton Hansson | 5aa5933 | 2022-01-21 16:32:31 +0000 | [diff] [blame] | 116 | defaults: [ | 
|  | 117 | "android-non-updatable-doc-stubs-defaults", | 
|  | 118 | "module-classpath-stubs-defaults", | 
|  | 119 | ], | 
| Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 120 | args: metalava_framework_docs_args + | 
|  | 121 | " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.PRIVILEGED_APPS\\) ", | 
|  | 122 | } | 
|  | 123 |  | 
|  | 124 | droidstubs { | 
| Cole Faust | dcda370 | 2022-10-04 14:46:35 -0700 | [diff] [blame] | 125 | name: "android-non-updatable-doc-stubs-module-lib", | 
|  | 126 | defaults: [ | 
|  | 127 | "android-non-updatable-doc-stubs-defaults", | 
|  | 128 | "module-classpath-stubs-defaults", | 
| Anton Hansson | 5aa5933 | 2022-01-21 16:32:31 +0000 | [diff] [blame] | 129 | ], | 
| Cole Faust | dcda370 | 2022-10-04 14:46:35 -0700 | [diff] [blame] | 130 | args: metalava_framework_docs_args + | 
|  | 131 | " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.PRIVILEGED_APPS\\) " + | 
|  | 132 | " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.MODULE_LIBRARIES\\) ", | 
|  | 133 | generate_stubs: false, // We're only using this module for the annotations.zip output, disable doc-stubs. | 
|  | 134 | write_sdk_values: false, | 
|  | 135 | } | 
|  | 136 |  | 
|  | 137 | droidstubs { | 
|  | 138 | name: "android-non-updatable-doc-stubs-system-server", | 
|  | 139 | defaults: [ | 
|  | 140 | "android-non-updatable-doc-stubs-defaults", | 
|  | 141 | "module-classpath-stubs-defaults", | 
|  | 142 | ], | 
|  | 143 | args: metalava_framework_docs_args + | 
|  | 144 | " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.PRIVILEGED_APPS\\) " + | 
|  | 145 | " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.MODULE_LIBRARIES\\) " + | 
|  | 146 | " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.SYSTEM_SERVER\\) ", | 
|  | 147 | generate_stubs: false, // We're only using this module for the annotations.zip output, disable doc-stubs. | 
|  | 148 | write_sdk_values: false, | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 149 | } | 
|  | 150 |  | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 151 | droidstubs { | 
| Anton Hansson | 111e158 | 2021-10-26 14:12:10 +0000 | [diff] [blame] | 152 | name: "framework-doc-stubs", | 
| Anton Hansson | 5aa5933 | 2022-01-21 16:32:31 +0000 | [diff] [blame] | 153 | defaults: ["android-non-updatable-doc-stubs-defaults"], | 
| Anton Hansson | ecf9fc3 | 2022-01-14 12:10:01 +0000 | [diff] [blame] | 154 | srcs: [":all-modules-public-stubs-source"], | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 155 | args: metalava_framework_docs_args, | 
| Anton Hansson | 247c5f2 | 2022-05-09 09:53:12 +0000 | [diff] [blame] | 156 | api_levels_module: "api_versions_public", | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 157 | aidl: { | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 158 | include_dirs: [ | 
|  | 159 | "packages/modules/Connectivity/framework/aidl-export", | 
| Baligh Uddin | b8b46fd | 2022-02-11 14:20:10 +0000 | [diff] [blame] | 160 | "packages/modules/Media/apex/aidl/stable", | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 161 | ], | 
|  | 162 | }, | 
| Mårten Kongstad | 5484533 | 2022-09-06 15:50:37 +0200 | [diff] [blame] | 163 | extensions_info_file: ":sdk-extensions-info", | 
| Anton Hansson | fa5d0bc | 2021-09-17 16:09:08 +0100 | [diff] [blame] | 164 | } | 
|  | 165 |  | 
| Cole Faust | dcda370 | 2022-10-04 14:46:35 -0700 | [diff] [blame] | 166 | droidstubs { | 
|  | 167 | name: "framework-doc-system-stubs", | 
|  | 168 | defaults: ["framework-doc-stubs-sources-default"], | 
|  | 169 | args: metalava_framework_docs_args + | 
|  | 170 | " --show-annotation android.annotation.SystemApi\\(client=android.annotation.SystemApi.Client.PRIVILEGED_APPS\\) ", | 
|  | 171 | api_levels_annotations_enabled: true, | 
|  | 172 | api_levels_annotations_dirs: [ | 
|  | 173 | "sdk-dir", | 
|  | 174 | "api-versions-jars-dir", | 
|  | 175 | ], | 
|  | 176 | api_levels_sdk_type: "system", | 
|  | 177 | extensions_info_file: ":sdk-extensions-info", | 
|  | 178 | } | 
|  | 179 |  | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 180 | ///////////////////////////////////////////////////////////////////// | 
|  | 181 | // API docs are created from the generated stub source files | 
|  | 182 | // using droiddoc | 
|  | 183 | ///////////////////////////////////////////////////////////////////// | 
|  | 184 |  | 
| Anton Hansson | ca6e67a | 2023-03-03 17:55:09 +0000 | [diff] [blame] | 185 | framework_docs_only_args = " -android -manifest $(location :frameworks-base-core-AndroidManifest.xml) " + | 
| Mårten Kongstad | 7f76948 | 2022-11-18 08:27:45 +0100 | [diff] [blame] | 186 | "-metalavaApiSince " + | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 187 | "-werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 " + | 
| Anton Hansson | ca6e67a | 2023-03-03 17:55:09 +0000 | [diff] [blame] | 188 | "-overview $(location :frameworks-base-java-overview) " + | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 189 | // Federate Support Library references against local API file. | 
|  | 190 | "-federate SupportLib https://developer.android.com " + | 
|  | 191 | "-federationapi SupportLib $(location :current-support-api) " + | 
|  | 192 | // Federate Support Library references against local API file. | 
|  | 193 | "-federate AndroidX https://developer.android.com " + | 
|  | 194 | "-federationapi AndroidX $(location :current-androidx-api) " | 
|  | 195 |  | 
|  | 196 | doc_defaults { | 
|  | 197 | name: "framework-docs-default", | 
| Anton Hansson | 65370ed | 2023-10-11 13:46:34 +0000 | [diff] [blame^] | 198 | sdk_version: "none", | 
|  | 199 | system_modules: "none", | 
| Artur Satayev | ffd7f95 | 2020-01-13 16:16:27 +0000 | [diff] [blame] | 200 | libs: framework_docs_only_libs + [ | 
|  | 201 | "stub-annotations", | 
|  | 202 | "unsupportedappusage", | 
|  | 203 | ], | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 204 | html_dirs: [ | 
|  | 205 | "docs/html", | 
|  | 206 | ], | 
|  | 207 | knowntags: [ | 
|  | 208 | "docs/knowntags.txt", | 
| Paul Duffin | 8c083f6 | 2020-09-08 20:22:49 +0100 | [diff] [blame] | 209 | ":art.module.public.api{.doctags}", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 210 | ], | 
|  | 211 | custom_template: "droiddoc-templates-sdk", | 
|  | 212 | resourcesdir: "docs/html/reference/images/", | 
|  | 213 | resourcesoutdir: "reference/android/images/", | 
| Anton Hansson | 0a71550 | 2023-10-03 12:13:25 +0000 | [diff] [blame] | 214 | lint_baseline: "javadoc-lint-baseline", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 215 | hdf: [ | 
|  | 216 | "dac true", | 
|  | 217 | "sdk.codename O", | 
|  | 218 | "sdk.preview.version 1", | 
|  | 219 | "sdk.version 7.0", | 
|  | 220 | "sdk.rel.id 1", | 
|  | 221 | "sdk.preview 0", | 
|  | 222 | ], | 
|  | 223 | arg_files: [ | 
| Anton Hansson | ca6e67a | 2023-03-03 17:55:09 +0000 | [diff] [blame] | 224 | ":frameworks-base-core-AndroidManifest.xml", | 
|  | 225 | ":frameworks-base-java-overview", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 226 | ":current-support-api", | 
|  | 227 | ":current-androidx-api", | 
|  | 228 | ], | 
| Ytai Ben-Tsvi | da7c21e | 2020-09-16 13:04:31 -0700 | [diff] [blame] | 229 | // TODO(b/169090544): remove below aidl includes. | 
|  | 230 | aidl: { | 
| Jeff Sharkey | 75d4f93 | 2021-07-26 15:41:01 -0600 | [diff] [blame] | 231 | include_dirs: [ | 
|  | 232 | "frameworks/av/aidl", | 
| Anton Hansson | ca6e67a | 2023-03-03 17:55:09 +0000 | [diff] [blame] | 233 | "frameworks/base/media/aidl", | 
| Jeff Sharkey | 75d4f93 | 2021-07-26 15:41:01 -0600 | [diff] [blame] | 234 | "frameworks/native/libs/permission/aidl", | 
|  | 235 | ], | 
| Ytai Ben-Tsvi | da7c21e | 2020-09-16 13:04:31 -0700 | [diff] [blame] | 236 | }, | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 237 | } | 
|  | 238 |  | 
|  | 239 | doc_defaults { | 
|  | 240 | name: "framework-dokka-docs-default", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 241 | } | 
|  | 242 |  | 
|  | 243 | droiddoc { | 
|  | 244 | name: "doc-comment-check-docs", | 
|  | 245 | defaults: ["framework-docs-default"], | 
|  | 246 | srcs: [ | 
|  | 247 | ":framework-doc-stubs", | 
|  | 248 | ], | 
|  | 249 | args: framework_docs_only_args + " -referenceonly -parsecomments", | 
|  | 250 | installable: false, | 
|  | 251 | } | 
|  | 252 |  | 
|  | 253 | droiddoc { | 
|  | 254 | name: "offline-sdk-docs", | 
|  | 255 | defaults: ["framework-docs-default"], | 
|  | 256 | srcs: [ | 
|  | 257 | ":framework-doc-stubs", | 
|  | 258 | ], | 
|  | 259 | hdf: [ | 
|  | 260 | "android.whichdoc offline", | 
|  | 261 | ], | 
| atrost | b1ee27b | 2020-02-03 11:03:16 +0000 | [diff] [blame] | 262 | compat_config: ":global-compat-config", | 
| Mårten Kongstad | 2598fe0 | 2022-03-30 12:31:33 +0000 | [diff] [blame] | 263 | proofread_file: "offline-sdk-docs-proofread.txt", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 264 | args: framework_docs_only_args + " -offlinemode -title \"Android SDK\"", | 
|  | 265 | static_doc_index_redirect: "docs/docs-preview-index.html", | 
|  | 266 | } | 
|  | 267 |  | 
|  | 268 | droiddoc { | 
|  | 269 | // Please sync with android-api-council@ before making any changes for the name property below. | 
|  | 270 | // Since there's cron jobs that fetch offline-sdk-referenceonly-docs-docs.zip periodically. | 
|  | 271 | // See b/116221385 for reference. | 
|  | 272 | name: "offline-sdk-referenceonly-docs", | 
|  | 273 | defaults: ["framework-docs-default"], | 
|  | 274 | srcs: [ | 
|  | 275 | ":framework-doc-stubs", | 
|  | 276 | ], | 
|  | 277 | hdf: [ | 
|  | 278 | "android.whichdoc offline", | 
|  | 279 | ], | 
| Mårten Kongstad | 2598fe0 | 2022-03-30 12:31:33 +0000 | [diff] [blame] | 280 | proofread_file: "offline-sdk-referenceonly-docs-proofread.txt", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 281 | args: framework_docs_only_args + " -offlinemode -title \"Android SDK\" -referenceonly", | 
|  | 282 | static_doc_index_redirect: "docs/docs-documentation-redirect.html", | 
|  | 283 | static_doc_properties: "docs/source.properties", | 
|  | 284 | } | 
|  | 285 |  | 
|  | 286 | droiddoc { | 
|  | 287 | // Please sync with android-api-council@ before making any changes for the name property below. | 
|  | 288 | // Since there's cron jobs that fetch offline-system-sdk-referenceonly-docs-docs.zip periodically. | 
|  | 289 | // See b/116221385 for reference. | 
|  | 290 | name: "offline-system-sdk-referenceonly-docs", | 
|  | 291 | defaults: ["framework-docs-default"], | 
|  | 292 | srcs: [ | 
|  | 293 | ":framework-doc-system-stubs", | 
|  | 294 | ], | 
|  | 295 | hdf: [ | 
|  | 296 | "android.whichdoc offline", | 
|  | 297 | ], | 
| Mårten Kongstad | 2598fe0 | 2022-03-30 12:31:33 +0000 | [diff] [blame] | 298 | proofread_file: "offline-system-sdk-referenceonly-docs-proofread.txt", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 299 | args: framework_docs_only_args + " -hide 101 -hide 104 -hide 108" + | 
|  | 300 | " -offlinemode -title \"Android System SDK\" -referenceonly", | 
|  | 301 | static_doc_index_redirect: "docs/docs-documentation-redirect.html", | 
|  | 302 | static_doc_properties: "docs/source.properties", | 
|  | 303 | } | 
|  | 304 |  | 
|  | 305 | droiddoc { | 
|  | 306 | name: "online-sdk-docs", | 
|  | 307 | defaults: ["framework-docs-default"], | 
|  | 308 | srcs: [ | 
|  | 309 | ":framework-doc-stubs", | 
|  | 310 | ], | 
|  | 311 | hdf: [ | 
|  | 312 | "android.whichdoc online", | 
|  | 313 | "android.hasSamples true", | 
|  | 314 | ], | 
| Mårten Kongstad | 2598fe0 | 2022-03-30 12:31:33 +0000 | [diff] [blame] | 315 | proofread_file: "online-sdk-docs-proofread.txt", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 316 | args: framework_docs_only_args + | 
|  | 317 | " -toroot / -samplegroup Admin " + | 
|  | 318 | " -samplegroup Background " + | 
|  | 319 | " -samplegroup Connectivity " + | 
|  | 320 | " -samplegroup Content " + | 
|  | 321 | " -samplegroup Input " + | 
|  | 322 | " -samplegroup Media " + | 
|  | 323 | " -samplegroup Notification " + | 
|  | 324 | " -samplegroup RenderScript " + | 
|  | 325 | " -samplegroup Security " + | 
|  | 326 | " -samplegroup Sensors " + | 
|  | 327 | " -samplegroup System " + | 
|  | 328 | " -samplegroup Testing " + | 
|  | 329 | " -samplegroup UI " + | 
|  | 330 | " -samplegroup Views " + | 
|  | 331 | " -samplegroup Wearable -samplesdir development/samples/browseable ", | 
|  | 332 | } | 
|  | 333 |  | 
|  | 334 | droiddoc { | 
|  | 335 | name: "online-system-api-sdk-docs", | 
|  | 336 | defaults: ["framework-docs-default"], | 
|  | 337 | srcs: [ | 
|  | 338 | ":framework-doc-system-stubs", | 
|  | 339 | ], | 
|  | 340 | hdf: [ | 
|  | 341 | "android.whichdoc online", | 
|  | 342 | "android.hasSamples true", | 
|  | 343 | ], | 
| Mårten Kongstad | 2598fe0 | 2022-03-30 12:31:33 +0000 | [diff] [blame] | 344 | proofread_file: "online-system-api-sdk-docs-proofread.txt", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 345 | args: framework_docs_only_args + | 
|  | 346 | " -referenceonly " + | 
|  | 347 | " -title \"Android SDK - Including system APIs.\" " + | 
|  | 348 | " -hide 101 " + | 
|  | 349 | " -hide 104 " + | 
|  | 350 | " -hide 108 " + | 
|  | 351 | " -toroot / -samplegroup Admin " + | 
|  | 352 | " -samplegroup Background " + | 
|  | 353 | " -samplegroup Connectivity " + | 
|  | 354 | " -samplegroup Content " + | 
|  | 355 | " -samplegroup Input " + | 
|  | 356 | " -samplegroup Media " + | 
|  | 357 | " -samplegroup Notification " + | 
|  | 358 | " -samplegroup RenderScript " + | 
|  | 359 | " -samplegroup Security " + | 
|  | 360 | " -samplegroup Sensors " + | 
|  | 361 | " -samplegroup System " + | 
|  | 362 | " -samplegroup Testing " + | 
|  | 363 | " -samplegroup UI " + | 
|  | 364 | " -samplegroup Views " + | 
|  | 365 | " -samplegroup Wearable -samplesdir development/samples/browseable ", | 
|  | 366 | installable: false, | 
|  | 367 | } | 
|  | 368 |  | 
|  | 369 | droiddoc { | 
|  | 370 | name: "ds-docs-java", | 
|  | 371 | defaults: ["framework-docs-default"], | 
|  | 372 | srcs: [ | 
|  | 373 | ":framework-doc-stubs", | 
|  | 374 | ], | 
|  | 375 | hdf: [ | 
|  | 376 | "android.whichdoc online", | 
|  | 377 | "android.hasSamples true", | 
|  | 378 | ], | 
| Mårten Kongstad | 2598fe0 | 2022-03-30 12:31:33 +0000 | [diff] [blame] | 379 | proofread_file: "ds-docs-proofread.txt", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 380 | args: framework_docs_only_args + | 
| Mårten Kongstad | 7f76948 | 2022-11-18 08:27:45 +0100 | [diff] [blame] | 381 | " -toroot / -yamlV2 -samplegroup Admin " + | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 382 | " -samplegroup Background " + | 
|  | 383 | " -samplegroup Connectivity " + | 
|  | 384 | " -samplegroup Content " + | 
|  | 385 | " -samplegroup Input " + | 
|  | 386 | " -samplegroup Media " + | 
|  | 387 | " -samplegroup Notification " + | 
|  | 388 | " -samplegroup RenderScript " + | 
|  | 389 | " -samplegroup Security " + | 
|  | 390 | " -samplegroup Sensors " + | 
|  | 391 | " -samplegroup System " + | 
|  | 392 | " -samplegroup Testing " + | 
|  | 393 | " -samplegroup UI " + | 
|  | 394 | " -samplegroup Views " + | 
|  | 395 | " -samplegroup Wearable -devsite -samplesdir development/samples/browseable ", | 
|  | 396 | } | 
|  | 397 |  | 
|  | 398 | droiddoc { | 
|  | 399 | name: "ds-docs-kt", | 
|  | 400 | defaults: ["framework-dokka-docs-default"], | 
|  | 401 | srcs: [ | 
|  | 402 | ":framework-doc-stubs", | 
|  | 403 | ], | 
|  | 404 | args: "-noJdkLink -links https://kotlinlang.org/api/latest/jvm/stdlib/^external/dokka/package-list " + | 
| Dan Willemsen | cece97c | 2020-04-20 22:32:45 -0700 | [diff] [blame] | 405 | "-noStdlibLink", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 406 | proofread_file: "ds-dokka-proofread.txt", | 
|  | 407 | dokka_enabled: true, | 
|  | 408 | } | 
|  | 409 |  | 
|  | 410 | java_genrule { | 
|  | 411 | name: "ds-docs", | 
|  | 412 | tools: [ | 
|  | 413 | "zip2zip", | 
|  | 414 | "merge_zips", | 
|  | 415 | ], | 
|  | 416 | srcs: [ | 
|  | 417 | ":ds-docs-java{.docs.zip}", | 
|  | 418 | ":ds-docs-kt{.docs.zip}", | 
|  | 419 | ], | 
|  | 420 | out: ["ds-docs.zip"], | 
|  | 421 | dist: { | 
|  | 422 | targets: ["docs"], | 
|  | 423 | }, | 
|  | 424 | cmd: "$(location zip2zip) -i $(location :ds-docs-kt{.docs.zip}) -o $(genDir)/ds-docs-kt-moved.zip **/*:en/reference/kotlin && " + | 
| Dan Willemsen | cece97c | 2020-04-20 22:32:45 -0700 | [diff] [blame] | 425 | "$(location merge_zips) $(out) $(location :ds-docs-java{.docs.zip}) $(genDir)/ds-docs-kt-moved.zip", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 426 | } | 
|  | 427 |  | 
| Sorin Basca | 2fd4b16 | 2023-03-14 20:51:48 +0000 | [diff] [blame] | 428 | java_genrule { | 
|  | 429 | name: "ds-docs-switched", | 
|  | 430 | tools: [ | 
|  | 431 | "switcher4", | 
|  | 432 | "soong_zip", | 
|  | 433 | ], | 
|  | 434 | srcs: [ | 
|  | 435 | ":ds-docs-java{.docs.zip}", | 
|  | 436 | ":ds-docs-kt{.docs.zip}", | 
|  | 437 | ], | 
|  | 438 | out: ["ds-docs-switched.zip"], | 
|  | 439 | dist: { | 
|  | 440 | targets: ["docs"], | 
|  | 441 | }, | 
|  | 442 | cmd: "unzip -q $(location :ds-docs-java{.docs.zip}) -d $(genDir) && " + | 
|  | 443 | "unzip -q $(location :ds-docs-kt{.docs.zip}) -d $(genDir)/en/reference/kotlin && " + | 
|  | 444 | "SWITCHER=$$(cd $$(dirname $(location switcher4)) && pwd)/$$(basename $(location switcher4)) && " + | 
|  | 445 | "(cd $(genDir)/en/reference && $$SWITCHER --work platform) > /dev/null && " + | 
|  | 446 | "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)", | 
|  | 447 | } | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 448 |  | 
|  | 449 | droiddoc { | 
|  | 450 | name: "ds-static-docs", | 
|  | 451 | defaults: ["framework-docs-default"], | 
|  | 452 | srcs: [ | 
|  | 453 | ":framework-doc-stubs", | 
|  | 454 | ], | 
|  | 455 | hdf: [ | 
|  | 456 | "android.whichdoc online", | 
|  | 457 | ], | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 458 | args: framework_docs_only_args + | 
|  | 459 | " -staticonly " + | 
|  | 460 | " -toroot / " + | 
|  | 461 | " -devsite " + | 
|  | 462 | " -ignoreJdLinks ", | 
|  | 463 | } | 
|  | 464 |  | 
|  | 465 | droiddoc { | 
|  | 466 | name: "ds-ref-navtree-docs", | 
|  | 467 | defaults: ["framework-docs-default"], | 
|  | 468 | srcs: [ | 
|  | 469 | ":framework-doc-stubs", | 
|  | 470 | ], | 
|  | 471 | hdf: [ | 
|  | 472 | "android.whichdoc online", | 
|  | 473 | ], | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 474 | args: framework_docs_only_args + | 
|  | 475 | " -toroot / " + | 
|  | 476 | " -atLinksNavtree " + | 
|  | 477 | " -navtreeonly ", | 
|  | 478 | } | 
|  | 479 |  | 
|  | 480 | droiddoc { | 
|  | 481 | name: "online-sdk-dev-docs", | 
|  | 482 | defaults: ["framework-docs-default"], | 
|  | 483 | srcs: [ | 
|  | 484 | ":framework-doc-stubs", | 
|  | 485 | ], | 
|  | 486 | hdf: [ | 
|  | 487 | "android.whichdoc online", | 
|  | 488 | "android.hasSamples true", | 
|  | 489 | ], | 
| Mårten Kongstad | 2598fe0 | 2022-03-30 12:31:33 +0000 | [diff] [blame] | 490 | proofread_file: "online-sdk-dev-docs-proofread.txt", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 491 | args: framework_docs_only_args + | 
|  | 492 | " -toroot / -samplegroup Admin " + | 
|  | 493 | " -samplegroup Background " + | 
|  | 494 | " -samplegroup Connectivity " + | 
|  | 495 | " -samplegroup Content " + | 
|  | 496 | " -samplegroup Input " + | 
|  | 497 | " -samplegroup Media " + | 
|  | 498 | " -samplegroup Notification " + | 
|  | 499 | " -samplegroup RenderScript " + | 
|  | 500 | " -samplegroup Security " + | 
|  | 501 | " -samplegroup Sensors " + | 
|  | 502 | " -samplegroup System " + | 
|  | 503 | " -samplegroup Testing " + | 
|  | 504 | " -samplegroup UI " + | 
|  | 505 | " -samplegroup Views " + | 
|  | 506 | " -samplegroup Wearable -samplesdir development/samples/browseable ", | 
|  | 507 | } | 
|  | 508 |  | 
|  | 509 | droiddoc { | 
|  | 510 | name: "hidden-docs", | 
|  | 511 | defaults: ["framework-docs-default"], | 
|  | 512 | srcs: [ | 
|  | 513 | ":framework-doc-stubs", | 
|  | 514 | ], | 
| Mårten Kongstad | 2598fe0 | 2022-03-30 12:31:33 +0000 | [diff] [blame] | 515 | proofread_file: "hidden-docs-proofread.txt", | 
| Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 516 | args: framework_docs_only_args + | 
|  | 517 | " -referenceonly " + | 
|  | 518 | " -title \"Android SDK - Including hidden APIs.\"", | 
|  | 519 | } |