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