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