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