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 | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 459 | } |
| 460 | |
| 461 | java_library { |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 462 | name: "framework-annotation-proc", |
| 463 | defaults: ["framework-defaults"], |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 464 | srcs: [":framework-all-sources"], |
atrost | 1a94550 | 2019-11-04 17:03:54 +0000 | [diff] [blame] | 465 | libs: ["app-compat-annotations"], |
Anna Trostanetski | 97088e9 | 2019-06-26 14:47:58 +0100 | [diff] [blame] | 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", |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [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 | |
| 523 | tools: [ |
| 524 | "aprotoc", |
| 525 | "protoc-gen-javastream", |
| 526 | "soong_zip", |
| 527 | ], |
| 528 | |
Anton Hansson | d82b2f7 | 2019-11-18 13:34:56 +0000 | [diff] [blame] | 529 | cmd: "mkdir -p $(genDir)/$(in) " + |
| 530 | "&& $(location aprotoc) " + |
| 531 | " --plugin=$(location protoc-gen-javastream) " + |
| 532 | " --dependency_out=$(depfile) " + |
| 533 | " --javastream_out=$(genDir)/$(in) " + |
| 534 | " -Iexternal/protobuf/src " + |
| 535 | " -I . " + |
| 536 | " $(in) " + |
| 537 | "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)", |
| 538 | |
Yi Jin | 437aa6e | 2018-01-10 11:34:26 -0800 | [diff] [blame] | 539 | srcs: [ |
| 540 | "core/proto/**/*.proto", |
| 541 | "libs/incident/**/*.proto", |
| 542 | ], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 543 | output_extension: "srcjar", |
| 544 | } |
| 545 | |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 546 | filegroup { |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 547 | name: "framework-annotations", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 548 | srcs: [ |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 549 | "core/java/android/annotation/NonNull.java", |
| 550 | "core/java/android/annotation/Nullable.java", |
| 551 | "core/java/android/annotation/IntDef.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 552 | "core/java/android/annotation/IntRange.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 553 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Remi NGUYEN VAN | 231b52b | 2019-01-29 15:38:52 +0900 | [diff] [blame] | 554 | "core/java/com/android/internal/annotations/GuardedBy.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 555 | "core/java/com/android/internal/annotations/VisibleForTesting.java", |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 556 | ], |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 557 | } |
| 558 | |
| 559 | filegroup { |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 560 | name: "framework-networkstack-shared-srcs", |
| 561 | srcs: [ |
| 562 | // 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] | 563 | ":framework-annotations", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 564 | "core/java/android/net/DhcpResults.java", |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 565 | "core/java/android/util/LocalLog.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 566 | "core/java/com/android/internal/util/HexDump.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 567 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 568 | "core/java/com/android/internal/util/IState.java", |
| 569 | "core/java/com/android/internal/util/MessageUtils.java", |
| 570 | "core/java/com/android/internal/util/Preconditions.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 571 | "core/java/com/android/internal/util/RingBufferIndices.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 572 | "core/java/com/android/internal/util/State.java", |
| 573 | "core/java/com/android/internal/util/StateMachine.java", |
Chalard Jean | 6a76b7e | 2019-04-09 11:16:56 +0900 | [diff] [blame] | 574 | "core/java/com/android/internal/util/TrafficStatsConstants.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 575 | "core/java/com/android/internal/util/WakeupMessage.java", |
| 576 | "core/java/android/net/shared/*.java", |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 577 | ], |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 578 | } |
| 579 | |
markchien | a6ba54d | 2019-09-03 15:58:06 +0800 | [diff] [blame] | 580 | filegroup { |
| 581 | name: "framework-tethering-shared-srcs", |
| 582 | srcs: [ |
| 583 | "core/java/android/util/LocalLog.java", |
| 584 | ], |
| 585 | } |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 586 | // Build ext.jar |
| 587 | // ============================================================ |
| 588 | java_library { |
| 589 | name: "ext", |
Colin Cross | a12c0f5 | 2018-06-27 11:00:11 -0700 | [diff] [blame] | 590 | installable: true, |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 591 | sdk_version: "core_platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 592 | static_libs: [ |
| 593 | "libphonenumber-platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 594 | "tagsoup", |
Ricky Wai | 0d1bc33 | 2017-10-31 14:31:01 +0000 | [diff] [blame] | 595 | "rappor", |
Tony Mak | 64c4cb2 | 2018-09-25 13:38:28 +0100 | [diff] [blame] | 596 | "libtextclassifier-java", |
| 597 | ], |
| 598 | required: [ |
| 599 | "libtextclassifier", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 600 | ], |
| 601 | dxflags: ["--core-library"], |
| 602 | } |
| 603 | |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 604 | // ==== java proto host library ============================== |
| 605 | java_library_host { |
| 606 | name: "platformprotos", |
| 607 | srcs: [ |
| 608 | "cmds/am/proto/instrumentation_data.proto", |
Howard Ro | 0546d54 | 2018-08-30 16:23:44 -0700 | [diff] [blame] | 609 | "cmds/statsd/src/**/*.proto", |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 610 | "core/proto/**/*.proto", |
| 611 | "libs/incident/proto/**/*.proto", |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 612 | ], |
| 613 | proto: { |
| 614 | include_dirs: ["external/protobuf/src"], |
| 615 | type: "full", |
| 616 | }, |
| 617 | errorprone: { |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 618 | javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520 |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 619 | }, |
| 620 | } |
| 621 | |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 622 | // ==== java proto device library (for test only) ============================== |
| 623 | java_library { |
| 624 | name: "platformprotosnano", |
| 625 | proto: { |
| 626 | type: "nano", |
| 627 | output_params: ["store_unknown_fields=true"], |
| 628 | include_dirs: ["external/protobuf/src"], |
| 629 | }, |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 630 | exclude_srcs: [ |
| 631 | "core/proto/android/privacy.proto", |
| 632 | "core/proto/android/section.proto", |
| 633 | ], |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 634 | sdk_version: "current", |
| 635 | srcs: [ |
| 636 | "core/proto/**/*.proto", |
| 637 | "libs/incident/proto/android/os/**/*.proto", |
| 638 | ], |
| 639 | } |
| 640 | |
| 641 | // ==== java proto device library (for test only) ============================== |
| 642 | java_library { |
| 643 | name: "platformprotoslite", |
| 644 | proto: { |
| 645 | type: "lite", |
| 646 | include_dirs: ["external/protobuf/src"], |
| 647 | }, |
| 648 | |
| 649 | srcs: [ |
| 650 | "core/proto/**/*.proto", |
| 651 | "libs/incident/proto/android/os/**/*.proto", |
| 652 | ], |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 653 | exclude_srcs: [ |
| 654 | "core/proto/android/privacy.proto", |
| 655 | "core/proto/android/section.proto", |
| 656 | ], |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 657 | // Protos have lots of MissingOverride and similar. |
| 658 | errorprone: { |
| 659 | javacflags: ["-XepDisableAllChecks"], |
| 660 | }, |
| 661 | } |
| 662 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 663 | // ==== c++ proto device library ============================== |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 664 | cc_defaults { |
| 665 | name: "libplatformprotos-defaults", |
| 666 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 667 | proto: { |
| 668 | export_proto_headers: true, |
| 669 | include_dirs: ["external/protobuf/src"], |
| 670 | }, |
| 671 | |
Chih-Hung Hsieh | c7edf07 | 2017-10-03 09:57:55 -0700 | [diff] [blame] | 672 | cflags: [ |
| 673 | "-Wall", |
| 674 | "-Werror", |
| 675 | "-Wno-unused-parameter", |
| 676 | ], |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 677 | |
| 678 | srcs: [ |
| 679 | "core/proto/**/*.proto", |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 680 | ], |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 681 | } |
| 682 | |
| 683 | cc_library { |
| 684 | name: "libplatformprotos", |
| 685 | defaults: ["libplatformprotos-defaults"], |
| 686 | host_supported: true, |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 687 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 688 | target: { |
| 689 | host: { |
| 690 | proto: { |
| 691 | type: "full", |
| 692 | }, |
| 693 | }, |
| 694 | android: { |
| 695 | proto: { |
| 696 | type: "lite", |
| 697 | }, |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 698 | shared_libs: [ |
| 699 | "libprotobuf-cpp-lite", |
| 700 | ], |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 701 | shared: { |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 702 | enabled: false, |
| 703 | }, |
| 704 | }, |
| 705 | }, |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 706 | } |
| 707 | |
Joe Onorato | 9bd5db7 | 2019-04-03 18:19:43 -0700 | [diff] [blame] | 708 | // This library is meant for vendor code that needs to output protobuf. It links |
| 709 | // against the static version of libprotobuf-cpp-lite, for which we can not guarantee |
| 710 | // binary compatibility. |
| 711 | cc_library { |
| 712 | name: "libplatformprotos-static", |
| 713 | defaults: ["libplatformprotos-defaults"], |
| 714 | host_supported: false, |
| 715 | |
| 716 | // This is okay because this library is only built as a static library. The C++ |
| 717 | // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council, |
| 718 | // but is not authorized to be used outside of debugging. |
| 719 | vendor_available: true, |
| 720 | |
| 721 | target: { |
| 722 | android: { |
| 723 | proto: { |
| 724 | type: "lite", |
| 725 | }, |
| 726 | static_libs: [ |
| 727 | "libprotobuf-cpp-lite", |
| 728 | ], |
| 729 | shared: { |
| 730 | enabled: false, |
| 731 | }, |
| 732 | }, |
| 733 | }, |
| 734 | } |
| 735 | |
| 736 | |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 737 | // This is the full proto version of libplatformprotos. It may only |
| 738 | // be used by test code that is not shipped on the device. |
| 739 | cc_library { |
| 740 | name: "libplatformprotos-test", |
| 741 | defaults: ["libplatformprotos-defaults"], |
| 742 | host_supported: false, |
| 743 | |
| 744 | target: { |
| 745 | android: { |
| 746 | proto: { |
| 747 | type: "full", |
| 748 | }, |
| 749 | shared: { |
| 750 | enabled: false, |
| 751 | }, |
| 752 | }, |
| 753 | }, |
| 754 | } |
| 755 | |
| 756 | |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 757 | gensrcs { |
| 758 | name: "gen-platform-proto-constants", |
| 759 | depfile: true, |
| 760 | |
| 761 | tools: [ |
| 762 | "aprotoc", |
| 763 | "protoc-gen-cppstream", |
| 764 | ], |
| 765 | |
| 766 | srcs: [ |
Kweku Adams | eadd123 | 2018-02-05 16:45:13 -0800 | [diff] [blame] | 767 | "core/proto/android/os/backtrace.proto", |
Kweku Adams | 59e6fd7 | 2017-12-27 15:48:14 -0800 | [diff] [blame] | 768 | "core/proto/android/os/batterytype.proto", |
Yi Jin | 0eb2234 | 2017-11-06 17:17:27 -0800 | [diff] [blame] | 769 | "core/proto/android/os/cpufreq.proto", |
Yi Jin | e2f7f79 | 2017-11-01 17:08:27 -0700 | [diff] [blame] | 770 | "core/proto/android/os/cpuinfo.proto", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 771 | "core/proto/android/os/data.proto", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 772 | "core/proto/android/os/kernelwake.proto", |
| 773 | "core/proto/android/os/pagetypeinfo.proto", |
| 774 | "core/proto/android/os/procrank.proto", |
Kweku Adams | f5cc575 | 2017-12-20 17:59:17 -0800 | [diff] [blame] | 775 | "core/proto/android/os/ps.proto", |
Yi Jin | 0dfa752 | 2017-11-06 17:43:47 -0800 | [diff] [blame] | 776 | "core/proto/android/os/system_properties.proto", |
Yi Jin | 3c034c9 | 2017-12-22 17:36:47 -0800 | [diff] [blame] | 777 | "core/proto/android/util/event_log_tags.proto", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 778 | "core/proto/android/util/log.proto", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 779 | ], |
| 780 | |
| 781 | // 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] | 782 | cmd: "mkdir -p $(genDir) " + |
| 783 | "&& $(location aprotoc) " + |
| 784 | " --plugin=$(location protoc-gen-cppstream) " + |
| 785 | " --dependency_out=$(depfile) " + |
| 786 | " --cppstream_out=$(genDir) " + |
| 787 | " -Iexternal/protobuf/src " + |
| 788 | " -I . " + |
| 789 | " $(in)", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 790 | |
Logan Chien | 71ddfea | 2018-02-27 16:43:50 +0800 | [diff] [blame] | 791 | output_extension: "proto.h", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 792 | } |
| 793 | |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 794 | |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 795 | subdirs = [ |
Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 796 | "cmds/*", |
Jeff Sharkey | 0c686e7 | 2017-10-23 16:04:31 -0600 | [diff] [blame] | 797 | "core/*", |
Colin Cross | 4f8d9e6 | 2016-12-01 15:55:00 -0800 | [diff] [blame] | 798 | "libs/*", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 799 | "media/*", |
Colin Cross | 747e7c1 | 2017-10-24 16:21:22 -0700 | [diff] [blame] | 800 | "proto", |
Fabien Sanglard | 1916020 | 2017-01-12 14:24:31 -0500 | [diff] [blame] | 801 | "tools/*", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 802 | "native/android", |
Dan Albert | 7ce8df3 | 2016-09-23 16:43:49 -0700 | [diff] [blame] | 803 | "native/graphics/jni", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 804 | ] |
Svetoslav Ganov | 74c9983 | 2016-12-05 20:07:20 -0800 | [diff] [blame] | 805 | |
| 806 | optional_subdirs = [ |
| 807 | "core/tests/utiltests/jni", |
| 808 | ] |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 809 | |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 810 | // TODO(b/77285514): remove this once the last few hidl interfaces have been |
| 811 | // updated to use hwbinder.stubs. |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 812 | java_library { |
| 813 | name: "hwbinder", |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 814 | sdk_version: "core_platform", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 815 | |
| 816 | srcs: [ |
| 817 | "core/java/android/os/HidlSupport.java", |
Steven Moreland | e8e63aa | 2018-01-10 15:45:36 -0800 | [diff] [blame] | 818 | "core/java/android/annotation/IntDef.java", |
Ytai Ben-Tsvi | a907efc | 2019-11-06 09:53:34 -0800 | [diff] [blame] | 819 | "core/java/android/annotation/IntRange.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 820 | "core/java/android/annotation/NonNull.java", |
Steven Moreland | 0ff061a | 2019-03-04 17:56:30 -0800 | [diff] [blame] | 821 | "core/java/android/annotation/Nullable.java", |
Steven Moreland | e8e63aa | 2018-01-10 15:45:36 -0800 | [diff] [blame] | 822 | "core/java/android/annotation/SystemApi.java", |
Steven Moreland | cbba4c7 | 2019-01-11 10:19:51 -0800 | [diff] [blame] | 823 | "core/java/android/annotation/TestApi.java", |
Andrei Onea | 24ec321 | 2019-03-15 17:35:05 +0000 | [diff] [blame] | 824 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Ytai Ben-Tsvi | a907efc | 2019-11-06 09:53:34 -0800 | [diff] [blame] | 825 | "core/java/android/os/HidlMemory.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 | |
Paul Duffin | 0440e1f | 2019-02-11 16:13:25 +0000 | [diff] [blame] | 868 | // Make the api/current.txt file available for use by modules in other |
| 869 | // directories. |
| 870 | filegroup { |
| 871 | name: "frameworks-base-api-current.txt", |
| 872 | srcs: [ |
| 873 | "api/current.txt", |
| 874 | ], |
| 875 | } |
| 876 | |
Paul Duffin | cd35de3 | 2019-05-30 15:12:47 +0100 | [diff] [blame] | 877 | // Make the api/system-current.txt file available for use by modules in other |
| 878 | // directories. |
| 879 | filegroup { |
| 880 | name: "frameworks-base-api-system-current.txt", |
| 881 | srcs: [ |
| 882 | "api/system-current.txt", |
| 883 | ], |
| 884 | } |
| 885 | |
| 886 | // Make the api/system-removed.txt file available for use by modules in other |
| 887 | // directories. |
| 888 | filegroup { |
| 889 | name: "frameworks-base-api-system-removed.txt", |
| 890 | srcs: [ |
| 891 | "api/system-removed.txt", |
| 892 | ], |
| 893 | } |
| 894 | |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 895 | framework_docs_only_args = " -android -manifest $(location core/res/AndroidManifest.xml) " + |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 896 | "-werror -lerror -hide 111 -hide 113 -hide 125 -hide 126 -hide 127 -hide 128 " + |
| 897 | "-overview $(location core/java/overview.html) " + |
| 898 | // Federate Support Library references against local API file. |
| 899 | "-federate SupportLib https://developer.android.com " + |
Charles Munger | 1b1c0ca | 2019-11-19 14:01:19 -0800 | [diff] [blame] | 900 | "-federationapi SupportLib $(location :current-support-api) " + |
| 901 | // Federate Support Library references against local API file. |
| 902 | "-federate AndroidX https://developer.android.com " + |
| 903 | "-federationapi AndroidX $(location :current-androidx-api) " |
Nan Zhang | 172875b | 2018-02-27 11:24:03 -0800 | [diff] [blame] | 904 | |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 905 | framework_docs_only_libs = [ |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 906 | "voip-common", |
| 907 | "android.test.mock", |
| 908 | "android-support-annotations", |
| 909 | "android-support-compat", |
| 910 | "android-support-core-ui", |
| 911 | "android-support-core-utils", |
| 912 | "android-support-customtabs", |
| 913 | "android-support-design", |
| 914 | "android-support-dynamic-animation", |
| 915 | "android-support-exifinterface", |
| 916 | "android-support-fragment", |
| 917 | "android-support-media-compat", |
| 918 | "android-support-percent", |
| 919 | "android-support-recommendation", |
| 920 | "android-support-transition", |
| 921 | "android-support-tv-provider", |
| 922 | "android-support-v7-cardview", |
| 923 | "android-support-v7-gridlayout", |
| 924 | "android-support-v7-mediarouter", |
| 925 | "android-support-v7-palette", |
| 926 | "android-support-v7-preference", |
| 927 | "android-support-v13", |
| 928 | "android-support-v14-preference", |
| 929 | "android-support-v17-leanback", |
| 930 | "android-support-v17-preference-leanback", |
| 931 | "android-support-wear", |
| 932 | "android-support-vectordrawable", |
| 933 | "android-support-animatedvectordrawable", |
| 934 | "android-support-v7-appcompat", |
| 935 | "android-support-v7-recyclerview", |
| 936 | "android-support-emoji", |
| 937 | "android-support-emoji-appcompat", |
| 938 | "android-support-emoji-bundled", |
| 939 | "android-support-v8-renderscript", |
| 940 | "android-support-multidex", |
| 941 | "android-support-multidex-instrumentation", |
| 942 | ] |
| 943 | |
| 944 | metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " + |
Paul Duffin | 179d970 | 2019-10-18 13:57:19 +0100 | [diff] [blame] | 945 | "--ignore-classes-on-classpath " + |
Paul Duffin | 7fb7696 | 2019-11-06 14:18:38 +0000 | [diff] [blame] | 946 | "--hide-package com.android.server " + |
Adrian Roos | c6e2fc8 | 2018-12-12 15:08:44 +0100 | [diff] [blame] | 947 | "--error UnhiddenSystemApi " + |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 948 | "--hide RequiresPermission " + |
Adrian Roos | a90de2e | 2019-11-01 18:35:53 +0100 | [diff] [blame] | 949 | "--hide CallbackInterface " + |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 950 | "--hide MissingPermission --hide BroadcastBehavior " + |
| 951 | "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " + |
Tobias Thierer | 8f55941 | 2019-05-22 20:17:49 +0100 | [diff] [blame] | 952 | "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " |
| 953 | |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 954 | packages_to_document = [ |
| 955 | "android", |
Jiyong Park | b1d2701 | 2019-09-17 14:51:28 +0900 | [diff] [blame] | 956 | "dalvik", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 957 | "java", |
| 958 | "javax", |
Jiyong Park | b1d2701 | 2019-09-17 14:51:28 +0900 | [diff] [blame] | 959 | "junit", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 960 | "org.apache.http", |
| 961 | "org.json", |
| 962 | "org.w3c.dom", |
| 963 | "org.xml.sax", |
| 964 | "org.xmlpull", |
| 965 | ] |
| 966 | |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 967 | stubs_defaults { |
| 968 | name: "framework-doc-stubs-default", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 969 | srcs: [ |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 970 | ":framework-non-updatable-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 971 | "core/java/**/*.logtags", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 972 | "test-base/src/**/*.java", |
| 973 | ":opt-telephony-srcs", |
| 974 | ":opt-net-voip-srcs", |
Paul Duffin | e86cc6f | 2019-10-04 10:10:58 +0100 | [diff] [blame] | 975 | ":core-current-stubs-source", |
Neil Fuller | 3b1b703 | 2019-02-26 12:00:38 +0000 | [diff] [blame] | 976 | ":core_public_api_files", |
Jiyong Park | df6c25d | 2019-08-20 20:48:47 +0900 | [diff] [blame] | 977 | ":updatable-media-srcs", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 978 | "test-mock/src/**/*.java", |
| 979 | "test-runner/src/**/*.java", |
| 980 | ], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 981 | libs: framework_docs_only_libs, |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 982 | create_doc_stubs: true, |
| 983 | annotations_enabled: true, |
| 984 | api_levels_annotations_enabled: true, |
| 985 | api_levels_annotations_dirs: [ |
| 986 | "sdk-dir", |
| 987 | "api-versions-jars-dir", |
| 988 | ], |
| 989 | previous_api: ":last-released-public-api", |
| 990 | merge_annotations_dirs: [ |
| 991 | "metalava-manual", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 992 | ], |
| 993 | } |
| 994 | |
| 995 | doc_defaults { |
| 996 | name: "framework-docs-default", |
Nan Zhang | b03396e | 2018-10-11 18:06:10 -0700 | [diff] [blame] | 997 | libs: framework_docs_only_libs + |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 998 | ["stub-annotations"], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 999 | html_dirs: [ |
| 1000 | "docs/html", |
| 1001 | ], |
| 1002 | knowntags: [ |
| 1003 | "docs/knowntags.txt", |
| 1004 | ":known-oj-tags", |
| 1005 | ], |
| 1006 | custom_template: "droiddoc-templates-sdk", |
| 1007 | resourcesdir: "docs/html/reference/images/", |
| 1008 | resourcesoutdir: "reference/android/images/", |
| 1009 | hdf: [ |
| 1010 | "dac true", |
| 1011 | "sdk.codename O", |
| 1012 | "sdk.preview.version 1", |
| 1013 | "sdk.version 7.0", |
| 1014 | "sdk.rel.id 1", |
| 1015 | "sdk.preview 0", |
| 1016 | ], |
| 1017 | arg_files: [ |
| 1018 | "core/res/AndroidManifest.xml", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1019 | "core/java/overview.html", |
| 1020 | ":current-support-api", |
Charles Munger | 1b1c0ca | 2019-11-19 14:01:19 -0800 | [diff] [blame] | 1021 | ":current-androidx-api", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1022 | ], |
| 1023 | create_stubs: false, |
| 1024 | } |
| 1025 | |
Tiem Song | 730c19b | 2019-08-26 11:27:27 -0700 | [diff] [blame] | 1026 | doc_defaults { |
| 1027 | name: "framework-dokka-docs-default", |
| 1028 | create_stubs: false, |
| 1029 | } |
| 1030 | |
Nan Zhang | 894c9ec | 2018-09-10 18:58:39 -0700 | [diff] [blame] | 1031 | stubs_defaults { |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1032 | name: "metalava-api-stubs-default", |
| 1033 | srcs: [ |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 1034 | ":framework-non-updatable-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 1035 | "core/java/**/*.logtags", |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1036 | ":opt-telephony-srcs", |
| 1037 | ":opt-net-voip-srcs", |
Paul Duffin | e86cc6f | 2019-10-04 10:10:58 +0100 | [diff] [blame] | 1038 | ":core-current-stubs-source", |
Neil Fuller | 3b1b703 | 2019-02-26 12:00:38 +0000 | [diff] [blame] | 1039 | ":core_public_api_files", |
Jiyong Park | df6c25d | 2019-08-20 20:48:47 +0900 | [diff] [blame] | 1040 | ":updatable-media-srcs", |
evitayan | 69d77da | 2019-10-30 19:58:48 -0700 | [diff] [blame] | 1041 | ":ike-api-srcs", |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1042 | ], |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 1043 | libs: ["framework-internal-utils"], |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1044 | installable: false, |
Nan Zhang | 894c9ec | 2018-09-10 18:58:39 -0700 | [diff] [blame] | 1045 | annotations_enabled: true, |
| 1046 | previous_api: ":last-released-public-api", |
| 1047 | merge_annotations_dirs: [ |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1048 | "metalava-manual", |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1049 | ], |
Nan Zhang | 91cc766 | 2018-09-18 10:46:10 -0700 | [diff] [blame] | 1050 | api_levels_annotations_enabled: true, |
| 1051 | api_levels_annotations_dirs: [ |
| 1052 | "sdk-dir", |
| 1053 | "api-versions-jars-dir", |
| 1054 | ], |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 1055 | sdk_version: "core_platform", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 1056 | filter_packages: packages_to_document, |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1057 | } |
| 1058 | |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1059 | droidstubs { |
| 1060 | name: "framework-doc-stubs", |
| 1061 | defaults: ["framework-doc-stubs-default"], |
| 1062 | arg_files: [ |
| 1063 | "core/res/AndroidManifest.xml", |
| 1064 | ], |
| 1065 | args: metalava_framework_docs_args, |
Jerome Gaillard | b59a1cd | 2019-10-10 19:09:21 +0100 | [diff] [blame] | 1066 | write_sdk_values: true, |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1067 | } |
| 1068 | |
| 1069 | droidstubs { |
| 1070 | name: "framework-doc-system-stubs", |
| 1071 | defaults: ["framework-doc-stubs-default"], |
| 1072 | arg_files: [ |
| 1073 | "core/res/AndroidManifest.xml", |
| 1074 | ], |
| 1075 | args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi ", |
Jerome Gaillard | b59a1cd | 2019-10-10 19:09:21 +0100 | [diff] [blame] | 1076 | write_sdk_values: true, |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1077 | } |
| 1078 | |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1079 | droiddoc { |
| 1080 | name: "doc-comment-check-docs", |
| 1081 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1082 | srcs: [ |
| 1083 | ":framework-doc-stubs", |
| 1084 | ], |
| 1085 | args: framework_docs_only_args + " -referenceonly -parsecomments", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1086 | installable: false, |
| 1087 | } |
| 1088 | |
| 1089 | droiddoc { |
| 1090 | name: "offline-sdk-docs", |
| 1091 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1092 | srcs: [ |
| 1093 | ":framework-doc-stubs", |
| 1094 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1095 | hdf: [ |
| 1096 | "android.whichdoc offline", |
| 1097 | ], |
| 1098 | proofread_file: "offline-sdk-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1099 | args: framework_docs_only_args + " -offlinemode -title \"Android SDK\"", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1100 | static_doc_index_redirect: "docs/docs-preview-index.html", |
| 1101 | } |
| 1102 | |
| 1103 | droiddoc { |
Nan Zhang | 963612b | 2018-09-21 17:16:49 -0700 | [diff] [blame] | 1104 | // Please sync with android-api-council@ before making any changes for the name property below. |
| 1105 | // Since there's cron jobs that fetch offline-sdk-referenceonly-docs-docs.zip periodically. |
| 1106 | // See b/116221385 for reference. |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1107 | name: "offline-sdk-referenceonly-docs", |
| 1108 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1109 | srcs: [ |
| 1110 | ":framework-doc-stubs", |
| 1111 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1112 | hdf: [ |
| 1113 | "android.whichdoc offline", |
| 1114 | ], |
| 1115 | proofread_file: "offline-sdk-referenceonly-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1116 | args: framework_docs_only_args + " -offlinemode -title \"Android SDK\" -referenceonly", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1117 | static_doc_index_redirect: "docs/docs-documentation-redirect.html", |
| 1118 | static_doc_properties: "docs/source.properties", |
| 1119 | } |
| 1120 | |
| 1121 | droiddoc { |
Nan Zhang | 963612b | 2018-09-21 17:16:49 -0700 | [diff] [blame] | 1122 | // Please sync with android-api-council@ before making any changes for the name property below. |
| 1123 | // Since there's cron jobs that fetch offline-system-sdk-referenceonly-docs-docs.zip periodically. |
| 1124 | // See b/116221385 for reference. |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1125 | name: "offline-system-sdk-referenceonly-docs", |
| 1126 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1127 | srcs: [ |
| 1128 | ":framework-doc-system-stubs", |
| 1129 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1130 | hdf: [ |
| 1131 | "android.whichdoc offline", |
| 1132 | ], |
| 1133 | proofread_file: "offline-system-sdk-referenceonly-docs-proofrerad.txt", |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1134 | args: framework_docs_only_args + " -hide 101 -hide 104 -hide 108" + |
| 1135 | " -offlinemode -title \"Android System 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 { |
| 1141 | name: "online-sdk-docs", |
| 1142 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1143 | srcs: [ |
| 1144 | ":framework-doc-stubs", |
| 1145 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1146 | hdf: [ |
| 1147 | "android.whichdoc online", |
| 1148 | "android.hasSamples true", |
| 1149 | ], |
| 1150 | proofread_file: "online-sdk-docs-proofrerad.txt", |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1151 | args: framework_docs_only_args + |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1152 | " -toroot / -samplegroup Admin " + |
| 1153 | " -samplegroup Background " + |
| 1154 | " -samplegroup Connectivity " + |
| 1155 | " -samplegroup Content " + |
| 1156 | " -samplegroup Input " + |
| 1157 | " -samplegroup Media " + |
| 1158 | " -samplegroup Notification " + |
| 1159 | " -samplegroup RenderScript " + |
| 1160 | " -samplegroup Security " + |
| 1161 | " -samplegroup Sensors " + |
| 1162 | " -samplegroup System " + |
| 1163 | " -samplegroup Testing " + |
| 1164 | " -samplegroup UI " + |
| 1165 | " -samplegroup Views " + |
| 1166 | " -samplegroup Wearable -samplesdir development/samples/browseable ", |
| 1167 | } |
| 1168 | |
| 1169 | droiddoc { |
| 1170 | name: "online-system-api-sdk-docs", |
| 1171 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1172 | srcs: [ |
| 1173 | ":framework-doc-system-stubs", |
| 1174 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1175 | hdf: [ |
| 1176 | "android.whichdoc online", |
| 1177 | "android.hasSamples true", |
| 1178 | ], |
| 1179 | proofread_file: "online-system-api-sdk-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1180 | args: framework_docs_only_args + |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1181 | " -referenceonly " + |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1182 | " -title \"Android SDK - Including system APIs.\" " + |
| 1183 | " -hide 101 " + |
| 1184 | " -hide 104 " + |
| 1185 | " -hide 108 " + |
| 1186 | " -toroot / -samplegroup Admin " + |
| 1187 | " -samplegroup Background " + |
| 1188 | " -samplegroup Connectivity " + |
| 1189 | " -samplegroup Content " + |
| 1190 | " -samplegroup Input " + |
| 1191 | " -samplegroup Media " + |
| 1192 | " -samplegroup Notification " + |
| 1193 | " -samplegroup RenderScript " + |
| 1194 | " -samplegroup Security " + |
| 1195 | " -samplegroup Sensors " + |
| 1196 | " -samplegroup System " + |
| 1197 | " -samplegroup Testing " + |
| 1198 | " -samplegroup UI " + |
| 1199 | " -samplegroup Views " + |
| 1200 | " -samplegroup Wearable -samplesdir development/samples/browseable ", |
| 1201 | installable: false, |
| 1202 | } |
| 1203 | |
| 1204 | droiddoc { |
Tiem Song | 730c19b | 2019-08-26 11:27:27 -0700 | [diff] [blame] | 1205 | name: "ds-docs-java", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1206 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1207 | srcs: [ |
| 1208 | ":framework-doc-stubs", |
| 1209 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1210 | hdf: [ |
| 1211 | "android.whichdoc online", |
| 1212 | "android.hasSamples true", |
| 1213 | ], |
| 1214 | proofread_file: "ds-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1215 | args: framework_docs_only_args + |
Dirk Dougherty | 14b05b1 | 2019-02-22 20:36:41 -0800 | [diff] [blame] | 1216 | " -toroot / -yamlV2 -metalavaApiSince -samplegroup Admin " + |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1217 | " -samplegroup Background " + |
| 1218 | " -samplegroup Connectivity " + |
| 1219 | " -samplegroup Content " + |
| 1220 | " -samplegroup Input " + |
| 1221 | " -samplegroup Media " + |
| 1222 | " -samplegroup Notification " + |
| 1223 | " -samplegroup RenderScript " + |
| 1224 | " -samplegroup Security " + |
| 1225 | " -samplegroup Sensors " + |
| 1226 | " -samplegroup System " + |
| 1227 | " -samplegroup Testing " + |
| 1228 | " -samplegroup UI " + |
| 1229 | " -samplegroup Views " + |
| 1230 | " -samplegroup Wearable -devsite -samplesdir development/samples/browseable ", |
| 1231 | } |
| 1232 | |
| 1233 | droiddoc { |
Tiem Song | 730c19b | 2019-08-26 11:27:27 -0700 | [diff] [blame] | 1234 | name: "ds-docs-kt", |
| 1235 | defaults: ["framework-dokka-docs-default"], |
| 1236 | srcs: [ |
| 1237 | ":framework-doc-stubs", |
| 1238 | ], |
| 1239 | args: "-noJdkLink -links https://kotlinlang.org/api/latest/jvm/stdlib/^external/dokka/package-list " + |
| 1240 | "-noStdlibLink", |
| 1241 | proofread_file: "ds-dokka-proofread.txt", |
| 1242 | dokka_enabled: true, |
| 1243 | } |
| 1244 | |
| 1245 | java_genrule { |
| 1246 | name: "ds-docs", |
| 1247 | tools: [ |
| 1248 | "zip2zip", |
| 1249 | "merge_zips", |
| 1250 | ], |
| 1251 | srcs: [ |
| 1252 | ":ds-docs-java{.docs.zip}", |
| 1253 | ":ds-docs-kt{.docs.zip}", |
| 1254 | ], |
| 1255 | out: ["ds-docs.zip"], |
| 1256 | dist: { |
| 1257 | targets: ["docs"], |
| 1258 | }, |
| 1259 | cmd: "$(location zip2zip) -i $(location :ds-docs-kt{.docs.zip}) -o $(genDir)/ds-docs-kt-moved.zip **/*:en/reference/kotlin && " + |
| 1260 | "$(location merge_zips) $(out) $(location :ds-docs-java{.docs.zip}) $(genDir)/ds-docs-kt-moved.zip", |
| 1261 | } |
| 1262 | |
| 1263 | java_genrule { |
| 1264 | name: "ds-docs-switched", |
| 1265 | tools: [ |
| 1266 | "switcher4", |
| 1267 | "soong_zip", |
| 1268 | ], |
| 1269 | srcs: [ |
| 1270 | ":ds-docs-java{.docs.zip}", |
| 1271 | ":ds-docs-kt{.docs.zip}", |
| 1272 | ], |
| 1273 | out: ["ds-docs-switched.zip"], |
| 1274 | dist: { |
| 1275 | targets: ["docs"], |
| 1276 | }, |
| 1277 | cmd: "unzip $(location :ds-docs-java{.docs.zip}) -d $(genDir) && " + |
| 1278 | "unzip $(location :ds-docs-kt{.docs.zip}) -d $(genDir)/en/reference/kotlin && " + |
| 1279 | "SWITCHER=$$(cd $$(dirname $(location switcher4)) && pwd)/$$(basename $(location switcher4)) && " + |
| 1280 | "(cd $(genDir)/en/reference && $$SWITCHER --work platform) && " + |
| 1281 | "$(location soong_zip) -o $(out) -C $(genDir) -D $(genDir)", |
| 1282 | } |
| 1283 | |
| 1284 | |
| 1285 | droiddoc { |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1286 | name: "ds-static-docs", |
| 1287 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1288 | srcs: [ |
| 1289 | ":framework-doc-stubs", |
| 1290 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1291 | hdf: [ |
| 1292 | "android.whichdoc online", |
| 1293 | ], |
| 1294 | proofread_file: "ds-static-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1295 | args: framework_docs_only_args + |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1296 | " -staticonly " + |
| 1297 | " -toroot / " + |
| 1298 | " -devsite " + |
| 1299 | " -ignoreJdLinks ", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1300 | } |
| 1301 | |
| 1302 | droiddoc { |
| 1303 | name: "ds-ref-navtree-docs", |
| 1304 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1305 | srcs: [ |
| 1306 | ":framework-doc-stubs", |
| 1307 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1308 | hdf: [ |
| 1309 | "android.whichdoc online", |
| 1310 | ], |
| 1311 | proofread_file: "ds-ref-navtree-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1312 | args: framework_docs_only_args + |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1313 | " -toroot / " + |
| 1314 | " -atLinksNavtree " + |
| 1315 | " -navtreeonly ", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1316 | } |
| 1317 | |
| 1318 | droiddoc { |
| 1319 | name: "online-sdk-dev-docs", |
| 1320 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1321 | srcs: [ |
| 1322 | ":framework-doc-stubs", |
| 1323 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1324 | hdf: [ |
| 1325 | "android.whichdoc online", |
| 1326 | "android.hasSamples true", |
| 1327 | ], |
| 1328 | proofread_file: "online-sdk-dev-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1329 | args: framework_docs_only_args + |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1330 | " -toroot / -samplegroup Admin " + |
| 1331 | " -samplegroup Background " + |
| 1332 | " -samplegroup Connectivity " + |
| 1333 | " -samplegroup Content " + |
| 1334 | " -samplegroup Input " + |
| 1335 | " -samplegroup Media " + |
| 1336 | " -samplegroup Notification " + |
| 1337 | " -samplegroup RenderScript " + |
| 1338 | " -samplegroup Security " + |
| 1339 | " -samplegroup Sensors " + |
| 1340 | " -samplegroup System " + |
| 1341 | " -samplegroup Testing " + |
| 1342 | " -samplegroup UI " + |
| 1343 | " -samplegroup Views " + |
| 1344 | " -samplegroup Wearable -samplesdir development/samples/browseable ", |
| 1345 | } |
| 1346 | |
| 1347 | droiddoc { |
| 1348 | name: "hidden-docs", |
| 1349 | defaults: ["framework-docs-default"], |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1350 | srcs: [ |
| 1351 | ":framework-doc-stubs", |
| 1352 | ], |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1353 | proofread_file: "hidden-docs-proofrerad.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1354 | args: framework_docs_only_args + |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1355 | " -referenceonly " + |
| 1356 | " -title \"Android SDK - Including hidden APIs.\"", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1357 | } |
| 1358 | |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1359 | droidstubs { |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 1360 | name: "hwbinder-stubs-docs", |
| 1361 | srcs: [ |
| 1362 | "core/java/android/os/HidlSupport.java", |
| 1363 | "core/java/android/annotation/IntDef.java", |
Ytai Ben-Tsvi | a907efc | 2019-11-06 09:53:34 -0800 | [diff] [blame] | 1364 | "core/java/android/annotation/IntRange.java", |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 1365 | "core/java/android/annotation/NonNull.java", |
| 1366 | "core/java/android/annotation/SystemApi.java", |
Ytai Ben-Tsvi | a907efc | 2019-11-06 09:53:34 -0800 | [diff] [blame] | 1367 | "core/java/android/os/HidlMemory.java", |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 1368 | "core/java/android/os/HwBinder.java", |
| 1369 | "core/java/android/os/HwBlob.java", |
| 1370 | "core/java/android/os/HwParcel.java", |
| 1371 | "core/java/android/os/IHwBinder.java", |
| 1372 | "core/java/android/os/IHwInterface.java", |
| 1373 | "core/java/android/os/DeadObjectException.java", |
| 1374 | "core/java/android/os/DeadSystemException.java", |
Nirav Atre | 9850dd9 | 2018-07-24 17:03:44 -0700 | [diff] [blame] | 1375 | "core/java/android/os/NativeHandle.java", |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 1376 | "core/java/android/os/RemoteException.java", |
| 1377 | "core/java/android/util/AndroidException.java", |
| 1378 | ], |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 1379 | installable: false, |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 1380 | sdk_version: "core_platform", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1381 | annotations_enabled: true, |
| 1382 | previous_api: ":last-released-public-api", |
| 1383 | merge_annotations_dirs: [ |
| 1384 | "metalava-manual", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1385 | ], |
| 1386 | args: " --show-annotation android.annotation.SystemApi", |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 1387 | } |
| 1388 | |
| 1389 | java_library_static { |
| 1390 | name: "hwbinder.stubs", |
| 1391 | sdk_version: "core_current", |
| 1392 | srcs: [ |
| 1393 | ":hwbinder-stubs-docs", |
| 1394 | ], |
| 1395 | } |
Nan Zhang | a0f91af | 2018-04-09 17:41:51 -0700 | [diff] [blame] | 1396 | |
Nan Zhang | 894c9ec | 2018-09-10 18:58:39 -0700 | [diff] [blame] | 1397 | droidstubs { |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1398 | name: "hiddenapi-lists-docs", |
| 1399 | defaults: ["metalava-api-stubs-default"], |
David Brazdil | 4f9d4d5 | 2018-04-26 14:05:13 +0100 | [diff] [blame] | 1400 | arg_files: [ |
| 1401 | "core/res/AndroidManifest.xml", |
David Brazdil | 4f9d4d5 | 2018-04-26 14:05:13 +0100 | [diff] [blame] | 1402 | ], |
David Brazdil | 6f6a126 | 2018-05-31 13:58:41 +0100 | [diff] [blame] | 1403 | dex_api_filename: "public-dex.txt", |
David Brazdil | 4f9d4d5 | 2018-04-26 14:05:13 +0100 | [diff] [blame] | 1404 | private_dex_api_filename: "private-dex.txt", |
| 1405 | removed_dex_api_filename: "removed-dex.txt", |
Nan Zhang | d25ad46 | 2018-08-22 10:48:15 -0700 | [diff] [blame] | 1406 | args: metalava_framework_docs_args + |
| 1407 | " --show-unannotated " + |
| 1408 | " --show-annotation android.annotation.SystemApi " + |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1409 | " --show-annotation android.annotation.TestApi ", |
David Brazdil | 4f9d4d5 | 2018-04-26 14:05:13 +0100 | [diff] [blame] | 1410 | } |
| 1411 | |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1412 | droidstubs { |
Mathew Inwood | 0a6a273 | 2018-06-22 15:30:02 +0100 | [diff] [blame] | 1413 | name: "hiddenapi-mappings", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1414 | defaults: ["metalava-api-stubs-default"], |
Jiyong Park | 0323b4d | 2019-08-23 20:36:58 +0900 | [diff] [blame] | 1415 | srcs: [ |
Andrei Onea | 6dd843a | 2019-03-13 15:27:23 +0000 | [diff] [blame] | 1416 | ":opt-telephony-common-srcs", |
Paul Duffin | a0cb538 | 2018-10-31 10:34:51 +0000 | [diff] [blame] | 1417 | ], |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 1418 | |
Mathew Inwood | 0a6a273 | 2018-06-22 15:30:02 +0100 | [diff] [blame] | 1419 | arg_files: [ |
| 1420 | "core/res/AndroidManifest.xml", |
Mathew Inwood | 0a6a273 | 2018-06-22 15:30:02 +0100 | [diff] [blame] | 1421 | ], |
| 1422 | dex_mapping_filename: "dex-mapping.txt", |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1423 | args: metalava_framework_docs_args + |
Adrian Roos | 9bdbd30 | 2018-12-07 13:53:40 +0100 | [diff] [blame] | 1424 | " --hide ReferencesHidden " + |
Adrian Roos | c6e2fc8 | 2018-12-12 15:08:44 +0100 | [diff] [blame] | 1425 | " --hide UnhiddenSystemApi " + |
Nan Zhang | 7764a4b | 2018-08-22 11:27:31 -0700 | [diff] [blame] | 1426 | " --show-unannotated " + |
| 1427 | " --show-annotation android.annotation.SystemApi " + |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1428 | " --show-annotation android.annotation.TestApi ", |
Mathew Inwood | 0a6a273 | 2018-06-22 15:30:02 +0100 | [diff] [blame] | 1429 | } |
| 1430 | |
Nan Zhang | 894c9ec | 2018-09-10 18:58:39 -0700 | [diff] [blame] | 1431 | droidstubs { |
Nan Zhang | 4d3f501 | 2018-08-07 13:40:33 -0700 | [diff] [blame] | 1432 | name: "api-stubs-docs", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1433 | defaults: ["metalava-api-stubs-default"], |
Nan Zhang | 4212eb1 | 2018-04-25 17:23:33 -0700 | [diff] [blame] | 1434 | api_filename: "public_api.txt", |
| 1435 | private_api_filename: "private.txt", |
| 1436 | removed_api_filename: "removed.txt", |
| 1437 | arg_files: [ |
| 1438 | "core/res/AndroidManifest.xml", |
| 1439 | ], |
| 1440 | args: metalava_framework_docs_args, |
Nan Zhang | e561260 | 2018-08-16 16:16:00 -0700 | [diff] [blame] | 1441 | check_api: { |
| 1442 | current: { |
| 1443 | api_file: "api/current.txt", |
| 1444 | removed_api_file: "api/removed.txt", |
| 1445 | }, |
Nan Zhang | cd060d9 | 2018-08-20 20:34:26 -0700 | [diff] [blame] | 1446 | last_released: { |
| 1447 | api_file: ":last-released-public-api", |
| 1448 | removed_api_file: "api/removed.txt", |
Adrian Roos | 9597f8c | 2019-08-12 17:47:39 +0200 | [diff] [blame] | 1449 | baseline_file: ":public-api-incompatibilities-with-last-released", |
Nan Zhang | cd060d9 | 2018-08-20 20:34:26 -0700 | [diff] [blame] | 1450 | }, |
Adrian Roos | 487c646 | 2019-10-10 12:14:22 +0200 | [diff] [blame] | 1451 | api_lint: { |
| 1452 | enabled: true, |
| 1453 | new_since: ":last-released-public-api", |
| 1454 | baseline_file: "api/lint-baseline.txt", |
| 1455 | }, |
Nan Zhang | e561260 | 2018-08-16 16:16:00 -0700 | [diff] [blame] | 1456 | }, |
Nan Zhang | 81f29f5 | 2018-09-17 14:33:08 -0700 | [diff] [blame] | 1457 | jdiff_enabled: true, |
Nan Zhang | 4212eb1 | 2018-04-25 17:23:33 -0700 | [diff] [blame] | 1458 | } |
| 1459 | |
Nan Zhang | 894c9ec | 2018-09-10 18:58:39 -0700 | [diff] [blame] | 1460 | droidstubs { |
Nan Zhang | 4d3f501 | 2018-08-07 13:40:33 -0700 | [diff] [blame] | 1461 | name: "system-api-stubs-docs", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1462 | defaults: ["metalava-api-stubs-default"], |
Nan Zhang | 4d3f501 | 2018-08-07 13:40:33 -0700 | [diff] [blame] | 1463 | api_tag_name: "SYSTEM", |
Nan Zhang | 4212eb1 | 2018-04-25 17:23:33 -0700 | [diff] [blame] | 1464 | api_filename: "system-api.txt", |
| 1465 | private_api_filename: "system-private.txt", |
| 1466 | private_dex_api_filename: "system-private-dex.txt", |
| 1467 | removed_api_filename: "system-removed.txt", |
| 1468 | arg_files: [ |
| 1469 | "core/res/AndroidManifest.xml", |
| 1470 | ], |
| 1471 | args: metalava_framework_docs_args + " --show-annotation android.annotation.SystemApi", |
Nan Zhang | e561260 | 2018-08-16 16:16:00 -0700 | [diff] [blame] | 1472 | check_api: { |
| 1473 | current: { |
| 1474 | api_file: "api/system-current.txt", |
| 1475 | removed_api_file: "api/system-removed.txt", |
| 1476 | }, |
Nan Zhang | cd060d9 | 2018-08-20 20:34:26 -0700 | [diff] [blame] | 1477 | last_released: { |
| 1478 | api_file: ":last-released-system-api", |
| 1479 | removed_api_file: "api/system-removed.txt", |
Adrian Roos | 9597f8c | 2019-08-12 17:47:39 +0200 | [diff] [blame] | 1480 | baseline_file: ":system-api-incompatibilities-with-last-released" |
Nan Zhang | cd060d9 | 2018-08-20 20:34:26 -0700 | [diff] [blame] | 1481 | }, |
Adrian Roos | 487c646 | 2019-10-10 12:14:22 +0200 | [diff] [blame] | 1482 | api_lint: { |
| 1483 | enabled: true, |
| 1484 | new_since: ":last-released-system-api", |
| 1485 | baseline_file: "api/system-lint-baseline.txt", |
| 1486 | }, |
Nan Zhang | e561260 | 2018-08-16 16:16:00 -0700 | [diff] [blame] | 1487 | }, |
Nan Zhang | 81f29f5 | 2018-09-17 14:33:08 -0700 | [diff] [blame] | 1488 | jdiff_enabled: true, |
Nan Zhang | 4212eb1 | 2018-04-25 17:23:33 -0700 | [diff] [blame] | 1489 | } |
| 1490 | |
Nan Zhang | 894c9ec | 2018-09-10 18:58:39 -0700 | [diff] [blame] | 1491 | droidstubs { |
Nan Zhang | 4d3f501 | 2018-08-07 13:40:33 -0700 | [diff] [blame] | 1492 | name: "test-api-stubs-docs", |
Nan Zhang | 3e15ba8 | 2018-07-26 18:41:12 +0000 | [diff] [blame] | 1493 | defaults: ["metalava-api-stubs-default"], |
Nan Zhang | 4d3f501 | 2018-08-07 13:40:33 -0700 | [diff] [blame] | 1494 | api_tag_name: "TEST", |
Nan Zhang | 4212eb1 | 2018-04-25 17:23:33 -0700 | [diff] [blame] | 1495 | api_filename: "test-api.txt", |
| 1496 | removed_api_filename: "test-removed.txt", |
| 1497 | arg_files: [ |
| 1498 | "core/res/AndroidManifest.xml", |
| 1499 | ], |
| 1500 | args: metalava_framework_docs_args + " --show-annotation android.annotation.TestApi", |
Nan Zhang | e561260 | 2018-08-16 16:16:00 -0700 | [diff] [blame] | 1501 | check_api: { |
| 1502 | current: { |
| 1503 | api_file: "api/test-current.txt", |
| 1504 | removed_api_file: "api/test-removed.txt", |
| 1505 | }, |
Adrian Roos | d1715e8 | 2019-10-31 16:54:47 +0100 | [diff] [blame] | 1506 | api_lint: { |
| 1507 | enabled: true, |
| 1508 | baseline_file: "api/test-lint-baseline.txt", |
| 1509 | }, |
Nan Zhang | e561260 | 2018-08-16 16:16:00 -0700 | [diff] [blame] | 1510 | }, |
Nan Zhang | 4212eb1 | 2018-04-25 17:23:33 -0700 | [diff] [blame] | 1511 | } |
Nan Zhang | af25130 | 2018-08-30 10:59:51 -0700 | [diff] [blame] | 1512 | |
| 1513 | filegroup { |
| 1514 | name: "framework-annotation-nonnull-srcs", |
| 1515 | srcs: [ |
| 1516 | "core/java/android/annotation/NonNull.java", |
| 1517 | ], |
| 1518 | } |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1519 | |
| 1520 | filegroup { |
| 1521 | name: "framework-media-annotation-srcs", |
| 1522 | srcs: [ |
| 1523 | "core/java/android/annotation/CallbackExecutor.java", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 1524 | "core/java/android/annotation/CallSuper.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1525 | "core/java/android/annotation/DrawableRes.java", |
| 1526 | "core/java/android/annotation/IntDef.java", |
| 1527 | "core/java/android/annotation/LongDef.java", |
| 1528 | "core/java/android/annotation/NonNull.java", |
| 1529 | "core/java/android/annotation/Nullable.java", |
| 1530 | "core/java/android/annotation/RequiresPermission.java", |
| 1531 | "core/java/android/annotation/SdkConstant.java", |
| 1532 | "core/java/android/annotation/StringDef.java", |
Sungsoo Lim | bb3b401 | 2019-01-23 13:17:53 +0900 | [diff] [blame] | 1533 | "core/java/android/annotation/SystemApi.java", |
Dongwon Kang | 3584c66 | 2018-11-27 11:14:08 -0800 | [diff] [blame] | 1534 | "core/java/android/annotation/TestApi.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1535 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Dongwon Kang | 3584c66 | 2018-11-27 11:14:08 -0800 | [diff] [blame] | 1536 | "core/java/com/android/internal/annotations/GuardedBy.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1537 | ], |
| 1538 | } |
| 1539 | |
Andrei Onea | 7a2985c | 2019-02-18 15:28:35 +0000 | [diff] [blame] | 1540 | // Creates an index of AIDL methods; used for adding UnsupportedAppUsage |
| 1541 | // annotations to private apis |
| 1542 | aidl_mapping { |
| 1543 | name: "framework-aidl-mappings", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 1544 | srcs: [":framework-all-sources"], |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1545 | output: "framework-aidl-mappings.txt", |
Dario Freni | 2ce8434 | 2019-04-26 13:06:22 +0100 | [diff] [blame] | 1546 | } |
Anna Trostanetski | 97088e9 | 2019-06-26 14:47:58 +0100 | [diff] [blame] | 1547 | |
| 1548 | genrule { |
| 1549 | name: "framework-annotation-proc-index", |
| 1550 | srcs: [":framework-annotation-proc"], |
| 1551 | cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)", |
| 1552 | out: ["unsupportedappusage_index.csv"], |
| 1553 | dist: { |
| 1554 | targets: ["droidcore"], |
| 1555 | }, |
| 1556 | } |
Chen Xu | 0e9d675 | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1557 | |
| 1558 | // Avoid including Parcelable classes as we don't want to have two copies of |
| 1559 | // Parcelable cross the process. |
| 1560 | filegroup { |
| 1561 | name: "framework-cellbroadcast-shared-srcs", |
| 1562 | srcs: [ |
| 1563 | "core/java/android/util/LocalLog.java", |
| 1564 | "core/java/android/util/Slog.java", |
| 1565 | "core/java/com/android/internal/util/State.java", |
| 1566 | "core/java/com/android/internal/util/StateMachine.java", |
| 1567 | ], |
| 1568 | } |