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