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