Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 1 | // Copyright (C) 2016 The Android Open Source Project |
| 2 | // |
| 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | // you may not use this file except in compliance with the License. |
| 5 | // You may obtain a copy of the License at |
| 6 | // |
| 7 | // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | // |
| 9 | // Unless required by applicable law or agreed to in writing, software |
| 10 | // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | // See the License for the specific language governing permissions and |
| 13 | // limitations under the License. |
| 14 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 15 | // Build the master framework library. |
| 16 | |
| 17 | // READ ME: ######################################################## |
| 18 | // |
| 19 | // When updating this list of aidl files, consider if that aidl is |
| 20 | // part of the SDK API. If it is, also add it to the list in Android.mk |
| 21 | // that is preprocessed and distributed with the SDK. This list should |
| 22 | // not contain any aidl files for parcelables, but the one below should |
| 23 | // if you intend for 3rd parties to be able to send those objects |
| 24 | // across process boundaries. |
| 25 | // |
| 26 | // READ ME: ######################################################## |
| 27 | |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 28 | filegroup { |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 29 | name: "framework-core-sources", |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 30 | srcs: [ |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 31 | "core/java/**/*.java", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 32 | "core/java/**/*.aidl", |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 33 | ], |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 34 | path: "core/java", |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 35 | } |
| 36 | |
Jiyong Park | 00ea0b1 | 2019-10-31 20:38:47 +0900 | [diff] [blame] | 37 | // These are subset of framework-core-sources that are needed by the |
| 38 | // android.test.mock library. Ideally, the library should use public APIs only, |
| 39 | // but unfortunately its API signature has some references to these private APIs. |
| 40 | filegroup { |
| 41 | name: "framework-core-sources-for-test-mock", |
| 42 | srcs: [ |
| 43 | "core/java/android/app/IApplicationThread.aidl", |
| 44 | "core/java/android/app/IServiceConnection.aidl", |
| 45 | "core/java/android/content/IContentProvider.java", |
| 46 | "core/java/android/content/pm/IPackageDataObserver.aidl", |
| 47 | "core/java/android/content/pm/InstantAppInfo.java", |
| 48 | "core/java/android/content/pm/KeySet.java", |
| 49 | "core/java/android/content/pm/PackageManager.java", |
| 50 | "core/java/android/content/pm/VerifierDeviceIdentity.java", |
| 51 | "core/java/android/content/res/Resources.java", |
| 52 | "core/java/android/os/storage/VolumeInfo.java", |
| 53 | "core/java/android/view/DisplayAdjustments.java", |
| 54 | ], |
| 55 | path: "core/java", |
| 56 | } |
| 57 | |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 58 | filegroup { |
| 59 | name: "framework-drm-sources", |
| 60 | srcs: [ |
| 61 | "drm/java/**/*.java", |
| 62 | ], |
| 63 | path: "drm/java", |
| 64 | } |
Jiyong Park | 1cc9566 | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 65 | |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 66 | filegroup { |
| 67 | name: "framework-graphics-sources", |
| 68 | srcs: [ |
| 69 | "graphics/java/**/*.java", |
| 70 | "graphics/java/**/*.aidl", |
| 71 | ], |
| 72 | path: "graphics/java", |
| 73 | } |
| 74 | |
| 75 | filegroup { |
| 76 | name: "framework-keystore-sources", |
| 77 | srcs: [ |
| 78 | "keystore/java/**/*.java", |
| 79 | "keystore/java/**/*.aidl", |
| 80 | ], |
| 81 | path: "keystore/java", |
| 82 | } |
| 83 | |
| 84 | filegroup { |
| 85 | name: "framework-location-sources", |
| 86 | srcs: [ |
| 87 | "location/java/**/*.java", |
| 88 | "location/java/**/*.aidl", |
| 89 | ], |
| 90 | path: "location/java", |
| 91 | } |
| 92 | |
| 93 | filegroup { |
| 94 | name: "framework-lowpan-sources", |
| 95 | srcs: [ |
| 96 | "lowpan/java/**/*.java", |
| 97 | "lowpan/java/**/*.aidl", |
| 98 | ], |
| 99 | path: "lowpan/java", |
| 100 | } |
| 101 | |
| 102 | filegroup { |
| 103 | name: "framework-media-sources", |
| 104 | srcs: [ |
| 105 | "media/java/**/*.java", |
| 106 | "media/java/**/*.aidl", |
| 107 | ], |
| 108 | path: "media/java", |
| 109 | } |
| 110 | |
| 111 | filegroup { |
| 112 | name: "framework-mca-effect-sources", |
| 113 | srcs: [ |
| 114 | "media/mca/effect/java/**/*.java", |
| 115 | ], |
| 116 | path: "media/mca/effect/java", |
| 117 | } |
| 118 | |
| 119 | filegroup { |
| 120 | name: "framework-mca-filterfw-sources", |
| 121 | srcs: [ |
| 122 | "media/mca/filterfw/java/**/*.java", |
| 123 | ], |
| 124 | path: "media/mca/filterfw/java", |
| 125 | } |
| 126 | |
| 127 | filegroup { |
| 128 | name: "framework-mca-filterpacks-sources", |
| 129 | srcs: [ |
| 130 | "media/mca/filterpacks/java/**/*.java", |
| 131 | ], |
| 132 | path: "media/mca/filterpacks/java", |
| 133 | } |
| 134 | |
| 135 | filegroup { |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 136 | name: "framework-mime-sources", |
| 137 | srcs: [ |
| 138 | "mime/java/**/*.java", |
| 139 | ], |
| 140 | path: "mime/java", |
| 141 | } |
| 142 | |
| 143 | filegroup { |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 144 | name: "framework-opengl-sources", |
| 145 | srcs: [ |
| 146 | "opengl/java/**/*.java", |
| 147 | ], |
| 148 | path: "opengl/java", |
| 149 | } |
| 150 | |
| 151 | filegroup { |
| 152 | name: "framework-rs-sources", |
| 153 | srcs: [ |
| 154 | "rs/java/**/*.java", |
| 155 | ], |
| 156 | path: "rs/java", |
| 157 | } |
| 158 | |
| 159 | filegroup { |
| 160 | name: "framework-sax-sources", |
| 161 | srcs: [ |
| 162 | "sax/java/**/*.java", |
| 163 | ], |
| 164 | path: "sax/java", |
| 165 | } |
| 166 | |
| 167 | filegroup { |
| 168 | name: "framework-telecomm-sources", |
| 169 | srcs: [ |
| 170 | "telecomm/java/**/*.java", |
| 171 | "telecomm/java/**/*.aidl", |
| 172 | ], |
| 173 | path: "telecomm/java", |
| 174 | } |
| 175 | |
| 176 | filegroup { |
| 177 | name: "framework-telephony-sources", |
| 178 | srcs: [ |
| 179 | "telephony/java/**/*.java", |
| 180 | "telephony/java/**/*.aidl", |
| 181 | ], |
| 182 | path: "telephony/java", |
| 183 | } |
| 184 | |
| 185 | filegroup { |
Amit Mahajan | d355153 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 186 | name: "framework-telephony-common-sources", |
| 187 | srcs: [ |
| 188 | "telephony/common/**/*.java", |
| 189 | ], |
| 190 | path: "telephony/common", |
| 191 | } |
| 192 | |
| 193 | filegroup { |
Amit Mahajan | 6237a6b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 194 | name: "framework-mms-sources", |
| 195 | srcs: [ |
| 196 | "mms/java/**/*.java", |
| 197 | "mms/java/**/*.aidl", |
| 198 | ], |
| 199 | path: "mms/java", |
| 200 | } |
| 201 | |
| 202 | filegroup { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 203 | name: "framework-non-updatable-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 204 | srcs: [ |
| 205 | // Java/AIDL sources under frameworks/base |
Sudheer Shanka | f5b3696 | 2019-10-04 16:16:13 -0700 | [diff] [blame] | 206 | ":framework-blobstore-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 207 | ":framework-core-sources", |
| 208 | ":framework-drm-sources", |
| 209 | ":framework-graphics-sources", |
Jiyong Park | 48cc372 | 2019-10-21 14:01:06 +0900 | [diff] [blame] | 210 | ":framework-jobscheduler-sources", // jobscheduler is not a module for R |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 211 | ":framework-keystore-sources", |
| 212 | ":framework-location-sources", |
| 213 | ":framework-lowpan-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 214 | ":framework-mca-effect-sources", |
| 215 | ":framework-mca-filterfw-sources", |
| 216 | ":framework-mca-filterpacks-sources", |
Jiyong Park | 48cc372 | 2019-10-21 14:01:06 +0900 | [diff] [blame] | 217 | ":framework-media-sources", |
Amit Mahajan | 6237a6b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 218 | ":framework-mms-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 219 | ":framework-opengl-sources", |
| 220 | ":framework-rs-sources", |
| 221 | ":framework-sax-sources", |
| 222 | ":framework-telecomm-sources", |
Amit Mahajan | d355153 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 223 | ":framework-telephony-common-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 224 | ":framework-telephony-sources", |
David Su | 130441b | 2019-12-14 21:37:20 -0800 | [diff] [blame] | 225 | ":framework-wifi-annotations", |
David Su | 6f646ef | 2019-12-10 13:33:06 -0800 | [diff] [blame] | 226 | ":framework-wifi-non-updatable-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 227 | ":PacProcessor-aidl-sources", |
| 228 | ":ProxyHandler-aidl-sources", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 229 | |
atrost | 8748835 | 2019-10-10 19:27:31 +0100 | [diff] [blame] | 230 | // AIDL from frameworks/base/native/ |
| 231 | ":platform-compat-native-aidl", |
| 232 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 233 | // AIDL sources from external directories |
| 234 | ":dumpstate_aidl", |
| 235 | ":framework_native_aidl", |
| 236 | ":gatekeeper_aidl", |
| 237 | ":gsiservice_aidl", |
| 238 | ":incidentcompanion_aidl", |
| 239 | ":installd_aidl", |
| 240 | ":keystore_aidl", |
| 241 | ":libaudioclient_aidl", |
| 242 | ":libbinder_aidl", |
| 243 | ":libbluetooth-binder-aidl", |
| 244 | ":libcamera_client_aidl", |
| 245 | ":libcamera_client_framework_aidl", |
| 246 | ":libupdate_engine_aidl", |
Ruchir Rastogi | cd9dd94 | 2019-11-27 15:26:03 -0800 | [diff] [blame] | 247 | // TODO: this needs to be removed when statsd-framework.jar is separated out |
Jeffrey Huang | 8c1ae5a | 2019-12-12 10:56:24 -0800 | [diff] [blame] | 248 | ":statsd_java_aidl", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 249 | ":storaged_aidl", |
| 250 | ":vold_aidl", |
Jiyong Park | 1cc9566 | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 251 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 252 | // For the generated R.java and Manifest.java |
| 253 | ":framework-res{.aapt.srcjar}", |
| 254 | |
| 255 | // etc. |
| 256 | ":framework-javastream-protos", |
| 257 | ":framework-statslog-gen", |
| 258 | ], |
| 259 | } |
Jiyong Park | 1cc9566 | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 260 | |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 261 | filegroup { |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 262 | name: "framework-updatable-sources", |
| 263 | srcs: [ |
Alexander Dorokhine | 04a05a8 | 2019-12-17 10:41:21 -0800 | [diff] [blame] | 264 | ":framework-appsearch-sources", |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 265 | ":framework-sdkext-sources", |
Muhammad Qureshi | 237c774 | 2019-12-12 11:03:55 -0800 | [diff] [blame] | 266 | ":framework-statsd-sources", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 267 | ":framework-tethering-srcs", |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 268 | ":updatable-media-srcs", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 269 | ":framework-mediaprovider-sources", |
David Su | 754fcc2 | 2019-09-04 14:31:58 -0700 | [diff] [blame] | 270 | ":framework-wifi-updatable-sources", |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 271 | ] |
| 272 | } |
| 273 | |
| 274 | filegroup { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 275 | name: "framework-all-sources", |
| 276 | srcs: [ |
Tobias Thierer | c0c0608 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 277 | ":framework-mime-sources", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 278 | ":framework-non-updatable-sources", |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 279 | ":framework-updatable-sources", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 280 | ], |
| 281 | } |
| 282 | |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 283 | java_defaults { |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 284 | name: "framework-aidl-export-defaults", |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 285 | aidl: { |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 286 | export_include_dirs: [ |
| 287 | "core/java", |
| 288 | "drm/java", |
| 289 | "graphics/java", |
| 290 | "keystore/java", |
| 291 | "location/java", |
| 292 | "lowpan/java", |
| 293 | "media/java", |
| 294 | "media/apex/java", |
| 295 | "media/mca/effect/java", |
| 296 | "media/mca/filterfw/java", |
| 297 | "media/mca/filterpacks/java", |
Amit Mahajan | 6237a6b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 298 | "mms/java", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 299 | "opengl/java", |
| 300 | "rs/java", |
| 301 | "sax/java", |
| 302 | "telecomm/java", |
| 303 | "telephony/java", |
| 304 | "wifi/java", |
| 305 | ], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 306 | }, |
Adam Pardyl | 5020703 | 2019-09-09 14:37:27 +0200 | [diff] [blame] | 307 | |
| 308 | required: [ |
Adam Pardyl | 0f1b3d4 | 2019-08-19 15:24:11 +0200 | [diff] [blame] | 309 | // 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] | 310 | "gps_debug.conf", |
Adam Pardyl | 0f1b3d4 | 2019-08-19 15:24:11 +0200 | [diff] [blame] | 311 | "protolog.conf.json.gz", |
Adam Pardyl | 5020703 | 2019-09-09 14:37:27 +0200 | [diff] [blame] | 312 | ], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 313 | } |
| 314 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 315 | // Collection of classes that are generated from non-Java files that are not listed in |
| 316 | // framework_srcs. These have no or very limited dependency to the framework. |
| 317 | java_library { |
| 318 | name: "framework-internal-utils", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 319 | static_libs: [ |
Dario Freni | d8bf22e | 2018-08-31 14:18:04 +0100 | [diff] [blame] | 320 | "apex_aidl_interface-java", |
Kalesh Singh | 759af32 | 2019-06-19 12:17:43 -0700 | [diff] [blame] | 321 | "suspend_control_aidl_interface-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 322 | "framework-protos", |
Peiyong Lin | 9ca1dd8 | 2019-01-12 17:44:29 -0800 | [diff] [blame] | 323 | "game-driver-protos", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 324 | "android.hidl.base-V1.0-java", |
Henry Fang | 5215ac9 | 2019-02-01 19:24:55 +0000 | [diff] [blame] | 325 | "android.hardware.cas-V1.1-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 326 | "android.hardware.cas-V1.0-java", |
| 327 | "android.hardware.contexthub-V1.0-java", |
Yu-Han Yang | 9fe06dd | 2019-11-18 16:23:31 -0800 | [diff] [blame] | 328 | "android.hardware.gnss-V1.0-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 329 | "android.hardware.health-V1.0-java-constants", |
Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 330 | "android.hardware.radio-V1.0-java", |
| 331 | "android.hardware.radio-V1.1-java", |
| 332 | "android.hardware.radio-V1.2-java", |
| 333 | "android.hardware.radio-V1.3-java", |
| 334 | "android.hardware.radio-V1.4-java", |
Sarah Chin | 21e9c63 | 2019-11-05 13:30:10 -0800 | [diff] [blame] | 335 | "android.hardware.radio-V1.5-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 336 | "android.hardware.thermal-V1.0-java-constants", |
Wei Wang | fb21bd8 | 2019-01-10 14:16:23 -0800 | [diff] [blame] | 337 | "android.hardware.thermal-V1.0-java", |
Wei Wang | bad7c20 | 2018-11-01 11:57:39 -0700 | [diff] [blame] | 338 | "android.hardware.thermal-V1.1-java", |
| 339 | "android.hardware.thermal-V2.0-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 340 | "android.hardware.tv.input-V1.0-java-constants", |
shubang | 7e849b0 | 2019-10-18 19:36:25 -0700 | [diff] [blame] | 341 | "android.hardware.tv.tuner-V1.0-java-constants", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 342 | "android.hardware.usb-V1.0-java-constants", |
| 343 | "android.hardware.usb-V1.1-java-constants", |
Badhri Jagan Sridharan | e966a38 | 2018-12-09 14:49:38 -0800 | [diff] [blame] | 344 | "android.hardware.usb-V1.2-java-constants", |
Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 345 | "android.hardware.usb.gadget-V1.0-java", |
Michael Wright | f268bf5 | 2018-02-07 23:23:34 +0000 | [diff] [blame] | 346 | "android.hardware.vibrator-V1.0-java", |
| 347 | "android.hardware.vibrator-V1.1-java", |
| 348 | "android.hardware.vibrator-V1.2-java", |
Harpreet "Eli" Sangha | a456f08 | 2018-12-14 12:06:10 +0900 | [diff] [blame] | 349 | "android.hardware.vibrator-V1.3-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 350 | "android.hardware.wifi-V1.0-java-constants", |
arangelov | 1ab6149 | 2018-11-22 13:56:50 +0000 | [diff] [blame] | 351 | "devicepolicyprotosnano", |
Inseob Kim | 4fe9f0f | 2019-07-30 18:23:26 +0900 | [diff] [blame] | 352 | |
| 353 | "com.android.sysprop.apex", |
| 354 | "PlatformProperties", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 355 | ], |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 356 | sdk_version: "core_platform", |
| 357 | installable: false, |
| 358 | } |
| 359 | |
| 360 | java_defaults { |
| 361 | name: "framework-defaults", |
| 362 | defaults: ["framework-aidl-export-defaults"], |
| 363 | installable: true, |
| 364 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 365 | aidl: { |
| 366 | generate_get_transaction_name: true, |
| 367 | }, |
| 368 | |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 369 | srcs: ["core/java/**/*.logtags"], |
| 370 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 371 | exclude_srcs: [ |
| 372 | // See comment on framework-atb-backward-compatibility module below |
Winson | 14ff717 | 2019-10-23 10:42:27 -0700 | [diff] [blame] | 373 | "core/java/android/content/pm/parsing/library/AndroidTestBaseUpdater.java", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 374 | ], |
| 375 | |
| 376 | sdk_version: "core_platform", |
| 377 | libs: [ |
Artur Satayev | 6aa25ec | 2019-12-11 16:33:22 +0000 | [diff] [blame] | 378 | "app-compat-annotations", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 379 | "ext", |
Artur Satayev | 6aa25ec | 2019-12-11 16:33:22 +0000 | [diff] [blame] | 380 | "unsupportedappusage", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 381 | "updatable_media_stubs", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 382 | "framework_mediaprovider_stubs", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 383 | "framework-tethering", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 384 | ], |
| 385 | |
| 386 | jarjar_rules: ":framework-jarjar-rules", |
| 387 | |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 388 | static_libs: [ |
| 389 | "framework-internal-utils", |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 390 | ], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 391 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 392 | dxflags: [ |
| 393 | "--core-library", |
| 394 | "--multi-dex", |
| 395 | ], |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 396 | |
Eugene Susla | 3b2fe61 | 2019-08-06 18:47:14 -0700 | [diff] [blame] | 397 | plugins: [ |
| 398 | "view-inspector-annotation-processor", |
| 399 | "staledataclass-annotation-processor", |
| 400 | ], |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 401 | } |
| 402 | |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 403 | filegroup { |
Steven Moreland | 19e8d46 | 2019-03-08 10:44:22 -0800 | [diff] [blame] | 404 | name: "framework-jarjar-rules", |
David Su | 130441b | 2019-12-14 21:37:20 -0800 | [diff] [blame] | 405 | srcs: ["framework-jarjar-rules.txt"], |
Steven Moreland | 19e8d46 | 2019-03-08 10:44:22 -0800 | [diff] [blame] | 406 | } |
| 407 | |
| 408 | filegroup { |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 409 | name: "libincident_aidl", |
| 410 | srcs: [ |
| 411 | "core/java/android/os/IIncidentManager.aidl", |
| 412 | "core/java/android/os/IIncidentReportStatusListener.aidl", |
| 413 | ], |
Dan Willemsen | 4a49850 | 2019-06-05 15:51:24 -0700 | [diff] [blame] | 414 | path: "core/java", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 415 | } |
| 416 | |
| 417 | filegroup { |
Michael Wright | c390fbe | 2018-12-12 19:45:09 +0000 | [diff] [blame] | 418 | name: "libvibrator_aidl", |
| 419 | srcs: [ |
| 420 | "core/java/android/os/IExternalVibrationController.aidl", |
| 421 | "core/java/android/os/IExternalVibratorService.aidl", |
| 422 | ], |
Dan Willemsen | 4a49850 | 2019-06-05 15:51:24 -0700 | [diff] [blame] | 423 | path: "core/java", |
Michael Wright | c390fbe | 2018-12-12 19:45:09 +0000 | [diff] [blame] | 424 | } |
| 425 | |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 426 | java_library { |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 427 | name: "framework-minus-apex", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 428 | defaults: ["framework-defaults"], |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 429 | srcs: [":framework-non-updatable-sources"], |
Muhammad Qureshi | 237c774 | 2019-12-12 11:03:55 -0800 | [diff] [blame] | 430 | libs: [ |
Alexander Dorokhine | 04a05a8 | 2019-12-17 10:41:21 -0800 | [diff] [blame] | 431 | "framework-appsearch-stubs", |
Muhammad Qureshi | 237c774 | 2019-12-12 11:03:55 -0800 | [diff] [blame] | 432 | // TODO(b/146167933): Use framework-statsd-stubs |
| 433 | "framework-statsd", |
David Su | 754fcc2 | 2019-09-04 14:31:58 -0700 | [diff] [blame] | 434 | "framework-wifi-stubs", |
Muhammad Qureshi | 237c774 | 2019-12-12 11:03:55 -0800 | [diff] [blame] | 435 | ], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 436 | installable: true, |
Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 437 | javac_shard_size: 150, |
atrost | aec9bc1 | 2019-08-16 18:14:09 +0100 | [diff] [blame] | 438 | required: [ |
| 439 | "framework-platform-compat-config", |
| 440 | "libcore-platform-compat-config", |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 441 | "services-platform-compat-config", |
atrost | 8bea647 | 2019-10-10 19:33:22 +0100 | [diff] [blame] | 442 | "media-provider-platform-compat-config", |
atrost | ce84de0 | 2019-10-08 16:16:47 +0100 | [diff] [blame] | 443 | "services-devicepolicy-platform-compat-config", |
atrost | c3c2e4d | 2019-11-29 11:27:27 +0000 | [diff] [blame] | 444 | "services-core-platform-compat-config", |
atrost | aec9bc1 | 2019-08-16 18:14:09 +0100 | [diff] [blame] | 445 | ], |
Tobias Thierer | c0c0608 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 446 | static_libs: [ |
Tobias Thierer | 8296853 | 2019-11-29 19:39:45 +0000 | [diff] [blame] | 447 | // If MimeMap ever becomes its own APEX, then this dependency would need to be removed |
| 448 | // in favor of an API stubs dependency in java_library "framework" below. |
Tobias Thierer | c0c0608 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 449 | "mimemap", |
| 450 | ], |
Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 451 | // For backwards compatibility. |
| 452 | stem: "framework", |
Jiyong Park | 352f9e2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 453 | apex_available: ["//apex_available:platform"], |
Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 454 | } |
| 455 | |
| 456 | // This "framework" module is NOT installed to the device. It's |
| 457 | // "framework-minus-apex" that gets installed to the device. Note that |
| 458 | // the filename is still framework.jar (via the stem property) for |
| 459 | // compatibility reason. The purpose of this module is to provide |
| 460 | // framework APIs (both public and private) for bundled apps. |
| 461 | // "framework-minus-apex" can't be used for the purpose because 1) |
| 462 | // many apps have already hardcoded the name "framework" and |
| 463 | // 2) it lacks API symbols from updatable modules - as it's clear from |
| 464 | // its suffix "-minus-apex". |
| 465 | java_library { |
| 466 | name: "framework", |
| 467 | defaults: ["framework-aidl-export-defaults"], |
| 468 | installable: false, // this lib is a build-only library |
| 469 | static_libs: [ |
| 470 | "framework-minus-apex", |
Jiyong Park | 9272134 | 2019-12-18 17:26:38 +0900 | [diff] [blame] | 471 | "updatable_media_stubs", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 472 | "framework_mediaprovider_stubs", |
Alexander Dorokhine | 04a05a8 | 2019-12-17 10:41:21 -0800 | [diff] [blame] | 473 | "framework-appsearch", // TODO(b/146218515): should be framework-appsearch-stubs |
Anton Hansson | 355000d | 2019-12-06 17:07:45 +0000 | [diff] [blame] | 474 | "framework-sdkext-stubs-systemapi", |
Muhammad Qureshi | 237c774 | 2019-12-12 11:03:55 -0800 | [diff] [blame] | 475 | // TODO(b/146167933): Use framework-statsd-stubs instead. |
| 476 | "framework-statsd", |
David Su | 754fcc2 | 2019-09-04 14:31:58 -0700 | [diff] [blame] | 477 | // TODO(b/140299412): should be framework-wifi-stubs |
| 478 | "framework-wifi", |
Anton Hansson | 355000d | 2019-12-06 17:07:45 +0000 | [diff] [blame] | 479 | // TODO(jiyong): add more stubs for APEXes here |
Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 480 | ], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 481 | sdk_version: "core_platform", |
Jiyong Park | 352f9e2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 482 | apex_available: ["//apex_available:platform"], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 483 | } |
| 484 | |
| 485 | java_library { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 486 | name: "framework-all", |
| 487 | defaults: ["framework-defaults"], |
| 488 | srcs: [":framework-all-sources"], |
| 489 | installable: false, |
Jiyong Park | 352f9e2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 490 | static_libs: ["exoplayer2-core"], |
| 491 | apex_available: ["//apex_available:platform"], |
Jiyong Park | 9718349 | 2019-11-14 03:07:36 +0000 | [diff] [blame] | 492 | } |
| 493 | |
| 494 | java_library { |
| 495 | name: "framework-annotation-proc", |
| 496 | defaults: ["framework-aidl-export-defaults"], |
| 497 | srcs: [":framework-all-sources"], |
Artur Satayev | 6aa25ec | 2019-12-11 16:33:22 +0000 | [diff] [blame] | 498 | libs: [ |
| 499 | "app-compat-annotations", |
| 500 | "unsupportedappusage", |
| 501 | ], |
Jiyong Park | 9718349 | 2019-11-14 03:07:36 +0000 | [diff] [blame] | 502 | installable: false, |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 503 | plugins: [ |
| 504 | "unsupportedappusage-annotation-processor", |
| 505 | "compat-changeid-annotation-processor", |
| 506 | ], |
Santiago Seifert | 5466a7d | 2019-11-11 19:27:04 +0000 | [diff] [blame] | 507 | static_libs: [ |
| 508 | "exoplayer2-core" |
| 509 | ] |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 510 | } |
| 511 | |
| 512 | platform_compat_config { |
| 513 | name: "framework-platform-compat-config", |
Jiyong Park | 9718349 | 2019-11-14 03:07:36 +0000 | [diff] [blame] | 514 | src: ":framework-annotation-proc", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 515 | } |
| 516 | |
Paul Duffin | 52197580 | 2019-06-05 10:35:08 +0100 | [diff] [blame] | 517 | // A library including just UnsupportedAppUsage.java classes. |
| 518 | // |
| 519 | // Provided for target so that libraries can use it without depending on |
| 520 | // the whole of framework or the core platform API. |
| 521 | // |
| 522 | // Built for host so that the annotation processor can also use this annotation. |
| 523 | java_library { |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 524 | name: "unsupportedappusage-annotation", |
Paul Duffin | 52197580 | 2019-06-05 10:35:08 +0100 | [diff] [blame] | 525 | host_supported: true, |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 526 | srcs: [ |
| 527 | "core/java/android/annotation/IntDef.java", |
| 528 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Paul Duffin | c130801 | 2019-10-10 16:33:42 +0100 | [diff] [blame] | 529 | ], |
| 530 | static_libs: [ |
| 531 | "art.module.api.annotations", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 532 | ], |
Paul Duffin | 52197580 | 2019-06-05 10:35:08 +0100 | [diff] [blame] | 533 | |
| 534 | sdk_version: "core_current", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 535 | } |
| 536 | |
Paul Duffin | beee5dc | 2018-01-23 13:39:00 +0000 | [diff] [blame] | 537 | // A temporary build target that is conditionally included on the bootclasspath if |
Paul Duffin | a3b6921 | 2018-01-25 09:58:32 +0000 | [diff] [blame] | 538 | // android.test.base library has been removed and which provides support for |
| 539 | // maintaining backwards compatibility for APKs that target pre-P and depend on |
| 540 | // android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is |
| 541 | // specified on the build command line. |
| 542 | java_library { |
| 543 | name: "framework-atb-backward-compatibility", |
Paul Duffin | fab8754 | 2019-02-15 11:39:12 +0000 | [diff] [blame] | 544 | installable: true, |
atrost | 1a94550 | 2019-11-04 17:03:54 +0000 | [diff] [blame] | 545 | libs: ["app-compat-annotations"], |
Paul Duffin | a3b6921 | 2018-01-25 09:58:32 +0000 | [diff] [blame] | 546 | srcs: [ |
Winson | 14ff717 | 2019-10-23 10:42:27 -0700 | [diff] [blame] | 547 | "core/java/android/content/pm/parsing/library/AndroidTestBaseUpdater.java", |
Paul Duffin | a3b6921 | 2018-01-25 09:58:32 +0000 | [diff] [blame] | 548 | ], |
| 549 | } |
| 550 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 551 | genrule { |
| 552 | name: "framework-statslog-gen", |
| 553 | tools: ["stats-log-api-gen"], |
| 554 | cmd: "$(location stats-log-api-gen) --java $(out)", |
David Chen | 0a368b2 | 2017-12-06 16:28:16 -0800 | [diff] [blame] | 555 | out: ["android/util/StatsLogInternal.java"], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 556 | } |
| 557 | |
| 558 | gensrcs { |
| 559 | name: "framework-javastream-protos", |
| 560 | depfile: true, |
| 561 | |
| 562 | tools: [ |
| 563 | "aprotoc", |
| 564 | "protoc-gen-javastream", |
| 565 | "soong_zip", |
| 566 | ], |
| 567 | |
Anton Hansson | d82b2f7 | 2019-11-18 13:34:56 +0000 | [diff] [blame] | 568 | cmd: "mkdir -p $(genDir)/$(in) " + |
| 569 | "&& $(location aprotoc) " + |
| 570 | " --plugin=$(location protoc-gen-javastream) " + |
| 571 | " --dependency_out=$(depfile) " + |
| 572 | " --javastream_out=$(genDir)/$(in) " + |
| 573 | " -Iexternal/protobuf/src " + |
| 574 | " -I . " + |
| 575 | " $(in) " + |
| 576 | "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)", |
| 577 | |
Yi Jin | 437aa6e | 2018-01-10 11:34:26 -0800 | [diff] [blame] | 578 | srcs: [ |
| 579 | "core/proto/**/*.proto", |
| 580 | "libs/incident/**/*.proto", |
| 581 | ], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 582 | output_extension: "srcjar", |
| 583 | } |
| 584 | |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 585 | filegroup { |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 586 | name: "framework-annotations", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 587 | srcs: [ |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 588 | "core/java/android/annotation/IntDef.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 589 | "core/java/android/annotation/IntRange.java", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 590 | "core/java/android/annotation/NonNull.java", |
| 591 | "core/java/android/annotation/Nullable.java", |
| 592 | "core/java/android/annotation/RequiresPermission.java", |
| 593 | "core/java/android/annotation/SdkConstant.java", |
Anton Hansson | dc1e99b | 2019-12-06 17:07:28 +0000 | [diff] [blame] | 594 | "core/java/android/annotation/SystemApi.java", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 595 | "core/java/android/annotation/TestApi.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 596 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Remi NGUYEN VAN | 231b52b | 2019-01-29 15:38:52 +0900 | [diff] [blame] | 597 | "core/java/com/android/internal/annotations/GuardedBy.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 598 | "core/java/com/android/internal/annotations/VisibleForTesting.java", |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 599 | ], |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 600 | } |
| 601 | |
Anton Hansson | 4ec07fa | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 602 | java_library { |
| 603 | name: "framework-annotations-lib", |
| 604 | srcs: [ ":framework-annotations" ], |
Anton Hansson | 791551a | 2019-12-19 10:17:46 +0000 | [diff] [blame] | 605 | sdk_version: "core_current", |
Anton Hansson | 4ec07fa | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 606 | } |
| 607 | |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 608 | filegroup { |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 609 | name: "framework-networkstack-shared-srcs", |
| 610 | srcs: [ |
| 611 | // 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] | 612 | ":framework-annotations", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 613 | "core/java/android/net/DhcpResults.java", |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 614 | "core/java/android/util/LocalLog.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 615 | "core/java/com/android/internal/util/HexDump.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 616 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 617 | "core/java/com/android/internal/util/IState.java", |
| 618 | "core/java/com/android/internal/util/MessageUtils.java", |
| 619 | "core/java/com/android/internal/util/Preconditions.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 620 | "core/java/com/android/internal/util/RingBufferIndices.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 621 | "core/java/com/android/internal/util/State.java", |
| 622 | "core/java/com/android/internal/util/StateMachine.java", |
Chalard Jean | 6a76b7e | 2019-04-09 11:16:56 +0900 | [diff] [blame] | 623 | "core/java/com/android/internal/util/TrafficStatsConstants.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 624 | "core/java/com/android/internal/util/WakeupMessage.java", |
| 625 | "core/java/android/net/shared/*.java", |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 626 | ], |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 627 | } |
| 628 | |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 629 | // keep these files in sync with the package/Tethering/jarjar-rules.txt for the tethering module. |
markchien | a6ba54d | 2019-09-03 15:58:06 +0800 | [diff] [blame] | 630 | filegroup { |
| 631 | name: "framework-tethering-shared-srcs", |
| 632 | srcs: [ |
| 633 | "core/java/android/util/LocalLog.java", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 634 | "core/java/com/android/internal/util/BitUtils.java", |
| 635 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
| 636 | "core/java/com/android/internal/util/IState.java", |
| 637 | "core/java/com/android/internal/util/MessageUtils.java", |
| 638 | "core/java/com/android/internal/util/Preconditions.java", |
| 639 | "core/java/com/android/internal/util/State.java", |
| 640 | "core/java/com/android/internal/util/StateMachine.java", |
| 641 | ], |
| 642 | } |
| 643 | |
| 644 | filegroup { |
| 645 | name: "framework-tethering-annotations", |
| 646 | srcs: [ |
| 647 | "core/java/android/annotation/NonNull.java", |
| 648 | "core/java/android/annotation/SystemApi.java", |
markchien | a6ba54d | 2019-09-03 15:58:06 +0800 | [diff] [blame] | 649 | ], |
| 650 | } |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 651 | // Build ext.jar |
| 652 | // ============================================================ |
| 653 | java_library { |
| 654 | name: "ext", |
Colin Cross | a12c0f5 | 2018-06-27 11:00:11 -0700 | [diff] [blame] | 655 | installable: true, |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 656 | sdk_version: "core_platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 657 | static_libs: [ |
| 658 | "libphonenumber-platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 659 | "tagsoup", |
Ricky Wai | 0d1bc33 | 2017-10-31 14:31:01 +0000 | [diff] [blame] | 660 | "rappor", |
Tony Mak | 64c4cb2 | 2018-09-25 13:38:28 +0100 | [diff] [blame] | 661 | "libtextclassifier-java", |
| 662 | ], |
| 663 | required: [ |
| 664 | "libtextclassifier", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 665 | ], |
| 666 | dxflags: ["--core-library"], |
| 667 | } |
| 668 | |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 669 | // ==== java proto host library ============================== |
| 670 | java_library_host { |
| 671 | name: "platformprotos", |
| 672 | srcs: [ |
| 673 | "cmds/am/proto/instrumentation_data.proto", |
Howard Ro | 0546d54 | 2018-08-30 16:23:44 -0700 | [diff] [blame] | 674 | "cmds/statsd/src/**/*.proto", |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 675 | "core/proto/**/*.proto", |
| 676 | "libs/incident/proto/**/*.proto", |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 677 | ], |
| 678 | proto: { |
| 679 | include_dirs: ["external/protobuf/src"], |
| 680 | type: "full", |
| 681 | }, |
| 682 | errorprone: { |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 683 | javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520 |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 684 | }, |
| 685 | } |
| 686 | |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 687 | // ==== java proto device library (for test only) ============================== |
| 688 | java_library { |
| 689 | name: "platformprotosnano", |
| 690 | proto: { |
| 691 | type: "nano", |
| 692 | output_params: ["store_unknown_fields=true"], |
| 693 | include_dirs: ["external/protobuf/src"], |
| 694 | }, |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 695 | exclude_srcs: [ |
| 696 | "core/proto/android/privacy.proto", |
| 697 | "core/proto/android/section.proto", |
| 698 | ], |
Anton Hansson | 791551a | 2019-12-19 10:17:46 +0000 | [diff] [blame] | 699 | sdk_version: "9", |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 700 | srcs: [ |
| 701 | "core/proto/**/*.proto", |
| 702 | "libs/incident/proto/android/os/**/*.proto", |
| 703 | ], |
| 704 | } |
| 705 | |
| 706 | // ==== java proto device library (for test only) ============================== |
| 707 | java_library { |
| 708 | name: "platformprotoslite", |
| 709 | proto: { |
| 710 | type: "lite", |
| 711 | include_dirs: ["external/protobuf/src"], |
| 712 | }, |
| 713 | |
| 714 | srcs: [ |
| 715 | "core/proto/**/*.proto", |
| 716 | "libs/incident/proto/android/os/**/*.proto", |
| 717 | ], |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 718 | exclude_srcs: [ |
| 719 | "core/proto/android/privacy.proto", |
| 720 | "core/proto/android/section.proto", |
| 721 | ], |
Anton Hansson | 791551a | 2019-12-19 10:17:46 +0000 | [diff] [blame] | 722 | sdk_version: "core_current", |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 723 | // Protos have lots of MissingOverride and similar. |
| 724 | errorprone: { |
| 725 | javacflags: ["-XepDisableAllChecks"], |
| 726 | }, |
| 727 | } |
| 728 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 729 | // ==== c++ proto device library ============================== |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 730 | cc_defaults { |
| 731 | name: "libplatformprotos-defaults", |
| 732 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 733 | proto: { |
| 734 | export_proto_headers: true, |
| 735 | include_dirs: ["external/protobuf/src"], |
| 736 | }, |
| 737 | |
Chih-Hung Hsieh | c7edf07 | 2017-10-03 09:57:55 -0700 | [diff] [blame] | 738 | cflags: [ |
| 739 | "-Wall", |
| 740 | "-Werror", |
| 741 | "-Wno-unused-parameter", |
| 742 | ], |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 743 | |
| 744 | srcs: [ |
| 745 | "core/proto/**/*.proto", |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 746 | ], |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 747 | } |
| 748 | |
| 749 | cc_library { |
| 750 | name: "libplatformprotos", |
| 751 | defaults: ["libplatformprotos-defaults"], |
| 752 | host_supported: true, |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 753 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 754 | target: { |
| 755 | host: { |
| 756 | proto: { |
| 757 | type: "full", |
| 758 | }, |
| 759 | }, |
| 760 | android: { |
| 761 | proto: { |
| 762 | type: "lite", |
| 763 | }, |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 764 | shared_libs: [ |
| 765 | "libprotobuf-cpp-lite", |
| 766 | ], |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 767 | shared: { |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 768 | enabled: false, |
| 769 | }, |
| 770 | }, |
| 771 | }, |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 772 | } |
| 773 | |
Joe Onorato | 9bd5db7 | 2019-04-03 18:19:43 -0700 | [diff] [blame] | 774 | // This library is meant for vendor code that needs to output protobuf. It links |
| 775 | // against the static version of libprotobuf-cpp-lite, for which we can not guarantee |
| 776 | // binary compatibility. |
| 777 | cc_library { |
| 778 | name: "libplatformprotos-static", |
| 779 | defaults: ["libplatformprotos-defaults"], |
| 780 | host_supported: false, |
| 781 | |
| 782 | // This is okay because this library is only built as a static library. The C++ |
| 783 | // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council, |
| 784 | // but is not authorized to be used outside of debugging. |
| 785 | vendor_available: true, |
| 786 | |
| 787 | target: { |
| 788 | android: { |
| 789 | proto: { |
| 790 | type: "lite", |
| 791 | }, |
| 792 | static_libs: [ |
| 793 | "libprotobuf-cpp-lite", |
| 794 | ], |
| 795 | shared: { |
| 796 | enabled: false, |
| 797 | }, |
| 798 | }, |
| 799 | }, |
| 800 | } |
| 801 | |
| 802 | |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 803 | // This is the full proto version of libplatformprotos. It may only |
| 804 | // be used by test code that is not shipped on the device. |
| 805 | cc_library { |
| 806 | name: "libplatformprotos-test", |
| 807 | defaults: ["libplatformprotos-defaults"], |
| 808 | host_supported: false, |
| 809 | |
| 810 | target: { |
| 811 | android: { |
| 812 | proto: { |
| 813 | type: "full", |
| 814 | }, |
| 815 | shared: { |
| 816 | enabled: false, |
| 817 | }, |
| 818 | }, |
| 819 | }, |
| 820 | } |
| 821 | |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 822 | filegroup { |
| 823 | name: "incremental_aidl", |
| 824 | srcs: [ |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 825 | "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl", |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 826 | ], |
| 827 | path: "core/java", |
| 828 | } |
| 829 | |
| 830 | filegroup { |
Songchun Fan | 6dd47b5 | 2019-11-29 15:20:18 -0800 | [diff] [blame] | 831 | name: "dataloader_aidl", |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 832 | srcs: [ |
Alex Buynytskyy | ea14d19 | 2019-12-13 15:42:18 -0800 | [diff] [blame] | 833 | "core/java/android/content/pm/DataLoaderParamsParcel.aidl", |
Alex Buynytskyy | 1ecfcec | 2019-12-17 12:10:41 -0800 | [diff] [blame] | 834 | "core/java/android/content/pm/DataLoaderType.aidl", |
Alex Buynytskyy | ea14d19 | 2019-12-13 15:42:18 -0800 | [diff] [blame] | 835 | "core/java/android/content/pm/FileSystemControlParcel.aidl", |
Songchun Fan | 6dd47b5 | 2019-11-29 15:20:18 -0800 | [diff] [blame] | 836 | "core/java/android/content/pm/IDataLoaderStatusListener.aidl", |
Alex Buynytskyy | ea14d19 | 2019-12-13 15:42:18 -0800 | [diff] [blame] | 837 | "core/java/android/content/pm/IPackageInstallerSessionFileSystemConnector.aidl", |
| 838 | "core/java/android/content/pm/NamedParcelFileDescriptor.aidl", |
Alex Buynytskyy | 5b0c7fa | 2019-12-17 21:48:16 -0800 | [diff] [blame] | 839 | ], |
| 840 | path: "core/java", |
| 841 | } |
| 842 | |
| 843 | filegroup { |
| 844 | name: "incremental_manager_aidl", |
| 845 | srcs: [ |
| 846 | "core/java/android/os/incremental/IIncrementalManager.aidl", |
| 847 | "core/java/android/os/incremental/IIncrementalManagerNative.aidl", |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 848 | ], |
| 849 | path: "core/java", |
| 850 | } |
| 851 | |
| 852 | aidl_interface { |
| 853 | name: "libincremental_aidl", |
| 854 | srcs: [ |
| 855 | ":incremental_aidl", |
Songchun Fan | 6dd47b5 | 2019-11-29 15:20:18 -0800 | [diff] [blame] | 856 | ], |
Songchun Fan | 6dd47b5 | 2019-11-29 15:20:18 -0800 | [diff] [blame] | 857 | backend: { |
| 858 | java: { |
| 859 | sdk_version: "28", |
| 860 | }, |
| 861 | cpp: { |
| 862 | enabled: true, |
| 863 | }, |
| 864 | ndk: { |
| 865 | enabled: true, |
| 866 | }, |
| 867 | }, |
| 868 | } |
| 869 | |
| 870 | aidl_interface { |
| 871 | name: "libdataloader_aidl", |
| 872 | srcs: [ |
| 873 | ":dataloader_aidl", |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 874 | ], |
Alex Buynytskyy | 5b0c7fa | 2019-12-17 21:48:16 -0800 | [diff] [blame] | 875 | imports: [ |
| 876 | "libincremental_aidl", |
| 877 | ], |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 878 | backend: { |
| 879 | java: { |
| 880 | sdk_version: "28", |
| 881 | }, |
| 882 | cpp: { |
| 883 | enabled: true, |
| 884 | }, |
| 885 | ndk: { |
Alex Buynytskyy | 5b0c7fa | 2019-12-17 21:48:16 -0800 | [diff] [blame] | 886 | enabled: false, |
| 887 | }, |
| 888 | }, |
| 889 | } |
| 890 | |
| 891 | aidl_interface { |
| 892 | name: "libincremental_manager_aidl", |
| 893 | srcs: [ |
| 894 | ":incremental_manager_aidl", |
| 895 | ], |
| 896 | imports: [ |
| 897 | "libincremental_aidl", |
| 898 | "libdataloader_aidl", |
| 899 | ], |
| 900 | backend: { |
| 901 | java: { |
| 902 | sdk_version: "28", |
| 903 | }, |
| 904 | cpp: { |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 905 | enabled: true, |
| 906 | }, |
Alex Buynytskyy | 5b0c7fa | 2019-12-17 21:48:16 -0800 | [diff] [blame] | 907 | ndk: { |
| 908 | enabled: false, |
| 909 | }, |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 910 | }, |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 911 | } |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 912 | |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 913 | gensrcs { |
| 914 | name: "gen-platform-proto-constants", |
| 915 | depfile: true, |
| 916 | |
| 917 | tools: [ |
| 918 | "aprotoc", |
| 919 | "protoc-gen-cppstream", |
| 920 | ], |
| 921 | |
| 922 | srcs: [ |
Kweku Adams | eadd123 | 2018-02-05 16:45:13 -0800 | [diff] [blame] | 923 | "core/proto/android/os/backtrace.proto", |
Kweku Adams | 59e6fd7 | 2017-12-27 15:48:14 -0800 | [diff] [blame] | 924 | "core/proto/android/os/batterytype.proto", |
Yi Jin | 0eb2234 | 2017-11-06 17:17:27 -0800 | [diff] [blame] | 925 | "core/proto/android/os/cpufreq.proto", |
Yi Jin | e2f7f79 | 2017-11-01 17:08:27 -0700 | [diff] [blame] | 926 | "core/proto/android/os/cpuinfo.proto", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 927 | "core/proto/android/os/data.proto", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 928 | "core/proto/android/os/kernelwake.proto", |
| 929 | "core/proto/android/os/pagetypeinfo.proto", |
| 930 | "core/proto/android/os/procrank.proto", |
Kweku Adams | f5cc575 | 2017-12-20 17:59:17 -0800 | [diff] [blame] | 931 | "core/proto/android/os/ps.proto", |
Yi Jin | 0dfa752 | 2017-11-06 17:43:47 -0800 | [diff] [blame] | 932 | "core/proto/android/os/system_properties.proto", |
Yi Jin | 3c034c9 | 2017-12-22 17:36:47 -0800 | [diff] [blame] | 933 | "core/proto/android/util/event_log_tags.proto", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 934 | "core/proto/android/util/log.proto", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 935 | ], |
| 936 | |
| 937 | // 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] | 938 | cmd: "mkdir -p $(genDir) " + |
| 939 | "&& $(location aprotoc) " + |
| 940 | " --plugin=$(location protoc-gen-cppstream) " + |
| 941 | " --dependency_out=$(depfile) " + |
| 942 | " --cppstream_out=$(genDir) " + |
| 943 | " -Iexternal/protobuf/src " + |
| 944 | " -I . " + |
| 945 | " $(in)", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 946 | |
Logan Chien | 71ddfea | 2018-02-27 16:43:50 +0800 | [diff] [blame] | 947 | output_extension: "proto.h", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 948 | } |
| 949 | |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 950 | |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 951 | subdirs = [ |
Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 952 | "cmds/*", |
Jeff Sharkey | 0c686e7 | 2017-10-23 16:04:31 -0600 | [diff] [blame] | 953 | "core/*", |
Colin Cross | 4f8d9e6 | 2016-12-01 15:55:00 -0800 | [diff] [blame] | 954 | "libs/*", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 955 | "media/*", |
Colin Cross | 747e7c1 | 2017-10-24 16:21:22 -0700 | [diff] [blame] | 956 | "proto", |
Fabien Sanglard | 1916020 | 2017-01-12 14:24:31 -0500 | [diff] [blame] | 957 | "tools/*", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 958 | "native/android", |
Dan Albert | 7ce8df3 | 2016-09-23 16:43:49 -0700 | [diff] [blame] | 959 | "native/graphics/jni", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 960 | ] |
Svetoslav Ganov | 74c9983 | 2016-12-05 20:07:20 -0800 | [diff] [blame] | 961 | |
| 962 | optional_subdirs = [ |
| 963 | "core/tests/utiltests/jni", |
| 964 | ] |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 965 | |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 966 | // TODO(b/77285514): remove this once the last few hidl interfaces have been |
| 967 | // updated to use hwbinder.stubs. |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 968 | java_library { |
| 969 | name: "hwbinder", |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 970 | sdk_version: "core_platform", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 971 | |
| 972 | srcs: [ |
| 973 | "core/java/android/os/HidlSupport.java", |
Steven Moreland | e8e63aa | 2018-01-10 15:45:36 -0800 | [diff] [blame] | 974 | "core/java/android/annotation/IntDef.java", |
Ytai Ben-Tsvi | 4659e18 | 2019-11-06 09:53:34 -0800 | [diff] [blame] | 975 | "core/java/android/annotation/IntRange.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 976 | "core/java/android/annotation/NonNull.java", |
Steven Moreland | 0ff061a | 2019-03-04 17:56:30 -0800 | [diff] [blame] | 977 | "core/java/android/annotation/Nullable.java", |
Steven Moreland | e8e63aa | 2018-01-10 15:45:36 -0800 | [diff] [blame] | 978 | "core/java/android/annotation/SystemApi.java", |
Steven Moreland | cbba4c7 | 2019-01-11 10:19:51 -0800 | [diff] [blame] | 979 | "core/java/android/annotation/TestApi.java", |
Andrei Onea | 24ec321 | 2019-03-15 17:35:05 +0000 | [diff] [blame] | 980 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Ytai Ben-Tsvi | 4659e18 | 2019-11-06 09:53:34 -0800 | [diff] [blame] | 981 | "core/java/android/os/HidlMemory.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 982 | "core/java/android/os/HwBinder.java", |
| 983 | "core/java/android/os/HwBlob.java", |
| 984 | "core/java/android/os/HwParcel.java", |
| 985 | "core/java/android/os/IHwBinder.java", |
| 986 | "core/java/android/os/IHwInterface.java", |
| 987 | "core/java/android/os/DeadObjectException.java", |
| 988 | "core/java/android/os/DeadSystemException.java", |
Nirav Atre | 9850dd9 | 2018-07-24 17:03:44 -0700 | [diff] [blame] | 989 | "core/java/android/os/NativeHandle.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 990 | "core/java/android/os/RemoteException.java", |
| 991 | "core/java/android/util/AndroidException.java", |
| 992 | ], |
Artur Satayev | afdb23a | 2019-12-10 17:47:53 +0000 | [diff] [blame] | 993 | libs: [ "unsupportedappusage" ], |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 994 | |
| 995 | dxflags: ["--core-library"], |
| 996 | installable: false, |
| 997 | } |
Nan Zhang | 2db709d | 2017-11-08 20:48:46 -0800 | [diff] [blame] | 998 | |
| 999 | python_defaults { |
| 1000 | name: "base_default", |
| 1001 | version: { |
| 1002 | py2: { |
| 1003 | enabled: true, |
| 1004 | embedded_launcher: true, |
| 1005 | }, |
| 1006 | py3: { |
| 1007 | enabled: false, |
| 1008 | embedded_launcher: false, |
| 1009 | }, |
| 1010 | }, |
| 1011 | } |
| 1012 | |
| 1013 | python_binary_host { |
| 1014 | name: "fontchain_linter", |
| 1015 | defaults: ["base_default"], |
| 1016 | main: "tools/fonts/fontchain_linter.py", |
| 1017 | srcs: [ |
| 1018 | "tools/fonts/fontchain_linter.py", |
| 1019 | ], |
| 1020 | libs: [ |
| 1021 | "fontTools", |
| 1022 | ], |
| 1023 | } |
Nan Zhang | 172875b | 2018-02-27 11:24:03 -0800 | [diff] [blame] | 1024 | |
Nan Zhang | af25130 | 2018-08-30 10:59:51 -0700 | [diff] [blame] | 1025 | filegroup { |
| 1026 | name: "framework-annotation-nonnull-srcs", |
| 1027 | srcs: [ |
| 1028 | "core/java/android/annotation/NonNull.java", |
| 1029 | ], |
| 1030 | } |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1031 | |
| 1032 | filegroup { |
| 1033 | name: "framework-media-annotation-srcs", |
| 1034 | srcs: [ |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 1035 | ":framework-annotations", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1036 | "core/java/android/annotation/CallbackExecutor.java", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 1037 | "core/java/android/annotation/CallSuper.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1038 | "core/java/android/annotation/DrawableRes.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1039 | "core/java/android/annotation/LongDef.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1040 | "core/java/android/annotation/StringDef.java", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 1041 | ], |
| 1042 | } |
| 1043 | |
| 1044 | filegroup { |
| 1045 | name: "framework-mediaprovider-annotation-sources", |
| 1046 | srcs: [ |
| 1047 | ":framework-annotations", |
| 1048 | "core/java/android/annotation/BytesLong.java", |
| 1049 | "core/java/android/annotation/CurrentTimeMillisLong.java", |
| 1050 | "core/java/android/annotation/CurrentTimeSecondsLong.java", |
| 1051 | "core/java/android/annotation/DurationMillisLong.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1052 | ], |
| 1053 | } |
| 1054 | |
Andrei Onea | 7a2985c | 2019-02-18 15:28:35 +0000 | [diff] [blame] | 1055 | // Creates an index of AIDL methods; used for adding UnsupportedAppUsage |
| 1056 | // annotations to private apis |
| 1057 | aidl_mapping { |
| 1058 | name: "framework-aidl-mappings", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 1059 | srcs: [":framework-all-sources"], |
Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1060 | output: "framework-aidl-mappings.txt", |
Kyunglyul Hyun | d51666d | 2019-04-11 04:08:40 +0000 | [diff] [blame] | 1061 | } |
Anna Trostanetski | 97088e9 | 2019-06-26 14:47:58 +0100 | [diff] [blame] | 1062 | |
| 1063 | genrule { |
| 1064 | name: "framework-annotation-proc-index", |
Jiyong Park | 9718349 | 2019-11-14 03:07:36 +0000 | [diff] [blame] | 1065 | srcs: [":framework-annotation-proc"], |
Anna Trostanetski | 97088e9 | 2019-06-26 14:47:58 +0100 | [diff] [blame] | 1066 | cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)", |
| 1067 | out: ["unsupportedappusage_index.csv"], |
| 1068 | dist: { |
| 1069 | targets: ["droidcore"], |
| 1070 | }, |
| 1071 | } |
Chen Xu | 192bf1f | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1072 | |
| 1073 | // Avoid including Parcelable classes as we don't want to have two copies of |
| 1074 | // Parcelable cross the process. |
| 1075 | filegroup { |
| 1076 | name: "framework-telephony-stack-shared-srcs", |
| 1077 | srcs: [ |
Hall Liu | aa4398e | 2019-12-24 14:13:25 -0800 | [diff] [blame] | 1078 | "core/java/android/os/BasicShellCommandHandler.java", |
Chen Xu | 192bf1f | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1079 | "core/java/android/os/RegistrantList.java", |
| 1080 | "core/java/android/os/Registrant.java", |
| 1081 | "core/java/android/util/LocalLog.java", |
Chen Xu | 192bf1f | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1082 | "core/java/android/util/TimeUtils.java", |
| 1083 | "core/java/com/android/internal/os/SomeArgs.java", |
Meng Wang | 9c2a8e0 | 2019-12-13 16:45:34 -0800 | [diff] [blame] | 1084 | "core/java/com/android/internal/util/AsyncChannel.java", |
| 1085 | "core/java/com/android/internal/util/BitwiseInputStream.java", |
Michele | badc021 | 2019-10-31 11:48:43 -0700 | [diff] [blame] | 1086 | "core/java/com/android/internal/util/FastXmlSerializer.java", |
| 1087 | "core/java/com/android/internal/util/HexDump.java", |
Meng Wang | 64fffb9 | 2019-12-02 10:42:20 -0800 | [diff] [blame] | 1088 | "core/java/com/android/internal/util/IState.java", |
Michele | badc021 | 2019-10-31 11:48:43 -0700 | [diff] [blame] | 1089 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
Chen Xu | 192bf1f | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1090 | "core/java/com/android/internal/util/Preconditions.java", |
| 1091 | "core/java/com/android/internal/util/State.java", |
| 1092 | "core/java/com/android/internal/util/StateMachine.java", |
Michele | badc021 | 2019-10-31 11:48:43 -0700 | [diff] [blame] | 1093 | "core/java/com/android/internal/util/UserIcons.java", |
Chen Xu | 192bf1f | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1094 | ], |
| 1095 | } |
| 1096 | |
Chen Xu | 4fea79c | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1097 | // Avoid including Parcelable classes as we don't want to have two copies of |
| 1098 | // Parcelable cross the process. |
| 1099 | filegroup { |
| 1100 | name: "framework-cellbroadcast-shared-srcs", |
| 1101 | srcs: [ |
Jordan Liu | 15a7274 | 2019-11-20 13:55:18 -0800 | [diff] [blame] | 1102 | "core/java/android/os/HandlerExecutor.java", |
Chen Xu | 4fea79c | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1103 | "core/java/android/util/LocalLog.java", |
Jordan Liu | 15a7274 | 2019-11-20 13:55:18 -0800 | [diff] [blame] | 1104 | "core/java/com/android/internal/util/IState.java", |
| 1105 | "core/java/com/android/internal/util/Preconditions.java", |
Chen Xu | 4fea79c | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1106 | "core/java/com/android/internal/util/State.java", |
| 1107 | "core/java/com/android/internal/util/StateMachine.java", |
| 1108 | ], |
atrost | ce84de0 | 2019-10-08 16:16:47 +0100 | [diff] [blame] | 1109 | } |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1110 | |
| 1111 | filegroup { |
Jayachandran C | eeffa01 | 2019-10-23 18:06:33 -0700 | [diff] [blame] | 1112 | name: "framework-ims-common-shared-srcs", |
| 1113 | srcs: [ |
Jayachandran C | eeffa01 | 2019-10-23 18:06:33 -0700 | [diff] [blame] | 1114 | "core/java/android/os/RegistrantList.java", |
| 1115 | "core/java/android/os/Registrant.java", |
| 1116 | "core/java/com/android/internal/os/SomeArgs.java", |
| 1117 | "core/java/com/android/internal/util/Preconditions.java", |
| 1118 | ], |
| 1119 | } |
| 1120 | |
| 1121 | filegroup { |
Roshan Pius | 62eb61c | 2019-12-06 13:49:47 -0800 | [diff] [blame] | 1122 | name: "framework-wifi-service-shared-srcs", |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1123 | srcs: [ |
| 1124 | ":framework-annotations", |
Roshan Pius | c93cd7a | 2019-12-09 07:39:41 -0800 | [diff] [blame] | 1125 | "core/java/android/net/InterfaceConfiguration.java", |
| 1126 | "core/java/android/os/HandlerExecutor.java", |
Roshan Pius | 04769a5 | 2019-12-04 13:03:47 -0800 | [diff] [blame] | 1127 | "core/java/android/util/BackupUtils.java", |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1128 | "core/java/android/util/LocalLog.java", |
| 1129 | "core/java/android/util/Rational.java", |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1130 | "core/java/com/android/internal/util/FastXmlSerializer.java", |
| 1131 | "core/java/com/android/internal/util/HexDump.java", |
| 1132 | "core/java/com/android/internal/util/IState.java", |
| 1133 | "core/java/com/android/internal/util/MessageUtils.java", |
| 1134 | "core/java/com/android/internal/util/Preconditions.java", |
| 1135 | "core/java/com/android/internal/util/State.java", |
| 1136 | "core/java/com/android/internal/util/StateMachine.java", |
| 1137 | "core/java/com/android/internal/util/WakeupMessage.java", |
| 1138 | "core/java/com/android/internal/util/XmlUtils.java", |
| 1139 | ], |
| 1140 | } |
Jiyong Park | 0d7e86d | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 1141 | |
| 1142 | // TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp |
| 1143 | metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " + |
| 1144 | "--ignore-classes-on-classpath " + |
| 1145 | "--hide-package com.android.server " + |
| 1146 | "--error UnhiddenSystemApi " + |
| 1147 | "--hide RequiresPermission " + |
| 1148 | "--hide CallbackInterface " + |
| 1149 | "--hide MissingPermission --hide BroadcastBehavior " + |
| 1150 | "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " + |
| 1151 | "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " + |
| 1152 | "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.*" |
| 1153 | |
| 1154 | build = [ |
| 1155 | "StubLibraries.bp", |
| 1156 | "ApiDocs.bp", |
| 1157 | ] |