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