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