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