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