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