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