Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 1 | // Copyright (C) 2016 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 15 | // Build the master framework library. |
| 16 | |
| 17 | // READ ME: ######################################################## |
| 18 | // |
| 19 | // When updating this list of aidl files, consider if that aidl is |
| 20 | // part of the SDK API. If it is, also add it to the list in Android.mk |
| 21 | // that is preprocessed and distributed with the SDK. This list should |
| 22 | // not contain any aidl files for parcelables, but the one below should |
| 23 | // if you intend for 3rd parties to be able to send those objects |
| 24 | // across process boundaries. |
| 25 | // |
| 26 | // READ ME: ######################################################## |
| 27 | |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 28 | filegroup { |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 29 | name: "framework-core-sources", |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 30 | srcs: [ |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 31 | "core/java/**/*.java", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 32 | "core/java/**/*.aidl", |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 33 | ], |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 34 | path: "core/java", |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 35 | } |
| 36 | |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 37 | filegroup { |
| 38 | name: "framework-drm-sources", |
| 39 | srcs: [ |
| 40 | "drm/java/**/*.java", |
| 41 | ], |
| 42 | path: "drm/java", |
| 43 | } |
Jiyong Park | 1cc9566 | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 44 | |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 45 | filegroup { |
| 46 | name: "framework-graphics-sources", |
| 47 | srcs: [ |
| 48 | "graphics/java/**/*.java", |
| 49 | "graphics/java/**/*.aidl", |
| 50 | ], |
| 51 | path: "graphics/java", |
| 52 | } |
| 53 | |
| 54 | filegroup { |
| 55 | name: "framework-keystore-sources", |
| 56 | srcs: [ |
| 57 | "keystore/java/**/*.java", |
| 58 | "keystore/java/**/*.aidl", |
| 59 | ], |
| 60 | path: "keystore/java", |
| 61 | } |
| 62 | |
| 63 | filegroup { |
| 64 | name: "framework-location-sources", |
| 65 | srcs: [ |
| 66 | "location/java/**/*.java", |
| 67 | "location/java/**/*.aidl", |
| 68 | ], |
| 69 | path: "location/java", |
| 70 | } |
| 71 | |
| 72 | filegroup { |
| 73 | name: "framework-lowpan-sources", |
| 74 | srcs: [ |
| 75 | "lowpan/java/**/*.java", |
| 76 | "lowpan/java/**/*.aidl", |
| 77 | ], |
| 78 | path: "lowpan/java", |
| 79 | } |
| 80 | |
| 81 | filegroup { |
| 82 | name: "framework-media-sources", |
| 83 | srcs: [ |
| 84 | "media/java/**/*.java", |
| 85 | "media/java/**/*.aidl", |
| 86 | ], |
| 87 | path: "media/java", |
| 88 | } |
| 89 | |
| 90 | filegroup { |
| 91 | name: "framework-mca-effect-sources", |
| 92 | srcs: [ |
| 93 | "media/mca/effect/java/**/*.java", |
| 94 | ], |
| 95 | path: "media/mca/effect/java", |
| 96 | } |
| 97 | |
| 98 | filegroup { |
| 99 | name: "framework-mca-filterfw-sources", |
| 100 | srcs: [ |
| 101 | "media/mca/filterfw/java/**/*.java", |
| 102 | ], |
| 103 | path: "media/mca/filterfw/java", |
| 104 | } |
| 105 | |
| 106 | filegroup { |
| 107 | name: "framework-mca-filterpacks-sources", |
| 108 | srcs: [ |
| 109 | "media/mca/filterpacks/java/**/*.java", |
| 110 | ], |
| 111 | path: "media/mca/filterpacks/java", |
| 112 | } |
| 113 | |
| 114 | filegroup { |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 115 | name: "framework-mime-sources", |
| 116 | srcs: [ |
| 117 | "mime/java/**/*.java", |
| 118 | ], |
| 119 | path: "mime/java", |
| 120 | } |
| 121 | |
| 122 | filegroup { |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 123 | name: "framework-opengl-sources", |
| 124 | srcs: [ |
| 125 | "opengl/java/**/*.java", |
| 126 | ], |
| 127 | path: "opengl/java", |
| 128 | } |
| 129 | |
| 130 | filegroup { |
| 131 | name: "framework-rs-sources", |
| 132 | srcs: [ |
| 133 | "rs/java/**/*.java", |
| 134 | ], |
| 135 | path: "rs/java", |
| 136 | } |
| 137 | |
| 138 | filegroup { |
| 139 | name: "framework-sax-sources", |
| 140 | srcs: [ |
| 141 | "sax/java/**/*.java", |
| 142 | ], |
| 143 | path: "sax/java", |
| 144 | } |
| 145 | |
| 146 | filegroup { |
| 147 | name: "framework-telecomm-sources", |
| 148 | srcs: [ |
| 149 | "telecomm/java/**/*.java", |
| 150 | "telecomm/java/**/*.aidl", |
| 151 | ], |
| 152 | path: "telecomm/java", |
| 153 | } |
| 154 | |
| 155 | filegroup { |
| 156 | name: "framework-telephony-sources", |
| 157 | srcs: [ |
| 158 | "telephony/java/**/*.java", |
| 159 | "telephony/java/**/*.aidl", |
| 160 | ], |
| 161 | path: "telephony/java", |
| 162 | } |
| 163 | |
| 164 | filegroup { |
Amit Mahajan | d355153 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 165 | name: "framework-telephony-common-sources", |
| 166 | srcs: [ |
| 167 | "telephony/common/**/*.java", |
| 168 | ], |
| 169 | path: "telephony/common", |
| 170 | } |
| 171 | |
| 172 | filegroup { |
Amit Mahajan | 6237a6b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 173 | name: "framework-mms-sources", |
| 174 | srcs: [ |
| 175 | "mms/java/**/*.java", |
| 176 | "mms/java/**/*.aidl", |
| 177 | ], |
| 178 | path: "mms/java", |
| 179 | } |
| 180 | |
| 181 | filegroup { |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 182 | name: "framework-wifi-sources", |
| 183 | srcs: [ |
| 184 | "wifi/java/**/*.java", |
| 185 | "wifi/java/**/*.aidl", |
| 186 | ], |
| 187 | path: "wifi/java", |
| 188 | } |
| 189 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 190 | filegroup { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 191 | name: "framework-non-updatable-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 192 | srcs: [ |
| 193 | // Java/AIDL sources under frameworks/base |
| 194 | ":framework-core-sources", |
| 195 | ":framework-drm-sources", |
| 196 | ":framework-graphics-sources", |
| 197 | ":framework-keystore-sources", |
| 198 | ":framework-location-sources", |
| 199 | ":framework-lowpan-sources", |
| 200 | ":framework-media-sources", |
| 201 | ":framework-mca-effect-sources", |
| 202 | ":framework-mca-filterfw-sources", |
| 203 | ":framework-mca-filterpacks-sources", |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 204 | ":framework-mime-sources", |
Amit Mahajan | 6237a6b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 205 | ":framework-mms-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 206 | ":framework-opengl-sources", |
| 207 | ":framework-rs-sources", |
| 208 | ":framework-sax-sources", |
| 209 | ":framework-telecomm-sources", |
Amit Mahajan | d355153 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 210 | ":framework-telephony-common-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 211 | ":framework-telephony-sources", |
| 212 | ":framework-wifi-sources", |
| 213 | ":PacProcessor-aidl-sources", |
| 214 | ":ProxyHandler-aidl-sources", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 215 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 216 | // AIDL sources from external directories |
| 217 | ":dumpstate_aidl", |
| 218 | ":framework_native_aidl", |
| 219 | ":gatekeeper_aidl", |
| 220 | ":gsiservice_aidl", |
| 221 | ":incidentcompanion_aidl", |
| 222 | ":installd_aidl", |
| 223 | ":keystore_aidl", |
| 224 | ":libaudioclient_aidl", |
| 225 | ":libbinder_aidl", |
| 226 | ":libbluetooth-binder-aidl", |
| 227 | ":libcamera_client_aidl", |
| 228 | ":libcamera_client_framework_aidl", |
| 229 | ":libupdate_engine_aidl", |
| 230 | ":storaged_aidl", |
| 231 | ":vold_aidl", |
Jiyong Park | 1cc9566 | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 232 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 233 | // For the generated R.java and Manifest.java |
| 234 | ":framework-res{.aapt.srcjar}", |
| 235 | |
| 236 | // etc. |
| 237 | ":framework-javastream-protos", |
| 238 | ":framework-statslog-gen", |
| 239 | ], |
| 240 | } |
Jiyong Park | 1cc9566 | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 241 | |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 242 | filegroup { |
| 243 | name: "framework-all-sources", |
| 244 | srcs: [ |
| 245 | ":framework-non-updatable-sources", |
| 246 | ":updatable-media-srcs", |
| 247 | ], |
| 248 | } |
| 249 | |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 250 | java_defaults { |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 251 | name: "framework-aidl-export-defaults", |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 252 | aidl: { |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 253 | export_include_dirs: [ |
| 254 | "core/java", |
| 255 | "drm/java", |
| 256 | "graphics/java", |
| 257 | "keystore/java", |
| 258 | "location/java", |
| 259 | "lowpan/java", |
| 260 | "media/java", |
| 261 | "media/apex/java", |
| 262 | "media/mca/effect/java", |
| 263 | "media/mca/filterfw/java", |
| 264 | "media/mca/filterpacks/java", |
Amit Mahajan | 6237a6b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 265 | "mms/java", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 266 | "opengl/java", |
| 267 | "rs/java", |
| 268 | "sax/java", |
| 269 | "telecomm/java", |
| 270 | "telephony/java", |
| 271 | "wifi/java", |
| 272 | ], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 273 | }, |
Adam Pardyl | 5020703 | 2019-09-09 14:37:27 +0200 | [diff] [blame] | 274 | |
| 275 | required: [ |
Adam Pardyl | 0f1b3d4 | 2019-08-19 15:24:11 +0200 | [diff] [blame] | 276 | // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly. |
Adam Pardyl | 5020703 | 2019-09-09 14:37:27 +0200 | [diff] [blame] | 277 | "gps_debug.conf", |
Adam Pardyl | 0f1b3d4 | 2019-08-19 15:24:11 +0200 | [diff] [blame] | 278 | "protolog.conf.json.gz", |
Adam Pardyl | 5020703 | 2019-09-09 14:37:27 +0200 | [diff] [blame] | 279 | ], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 280 | } |
| 281 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 282 | // Collection of classes that are generated from non-Java files that are not listed in |
| 283 | // framework_srcs. These have no or very limited dependency to the framework. |
| 284 | java_library { |
| 285 | name: "framework-internal-utils", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 286 | static_libs: [ |
Dario Freni | d8bf22e | 2018-08-31 14:18:04 +0100 | [diff] [blame] | 287 | "apex_aidl_interface-java", |
Kalesh Singh | 759af32 | 2019-06-19 12:17:43 -0700 | [diff] [blame] | 288 | "suspend_control_aidl_interface-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 289 | "framework-protos", |
Peiyong Lin | 9ca1dd8 | 2019-01-12 17:44:29 -0800 | [diff] [blame] | 290 | "game-driver-protos", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 291 | "android.hidl.base-V1.0-java", |
Henry Fang | 5215ac9 | 2019-02-01 19:24:55 +0000 | [diff] [blame] | 292 | "android.hardware.cas-V1.1-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 293 | "android.hardware.cas-V1.0-java", |
| 294 | "android.hardware.contexthub-V1.0-java", |
| 295 | "android.hardware.health-V1.0-java-constants", |
Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 296 | "android.hardware.radio-V1.0-java", |
| 297 | "android.hardware.radio-V1.1-java", |
| 298 | "android.hardware.radio-V1.2-java", |
| 299 | "android.hardware.radio-V1.3-java", |
| 300 | "android.hardware.radio-V1.4-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 301 | "android.hardware.thermal-V1.0-java-constants", |
Wei Wang | fb21bd8 | 2019-01-10 14:16:23 -0800 | [diff] [blame] | 302 | "android.hardware.thermal-V1.0-java", |
Wei Wang | bad7c20 | 2018-11-01 11:57:39 -0700 | [diff] [blame] | 303 | "android.hardware.thermal-V1.1-java", |
| 304 | "android.hardware.thermal-V2.0-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 305 | "android.hardware.tv.input-V1.0-java-constants", |
| 306 | "android.hardware.usb-V1.0-java-constants", |
| 307 | "android.hardware.usb-V1.1-java-constants", |
Badhri Jagan Sridharan | e966a38 | 2018-12-09 14:49:38 -0800 | [diff] [blame] | 308 | "android.hardware.usb-V1.2-java-constants", |
Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 309 | "android.hardware.usb.gadget-V1.0-java", |
Michael Wright | f268bf5 | 2018-02-07 23:23:34 +0000 | [diff] [blame] | 310 | "android.hardware.vibrator-V1.0-java", |
| 311 | "android.hardware.vibrator-V1.1-java", |
| 312 | "android.hardware.vibrator-V1.2-java", |
Harpreet "Eli" Sangha | a456f08 | 2018-12-14 12:06:10 +0900 | [diff] [blame] | 313 | "android.hardware.vibrator-V1.3-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 314 | "android.hardware.wifi-V1.0-java-constants", |
arangelov | 1ab6149 | 2018-11-22 13:56:50 +0000 | [diff] [blame] | 315 | "devicepolicyprotosnano", |
Inseob Kim | 4fe9f0f | 2019-07-30 18:23:26 +0900 | [diff] [blame] | 316 | |
| 317 | "com.android.sysprop.apex", |
| 318 | "PlatformProperties", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 319 | ], |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 320 | sdk_version: "core_platform", |
| 321 | installable: false, |
| 322 | } |
| 323 | |
| 324 | java_defaults { |
| 325 | name: "framework-defaults", |
| 326 | defaults: ["framework-aidl-export-defaults"], |
| 327 | installable: true, |
| 328 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 329 | aidl: { |
| 330 | generate_get_transaction_name: true, |
| 331 | }, |
| 332 | |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 333 | srcs: ["core/java/**/*.logtags"], |
| 334 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 335 | exclude_srcs: [ |
| 336 | // See comment on framework-atb-backward-compatibility module below |
Winson Chiu | 8e18a0a | 2019-09-30 20:37:25 +0000 | [diff] [blame] | 337 | "core/java/android/content/pm/AndroidTestBaseUpdater.java", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 338 | ], |
| 339 | |
| 340 | sdk_version: "core_platform", |
| 341 | libs: [ |
| 342 | "ext", |
| 343 | "updatable_media_stubs", |
| 344 | ], |
| 345 | |
| 346 | jarjar_rules: ":framework-jarjar-rules", |
| 347 | |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 348 | static_libs: [ |
| 349 | "framework-internal-utils", |
| 350 | "mimemap", |
| 351 | ], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 352 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 353 | dxflags: [ |
| 354 | "--core-library", |
| 355 | "--multi-dex", |
| 356 | ], |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 357 | |
Eugene Susla | 3b2fe61 | 2019-08-06 18:47:14 -0700 | [diff] [blame] | 358 | plugins: [ |
| 359 | "view-inspector-annotation-processor", |
| 360 | "staledataclass-annotation-processor", |
| 361 | ], |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 362 | } |
| 363 | |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 364 | filegroup { |
Steven Moreland | 19e8d46 | 2019-03-08 10:44:22 -0800 | [diff] [blame] | 365 | name: "framework-jarjar-rules", |
| 366 | srcs: ["jarjar_rules_hidl.txt"], |
| 367 | } |
| 368 | |
| 369 | filegroup { |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 370 | name: "libincident_aidl", |
| 371 | srcs: [ |
| 372 | "core/java/android/os/IIncidentManager.aidl", |
| 373 | "core/java/android/os/IIncidentReportStatusListener.aidl", |
| 374 | ], |
Dan Willemsen | 4a49850 | 2019-06-05 15:51:24 -0700 | [diff] [blame] | 375 | path: "core/java", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 376 | } |
| 377 | |
| 378 | filegroup { |
| 379 | name: "statsd_aidl", |
| 380 | srcs: [ |
| 381 | "core/java/android/os/IStatsCompanionService.aidl", |
| 382 | "core/java/android/os/IStatsManager.aidl", |
Tej Singh | a0c89dd | 2019-01-25 16:39:18 -0800 | [diff] [blame] | 383 | "core/java/android/os/IStatsPullerCallback.aidl", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 384 | ], |
Dan Willemsen | a38ff9f | 2019-06-11 10:56:01 -0700 | [diff] [blame] | 385 | path: "core/java", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 386 | } |
| 387 | |
Michael Wright | c390fbe | 2018-12-12 19:45:09 +0000 | [diff] [blame] | 388 | filegroup { |
| 389 | name: "libvibrator_aidl", |
| 390 | srcs: [ |
| 391 | "core/java/android/os/IExternalVibrationController.aidl", |
| 392 | "core/java/android/os/IExternalVibratorService.aidl", |
| 393 | ], |
Dan Willemsen | 4a49850 | 2019-06-05 15:51:24 -0700 | [diff] [blame] | 394 | path: "core/java", |
Michael Wright | c390fbe | 2018-12-12 19:45:09 +0000 | [diff] [blame] | 395 | } |
| 396 | |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 397 | java_library { |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 398 | name: "framework-minus-apex", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 399 | defaults: ["framework-defaults"], |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 400 | srcs: [":framework-non-updatable-sources"], |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 401 | javac_shard_size: 150, |
| 402 | } |
| 403 | |
| 404 | java_library { |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 405 | name: "framework", |
| 406 | defaults: ["framework-aidl-export-defaults"], |
| 407 | installable: true, |
| 408 | static_libs: [ |
| 409 | "framework-minus-apex", |
| 410 | "jobscheduler-framework", |
| 411 | ], |
atrost | aec9bc1 | 2019-08-16 18:14:09 +0100 | [diff] [blame] | 412 | required: [ |
| 413 | "framework-platform-compat-config", |
| 414 | "libcore-platform-compat-config", |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 415 | "services-platform-compat-config", |
atrost | aec9bc1 | 2019-08-16 18:14:09 +0100 | [diff] [blame] | 416 | ], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 417 | sdk_version: "core_platform", |
| 418 | } |
| 419 | |
| 420 | java_library { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 421 | name: "framework-all", |
| 422 | defaults: ["framework-defaults"], |
| 423 | srcs: [":framework-all-sources"], |
| 424 | installable: false, |
| 425 | } |
| 426 | |
| 427 | java_library { |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 428 | name: "framework-annotation-proc", |
atrost | e4d912f | 2019-10-01 13:33:03 +0100 | [diff] [blame] | 429 | defaults: ["framework-aidl-export-defaults"], |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 430 | srcs: [":framework-all-sources"], |
Anna Trostanetski | 97088e9 | 2019-06-26 14:47:58 +0100 | [diff] [blame] | 431 | installable: false, |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 432 | plugins: [ |
| 433 | "unsupportedappusage-annotation-processor", |
| 434 | "compat-changeid-annotation-processor", |
| 435 | ], |
| 436 | } |
| 437 | |
| 438 | platform_compat_config { |
| 439 | name: "framework-platform-compat-config", |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 440 | src: ":framework-annotation-proc", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 441 | } |
| 442 | |
Paul Duffin | 52197580 | 2019-06-05 10:35:08 +0100 | [diff] [blame] | 443 | // A library including just UnsupportedAppUsage.java classes. |
| 444 | // |
| 445 | // Provided for target so that libraries can use it without depending on |
| 446 | // the whole of framework or the core platform API. |
| 447 | // |
| 448 | // Built for host so that the annotation processor can also use this annotation. |
| 449 | java_library { |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 450 | name: "unsupportedappusage-annotation", |
Paul Duffin | 52197580 | 2019-06-05 10:35:08 +0100 | [diff] [blame] | 451 | host_supported: true, |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 452 | srcs: [ |
| 453 | "core/java/android/annotation/IntDef.java", |
| 454 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Andrei Onea | 5e22614 | 2019-05-08 13:50:16 +0100 | [diff] [blame] | 455 | ":unsupportedappusage_annotation_files", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 456 | ], |
Paul Duffin | 52197580 | 2019-06-05 10:35:08 +0100 | [diff] [blame] | 457 | |
| 458 | sdk_version: "core_current", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 459 | } |
| 460 | |
Paul Duffin | beee5dc | 2018-01-23 13:39:00 +0000 | [diff] [blame] | 461 | // A temporary build target that is conditionally included on the bootclasspath if |
Paul Duffin | a3b6921 | 2018-01-25 09:58:32 +0000 | [diff] [blame] | 462 | // android.test.base library has been removed and which provides support for |
| 463 | // maintaining backwards compatibility for APKs that target pre-P and depend on |
| 464 | // android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is |
| 465 | // specified on the build command line. |
| 466 | java_library { |
| 467 | name: "framework-atb-backward-compatibility", |
Paul Duffin | fab8754 | 2019-02-15 11:39:12 +0000 | [diff] [blame] | 468 | installable: true, |
Paul Duffin | a3b6921 | 2018-01-25 09:58:32 +0000 | [diff] [blame] | 469 | srcs: [ |
Winson Chiu | 8e18a0a | 2019-09-30 20:37:25 +0000 | [diff] [blame] | 470 | "core/java/android/content/pm/AndroidTestBaseUpdater.java", |
Paul Duffin | a3b6921 | 2018-01-25 09:58:32 +0000 | [diff] [blame] | 471 | ], |
| 472 | } |
| 473 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 474 | genrule { |
| 475 | name: "framework-statslog-gen", |
| 476 | tools: ["stats-log-api-gen"], |
| 477 | cmd: "$(location stats-log-api-gen) --java $(out)", |
David Chen | 0a368b2 | 2017-12-06 16:28:16 -0800 | [diff] [blame] | 478 | out: ["android/util/StatsLogInternal.java"], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 479 | } |
| 480 | |
| 481 | gensrcs { |
| 482 | name: "framework-javastream-protos", |
| 483 | depfile: true, |
| 484 | |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 485 | tool_files: ["tools/genprotos.sh"], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 486 | tools: [ |
| 487 | "aprotoc", |
| 488 | "protoc-gen-javastream", |
| 489 | "soong_zip", |
| 490 | ], |
| 491 | |
Alex Light | 159799d | 2018-08-08 07:05:19 -0700 | [diff] [blame] | 492 | // TODO This should not be needed. If you set a custom OUT_DIR or OUT_DIR_COMMON_BASE you can |
| 493 | // end up with a command that is extremely long, potentially going passed MAX_ARG_STRLEN due to |
| 494 | // the way sbox rewrites the command. See b/70221552. |
| 495 | cmd: "$(location tools/genprotos.sh) " + |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 496 | " $(location aprotoc) " + |
| 497 | " $(location protoc-gen-javastream) " + |
| 498 | " $(location soong_zip) " + |
| 499 | " $(genDir) " + |
| 500 | " $(depfile) " + |
| 501 | " $(in) " + |
| 502 | " $(out)", |
Yi Jin | 437aa6e | 2018-01-10 11:34:26 -0800 | [diff] [blame] | 503 | srcs: [ |
| 504 | "core/proto/**/*.proto", |
| 505 | "libs/incident/**/*.proto", |
| 506 | ], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 507 | output_extension: "srcjar", |
| 508 | } |
| 509 | |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 510 | filegroup { |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 511 | name: "framework-annotations", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 512 | srcs: [ |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 513 | "core/java/android/annotation/NonNull.java", |
| 514 | "core/java/android/annotation/Nullable.java", |
| 515 | "core/java/android/annotation/IntDef.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 516 | "core/java/android/annotation/IntRange.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 517 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Remi NGUYEN VAN | 231b52b | 2019-01-29 15:38:52 +0900 | [diff] [blame] | 518 | "core/java/com/android/internal/annotations/GuardedBy.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 519 | "core/java/com/android/internal/annotations/VisibleForTesting.java", |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 520 | ], |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 521 | } |
| 522 | |
| 523 | filegroup { |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 524 | name: "framework-networkstack-shared-srcs", |
| 525 | srcs: [ |
| 526 | // TODO: remove these annotations as soon as we can use andoid.support.annotations.* |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 527 | ":framework-annotations", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 528 | "core/java/android/net/DhcpResults.java", |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 529 | "core/java/android/util/LocalLog.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 530 | "core/java/com/android/internal/util/HexDump.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 531 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 532 | "core/java/com/android/internal/util/IState.java", |
| 533 | "core/java/com/android/internal/util/MessageUtils.java", |
| 534 | "core/java/com/android/internal/util/Preconditions.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 535 | "core/java/com/android/internal/util/RingBufferIndices.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 536 | "core/java/com/android/internal/util/State.java", |
| 537 | "core/java/com/android/internal/util/StateMachine.java", |
Chalard Jean | 6a76b7e | 2019-04-09 11:16:56 +0900 | [diff] [blame] | 538 | "core/java/com/android/internal/util/TrafficStatsConstants.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 539 | "core/java/com/android/internal/util/WakeupMessage.java", |
| 540 | "core/java/android/net/shared/*.java", |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 541 | ], |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 542 | } |
| 543 | |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 544 | // Build ext.jar |
| 545 | // ============================================================ |
| 546 | java_library { |
| 547 | name: "ext", |
Colin Cross | a12c0f5 | 2018-06-27 11:00:11 -0700 | [diff] [blame] | 548 | installable: true, |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 549 | sdk_version: "core_platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 550 | static_libs: [ |
| 551 | "libphonenumber-platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 552 | "tagsoup", |
Ricky Wai | 0d1bc33 | 2017-10-31 14:31:01 +0000 | [diff] [blame] | 553 | "rappor", |
Tony Mak | 64c4cb2 | 2018-09-25 13:38:28 +0100 | [diff] [blame] | 554 | "libtextclassifier-java", |
| 555 | ], |
| 556 | required: [ |
| 557 | "libtextclassifier", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 558 | ], |
| 559 | dxflags: ["--core-library"], |
| 560 | } |
| 561 | |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 562 | // ==== java proto host library ============================== |
| 563 | java_library_host { |
| 564 | name: "platformprotos", |
| 565 | srcs: [ |
| 566 | "cmds/am/proto/instrumentation_data.proto", |
Howard Ro | 0546d54 | 2018-08-30 16:23:44 -0700 | [diff] [blame] | 567 | "cmds/statsd/src/**/*.proto", |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 568 | "core/proto/**/*.proto", |
| 569 | "libs/incident/proto/**/*.proto", |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 570 | ], |
| 571 | proto: { |
| 572 | include_dirs: ["external/protobuf/src"], |
| 573 | type: "full", |
| 574 | }, |
| 575 | errorprone: { |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 576 | javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520 |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 577 | }, |
| 578 | } |
| 579 | |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 580 | // ==== java proto device library (for test only) ============================== |
| 581 | java_library { |
| 582 | name: "platformprotosnano", |
| 583 | proto: { |
| 584 | type: "nano", |
| 585 | output_params: ["store_unknown_fields=true"], |
| 586 | include_dirs: ["external/protobuf/src"], |
| 587 | }, |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 588 | exclude_srcs: [ |
| 589 | "core/proto/android/privacy.proto", |
| 590 | "core/proto/android/section.proto", |
| 591 | ], |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 592 | sdk_version: "current", |
| 593 | srcs: [ |
| 594 | "core/proto/**/*.proto", |
| 595 | "libs/incident/proto/android/os/**/*.proto", |
| 596 | ], |
| 597 | } |
| 598 | |
| 599 | // ==== java proto device library (for test only) ============================== |
| 600 | java_library { |
| 601 | name: "platformprotoslite", |
| 602 | proto: { |
| 603 | type: "lite", |
| 604 | include_dirs: ["external/protobuf/src"], |
| 605 | }, |
| 606 | |
| 607 | srcs: [ |
| 608 | "core/proto/**/*.proto", |
| 609 | "libs/incident/proto/android/os/**/*.proto", |
| 610 | ], |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 611 | exclude_srcs: [ |
| 612 | "core/proto/android/privacy.proto", |
| 613 | "core/proto/android/section.proto", |
| 614 | ], |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 615 | // Protos have lots of MissingOverride and similar. |
| 616 | errorprone: { |
| 617 | javacflags: ["-XepDisableAllChecks"], |
| 618 | }, |
| 619 | } |
| 620 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 621 | // ==== c++ proto device library ============================== |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 622 | cc_defaults { |
| 623 | name: "libplatformprotos-defaults", |
| 624 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 625 | proto: { |
| 626 | export_proto_headers: true, |
| 627 | include_dirs: ["external/protobuf/src"], |
| 628 | }, |
| 629 | |
Chih-Hung Hsieh | c7edf07 | 2017-10-03 09:57:55 -0700 | [diff] [blame] | 630 | cflags: [ |
| 631 | "-Wall", |
| 632 | "-Werror", |
| 633 | "-Wno-unused-parameter", |
| 634 | ], |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 635 | |
| 636 | srcs: [ |
| 637 | "core/proto/**/*.proto", |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 638 | ], |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 639 | } |
| 640 | |
| 641 | cc_library { |
| 642 | name: "libplatformprotos", |
| 643 | defaults: ["libplatformprotos-defaults"], |
| 644 | host_supported: true, |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 645 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 646 | target: { |
| 647 | host: { |
| 648 | proto: { |
| 649 | type: "full", |
| 650 | }, |
| 651 | }, |
| 652 | android: { |
| 653 | proto: { |
| 654 | type: "lite", |
| 655 | }, |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 656 | shared_libs: [ |
| 657 | "libprotobuf-cpp-lite", |
| 658 | ], |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 659 | shared: { |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 660 | enabled: false, |
| 661 | }, |
| 662 | }, |
| 663 | }, |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 664 | } |
| 665 | |
Joe Onorato | 9bd5db7 | 2019-04-03 18:19:43 -0700 | [diff] [blame] | 666 | // This library is meant for vendor code that needs to output protobuf. It links |
| 667 | // against the static version of libprotobuf-cpp-lite, for which we can not guarantee |
| 668 | // binary compatibility. |
| 669 | cc_library { |
| 670 | name: "libplatformprotos-static", |
| 671 | defaults: ["libplatformprotos-defaults"], |
| 672 | host_supported: false, |
| 673 | |
| 674 | // This is okay because this library is only built as a static library. The C++ |
| 675 | // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council, |
| 676 | // but is not authorized to be used outside of debugging. |
| 677 | vendor_available: true, |
| 678 | |
| 679 | target: { |
| 680 | android: { |
| 681 | proto: { |
| 682 | type: "lite", |
| 683 | }, |
| 684 | static_libs: [ |
| 685 | "libprotobuf-cpp-lite", |
| 686 | ], |
| 687 | shared: { |
| 688 | enabled: false, |
| 689 | }, |
| 690 | }, |
| 691 | }, |
| 692 | } |
| 693 | |
| 694 | |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 695 | // This is the full proto version of libplatformprotos. It may only |
| 696 | // be used by test code that is not shipped on the device. |
| 697 | cc_library { |
| 698 | name: "libplatformprotos-test", |
| 699 | defaults: ["libplatformprotos-defaults"], |
| 700 | host_supported: false, |
| 701 | |
| 702 | target: { |
| 703 | android: { |
| 704 | proto: { |
| 705 | type: "full", |
| 706 | }, |
| 707 | shared: { |
| 708 | enabled: false, |
| 709 | }, |
| 710 | }, |
| 711 | }, |
| 712 | } |
| 713 | |
| 714 | |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 715 | gensrcs { |
| 716 | name: "gen-platform-proto-constants", |
| 717 | depfile: true, |
| 718 | |
| 719 | tools: [ |
| 720 | "aprotoc", |
| 721 | "protoc-gen-cppstream", |
| 722 | ], |
| 723 | |
| 724 | srcs: [ |
Kweku Adams | eadd123 | 2018-02-05 16:45:13 -0800 | [diff] [blame] | 725 | "core/proto/android/os/backtrace.proto", |
Kweku Adams | 59e6fd7 | 2017-12-27 15:48:14 -0800 | [diff] [blame] | 726 | "core/proto/android/os/batterytype.proto", |
Yi Jin | 0eb2234 | 2017-11-06 17:17:27 -0800 | [diff] [blame] | 727 | "core/proto/android/os/cpufreq.proto", |
Yi Jin | e2f7f79 | 2017-11-01 17:08:27 -0700 | [diff] [blame] | 728 | "core/proto/android/os/cpuinfo.proto", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 729 | "core/proto/android/os/data.proto", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 730 | "core/proto/android/os/kernelwake.proto", |
| 731 | "core/proto/android/os/pagetypeinfo.proto", |
| 732 | "core/proto/android/os/procrank.proto", |
Kweku Adams | f5cc575 | 2017-12-20 17:59:17 -0800 | [diff] [blame] | 733 | "core/proto/android/os/ps.proto", |
Yi Jin | 0dfa752 | 2017-11-06 17:43:47 -0800 | [diff] [blame] | 734 | "core/proto/android/os/system_properties.proto", |
Yi Jin | 3c034c9 | 2017-12-22 17:36:47 -0800 | [diff] [blame] | 735 | "core/proto/android/util/event_log_tags.proto", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 736 | "core/proto/android/util/log.proto", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 737 | ], |
| 738 | |
| 739 | // Append protoc-gen-cppstream tool's PATH otherwise aprotoc can't find the plugin tool |
Yi Jin | 3c034c9 | 2017-12-22 17:36:47 -0800 | [diff] [blame] | 740 | cmd: "mkdir -p $(genDir) " + |
| 741 | "&& $(location aprotoc) " + |
| 742 | " --plugin=$(location protoc-gen-cppstream) " + |
| 743 | " --dependency_out=$(depfile) " + |
| 744 | " --cppstream_out=$(genDir) " + |
| 745 | " -Iexternal/protobuf/src " + |
| 746 | " -I . " + |
| 747 | " $(in)", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 748 | |
Logan Chien | 71ddfea | 2018-02-27 16:43:50 +0800 | [diff] [blame] | 749 | output_extension: "proto.h", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 750 | } |
| 751 | |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 752 | |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 753 | subdirs = [ |
Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 754 | "cmds/*", |
Jeff Sharkey | 0c686e7 | 2017-10-23 16:04:31 -0600 | [diff] [blame] | 755 | "core/*", |
Colin Cross | 4f8d9e6 | 2016-12-01 15:55:00 -0800 | [diff] [blame] | 756 | "libs/*", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 757 | "media/*", |
Colin Cross | 747e7c15 | 2017-10-24 16:21:22 -0700 | [diff] [blame] | 758 | "proto", |
Fabien Sanglard | 1916020 | 2017-01-12 14:24:31 -0500 | [diff] [blame] | 759 | "tools/*", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 760 | "native/android", |
Dan Albert | 7ce8df3 | 2016-09-23 16:43:49 -0700 | [diff] [blame] | 761 | "native/graphics/jni", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 762 | ] |
Svetoslav Ganov | 74c9983 | 2016-12-05 20:07:20 -0800 | [diff] [blame] | 763 | |
| 764 | optional_subdirs = [ |
| 765 | "core/tests/utiltests/jni", |
| 766 | ] |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 767 | |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 768 | // TODO(b/77285514): remove this once the last few hidl interfaces have been |
| 769 | // updated to use hwbinder.stubs. |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 770 | java_library { |
| 771 | name: "hwbinder", |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 772 | sdk_version: "core_platform", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 773 | |
| 774 | srcs: [ |
| 775 | "core/java/android/os/HidlSupport.java", |
Steven Moreland | e8e63aa | 2018-01-10 15:45:36 -0800 | [diff] [blame] | 776 | "core/java/android/annotation/IntDef.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 777 | "core/java/android/annotation/NonNull.java", |
Steven Moreland | 0ff061a | 2019-03-04 17:56:30 -0800 | [diff] [blame] | 778 | "core/java/android/annotation/Nullable.java", |
Steven Moreland | e8e63aa | 2018-01-10 15:45:36 -0800 | [diff] [blame] | 779 | "core/java/android/annotation/SystemApi.java", |
Steven Moreland | cbba4c7 | 2019-01-11 10:19:51 -0800 | [diff] [blame] | 780 | "core/java/android/annotation/TestApi.java", |
Andrei Onea | 24ec321 | 2019-03-15 17:35:05 +0000 | [diff] [blame] | 781 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 782 | "core/java/android/os/HwBinder.java", |
| 783 | "core/java/android/os/HwBlob.java", |
| 784 | "core/java/android/os/HwParcel.java", |
| 785 | "core/java/android/os/IHwBinder.java", |
| 786 | "core/java/android/os/IHwInterface.java", |
| 787 | "core/java/android/os/DeadObjectException.java", |
| 788 | "core/java/android/os/DeadSystemException.java", |
Nirav Atre | 9850dd9 | 2018-07-24 17:03:44 -0700 | [diff] [blame] | 789 | "core/java/android/os/NativeHandle.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 790 | "core/java/android/os/RemoteException.java", |
| 791 | "core/java/android/util/AndroidException.java", |
| 792 | ], |
| 793 | |
| 794 | dxflags: ["--core-library"], |
| 795 | installable: false, |
| 796 | } |
Nan Zhang | 2db709d | 2017-11-08 20:48:46 -0800 | [diff] [blame] | 797 | |
| 798 | python_defaults { |
| 799 | name: "base_default", |
| 800 | version: { |
| 801 | py2: { |
| 802 | enabled: true, |
| 803 | embedded_launcher: true, |
| 804 | }, |
| 805 | py3: { |
| 806 | enabled: false, |
| 807 | embedded_launcher: false, |
| 808 | }, |
| 809 | }, |
| 810 | } |
| 811 | |
| 812 | python_binary_host { |
| 813 | name: "fontchain_linter", |
| 814 | defaults: ["base_default"], |
| 815 | main: "tools/fonts/fontchain_linter.py", |
| 816 | srcs: [ |
| 817 | "tools/fonts/fontchain_linter.py", |
| 818 | ], |
| 819 | libs: [ |
| 820 | "fontTools", |
| 821 | ], |
| 822 | } |
Nan Zhang | 172875b | 2018-02-27 11:24:03 -0800 | [diff] [blame] | 823 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 824 | // TODO: Don't rely on this list by switching package.html into package-info.java |
Nan Zhang | 172875b | 2018-02-27 11:24:03 -0800 | [diff] [blame] | 825 | frameworks_base_subdirs = [ |
| 826 | "core/java", |
| 827 | "graphics/java", |
| 828 | "location/java", |
| 829 | "media/java", |
| 830 | "media/mca/effect/java", |
| 831 | "media/mca/filterfw/java", |
| 832 | "media/mca/filterpacks/java", |
| 833 | "drm/java", |
Amit Mahajan | 6237a6b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 834 | "mms/java", |
Nan Zhang | 172875b | 2018-02-27 11:24:03 -0800 | [diff] [blame] | 835 | "opengl/java", |
| 836 | "sax/java", |
| 837 | "telecomm/java", |
Amit Mahajan | d355153 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 838 | "telephony/common", |
Nan Zhang | 172875b | 2018-02-27 11:24:03 -0800 | [diff] [blame] | 839 | "telephony/java", |
| 840 | "wifi/java", |
| 841 | "lowpan/java", |
| 842 | "keystore/java", |
| 843 | "rs/java", |
| 844 | ] |
| 845 | |
Paul Duffin | 0440e1f | 2019-02-11 16:13:25 +0000 | [diff] [blame] | 846 | // Make the api/current.txt file available for use by modules in other |
| 847 | // directories. |
| 848 | filegroup { |
| 849 | name: "frameworks-base-api-current.txt", |
| 850 | srcs: [ |
| 851 | "api/current.txt", |
| 852 | ], |
| 853 | } |
| 854 | |
Paul Duffin | cd35de3 | 2019-05-30 15:12:47 +0100 | [diff] [blame] | 855 | // Make the api/system-current.txt file available for use by modules in other |
| 856 | // directories. |
| 857 | filegroup { |
| 858 | name: "frameworks-base-api-system-current.txt", |
| 859 | srcs: [ |
| 860 | "api/system-current.txt", |
| 861 | ], |
| 862 | } |
| 863 | |
| 864 | // Make the api/system-removed.txt file available for use by modules in other |
| 865 | // directories. |
| 866 | filegroup { |
| 867 | name: "frameworks-base-api-system-removed.txt", |
| 868 | srcs: [ |
| 869 | "api/system-removed.txt", |
| 870 | ], |
| 871 | } |
| 872 | |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 873 | framework_docs_only_args = " -android -manifest $(location core/res/AndroidManifest.xml) " + |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 874 | "-werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 " + |
| 875 | "-overview $(location core/java/overview.html) " + |
| 876 | // Federate Support Library references against local API file. |
| 877 | "-federate SupportLib https://developer.android.com " + |
| 878 | "-federationapi SupportLib $(location :current-support-api) " |
Nan Zhang | 172875b | 2018-02-27 11:24:03 -0800 | [diff] [blame] | 879 | |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 880 | framework_docs_only_libs = [ |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 881 | "voip-common", |
| 882 | "android.test.mock", |
| 883 | "android-support-annotations", |
| 884 | "android-support-compat", |
| 885 | "android-support-core-ui", |
| 886 | "android-support-core-utils", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 887 | "android-support-design", |
| 888 | "android-support-dynamic-animation", |
| 889 | "android-support-exifinterface", |
| 890 | "android-support-fragment", |
| 891 | "android-support-media-compat", |
| 892 | "android-support-percent", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 893 | "android-support-transition", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 894 | "android-support-v7-cardview", |
| 895 | "android-support-v7-gridlayout", |
| 896 | "android-support-v7-mediarouter", |
| 897 | "android-support-v7-palette", |
| 898 | "android-support-v7-preference", |
| 899 | "android-support-v13", |
| 900 | "android-support-v14-preference", |
| 901 | "android-support-v17-leanback", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 902 | "android-support-vectordrawable", |
| 903 | "android-support-animatedvectordrawable", |
| 904 | "android-support-v7-appcompat", |
| 905 | "android-support-v7-recyclerview", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 906 | "android-support-v8-renderscript", |
| 907 | "android-support-multidex", |
| 908 | "android-support-multidex-instrumentation", |
| 909 | ] |
| 910 | |
| 911 | metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " + |
| 912 | "--hide-package com.android.okhttp " + |
| 913 | "--hide-package com.android.org.conscrypt --hide-package com.android.server " + |
Adrian Roos | c6e2fc8 | 2018-12-12 15:08:44 +0100 | [diff] [blame] | 914 | "--error UnhiddenSystemApi " + |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 915 | "--hide RequiresPermission " + |
| 916 | "--hide MissingPermission --hide BroadcastBehavior " + |
| 917 | "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " + |
Tobias Thierer | 8f55941 | 2019-05-22 20:17:49 +0100 | [diff] [blame] | 918 | "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " |
| 919 | |
| 920 | // http://b/129765390 Rewrite links to "platform" or "technotes" folders |
| 921 | // which are siblings (and thus outside of) {@docRoot}. |
| 922 | // |
| 923 | // We have to escape \ as \\ and $ as $$ here because they get resolved by |
| 924 | // different layers of the build tooling. The arguments are wrapped in '' so |
| 925 | // that the shell doesn't add yet another level of escaping. |
| 926 | metalava_framework_docs_args += " --replace-documentation " + |
| 927 | // packages whose descendants to apply replacement to (all packages from |
| 928 | // libcore/ojluni/src/main/java that contribute to documentation). |
| 929 | "com.sun:java:javax:jdk.net:sun " + |
| 930 | // regex of the string to replace |
| 931 | "'(<a\\s+href\\s?=[\\*\\s]*\")(?:(?:\\{@docRoot\\}/\\.\\./)|(?:(?:\\.\\./)+))((?:platform|technotes).+)\">' " + |
| 932 | // replacement (with $1, $2 backreferences to the regex groups) |
| 933 | "'$$1https://docs.oracle.com/javase/8/docs/$$2\">' " |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 934 | |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 935 | packages_to_document = [ |
| 936 | "android", |
Jiyong Park | b1d2701 | 2019-09-17 14:51:28 +0900 | [diff] [blame] | 937 | "dalvik", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 938 | "java", |
| 939 | "javax", |
Jiyong Park | b1d2701 | 2019-09-17 14:51:28 +0900 | [diff] [blame] | 940 | "junit", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 941 | "org.apache.http", |
| 942 | "org.json", |
| 943 | "org.w3c.dom", |
| 944 | "org.xml.sax", |
| 945 | "org.xmlpull", |
| 946 | ] |
| 947 | |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 948 | stubs_defaults { |
| 949 | name: "framework-doc-stubs-default", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 950 | srcs: [ |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 951 | ":framework-non-updatable-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 952 | "core/java/**/*.logtags", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 953 | "test-base/src/**/*.java", |
| 954 | ":opt-telephony-srcs", |
| 955 | ":opt-net-voip-srcs", |
Neil Fuller | 3b1b703 | 2019-02-26 12:00:38 +0000 | [diff] [blame] | 956 | ":core_public_api_files", |
Jiyong Park | d2411f7 | 2019-08-20 20:48:47 +0900 | [diff] [blame] | 957 | ":updatable-media-srcs", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 958 | "test-mock/src/**/*.java", |
| 959 | "test-runner/src/**/*.java", |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 960 | ":jobscheduler-framework-source", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 961 | ], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 962 | libs: framework_docs_only_libs, |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 963 | local_sourcepaths: frameworks_base_subdirs, |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 964 | create_doc_stubs: true, |
| 965 | annotations_enabled: true, |
| 966 | api_levels_annotations_enabled: true, |
| 967 | api_levels_annotations_dirs: [ |
| 968 | "sdk-dir", |
| 969 | "api-versions-jars-dir", |
| 970 | ], |
Jeff Gaston | 1b51142 | 2019-09-20 14:37:00 -0400 | [diff] [blame] | 971 | previous_api: ":last-released-public-api-for-metalava-annotations", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 972 | merge_annotations_dirs: [ |
| 973 | "metalava-manual", |
Pete Gillin | ff97819 | 2018-09-17 15:45:33 +0100 | [diff] [blame] | 974 | "ojluni-annotated-sdk-stubs", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 975 | ], |
| 976 | } |
| 977 | |
| 978 | doc_defaults { |
| 979 | name: "framework-docs-default", |
Nan Zhang | b03396e | 2018-10-11 18:06:10 -0700 | [diff] [blame] | 980 | libs: framework_docs_only_libs + |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 981 | ["stub-annotations"], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 982 | html_dirs: [ |
| 983 | "docs/html", |
| 984 | ], |
| 985 | knowntags: [ |
| 986 | "docs/knowntags.txt", |
| 987 | ":known-oj-tags", |
| 988 | ], |
| 989 | custom_template: "droiddoc-templates-sdk", |
| 990 | resourcesdir: "docs/html/reference/images/", |
| 991 | resourcesoutdir: "reference/android/images/", |
| 992 | hdf: [ |
| 993 | "dac true", |
| 994 | "sdk.codename O", |
| 995 | "sdk.preview.version 1", |
| 996 | "sdk.version 7.0", |
| 997 | "sdk.rel.id 1", |
| 998 | "sdk.preview 0", |
| 999 | ], |
| 1000 | arg_files: [ |
| 1001 | "core/res/AndroidManifest.xml", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1002 | "core/java/overview.html", |
| 1003 | ":current-support-api", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1004 | ], |
| 1005 | create_stubs: false, |
| 1006 | } |
| 1007 | |
Tiem Song | 730c19b | 2019-08-26 11:27:27 -0700 | [diff] [blame] | 1008 | doc_defaults { |
| 1009 | name: "framework-dokka-docs-default", |
| 1010 | create_stubs: false, |
| 1011 | } |
| 1012 | |
Nan Zhang | 894c9ec | 2018-09-10 18:58:39 -0700 | [diff] [blame] | 1013 | stubs_defaults { |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1014 | name: "metalava-api-stubs-default", |
| 1015 | srcs: [ |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 1016 | ":framework-non-updatable-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 1017 | "core/java/**/*.logtags", |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1018 | ":opt-telephony-srcs", |
| 1019 | ":opt-net-voip-srcs", |
Neil Fuller | 3b1b703 | 2019-02-26 12:00:38 +0000 | [diff] [blame] | 1020 | ":core_public_api_files", |
Jiyong Park | d2411f7 | 2019-08-20 20:48:47 +0900 | [diff] [blame] | 1021 | ":updatable-media-srcs", |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 1022 | ":jobscheduler-framework-source", |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1023 | ], |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 1024 | libs: ["framework-internal-utils"], |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1025 | local_sourcepaths: frameworks_base_subdirs, |
| 1026 | installable: false, |
Nan Zhang | 894c9ec | 2018-09-10 18:58:39 -0700 | [diff] [blame] | 1027 | annotations_enabled: true, |
Jeff Gaston | 1b51142 | 2019-09-20 14:37:00 -0400 | [diff] [blame] | 1028 | previous_api: ":last-released-public-api-for-metalava-annotations", |
Nan Zhang | 894c9ec | 2018-09-10 18:58:39 -0700 | [diff] [blame] | 1029 | merge_annotations_dirs: [ |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1030 | "metalava-manual", |
Pete Gillin | ff97819 | 2018-09-17 15:45:33 +0100 | [diff] [blame] | 1031 | "ojluni-annotated-sdk-stubs", |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1032 | ], |
Nan Zhang | 91cc766 | 2018-09-18 10:46:10 -0700 | [diff] [blame] | 1033 | api_levels_annotations_enabled: true, |
| 1034 | api_levels_annotations_dirs: [ |
| 1035 | "sdk-dir", |
| 1036 | "api-versions-jars-dir", |
| 1037 | ], |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 1038 | sdk_version: "core_platform", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 1039 | filter_packages: packages_to_document, |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1040 | } |
| 1041 | |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1042 | droidstubs { |
| 1043 | name: "framework-doc-stubs", |
| 1044 | defaults: ["framework-doc-stubs-default"], |
| 1045 | arg_files: [ |
| 1046 | "core/res/AndroidManifest.xml", |
| 1047 | ], |
| 1048 | args: metalava_framework_docs_args, |
| 1049 | } |
| 1050 | |
| 1051 | droidstubs { |
| 1052 | name: "framework-doc-system-stubs", |
| 1053 | defaults: ["framework-doc-stubs-default"], |
| 1054 | arg_files: [ |
| 1055 | "core/res/AndroidManifest.xml", |
| 1056 | ], |
| 1057 | args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi ", |
| 1058 | } |
| 1059 | |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1060 | droiddoc { |
| 1061 | name: "doc-comment-check-docs", |
| 1062 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1063 | srcs: [ |
| 1064 | ":framework-doc-stubs", |
| 1065 | ], |
| 1066 | args: framework_docs_only_args + " -referenceonly -parsecomments", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1067 | installable: false, |
| 1068 | } |
| 1069 | |
| 1070 | droiddoc { |
| 1071 | name: "offline-sdk-docs", |
| 1072 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1073 | srcs: [ |
| 1074 | ":framework-doc-stubs", |
| 1075 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1076 | hdf: [ |
| 1077 | "android.whichdoc offline", |
| 1078 | ], |
| 1079 | proofread_file: "offline-sdk-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1080 | args: framework_docs_only_args + " -offlinemode -title \"Android SDK\"", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1081 | write_sdk_values: true, |
| 1082 | static_doc_index_redirect: "docs/docs-preview-index.html", |
| 1083 | } |
| 1084 | |
| 1085 | droiddoc { |
Nan Zhang | 963612b | 2018-09-21 17:16:49 -0700 | [diff] [blame] | 1086 | // Please sync with android-api-council@ before making any changes for the name property below. |
| 1087 | // Since there's cron jobs that fetch offline-sdk-referenceonly-docs-docs.zip periodically. |
| 1088 | // See b/116221385 for reference. |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1089 | name: "offline-sdk-referenceonly-docs", |
| 1090 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1091 | srcs: [ |
| 1092 | ":framework-doc-stubs", |
| 1093 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1094 | hdf: [ |
| 1095 | "android.whichdoc offline", |
| 1096 | ], |
| 1097 | proofread_file: "offline-sdk-referenceonly-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1098 | args: framework_docs_only_args + " -offlinemode -title \"Android SDK\" -referenceonly", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1099 | write_sdk_values: true, |
| 1100 | static_doc_index_redirect: "docs/docs-documentation-redirect.html", |
| 1101 | static_doc_properties: "docs/source.properties", |
| 1102 | } |
| 1103 | |
| 1104 | droiddoc { |
Nan Zhang | 963612b | 2018-09-21 17:16:49 -0700 | [diff] [blame] | 1105 | // Please sync with android-api-council@ before making any changes for the name property below. |
| 1106 | // Since there's cron jobs that fetch offline-system-sdk-referenceonly-docs-docs.zip periodically. |
| 1107 | // See b/116221385 for reference. |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1108 | name: "offline-system-sdk-referenceonly-docs", |
| 1109 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1110 | srcs: [ |
| 1111 | ":framework-doc-system-stubs", |
| 1112 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1113 | hdf: [ |
| 1114 | "android.whichdoc offline", |
| 1115 | ], |
| 1116 | proofread_file: "offline-system-sdk-referenceonly-docs-proofrerad.txt", |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1117 | args: framework_docs_only_args + " -hide 101 -hide 104 -hide 108" + |
| 1118 | " -offlinemode -title \"Android System SDK\" -referenceonly", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1119 | write_sdk_values: true, |
| 1120 | static_doc_index_redirect: "docs/docs-documentation-redirect.html", |
| 1121 | static_doc_properties: "docs/source.properties", |
| 1122 | } |
| 1123 | |
| 1124 | droiddoc { |
| 1125 | name: "online-sdk-docs", |
| 1126 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1127 | srcs: [ |
| 1128 | ":framework-doc-stubs", |
| 1129 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1130 | hdf: [ |
| 1131 | "android.whichdoc online", |
| 1132 | "android.hasSamples true", |
| 1133 | ], |
| 1134 | proofread_file: "online-sdk-docs-proofrerad.txt", |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1135 | args: framework_docs_only_args + |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1136 | " -toroot / -samplegroup Admin " + |
| 1137 | " -samplegroup Background " + |
| 1138 | " -samplegroup Connectivity " + |
| 1139 | " -samplegroup Content " + |
| 1140 | " -samplegroup Input " + |
| 1141 | " -samplegroup Media " + |
| 1142 | " -samplegroup Notification " + |
| 1143 | " -samplegroup RenderScript " + |
| 1144 | " -samplegroup Security " + |
| 1145 | " -samplegroup Sensors " + |
| 1146 | " -samplegroup System " + |
| 1147 | " -samplegroup Testing " + |
| 1148 | " -samplegroup UI " + |
| 1149 | " -samplegroup Views " + |
| 1150 | " -samplegroup Wearable -samplesdir development/samples/browseable ", |
| 1151 | } |
| 1152 | |
| 1153 | droiddoc { |
| 1154 | name: "online-system-api-sdk-docs", |
| 1155 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1156 | srcs: [ |
| 1157 | ":framework-doc-system-stubs", |
| 1158 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1159 | hdf: [ |
| 1160 | "android.whichdoc online", |
| 1161 | "android.hasSamples true", |
| 1162 | ], |
| 1163 | proofread_file: "online-system-api-sdk-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1164 | args: framework_docs_only_args + |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1165 | " -referenceonly " + |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1166 | " -title \"Android SDK - Including system APIs.\" " + |
| 1167 | " -hide 101 " + |
| 1168 | " -hide 104 " + |
| 1169 | " -hide 108 " + |
| 1170 | " -toroot / -samplegroup Admin " + |
| 1171 | " -samplegroup Background " + |
| 1172 | " -samplegroup Connectivity " + |
| 1173 | " -samplegroup Content " + |
| 1174 | " -samplegroup Input " + |
| 1175 | " -samplegroup Media " + |
| 1176 | " -samplegroup Notification " + |
| 1177 | " -samplegroup RenderScript " + |
| 1178 | " -samplegroup Security " + |
| 1179 | " -samplegroup Sensors " + |
| 1180 | " -samplegroup System " + |
| 1181 | " -samplegroup Testing " + |
| 1182 | " -samplegroup UI " + |
| 1183 | " -samplegroup Views " + |
| 1184 | " -samplegroup Wearable -samplesdir development/samples/browseable ", |
| 1185 | installable: false, |
| 1186 | } |
| 1187 | |
| 1188 | droiddoc { |
Tiem Song | 730c19b | 2019-08-26 11:27:27 -0700 | [diff] [blame] | 1189 | name: "ds-docs-java", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1190 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1191 | srcs: [ |
| 1192 | ":framework-doc-stubs", |
| 1193 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1194 | hdf: [ |
| 1195 | "android.whichdoc online", |
| 1196 | "android.hasSamples true", |
| 1197 | ], |
| 1198 | proofread_file: "ds-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1199 | args: framework_docs_only_args + |
Dirk Dougherty | 14b05b1 | 2019-02-22 20:36:41 -0800 | [diff] [blame] | 1200 | " -toroot / -yamlV2 -metalavaApiSince -samplegroup Admin " + |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1201 | " -samplegroup Background " + |
| 1202 | " -samplegroup Connectivity " + |
| 1203 | " -samplegroup Content " + |
| 1204 | " -samplegroup Input " + |
| 1205 | " -samplegroup Media " + |
| 1206 | " -samplegroup Notification " + |
| 1207 | " -samplegroup RenderScript " + |
| 1208 | " -samplegroup Security " + |
| 1209 | " -samplegroup Sensors " + |
| 1210 | " -samplegroup System " + |
| 1211 | " -samplegroup Testing " + |
| 1212 | " -samplegroup UI " + |
| 1213 | " -samplegroup Views " + |
| 1214 | " -samplegroup Wearable -devsite -samplesdir development/samples/browseable ", |
| 1215 | } |
| 1216 | |
| 1217 | droiddoc { |
Tiem Song | 730c19b | 2019-08-26 11:27:27 -0700 | [diff] [blame] | 1218 | name: "ds-docs-kt", |
| 1219 | defaults: ["framework-dokka-docs-default"], |
| 1220 | srcs: [ |
| 1221 | ":framework-doc-stubs", |
| 1222 | ], |
| 1223 | args: "-noJdkLink -links https://kotlinlang.org/api/latest/jvm/stdlib/^external/dokka/package-list " + |
| 1224 | "-noStdlibLink", |
| 1225 | proofread_file: "ds-dokka-proofread.txt", |
| 1226 | dokka_enabled: true, |
| 1227 | } |
| 1228 | |
| 1229 | java_genrule { |
| 1230 | name: "ds-docs", |
| 1231 | tools: [ |
| 1232 | "zip2zip", |
| 1233 | "merge_zips", |
| 1234 | ], |
| 1235 | srcs: [ |
| 1236 | ":ds-docs-java{.docs.zip}", |
| 1237 | ":ds-docs-kt{.docs.zip}", |
| 1238 | ], |
| 1239 | out: ["ds-docs.zip"], |
| 1240 | dist: { |
| 1241 | targets: ["docs"], |
| 1242 | }, |
| 1243 | cmd: "$(location zip2zip) -i $(location :ds-docs-kt{.docs.zip}) -o $(genDir)/ds-docs-kt-moved.zip **/*:en/reference/kotlin && " + |
| 1244 | "$(location merge_zips) $(out) $(location :ds-docs-java{.docs.zip}) $(genDir)/ds-docs-kt-moved.zip", |
| 1245 | } |
| 1246 | |
| 1247 | java_genrule { |
| 1248 | name: "ds-docs-switched", |
| 1249 | tools: [ |
| 1250 | "switcher4", |
| 1251 | "soong_zip", |
| 1252 | ], |
| 1253 | srcs: [ |
| 1254 | ":ds-docs-java{.docs.zip}", |
| 1255 | ":ds-docs-kt{.docs.zip}", |
| 1256 | ], |
| 1257 | out: ["ds-docs-switched.zip"], |
| 1258 | dist: { |
| 1259 | targets: ["docs"], |
| 1260 | }, |
| 1261 | cmd: "unzip $(location :ds-docs-java{.docs.zip}) -d $(genDir) && " + |
| 1262 | "unzip $(location :ds-docs-kt{.docs.zip}) -d $(genDir)/en/reference/kotlin && " + |
| 1263 | "SWITCHER=$$(cd $$(dirname $(location switcher4)) && pwd)/$$(basename $(location switcher4)) && " + |
| 1264 | "(cd $(genDir)/en/reference && $$SWITCHER --work platform) && " + |
| 1265 | "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)", |
| 1266 | } |
| 1267 | |
| 1268 | |
| 1269 | droiddoc { |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1270 | name: "ds-static-docs", |
| 1271 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1272 | srcs: [ |
| 1273 | ":framework-doc-stubs", |
| 1274 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1275 | hdf: [ |
| 1276 | "android.whichdoc online", |
| 1277 | ], |
| 1278 | proofread_file: "ds-static-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1279 | args: framework_docs_only_args + |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1280 | " -staticonly " + |
| 1281 | " -toroot / " + |
| 1282 | " -devsite " + |
| 1283 | " -ignoreJdLinks ", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1284 | } |
| 1285 | |
| 1286 | droiddoc { |
| 1287 | name: "ds-ref-navtree-docs", |
| 1288 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1289 | srcs: [ |
| 1290 | ":framework-doc-stubs", |
| 1291 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1292 | hdf: [ |
| 1293 | "android.whichdoc online", |
| 1294 | ], |
| 1295 | proofread_file: "ds-ref-navtree-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1296 | args: framework_docs_only_args + |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1297 | " -toroot / " + |
| 1298 | " -atLinksNavtree " + |
| 1299 | " -navtreeonly ", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1300 | } |
| 1301 | |
| 1302 | droiddoc { |
| 1303 | name: "online-sdk-dev-docs", |
| 1304 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1305 | srcs: [ |
| 1306 | ":framework-doc-stubs", |
| 1307 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1308 | hdf: [ |
| 1309 | "android.whichdoc online", |
| 1310 | "android.hasSamples true", |
| 1311 | ], |
| 1312 | proofread_file: "online-sdk-dev-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1313 | args: framework_docs_only_args + |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1314 | " -toroot / -samplegroup Admin " + |
| 1315 | " -samplegroup Background " + |
| 1316 | " -samplegroup Connectivity " + |
| 1317 | " -samplegroup Content " + |
| 1318 | " -samplegroup Input " + |
| 1319 | " -samplegroup Media " + |
| 1320 | " -samplegroup Notification " + |
| 1321 | " -samplegroup RenderScript " + |
| 1322 | " -samplegroup Security " + |
| 1323 | " -samplegroup Sensors " + |
| 1324 | " -samplegroup System " + |
| 1325 | " -samplegroup Testing " + |
| 1326 | " -samplegroup UI " + |
| 1327 | " -samplegroup Views " + |
| 1328 | " -samplegroup Wearable -samplesdir development/samples/browseable ", |
| 1329 | } |
| 1330 | |
| 1331 | droiddoc { |
| 1332 | name: "hidden-docs", |
| 1333 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1334 | srcs: [ |
| 1335 | ":framework-doc-stubs", |
| 1336 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1337 | proofread_file: "hidden-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1338 | args: framework_docs_only_args + |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1339 | " -referenceonly " + |
| 1340 | " -title \"Android SDK - Including hidden APIs.\"", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1341 | } |
| 1342 | |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1343 | droidstubs { |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 1344 | name: "hwbinder-stubs-docs", |
| 1345 | srcs: [ |
| 1346 | "core/java/android/os/HidlSupport.java", |
| 1347 | "core/java/android/annotation/IntDef.java", |
| 1348 | "core/java/android/annotation/NonNull.java", |
| 1349 | "core/java/android/annotation/SystemApi.java", |
| 1350 | "core/java/android/os/HwBinder.java", |
| 1351 | "core/java/android/os/HwBlob.java", |
| 1352 | "core/java/android/os/HwParcel.java", |
| 1353 | "core/java/android/os/IHwBinder.java", |
| 1354 | "core/java/android/os/IHwInterface.java", |
| 1355 | "core/java/android/os/DeadObjectException.java", |
| 1356 | "core/java/android/os/DeadSystemException.java", |
Nirav Atre | 9850dd9 | 2018-07-24 17:03:44 -0700 | [diff] [blame] | 1357 | "core/java/android/os/NativeHandle.java", |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 1358 | "core/java/android/os/RemoteException.java", |
| 1359 | "core/java/android/util/AndroidException.java", |
| 1360 | ], |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 1361 | installable: false, |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 1362 | sdk_version: "core_platform", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1363 | annotations_enabled: true, |
Jeff Gaston | 1b51142 | 2019-09-20 14:37:00 -0400 | [diff] [blame] | 1364 | previous_api: ":last-released-public-api-for-metalava-annotations", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1365 | merge_annotations_dirs: [ |
| 1366 | "metalava-manual", |
Pete Gillin | ff97819 | 2018-09-17 15:45:33 +0100 | [diff] [blame] | 1367 | "ojluni-annotated-sdk-stubs", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1368 | ], |
| 1369 | args: " --show-annotation android.annotation.SystemApi", |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 1370 | } |
| 1371 | |
| 1372 | java_library_static { |
| 1373 | name: "hwbinder.stubs", |
| 1374 | sdk_version: "core_current", |
| 1375 | srcs: [ |
| 1376 | ":hwbinder-stubs-docs", |
| 1377 | ], |
| 1378 | } |
Nan Zhang | a0f91af | 2018-04-09 17:41:51 -0700 | [diff] [blame] | 1379 | |
Nan Zhang | 894c9ec | 2018-09-10 18:58:39 -0700 | [diff] [blame] | 1380 | droidstubs { |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1381 | name: "hiddenapi-lists-docs", |
| 1382 | defaults: ["metalava-api-stubs-default"], |
David Brazdil | 4f9d4d5 | 2018-04-26 14:05:13 +0100 | [diff] [blame] | 1383 | arg_files: [ |
| 1384 | "core/res/AndroidManifest.xml", |
David Brazdil | 4f9d4d5 | 2018-04-26 14:05:13 +0100 | [diff] [blame] | 1385 | ], |
David Brazdil | 6f6a126 | 2018-05-31 13:58:41 +0100 | [diff] [blame] | 1386 | dex_api_filename: "public-dex.txt", |
David Brazdil | 4f9d4d5 | 2018-04-26 14:05:13 +0100 | [diff] [blame] | 1387 | private_dex_api_filename: "private-dex.txt", |
| 1388 | removed_dex_api_filename: "removed-dex.txt", |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1389 | args: metalava_framework_docs_args + |
| 1390 | " --show-unannotated " + |
| 1391 | " --show-annotation android.annotation.SystemApi " + |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1392 | " --show-annotation android.annotation.TestApi ", |
David Brazdil | 4f9d4d5 | 2018-04-26 14:05:13 +0100 | [diff] [blame] | 1393 | } |
| 1394 | |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1395 | droidstubs { |
Mathew Inwood | 0a6a273 | 2018-06-22 15:30:02 +0100 | [diff] [blame] | 1396 | name: "hiddenapi-mappings", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1397 | defaults: ["metalava-api-stubs-default"], |
Jiyong Park | 68020f8 | 2019-08-23 20:36:58 +0900 | [diff] [blame] | 1398 | srcs: [ |
Paul Duffin | a0cb538 | 2018-10-31 10:34:51 +0000 | [diff] [blame] | 1399 | ":non_openjdk_java_files", |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 1400 | ":openjdk_java_files", |
Andrei Onea | 6dd843a | 2019-03-13 15:27:23 +0000 | [diff] [blame] | 1401 | ":opt-telephony-common-srcs", |
Paul Duffin | a0cb538 | 2018-10-31 10:34:51 +0000 | [diff] [blame] | 1402 | ], |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 1403 | |
Mathew Inwood | 0a6a273 | 2018-06-22 15:30:02 +0100 | [diff] [blame] | 1404 | arg_files: [ |
| 1405 | "core/res/AndroidManifest.xml", |
Mathew Inwood | 0a6a273 | 2018-06-22 15:30:02 +0100 | [diff] [blame] | 1406 | ], |
| 1407 | dex_mapping_filename: "dex-mapping.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1408 | args: metalava_framework_docs_args + |
Adrian Roos | 9bdbd30 | 2018-12-07 13:53:40 +0100 | [diff] [blame] | 1409 | " --hide ReferencesHidden " + |
Adrian Roos | c6e2fc8 | 2018-12-12 15:08:44 +0100 | [diff] [blame] | 1410 | " --hide UnhiddenSystemApi " + |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1411 | " --show-unannotated " + |
| 1412 | " --show-annotation android.annotation.SystemApi " + |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1413 | " --show-annotation android.annotation.TestApi ", |
Mathew Inwood | 0a6a273 | 2018-06-22 15:30:02 +0100 | [diff] [blame] | 1414 | } |
| 1415 | |
Nan Zhang | a0f91af | 2018-04-09 17:41:51 -0700 | [diff] [blame] | 1416 | filegroup { |
| 1417 | name: "apache-http-stubs-sources", |
| 1418 | srcs: [ |
| 1419 | "core/java/org/apache/http/conn/ConnectTimeoutException.java", |
| 1420 | "core/java/org/apache/http/conn/scheme/HostNameResolver.java", |
| 1421 | "core/java/org/apache/http/conn/scheme/LayeredSocketFactory.java", |
| 1422 | "core/java/org/apache/http/conn/scheme/SocketFactory.java", |
| 1423 | "core/java/org/apache/http/conn/ssl/AbstractVerifier.java", |
| 1424 | "core/java/org/apache/http/conn/ssl/AllowAllHostnameVerifier.java", |
| 1425 | "core/java/org/apache/http/conn/ssl/AndroidDistinguishedNameParser.java", |
| 1426 | "core/java/org/apache/http/conn/ssl/BrowserCompatHostnameVerifier.java", |
| 1427 | "core/java/org/apache/http/conn/ssl/SSLSocketFactory.java", |
| 1428 | "core/java/org/apache/http/conn/ssl/StrictHostnameVerifier.java", |
| 1429 | "core/java/org/apache/http/conn/ssl/X509HostnameVerifier.java", |
| 1430 | "core/java/org/apache/http/params/CoreConnectionPNames.java", |
| 1431 | "core/java/org/apache/http/params/HttpConnectionParams.java", |
| 1432 | "core/java/org/apache/http/params/HttpParams.java", |
Nan Zhang | a0f91af | 2018-04-09 17:41:51 -0700 | [diff] [blame] | 1433 | "core/java/android/net/http/SslCertificate.java", |
| 1434 | "core/java/android/net/http/SslError.java", |
| 1435 | "core/java/com/android/internal/util/HexDump.java", |
| 1436 | ], |
| 1437 | } |
Nan Zhang | 4212eb1 | 2018-04-25 17:23:33 -0700 | [diff] [blame] | 1438 | |
Nan Zhang | 894c9ec | 2018-09-10 18:58:39 -0700 | [diff] [blame] | 1439 | droidstubs { |
Nan Zhang | 4d3f501 | 2018-08-07 13:40:33 -0700 | [diff] [blame] | 1440 | name: "api-stubs-docs", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1441 | defaults: ["metalava-api-stubs-default"], |
Nan Zhang | 4212eb1 | 2018-04-25 17:23:33 -0700 | [diff] [blame] | 1442 | api_filename: "public_api.txt", |
| 1443 | private_api_filename: "private.txt", |
| 1444 | removed_api_filename: "removed.txt", |
| 1445 | arg_files: [ |
| 1446 | "core/res/AndroidManifest.xml", |
| 1447 | ], |
| 1448 | args: metalava_framework_docs_args, |
Nan Zhang | e561260 | 2018-08-16 16:16:00 -0700 | [diff] [blame] | 1449 | check_api: { |
| 1450 | current: { |
| 1451 | api_file: "api/current.txt", |
| 1452 | removed_api_file: "api/removed.txt", |
| 1453 | }, |
Nan Zhang | cd060d9 | 2018-08-20 20:34:26 -0700 | [diff] [blame] | 1454 | last_released: { |
| 1455 | api_file: ":last-released-public-api", |
| 1456 | removed_api_file: "api/removed.txt", |
Adrian Roos | 9597f8c | 2019-08-12 17:47:39 +0200 | [diff] [blame] | 1457 | baseline_file: ":public-api-incompatibilities-with-last-released", |
Nan Zhang | cd060d9 | 2018-08-20 20:34:26 -0700 | [diff] [blame] | 1458 | }, |
Nan Zhang | e561260 | 2018-08-16 16:16:00 -0700 | [diff] [blame] | 1459 | }, |
Nan Zhang | 81f29f5 | 2018-09-17 14:33:08 -0700 | [diff] [blame] | 1460 | jdiff_enabled: true, |
Nan Zhang | 4212eb1 | 2018-04-25 17:23:33 -0700 | [diff] [blame] | 1461 | } |
| 1462 | |
Nan Zhang | 894c9ec | 2018-09-10 18:58:39 -0700 | [diff] [blame] | 1463 | droidstubs { |
Nan Zhang | 4d3f501 | 2018-08-07 13:40:33 -0700 | [diff] [blame] | 1464 | name: "system-api-stubs-docs", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1465 | defaults: ["metalava-api-stubs-default"], |
Nan Zhang | 4d3f501 | 2018-08-07 13:40:33 -0700 | [diff] [blame] | 1466 | api_tag_name: "SYSTEM", |
Nan Zhang | 4212eb1 | 2018-04-25 17:23:33 -0700 | [diff] [blame] | 1467 | api_filename: "system-api.txt", |
| 1468 | private_api_filename: "system-private.txt", |
| 1469 | private_dex_api_filename: "system-private-dex.txt", |
| 1470 | removed_api_filename: "system-removed.txt", |
| 1471 | arg_files: [ |
| 1472 | "core/res/AndroidManifest.xml", |
| 1473 | ], |
| 1474 | args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi", |
Nan Zhang | e561260 | 2018-08-16 16:16:00 -0700 | [diff] [blame] | 1475 | check_api: { |
| 1476 | current: { |
| 1477 | api_file: "api/system-current.txt", |
| 1478 | removed_api_file: "api/system-removed.txt", |
| 1479 | }, |
Nan Zhang | cd060d9 | 2018-08-20 20:34:26 -0700 | [diff] [blame] | 1480 | last_released: { |
| 1481 | api_file: ":last-released-system-api", |
| 1482 | removed_api_file: "api/system-removed.txt", |
Adrian Roos | 9597f8c | 2019-08-12 17:47:39 +0200 | [diff] [blame] | 1483 | baseline_file: ":system-api-incompatibilities-with-last-released" |
Nan Zhang | cd060d9 | 2018-08-20 20:34:26 -0700 | [diff] [blame] | 1484 | }, |
Nan Zhang | e561260 | 2018-08-16 16:16:00 -0700 | [diff] [blame] | 1485 | }, |
Nan Zhang | 81f29f5 | 2018-09-17 14:33:08 -0700 | [diff] [blame] | 1486 | jdiff_enabled: true, |
Nan Zhang | 4212eb1 | 2018-04-25 17:23:33 -0700 | [diff] [blame] | 1487 | } |
| 1488 | |
Nan Zhang | 894c9ec | 2018-09-10 18:58:39 -0700 | [diff] [blame] | 1489 | droidstubs { |
Nan Zhang | 4d3f501 | 2018-08-07 13:40:33 -0700 | [diff] [blame] | 1490 | name: "test-api-stubs-docs", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1491 | defaults: ["metalava-api-stubs-default"], |
Nan Zhang | 4d3f501 | 2018-08-07 13:40:33 -0700 | [diff] [blame] | 1492 | api_tag_name: "TEST", |
Nan Zhang | 4212eb1 | 2018-04-25 17:23:33 -0700 | [diff] [blame] | 1493 | api_filename: "test-api.txt", |
| 1494 | removed_api_filename: "test-removed.txt", |
| 1495 | arg_files: [ |
| 1496 | "core/res/AndroidManifest.xml", |
| 1497 | ], |
| 1498 | args: metalava_framework_docs_args + " --show-annotation android.annotation.TestApi", |
Nan Zhang | e561260 | 2018-08-16 16:16:00 -0700 | [diff] [blame] | 1499 | check_api: { |
| 1500 | current: { |
| 1501 | api_file: "api/test-current.txt", |
| 1502 | removed_api_file: "api/test-removed.txt", |
| 1503 | }, |
| 1504 | }, |
Nan Zhang | 4212eb1 | 2018-04-25 17:23:33 -0700 | [diff] [blame] | 1505 | } |
Nan Zhang | af25130 | 2018-08-30 10:59:51 -0700 | [diff] [blame] | 1506 | |
| 1507 | filegroup { |
| 1508 | name: "framework-annotation-nonnull-srcs", |
| 1509 | srcs: [ |
| 1510 | "core/java/android/annotation/NonNull.java", |
| 1511 | ], |
| 1512 | } |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1513 | |
| 1514 | filegroup { |
| 1515 | name: "framework-media-annotation-srcs", |
| 1516 | srcs: [ |
| 1517 | "core/java/android/annotation/CallbackExecutor.java", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 1518 | "core/java/android/annotation/CallSuper.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1519 | "core/java/android/annotation/DrawableRes.java", |
| 1520 | "core/java/android/annotation/IntDef.java", |
| 1521 | "core/java/android/annotation/LongDef.java", |
| 1522 | "core/java/android/annotation/NonNull.java", |
| 1523 | "core/java/android/annotation/Nullable.java", |
| 1524 | "core/java/android/annotation/RequiresPermission.java", |
| 1525 | "core/java/android/annotation/SdkConstant.java", |
| 1526 | "core/java/android/annotation/StringDef.java", |
Sungsoo Lim | bb3b401 | 2019-01-23 13:17:53 +0900 | [diff] [blame] | 1527 | "core/java/android/annotation/SystemApi.java", |
Dongwon Kang | 3584c66 | 2018-11-27 11:14:08 -0800 | [diff] [blame] | 1528 | "core/java/android/annotation/TestApi.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1529 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Dongwon Kang | 3584c66 | 2018-11-27 11:14:08 -0800 | [diff] [blame] | 1530 | "core/java/com/android/internal/annotations/GuardedBy.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1531 | ], |
| 1532 | } |
| 1533 | |
Andrei Onea | 7a2985c | 2019-02-18 15:28:35 +0000 | [diff] [blame] | 1534 | // Creates an index of AIDL methods; used for adding UnsupportedAppUsage |
| 1535 | // annotations to private apis |
| 1536 | aidl_mapping { |
| 1537 | name: "framework-aidl-mappings", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 1538 | srcs: [":framework-all-sources"], |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1539 | output: "framework-aidl-mappings.txt", |
Kyunglyul Hyun | d51666d | 2019-04-11 04:08:40 +0000 | [diff] [blame] | 1540 | } |
Anna Trostanetski | 97088e9 | 2019-06-26 14:47:58 +0100 | [diff] [blame] | 1541 | |
| 1542 | genrule { |
| 1543 | name: "framework-annotation-proc-index", |
| 1544 | srcs: [":framework-annotation-proc"], |
| 1545 | cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)", |
| 1546 | out: ["unsupportedappusage_index.csv"], |
| 1547 | dist: { |
| 1548 | targets: ["droidcore"], |
| 1549 | }, |
| 1550 | } |
Chen Xu | 192bf1f | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1551 | |
| 1552 | // Avoid including Parcelable classes as we don't want to have two copies of |
| 1553 | // Parcelable cross the process. |
| 1554 | filegroup { |
| 1555 | name: "framework-telephony-stack-shared-srcs", |
| 1556 | srcs: [ |
| 1557 | "core/java/android/os/RegistrantList.java", |
| 1558 | "core/java/android/os/Registrant.java", |
| 1559 | "core/java/android/util/LocalLog.java", |
| 1560 | "core/java/android/util/Slog.java", |
| 1561 | "core/java/android/util/TimeUtils.java", |
| 1562 | "core/java/com/android/internal/os/SomeArgs.java", |
| 1563 | "core/java/com/android/internal/util/Preconditions.java", |
| 1564 | "core/java/com/android/internal/util/State.java", |
| 1565 | "core/java/com/android/internal/util/StateMachine.java", |
| 1566 | "core/java/com/android/internal/util/XmlUtils.java", |
| 1567 | "core/java/com/android/internal/util/HexDump.java", |
| 1568 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
| 1569 | "core/java/com/android/internal/util/DumpUtils.java" |
| 1570 | ], |
| 1571 | } |
| 1572 | |