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