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