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 | 005d735 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 28 | filegroup { |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 29 | name: "framework-core-sources", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 30 | srcs: [ |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 31 | "core/java/**/*.java", |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 32 | "core/java/**/*.aidl", |
Artur Satayev | 005d735 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 33 | ], |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 34 | path: "core/java", |
Artur Satayev | 005d735 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 35 | } |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 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 |
Ramy Medhat | 10146d8 | 2020-05-19 01:57:41 -0400 | [diff] [blame] | 38 | // android.test.mock library. The implementation of android.test.mock references |
| 39 | // private members of various components to allow mocking of classes that cannot |
| 40 | // be mocked without access to those internal implementation details. |
Jiyong Park | 00ea0b1 | 2019-10-31 20:38:47 +0900 | [diff] [blame] | 41 | filegroup { |
| 42 | name: "framework-core-sources-for-test-mock", |
| 43 | srcs: [ |
Ramy Medhat | 10146d8 | 2020-05-19 01:57:41 -0400 | [diff] [blame] | 44 | "core/java/android/accounts/AccountManagerCallback.java", |
| 45 | "core/java/android/accounts/AccountManagerFuture.java", |
| 46 | "core/java/android/accounts/AccountManager.java", |
| 47 | "core/java/android/accounts/AccountsException.java", |
| 48 | "core/java/android/accounts/AuthenticatorException.java", |
| 49 | "core/java/android/accounts/OperationCanceledException.java", |
| 50 | "core/java/android/annotation/AnimatorRes.java", |
| 51 | "core/java/android/annotation/AnimRes.java", |
| 52 | "core/java/android/annotation/AnyRes.java", |
| 53 | "core/java/android/annotation/ArrayRes.java", |
| 54 | "core/java/android/annotation/AttrRes.java", |
| 55 | "core/java/android/annotation/BoolRes.java", |
| 56 | "core/java/android/annotation/BroadcastBehavior.java", |
| 57 | "core/java/android/annotation/CallbackExecutor.java", |
| 58 | "core/java/android/annotation/CallSuper.java", |
| 59 | "core/java/android/annotation/CheckResult.java", |
| 60 | "core/java/android/annotation/ColorInt.java", |
| 61 | "core/java/android/annotation/ColorRes.java", |
| 62 | "core/java/android/annotation/DimenRes.java", |
| 63 | "core/java/android/annotation/DrawableRes.java", |
| 64 | "core/java/android/annotation/FontRes.java", |
| 65 | "core/java/android/annotation/FractionRes.java", |
| 66 | "core/java/android/annotation/IntDef.java", |
| 67 | "core/java/android/annotation/IntegerRes.java", |
| 68 | "core/java/android/annotation/IntRange.java", |
| 69 | "core/java/android/annotation/LayoutRes.java", |
| 70 | "core/java/android/annotation/NonNull.java", |
| 71 | "core/java/android/annotation/Nullable.java", |
| 72 | "core/java/android/annotation/PluralsRes.java", |
| 73 | "core/java/android/annotation/RawRes.java", |
| 74 | "core/java/android/annotation/RequiresPermission.java", |
| 75 | "core/java/android/annotation/SdkConstant.java", |
| 76 | "core/java/android/annotation/Size.java", |
| 77 | "core/java/android/annotation/StringDef.java", |
| 78 | "core/java/android/annotation/StringRes.java", |
| 79 | "core/java/android/annotation/StyleableRes.java", |
| 80 | "core/java/android/annotation/StyleRes.java", |
| 81 | "core/java/android/annotation/SuppressLint.java", |
| 82 | "core/java/android/annotation/SystemApi.java", |
| 83 | "core/java/android/annotation/SystemService.java", |
| 84 | "core/java/android/annotation/TestApi.java", |
| 85 | "core/java/android/annotation/UserIdInt.java", |
| 86 | "core/java/android/annotation/XmlRes.java", |
| 87 | "core/java/android/app/Application.java", |
Jiyong Park | 00ea0b1 | 2019-10-31 20:38:47 +0900 | [diff] [blame] | 88 | "core/java/android/app/IApplicationThread.aidl", |
| 89 | "core/java/android/app/IServiceConnection.aidl", |
Ramy Medhat | 10146d8 | 2020-05-19 01:57:41 -0400 | [diff] [blame] | 90 | "core/java/android/app/PackageDeleteObserver.java", |
| 91 | "core/java/android/content/ComponentCallbacks2.java", |
| 92 | "core/java/android/content/ComponentCallbacks.java", |
| 93 | "core/java/android/content/ContentInterface.java", |
| 94 | "core/java/android/content/ContentProvider.java", |
| 95 | "core/java/android/content/ContentProviderNative.java", |
| 96 | "core/java/android/content/ContentResolver.java", |
| 97 | "core/java/android/content/Context.java", |
| 98 | "core/java/android/content/ContextWrapper.java", |
| 99 | "core/java/android/content/DialogInterface.java", |
Jiyong Park | 00ea0b1 | 2019-10-31 20:38:47 +0900 | [diff] [blame] | 100 | "core/java/android/content/IContentProvider.java", |
Ramy Medhat | 10146d8 | 2020-05-19 01:57:41 -0400 | [diff] [blame] | 101 | "core/java/android/content/Intent.java", |
| 102 | "core/java/android/content/IntentSender.java", |
| 103 | "core/java/android/content/OperationApplicationException.java", |
| 104 | "core/java/android/content/pm/ActivityInfo.java", |
| 105 | "core/java/android/content/pm/ApplicationInfo.java", |
Jiyong Park | 00ea0b1 | 2019-10-31 20:38:47 +0900 | [diff] [blame] | 106 | "core/java/android/content/pm/InstantAppInfo.java", |
Ramy Medhat | 10146d8 | 2020-05-19 01:57:41 -0400 | [diff] [blame] | 107 | "core/java/android/content/pm/IPackageDataObserver.aidl", |
Jiyong Park | 00ea0b1 | 2019-10-31 20:38:47 +0900 | [diff] [blame] | 108 | "core/java/android/content/pm/KeySet.java", |
| 109 | "core/java/android/content/pm/PackageManager.java", |
| 110 | "core/java/android/content/pm/VerifierDeviceIdentity.java", |
| 111 | "core/java/android/content/res/Resources.java", |
Ramy Medhat | 10146d8 | 2020-05-19 01:57:41 -0400 | [diff] [blame] | 112 | "core/java/android/database/CrossProcessCursor.java", |
| 113 | "core/java/android/database/CrossProcessCursorWrapper.java", |
| 114 | "core/java/android/database/Cursor.java", |
| 115 | "core/java/android/database/CursorWrapper.java", |
| 116 | "core/java/android/os/Binder.java", |
| 117 | "core/java/android/os/Bundle.java", |
| 118 | "core/java/android/os/IBinder.java", |
| 119 | "core/java/android/os/IInterface.java", |
| 120 | "core/java/android/os/Parcelable.java", |
| 121 | "core/java/android/os/ParcelFileDescriptor.java", |
| 122 | "core/java/android/os/RemoteException.java", |
Jiyong Park | 00ea0b1 | 2019-10-31 20:38:47 +0900 | [diff] [blame] | 123 | "core/java/android/os/storage/VolumeInfo.java", |
Ramy Medhat | 10146d8 | 2020-05-19 01:57:41 -0400 | [diff] [blame] | 124 | "core/java/android/util/AndroidException.java", |
Jiyong Park | 00ea0b1 | 2019-10-31 20:38:47 +0900 | [diff] [blame] | 125 | "core/java/android/view/DisplayAdjustments.java", |
Ramy Medhat | 10146d8 | 2020-05-19 01:57:41 -0400 | [diff] [blame] | 126 | "core/java/android/view/ViewDebug.java", |
| 127 | "core/java/com/android/internal/annotations/VisibleForTesting.java", |
Jiyong Park | 00ea0b1 | 2019-10-31 20:38:47 +0900 | [diff] [blame] | 128 | ], |
| 129 | path: "core/java", |
Jiyong Park | 673e298 | 2020-01-17 16:14:57 +0900 | [diff] [blame] | 130 | visibility: ["//frameworks/base/test-mock"], |
Jiyong Park | 00ea0b1 | 2019-10-31 20:38:47 +0900 | [diff] [blame] | 131 | } |
| 132 | |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 133 | filegroup { |
| 134 | name: "framework-drm-sources", |
| 135 | srcs: [ |
| 136 | "drm/java/**/*.java", |
| 137 | ], |
| 138 | path: "drm/java", |
| 139 | } |
| 140 | |
| 141 | filegroup { |
| 142 | name: "framework-graphics-sources", |
| 143 | srcs: [ |
| 144 | "graphics/java/**/*.java", |
| 145 | "graphics/java/**/*.aidl", |
| 146 | ], |
| 147 | path: "graphics/java", |
| 148 | } |
| 149 | |
| 150 | filegroup { |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 151 | name: "framework-identity-sources", |
| 152 | srcs: [ |
| 153 | "identity/java/**/*.java", |
| 154 | ], |
| 155 | path: "identity/java", |
| 156 | } |
| 157 | |
| 158 | filegroup { |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 159 | name: "framework-keystore-sources", |
| 160 | srcs: [ |
| 161 | "keystore/java/**/*.java", |
| 162 | "keystore/java/**/*.aidl", |
| 163 | ], |
| 164 | path: "keystore/java", |
| 165 | } |
| 166 | |
| 167 | filegroup { |
| 168 | name: "framework-location-sources", |
| 169 | srcs: [ |
| 170 | "location/java/**/*.java", |
| 171 | "location/java/**/*.aidl", |
| 172 | ], |
| 173 | path: "location/java", |
| 174 | } |
| 175 | |
| 176 | filegroup { |
| 177 | name: "framework-lowpan-sources", |
| 178 | srcs: [ |
| 179 | "lowpan/java/**/*.java", |
| 180 | "lowpan/java/**/*.aidl", |
| 181 | ], |
| 182 | path: "lowpan/java", |
| 183 | } |
| 184 | |
| 185 | filegroup { |
| 186 | name: "framework-media-sources", |
| 187 | srcs: [ |
| 188 | "media/java/**/*.java", |
| 189 | "media/java/**/*.aidl", |
| 190 | ], |
| 191 | path: "media/java", |
| 192 | } |
| 193 | |
| 194 | filegroup { |
| 195 | name: "framework-mca-effect-sources", |
| 196 | srcs: [ |
| 197 | "media/mca/effect/java/**/*.java", |
| 198 | ], |
| 199 | path: "media/mca/effect/java", |
| 200 | } |
| 201 | |
| 202 | filegroup { |
| 203 | name: "framework-mca-filterfw-sources", |
| 204 | srcs: [ |
| 205 | "media/mca/filterfw/java/**/*.java", |
| 206 | ], |
| 207 | path: "media/mca/filterfw/java", |
| 208 | } |
| 209 | |
| 210 | filegroup { |
| 211 | name: "framework-mca-filterpacks-sources", |
| 212 | srcs: [ |
| 213 | "media/mca/filterpacks/java/**/*.java", |
| 214 | ], |
| 215 | path: "media/mca/filterpacks/java", |
| 216 | } |
| 217 | |
| 218 | filegroup { |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 219 | name: "framework-mime-sources", |
| 220 | srcs: [ |
| 221 | "mime/java/**/*.java", |
| 222 | ], |
| 223 | path: "mime/java", |
| 224 | } |
| 225 | |
| 226 | filegroup { |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 227 | name: "framework-opengl-sources", |
| 228 | srcs: [ |
| 229 | "opengl/java/**/*.java", |
| 230 | ], |
| 231 | path: "opengl/java", |
| 232 | } |
| 233 | |
| 234 | filegroup { |
| 235 | name: "framework-rs-sources", |
| 236 | srcs: [ |
| 237 | "rs/java/**/*.java", |
| 238 | ], |
| 239 | path: "rs/java", |
| 240 | } |
| 241 | |
| 242 | filegroup { |
| 243 | name: "framework-sax-sources", |
| 244 | srcs: [ |
| 245 | "sax/java/**/*.java", |
| 246 | ], |
| 247 | path: "sax/java", |
| 248 | } |
| 249 | |
| 250 | filegroup { |
| 251 | name: "framework-telecomm-sources", |
| 252 | srcs: [ |
| 253 | "telecomm/java/**/*.java", |
| 254 | "telecomm/java/**/*.aidl", |
| 255 | ], |
| 256 | path: "telecomm/java", |
| 257 | } |
| 258 | |
| 259 | filegroup { |
| 260 | name: "framework-telephony-sources", |
| 261 | srcs: [ |
| 262 | "telephony/java/**/*.java", |
| 263 | "telephony/java/**/*.aidl", |
| 264 | ], |
| 265 | path: "telephony/java", |
| 266 | } |
| 267 | |
Muhammad Qureshi | ed8bca0 | 2020-01-24 16:07:49 -0800 | [diff] [blame] | 268 | genrule { |
| 269 | name: "statslog-telephony-common-java-gen", |
| 270 | tools: ["stats-log-api-gen"], |
| 271 | cmd: "$(location stats-log-api-gen) --java $(out) --module telephony_common" |
| 272 | + " --javaPackage com.android.internal.telephony --javaClass TelephonyCommonStatsLog", |
| 273 | out: ["com/android/internal/telephony/TelephonyCommonStatsLog.java"], |
| 274 | } |
| 275 | |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 276 | filegroup { |
Amit Mahajan | ac0fd65 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 277 | name: "framework-telephony-common-sources", |
| 278 | srcs: [ |
| 279 | "telephony/common/**/*.java", |
Muhammad Qureshi | ed8bca0 | 2020-01-24 16:07:49 -0800 | [diff] [blame] | 280 | ":statslog-telephony-common-java-gen", |
Amit Mahajan | ac0fd65 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 281 | ], |
Amit Mahajan | ac0fd65 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 282 | } |
| 283 | |
| 284 | filegroup { |
Amit Mahajan | 153d31b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 285 | name: "framework-mms-sources", |
| 286 | srcs: [ |
| 287 | "mms/java/**/*.java", |
| 288 | "mms/java/**/*.aidl", |
| 289 | ], |
| 290 | path: "mms/java", |
| 291 | } |
| 292 | |
| 293 | filegroup { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 294 | name: "framework-non-updatable-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 295 | srcs: [ |
| 296 | // Java/AIDL sources under frameworks/base |
Sudheer Shanka | f5b3696 | 2019-10-04 16:16:13 -0700 | [diff] [blame] | 297 | ":framework-blobstore-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 298 | ":framework-core-sources", |
| 299 | ":framework-drm-sources", |
| 300 | ":framework-graphics-sources", |
Jiyong Park | 48cc372 | 2019-10-21 14:01:06 +0900 | [diff] [blame] | 301 | ":framework-jobscheduler-sources", // jobscheduler is not a module for R |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 302 | ":framework-keystore-sources", |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 303 | ":framework-identity-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 304 | ":framework-location-sources", |
| 305 | ":framework-lowpan-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 306 | ":framework-mca-effect-sources", |
| 307 | ":framework-mca-filterfw-sources", |
| 308 | ":framework-mca-filterpacks-sources", |
Jiyong Park | 48cc372 | 2019-10-21 14:01:06 +0900 | [diff] [blame] | 309 | ":framework-media-sources", |
Amit Mahajan | 153d31b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 310 | ":framework-mms-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 311 | ":framework-opengl-sources", |
| 312 | ":framework-rs-sources", |
| 313 | ":framework-sax-sources", |
| 314 | ":framework-telecomm-sources", |
Amit Mahajan | ac0fd65 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 315 | ":framework-telephony-common-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 316 | ":framework-telephony-sources", |
David Su | 130441b | 2019-12-14 21:37:20 -0800 | [diff] [blame] | 317 | ":framework-wifi-annotations", |
David Su | 6f646ef | 2019-12-10 13:33:06 -0800 | [diff] [blame] | 318 | ":framework-wifi-non-updatable-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 319 | ":PacProcessor-aidl-sources", |
| 320 | ":ProxyHandler-aidl-sources", |
Aaron Huang | c4081b2 | 2020-01-13 15:03:35 +0800 | [diff] [blame] | 321 | ":net-utils-framework-common-srcs", |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 322 | |
atrost | ff948d8 | 2019-10-10 19:27:31 +0100 | [diff] [blame] | 323 | // AIDL from frameworks/base/native/ |
| 324 | ":platform-compat-native-aidl", |
| 325 | |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 326 | // AIDL sources from external directories |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 327 | ":credstore_aidl", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 328 | ":dumpstate_aidl", |
| 329 | ":framework_native_aidl", |
| 330 | ":gatekeeper_aidl", |
| 331 | ":gsiservice_aidl", |
| 332 | ":incidentcompanion_aidl", |
| 333 | ":installd_aidl", |
| 334 | ":keystore_aidl", |
| 335 | ":libaudioclient_aidl", |
| 336 | ":libbinder_aidl", |
| 337 | ":libbluetooth-binder-aidl", |
| 338 | ":libcamera_client_aidl", |
| 339 | ":libcamera_client_framework_aidl", |
| 340 | ":libupdate_engine_aidl", |
Amy Zhang | ccdbc4d | 2020-06-08 21:29:59 -0700 | [diff] [blame] | 341 | ":resourcemanager_aidl", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 342 | ":storaged_aidl", |
| 343 | ":vold_aidl", |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 344 | |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 345 | // For the generated R.java and Manifest.java |
| 346 | ":framework-res{.aapt.srcjar}", |
| 347 | |
| 348 | // etc. |
| 349 | ":framework-javastream-protos", |
Muhammad Qureshi | 1de1df4 | 2020-01-27 16:36:45 -0800 | [diff] [blame] | 350 | ":statslog-framework-java-gen", // FrameworkStatsLog.java |
Hayden Gomes | c164f6a | 2020-11-05 16:28:21 -0800 | [diff] [blame] | 351 | ":audio_policy_configuration_V7_0", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 352 | ], |
| 353 | } |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 354 | |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 355 | filegroup { |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 356 | name: "framework-updatable-sources", |
| 357 | srcs: [ |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 358 | ":framework-mediaprovider-sources", |
Hai Zhang | 82a6227 | 2020-01-14 21:56:34 -0800 | [diff] [blame] | 359 | ":framework-permission-sources", |
Anton Hansson | 87743c6 | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 360 | ":framework-sdkextensions-sources", |
Anton Hansson | 221fe90 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 361 | ":framework-statsd-sources", |
markchien | 6d06f6d | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 362 | ":framework-tethering-srcs", |
Anton Hansson | 221fe90 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 363 | ":framework-wifi-updatable-sources", |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 364 | ":updatable-media-srcs", |
Anton Hansson | 7a9bc4e | 2020-08-18 12:52:44 +0100 | [diff] [blame] | 365 | ], |
| 366 | visibility: ["//visibility:private"], |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 367 | } |
| 368 | |
Anton Hansson | 5f208a2 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 369 | java_library { |
| 370 | name: "framework-updatable-stubs-module_libs_api", |
| 371 | static_libs: [ |
Paul Duffin | abebc6a | 2020-05-31 11:35:50 +0100 | [diff] [blame] | 372 | "framework-media.stubs.module_lib", |
| 373 | "framework-mediaprovider.stubs.module_lib", |
| 374 | "framework-permission.stubs.module_lib", |
Paul Duffin | 3bde2d5 | 2020-06-02 11:41:13 +0100 | [diff] [blame] | 375 | "framework-sdkextensions.stubs.module_lib", |
Paul Duffin | abebc6a | 2020-05-31 11:35:50 +0100 | [diff] [blame] | 376 | "framework-statsd.stubs.module_lib", |
Paul Duffin | 01fd6ff | 2020-06-02 11:41:13 +0100 | [diff] [blame] | 377 | "framework-tethering.stubs.module_lib", |
Paul Duffin | abebc6a | 2020-05-31 11:35:50 +0100 | [diff] [blame] | 378 | "framework-wifi.stubs.module_lib", |
Anton Hansson | 5f208a2 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 379 | ], |
| 380 | sdk_version: "module_current", |
Anton Hansson | 7a9bc4e | 2020-08-18 12:52:44 +0100 | [diff] [blame] | 381 | visibility: ["//visibility:private"], |
| 382 | } |
| 383 | |
| 384 | java_library { |
| 385 | name: "framework-all", |
| 386 | installable: false, |
| 387 | static_libs: [ |
| 388 | "framework-minus-apex", |
| 389 | "framework-mediaprovider.impl", |
| 390 | "framework-permission.impl", |
| 391 | "framework-sdkextensions.impl", |
| 392 | "framework-statsd.impl", |
| 393 | "framework-tethering.impl", |
| 394 | "framework-wifi.impl", |
| 395 | "updatable-media", |
| 396 | ], |
| 397 | apex_available: ["//apex_available:platform"], |
| 398 | sdk_version: "core_platform", |
| 399 | visibility: [ |
| 400 | // DO NOT ADD ANY MORE ENTRIES TO THIS LIST |
| 401 | "//external/robolectric-shadows:__subpackages__", |
| 402 | "//frameworks/layoutlib:__subpackages__", |
| 403 | ], |
Anton Hansson | 5f208a2 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 404 | } |
| 405 | |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 406 | filegroup { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 407 | name: "framework-all-sources", |
| 408 | srcs: [ |
Tobias Thierer | 17d0c59 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 409 | ":framework-mime-sources", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 410 | ":framework-non-updatable-sources", |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 411 | ":framework-updatable-sources", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 412 | ], |
| 413 | } |
| 414 | |
Jiyong Park | 392729f | 2020-01-17 16:32:53 +0900 | [diff] [blame] | 415 | // AIDL files under these paths are mixture of public and private ones. |
| 416 | // They shouldn't be exported across module boundaries. |
Artur Satayev | 005d735 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 417 | java_defaults { |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 418 | name: "framework-aidl-export-defaults", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 419 | aidl: { |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 420 | export_include_dirs: [ |
| 421 | "core/java", |
| 422 | "drm/java", |
| 423 | "graphics/java", |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 424 | "identity/java", |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 425 | "keystore/java", |
| 426 | "location/java", |
| 427 | "lowpan/java", |
| 428 | "media/java", |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 429 | "media/mca/effect/java", |
| 430 | "media/mca/filterfw/java", |
| 431 | "media/mca/filterpacks/java", |
Amit Mahajan | 153d31b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 432 | "mms/java", |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 433 | "opengl/java", |
| 434 | "rs/java", |
| 435 | "sax/java", |
| 436 | "telecomm/java", |
Anton Hansson | 5f208a2 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 437 | |
Sungsoo Lim | 895f4f6 | 2020-04-08 11:21:36 +0900 | [diff] [blame] | 438 | "apex/media/aidl/stable", |
Anton Hansson | 5f208a2 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 439 | // TODO(b/147699819): remove this |
| 440 | "telephony/java", |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 441 | ], |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 442 | }, |
| 443 | } |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 444 | |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 445 | // Collection of classes that are generated from non-Java files that are not listed in |
| 446 | // framework_srcs. These have no or very limited dependency to the framework. |
| 447 | java_library { |
| 448 | name: "framework-internal-utils", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 449 | static_libs: [ |
Dario Freni | d8bf22e | 2018-08-31 14:18:04 +0100 | [diff] [blame] | 450 | "apex_aidl_interface-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 451 | "framework-protos", |
Peiyong Lin | b967a4c | 2020-07-27 22:16:13 -0700 | [diff] [blame] | 452 | "updatable-driver-protos", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 453 | "android.hidl.base-V1.0-java", |
| 454 | "android.hardware.cas-V1.0-java", |
Henry Fang | 43cab92 | 2019-12-27 16:50:20 -0800 | [diff] [blame] | 455 | "android.hardware.cas-V1.1-java", |
| 456 | "android.hardware.cas-V1.2-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 457 | "android.hardware.contexthub-V1.0-java", |
Anthony Stange | 521a905 | 2020-02-07 18:45:47 -0500 | [diff] [blame] | 458 | "android.hardware.contexthub-V1.1-java", |
Yu-Han Yang | 9fe06dd | 2019-11-18 16:23:31 -0800 | [diff] [blame] | 459 | "android.hardware.gnss-V1.0-java", |
Yu-Han Yang | ad03c47 | 2020-01-14 15:31:01 -0800 | [diff] [blame] | 460 | "android.hardware.gnss-V2.1-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 461 | "android.hardware.health-V1.0-java-constants", |
Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 462 | "android.hardware.radio-V1.0-java", |
| 463 | "android.hardware.radio-V1.1-java", |
| 464 | "android.hardware.radio-V1.2-java", |
| 465 | "android.hardware.radio-V1.3-java", |
| 466 | "android.hardware.radio-V1.4-java", |
Sarah Chin | e138c5e | 2019-11-05 13:30:10 -0800 | [diff] [blame] | 467 | "android.hardware.radio-V1.5-java", |
Daniel Bright | bd26ad2 | 2020-09-02 17:10:54 -0700 | [diff] [blame] | 468 | "android.hardware.radio-V1.6-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 469 | "android.hardware.thermal-V1.0-java-constants", |
Wei Wang | fb21bd8 | 2019-01-10 14:16:23 -0800 | [diff] [blame] | 470 | "android.hardware.thermal-V1.0-java", |
Wei Wang | bad7c20 | 2018-11-01 11:57:39 -0700 | [diff] [blame] | 471 | "android.hardware.thermal-V1.1-java", |
| 472 | "android.hardware.thermal-V2.0-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 473 | "android.hardware.tv.input-V1.0-java-constants", |
shubang | 7e849b0 | 2019-10-18 19:36:25 -0700 | [diff] [blame] | 474 | "android.hardware.tv.tuner-V1.0-java-constants", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 475 | "android.hardware.usb-V1.0-java-constants", |
| 476 | "android.hardware.usb-V1.1-java-constants", |
Badhri Jagan Sridharan | e966a38 | 2018-12-09 14:49:38 -0800 | [diff] [blame] | 477 | "android.hardware.usb-V1.2-java-constants", |
Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 478 | "android.hardware.usb.gadget-V1.0-java", |
Michael Wright | f268bf5 | 2018-02-07 23:23:34 +0000 | [diff] [blame] | 479 | "android.hardware.vibrator-V1.0-java", |
| 480 | "android.hardware.vibrator-V1.1-java", |
| 481 | "android.hardware.vibrator-V1.2-java", |
Harpreet "Eli" Sangha | a456f08 | 2018-12-14 12:06:10 +0900 | [diff] [blame] | 482 | "android.hardware.vibrator-V1.3-java", |
Janis Danisevskis | 145e11f | 2020-09-28 17:37:13 -0700 | [diff] [blame] | 483 | "android.system.keystore2-java", |
Michael Sun | d523796 | 2020-11-06 03:28:14 +0000 | [diff] [blame] | 484 | "android.system.suspend.control.internal-java", |
arangelov | 1ab6149 | 2018-11-22 13:56:50 +0000 | [diff] [blame] | 485 | "devicepolicyprotosnano", |
Inseob Kim | 617a722 | 2019-07-30 18:23:26 +0900 | [diff] [blame] | 486 | |
| 487 | "com.android.sysprop.apex", |
Nikita Ioffe | 9c4b57255 | 2020-02-06 23:17:17 +0000 | [diff] [blame] | 488 | "com.android.sysprop.init", |
Alexander Mishkovets | 77f6bc8 | 2020-07-14 19:14:10 +0200 | [diff] [blame] | 489 | "com.android.sysprop.localization", |
Inseob Kim | 617a722 | 2019-07-30 18:23:26 +0900 | [diff] [blame] | 490 | "PlatformProperties", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 491 | ], |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 492 | sdk_version: "core_platform", |
| 493 | installable: false, |
| 494 | } |
| 495 | |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 496 | filegroup { |
Steven Moreland | 19e8d46 | 2019-03-08 10:44:22 -0800 | [diff] [blame] | 497 | name: "framework-jarjar-rules", |
David Su | 130441b | 2019-12-14 21:37:20 -0800 | [diff] [blame] | 498 | srcs: ["framework-jarjar-rules.txt"], |
Steven Moreland | 19e8d46 | 2019-03-08 10:44:22 -0800 | [diff] [blame] | 499 | } |
| 500 | |
| 501 | filegroup { |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 502 | name: "libincident_aidl", |
| 503 | srcs: [ |
Mike Ma | 643de92 | 2019-12-17 10:56:17 -0800 | [diff] [blame] | 504 | "core/java/android/os/IIncidentDumpCallback.aidl", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 505 | "core/java/android/os/IIncidentManager.aidl", |
| 506 | "core/java/android/os/IIncidentReportStatusListener.aidl", |
| 507 | ], |
Dan Willemsen | 4a49850 | 2019-06-05 15:51:24 -0700 | [diff] [blame] | 508 | path: "core/java", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 509 | } |
| 510 | |
| 511 | filegroup { |
Michael Wright | c390fbe | 2018-12-12 19:45:09 +0000 | [diff] [blame] | 512 | name: "libvibrator_aidl", |
| 513 | srcs: [ |
| 514 | "core/java/android/os/IExternalVibrationController.aidl", |
| 515 | "core/java/android/os/IExternalVibratorService.aidl", |
| 516 | ], |
Dan Willemsen | 4a49850 | 2019-06-05 15:51:24 -0700 | [diff] [blame] | 517 | path: "core/java", |
Michael Wright | c390fbe | 2018-12-12 19:45:09 +0000 | [diff] [blame] | 518 | } |
| 519 | |
Chris Ye | 48dbcaa | 2020-02-10 13:29:01 -0800 | [diff] [blame] | 520 | filegroup { |
| 521 | name: "libpowermanager_aidl", |
| 522 | srcs: [ |
| 523 | "core/java/android/os/Temperature.aidl", |
| 524 | "core/java/android/os/CoolingDevice.aidl", |
| 525 | "core/java/android/os/IThermalEventListener.aidl", |
| 526 | "core/java/android/os/IThermalStatusListener.aidl", |
| 527 | "core/java/android/os/IThermalService.aidl", |
| 528 | ], |
| 529 | path: "core/java", |
| 530 | } |
| 531 | |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 532 | java_library { |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 533 | name: "framework-minus-apex", |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 534 | defaults: ["framework-aidl-export-defaults"], |
| 535 | srcs: [ |
| 536 | ":framework-non-updatable-sources", |
| 537 | "core/java/**/*.logtags", |
| 538 | ], |
| 539 | // See comment on framework-atb-backward-compatibility module below |
| 540 | exclude_srcs: ["core/java/android/content/pm/AndroidTestBaseUpdater.java"], |
| 541 | aidl: { |
| 542 | generate_get_transaction_name: true, |
| 543 | }, |
| 544 | dxflags: [ |
| 545 | "--core-library", |
| 546 | "--multi-dex", |
| 547 | ], |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 548 | installable: true, |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 549 | jarjar_rules: ":framework-jarjar-rules", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 550 | javac_shard_size: 150, |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 551 | plugins: [ |
| 552 | "view-inspector-annotation-processor", |
| 553 | "staledataclass-annotation-processor", |
| 554 | ], |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 555 | required: [ |
| 556 | "framework-platform-compat-config", |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 557 | // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly. |
| 558 | "gps_debug.conf", |
Victor Chang | a4fae27 | 2020-10-30 12:14:34 +0000 | [diff] [blame] | 559 | "icu4j-platform-compat-config", |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 560 | "libcore-platform-compat-config", |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 561 | "protolog.conf.json.gz", |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 562 | "services-platform-compat-config", |
Ivan Chiang | 3cb1cbd | 2020-02-18 10:50:10 +0800 | [diff] [blame] | 563 | "documents-ui-compat-config", |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 564 | ], |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 565 | libs: [ |
| 566 | "app-compat-annotations", |
| 567 | "ext", |
| 568 | "framework-updatable-stubs-module_libs_api", |
| 569 | "unsupportedappusage", |
| 570 | ], |
| 571 | sdk_version: "core_platform", |
Tobias Thierer | 17d0c59 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 572 | static_libs: [ |
Anton Hansson | 3e20672 | 2020-09-07 14:41:30 +0100 | [diff] [blame] | 573 | "framework-internal-utils", |
Tobias Thierer | 8296853 | 2019-11-29 19:39:45 +0000 | [diff] [blame] | 574 | // If MimeMap ever becomes its own APEX, then this dependency would need to be removed |
| 575 | // in favor of an API stubs dependency in java_library "framework" below. |
Tobias Thierer | 17d0c59 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 576 | "mimemap", |
Chiachang Wang | d5726c1 | 2020-11-02 16:51:24 +0800 | [diff] [blame] | 577 | "modules-utils-os", |
Tobias Thierer | 17d0c59 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 578 | ], |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 579 | // For backwards compatibility. |
| 580 | stem: "framework", |
Jiyong Park | 79242c2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 581 | apex_available: ["//apex_available:platform"], |
markchien | 8cf2a55 | 2020-02-14 11:55:48 +0800 | [diff] [blame] | 582 | visibility: [ |
Jiyong Park | 212d2e8 | 2020-01-03 21:07:38 +0900 | [diff] [blame] | 583 | "//frameworks/base", |
markchien | 8cf2a55 | 2020-02-14 11:55:48 +0800 | [diff] [blame] | 584 | // TODO(b/147128803) remove the below lines |
Jiyong Park | 212d2e8 | 2020-01-03 21:07:38 +0900 | [diff] [blame] | 585 | "//frameworks/base/apex/blobstore/framework", |
| 586 | "//frameworks/base/apex/jobscheduler/framework", |
markchien | 8cf2a55 | 2020-02-14 11:55:48 +0800 | [diff] [blame] | 587 | "//frameworks/base/packages/Tethering/tests/unit", |
Baligh Uddin | ff8ff12 | 2020-10-29 02:11:55 +0000 | [diff] [blame] | 588 | "//packages/modules/Connectivity/Tethering/tests/unit", |
markchien | 8cf2a55 | 2020-02-14 11:55:48 +0800 | [diff] [blame] | 589 | ], |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 590 | } |
| 591 | |
| 592 | // This "framework" module is NOT installed to the device. It's |
| 593 | // "framework-minus-apex" that gets installed to the device. Note that |
| 594 | // the filename is still framework.jar (via the stem property) for |
| 595 | // compatibility reason. The purpose of this module is to provide |
| 596 | // framework APIs (both public and private) for bundled apps. |
| 597 | // "framework-minus-apex" can't be used for the purpose because 1) |
| 598 | // many apps have already hardcoded the name "framework" and |
| 599 | // 2) it lacks API symbols from updatable modules - as it's clear from |
| 600 | // its suffix "-minus-apex". |
| 601 | java_library { |
| 602 | name: "framework", |
| 603 | defaults: ["framework-aidl-export-defaults"], |
| 604 | installable: false, // this lib is a build-only library |
| 605 | static_libs: [ |
Malcolm Chen | c799180 | 2020-03-16 15:28:35 -0700 | [diff] [blame] | 606 | "app-compat-annotations", |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 607 | "framework-minus-apex", |
Anton Hansson | 5f208a2 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 608 | "framework-updatable-stubs-module_libs_api", |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 609 | ], |
| 610 | sdk_version: "core_platform", |
Jiyong Park | 79242c2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 611 | apex_available: ["//apex_available:platform"], |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 612 | } |
| 613 | |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 614 | platform_compat_config { |
| 615 | name: "framework-platform-compat-config", |
Artur Satayev | 1503d31 | 2020-03-25 15:36:55 +0000 | [diff] [blame] | 616 | src: ":framework-minus-apex", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 617 | } |
| 618 | |
Paul Duffin | beee5dc | 2018-01-23 13:39:00 +0000 | [diff] [blame] | 619 | // A temporary build target that is conditionally included on the bootclasspath if |
Paul Duffin | a3b6921 | 2018-01-25 09:58:32 +0000 | [diff] [blame] | 620 | // android.test.base library has been removed and which provides support for |
| 621 | // maintaining backwards compatibility for APKs that target pre-P and depend on |
| 622 | // android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is |
| 623 | // specified on the build command line. |
| 624 | java_library { |
| 625 | name: "framework-atb-backward-compatibility", |
Paul Duffin | fab8754 | 2019-02-15 11:39:12 +0000 | [diff] [blame] | 626 | installable: true, |
atrost | 1a94550 | 2019-11-04 17:03:54 +0000 | [diff] [blame] | 627 | libs: ["app-compat-annotations"], |
Paul Duffin | a3b6921 | 2018-01-25 09:58:32 +0000 | [diff] [blame] | 628 | srcs: [ |
| 629 | "core/java/android/content/pm/AndroidTestBaseUpdater.java", |
| 630 | ], |
| 631 | } |
| 632 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 633 | genrule { |
Muhammad Qureshi | 1de1df4 | 2020-01-27 16:36:45 -0800 | [diff] [blame] | 634 | name: "statslog-framework-java-gen", |
| 635 | tools: ["stats-log-api-gen"], |
| 636 | cmd: "$(location stats-log-api-gen) --java $(out) --module framework" + |
| 637 | " --javaPackage com.android.internal.util --javaClass FrameworkStatsLog --worksource", |
| 638 | out: ["com/android/internal/util/FrameworkStatsLog.java"], |
| 639 | } |
| 640 | |
Hyunyoung Song | a28623b | 2020-02-06 22:56:21 -0800 | [diff] [blame] | 641 | java_library { |
| 642 | name: "uieventloggerlib", |
| 643 | srcs: [ |
| 644 | "core/java/com/android/internal/logging/UiEvent.java", |
| 645 | "core/java/com/android/internal/logging/UiEventLogger.java", |
| 646 | "core/java/com/android/internal/logging/UiEventLoggerImpl.java", |
| 647 | "core/java/com/android/internal/logging/InstanceId.java", |
| 648 | "core/java/com/android/internal/logging/InstanceIdSequence.java", |
| 649 | ":statslog-framework-java-gen", |
| 650 | ], |
| 651 | } |
| 652 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 653 | gensrcs { |
| 654 | name: "framework-javastream-protos", |
| 655 | depfile: true, |
| 656 | |
| 657 | tools: [ |
| 658 | "aprotoc", |
| 659 | "protoc-gen-javastream", |
| 660 | "soong_zip", |
| 661 | ], |
| 662 | |
Anton Hansson | d82b2f7 | 2019-11-18 13:34:56 +0000 | [diff] [blame] | 663 | cmd: "mkdir -p $(genDir)/$(in) " + |
| 664 | "&& $(location aprotoc) " + |
| 665 | " --plugin=$(location protoc-gen-javastream) " + |
| 666 | " --dependency_out=$(depfile) " + |
| 667 | " --javastream_out=$(genDir)/$(in) " + |
| 668 | " -Iexternal/protobuf/src " + |
| 669 | " -I . " + |
| 670 | " $(in) " + |
| 671 | "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)", |
| 672 | |
Yi Jin | 437aa6e | 2018-01-10 11:34:26 -0800 | [diff] [blame] | 673 | srcs: [ |
Mike Ma | d2672bd | 2020-01-15 15:57:20 -0800 | [diff] [blame] | 674 | ":ipconnectivity-proto-src", |
Jeffrey Huang | 17df403 | 2020-11-25 13:38:36 -0800 | [diff] [blame] | 675 | ":libstats_atom_enum_protos", |
Yi Jin | 437aa6e | 2018-01-10 11:34:26 -0800 | [diff] [blame] | 676 | "core/proto/**/*.proto", |
| 677 | "libs/incident/**/*.proto", |
| 678 | ], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 679 | output_extension: "srcjar", |
| 680 | } |
| 681 | |
Mike Ma | a47ad72 | 2020-01-28 22:04:20 -0800 | [diff] [blame] | 682 | gensrcs { |
| 683 | name: "framework-cppstream-protos", |
| 684 | depfile: true, |
| 685 | |
| 686 | tools: [ |
| 687 | "aprotoc", |
| 688 | "protoc-gen-cppstream", |
| 689 | ], |
| 690 | |
| 691 | cmd: "mkdir -p $(genDir) " + |
| 692 | "&& $(location aprotoc) " + |
| 693 | " --plugin=$(location protoc-gen-cppstream) " + |
| 694 | " --dependency_out=$(depfile) " + |
| 695 | " --cppstream_out=$(genDir) " + |
| 696 | " -Iexternal/protobuf/src " + |
| 697 | " -I . " + |
| 698 | " $(in)", |
| 699 | |
| 700 | srcs: [ |
| 701 | ":ipconnectivity-proto-src", |
Jeffrey Huang | 17df403 | 2020-11-25 13:38:36 -0800 | [diff] [blame] | 702 | ":libstats_atom_enum_protos", |
Mike Ma | a47ad72 | 2020-01-28 22:04:20 -0800 | [diff] [blame] | 703 | "core/proto/**/*.proto", |
| 704 | "libs/incident/**/*.proto", |
| 705 | ], |
| 706 | |
| 707 | output_extension: "proto.h", |
| 708 | } |
| 709 | |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 710 | filegroup { |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 711 | name: "framework-annotations", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 712 | srcs: [ |
David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 713 | "core/java/android/annotation/CallbackExecutor.java", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 714 | "core/java/android/annotation/CheckResult.java", |
David Su | 7751734 | 2020-02-18 18:10:07 -0800 | [diff] [blame] | 715 | "core/java/android/annotation/CurrentTimeMillisLong.java", |
Roshan Pius | eb7edd5 | 2020-02-21 07:37:30 -0800 | [diff] [blame] | 716 | "core/java/android/annotation/Hide.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 717 | "core/java/android/annotation/IntDef.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 718 | "core/java/android/annotation/IntRange.java", |
lesl | d41a299 | 2020-02-20 17:30:58 +0800 | [diff] [blame] | 719 | "core/java/android/annotation/LongDef.java", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 720 | "core/java/android/annotation/NonNull.java", |
| 721 | "core/java/android/annotation/Nullable.java", |
Remi NGUYEN VAN | 2d14a4b | 2020-01-31 15:05:22 +0900 | [diff] [blame] | 722 | "core/java/android/annotation/RequiresPermission.java", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 723 | "core/java/android/annotation/SdkConstant.java", |
David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 724 | "core/java/android/annotation/StringDef.java", |
Anton Hansson | b52bd1c | 2019-12-06 17:07:28 +0000 | [diff] [blame] | 725 | "core/java/android/annotation/SystemApi.java", |
David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 726 | "core/java/android/annotation/SystemService.java", |
Remi NGUYEN VAN | 2d14a4b | 2020-01-31 15:05:22 +0900 | [diff] [blame] | 727 | "core/java/android/annotation/TestApi.java", |
Jeff Sharkey | f5eebf9 | 2020-03-06 14:41:56 -0700 | [diff] [blame] | 728 | "core/java/android/annotation/WorkerThread.java", |
Remi NGUYEN VAN | 231b52b | 2019-01-29 15:38:52 +0900 | [diff] [blame] | 729 | "core/java/com/android/internal/annotations/GuardedBy.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 730 | "core/java/com/android/internal/annotations/VisibleForTesting.java", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 731 | "core/java/com/android/internal/annotations/Immutable.java", |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 732 | ], |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 733 | } |
| 734 | |
Anton Hansson | 4ec07fa | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 735 | java_library { |
| 736 | name: "framework-annotations-lib", |
| 737 | srcs: [ ":framework-annotations" ], |
Anton Hansson | 0a3b7ad | 2019-12-19 10:17:46 +0000 | [diff] [blame] | 738 | sdk_version: "core_current", |
Anton Hansson | 4ec07fa | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 739 | } |
| 740 | |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 741 | filegroup { |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 742 | name: "framework-ike-shared-srcs", |
Baligh Uddin | b7ec5bb | 2020-05-27 19:22:36 +0000 | [diff] [blame] | 743 | visibility: ["//packages/modules/IPsec"], |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 744 | srcs: [ |
evitayan | bddbfb0 | 2020-01-07 21:21:52 -0800 | [diff] [blame] | 745 | "core/java/android/annotation/StringDef.java", |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 746 | "core/java/android/net/annotations/PolicyDirection.java", |
evitayan | e9cc494 | 2020-03-03 17:14:47 -0800 | [diff] [blame] | 747 | "core/java/com/android/internal/util/HexDump.java", |
evitayan | 0efc740 | 2019-12-20 17:55:57 -0800 | [diff] [blame] | 748 | "core/java/com/android/internal/util/IState.java", |
| 749 | "core/java/com/android/internal/util/State.java", |
| 750 | "core/java/com/android/internal/util/StateMachine.java", |
Yan Yan | a3e954f | 2020-11-09 00:09:39 -0800 | [diff] [blame] | 751 | "services/core/java/com/android/server/vcn/util/PersistableBundleUtils.java", |
evitayan | 996aa2a | 2019-12-30 11:19:47 -0800 | [diff] [blame] | 752 | "telephony/java/android/telephony/Annotation.java", |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 753 | ], |
| 754 | } |
| 755 | |
| 756 | filegroup { |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 757 | name: "framework-networkstack-shared-srcs", |
| 758 | srcs: [ |
| 759 | // 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] | 760 | ":framework-annotations", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 761 | "core/java/android/net/DhcpResults.java", |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 762 | "core/java/android/util/LocalLog.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 763 | "core/java/com/android/internal/util/HexDump.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 764 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 765 | "core/java/com/android/internal/util/IState.java", |
| 766 | "core/java/com/android/internal/util/MessageUtils.java", |
| 767 | "core/java/com/android/internal/util/Preconditions.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 768 | "core/java/com/android/internal/util/RingBufferIndices.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 769 | "core/java/com/android/internal/util/State.java", |
| 770 | "core/java/com/android/internal/util/StateMachine.java", |
Chalard Jean | 6a76b7e | 2019-04-09 11:16:56 +0900 | [diff] [blame] | 771 | "core/java/com/android/internal/util/TrafficStatsConstants.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 772 | "core/java/com/android/internal/util/WakeupMessage.java", |
johnson.yeh | 095b7a0 | 2019-12-19 20:30:34 +0800 | [diff] [blame] | 773 | "core/java/com/android/internal/util/TokenBucket.java", |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 774 | ], |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 775 | } |
| 776 | |
Roshan Pius | eb7edd5 | 2020-02-21 07:37:30 -0800 | [diff] [blame] | 777 | filegroup { |
| 778 | name: "framework-services-net-module-wifi-shared-srcs", |
| 779 | srcs: [ |
| 780 | "core/java/android/net/DhcpResults.java", |
Roshan Pius | eb7edd5 | 2020-02-21 07:37:30 -0800 | [diff] [blame] | 781 | "core/java/android/util/LocalLog.java", |
Roshan Pius | eb7edd5 | 2020-02-21 07:37:30 -0800 | [diff] [blame] | 782 | ], |
| 783 | } |
| 784 | |
markchien | 6d06f6d | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 785 | // 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] | 786 | filegroup { |
| 787 | name: "framework-tethering-shared-srcs", |
| 788 | srcs: [ |
| 789 | "core/java/android/util/LocalLog.java", |
markchien | 6d06f6d | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 790 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
| 791 | "core/java/com/android/internal/util/IState.java", |
| 792 | "core/java/com/android/internal/util/MessageUtils.java", |
markchien | 6d06f6d | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 793 | "core/java/com/android/internal/util/State.java", |
| 794 | "core/java/com/android/internal/util/StateMachine.java", |
markchien | 87d3f7d | 2020-01-08 20:58:23 +0800 | [diff] [blame] | 795 | "core/java/com/android/internal/util/TrafficStatsConstants.java", |
markchien | 6d06f6d | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 796 | ], |
| 797 | } |
| 798 | |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 799 | // Build ext.jar |
| 800 | // ============================================================ |
| 801 | java_library { |
| 802 | name: "ext", |
Colin Cross | a12c0f5 | 2018-06-27 11:00:11 -0700 | [diff] [blame] | 803 | installable: true, |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 804 | sdk_version: "core_platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 805 | static_libs: [ |
| 806 | "libphonenumber-platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 807 | "tagsoup", |
Ricky Wai | 0d1bc33 | 2017-10-31 14:31:01 +0000 | [diff] [blame] | 808 | "rappor", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 809 | ], |
| 810 | dxflags: ["--core-library"], |
| 811 | } |
| 812 | |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 813 | // ==== java proto host library ============================== |
| 814 | java_library_host { |
| 815 | name: "platformprotos", |
| 816 | srcs: [ |
Mike Ma | d2672bd | 2020-01-15 15:57:20 -0800 | [diff] [blame] | 817 | ":ipconnectivity-proto-src", |
Jeffrey Huang | 17df403 | 2020-11-25 13:38:36 -0800 | [diff] [blame] | 818 | ":libstats_atom_enum_protos", |
Jeffrey Huang | 5d230a2 | 2020-11-24 10:57:06 -0800 | [diff] [blame] | 819 | ":libstats_internal_protos", |
Baligh Uddin | 3eab1b09 | 2020-12-04 00:40:07 +0000 | [diff] [blame] | 820 | ":statsd_internal_protos", |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 821 | "cmds/am/proto/instrumentation_data.proto", |
Howard Ro | 0546d54 | 2018-08-30 16:23:44 -0700 | [diff] [blame] | 822 | "cmds/statsd/src/**/*.proto", |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 823 | "core/proto/**/*.proto", |
| 824 | "libs/incident/proto/**/*.proto", |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 825 | ], |
| 826 | proto: { |
Jeffrey Huang | 5d230a2 | 2020-11-24 10:57:06 -0800 | [diff] [blame] | 827 | include_dirs: [ |
| 828 | "external/protobuf/src", |
| 829 | "frameworks/proto_logging/stats", |
| 830 | ], |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 831 | type: "full", |
| 832 | }, |
| 833 | errorprone: { |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 834 | javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520 |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 835 | }, |
| 836 | } |
| 837 | |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 838 | // ==== java proto device library (for test only) ============================== |
| 839 | java_library { |
| 840 | name: "platformprotosnano", |
| 841 | proto: { |
| 842 | type: "nano", |
| 843 | output_params: ["store_unknown_fields=true"], |
| 844 | include_dirs: ["external/protobuf/src"], |
| 845 | }, |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 846 | exclude_srcs: [ |
| 847 | "core/proto/android/privacy.proto", |
| 848 | "core/proto/android/section.proto", |
| 849 | ], |
Anton Hansson | 0a3b7ad | 2019-12-19 10:17:46 +0000 | [diff] [blame] | 850 | sdk_version: "9", |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 851 | srcs: [ |
Mike Ma | d2672bd | 2020-01-15 15:57:20 -0800 | [diff] [blame] | 852 | ":ipconnectivity-proto-src", |
Jeffrey Huang | 17df403 | 2020-11-25 13:38:36 -0800 | [diff] [blame] | 853 | ":libstats_atom_enum_protos", |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 854 | "core/proto/**/*.proto", |
| 855 | "libs/incident/proto/android/os/**/*.proto", |
| 856 | ], |
| 857 | } |
| 858 | |
| 859 | // ==== java proto device library (for test only) ============================== |
| 860 | java_library { |
| 861 | name: "platformprotoslite", |
| 862 | proto: { |
| 863 | type: "lite", |
| 864 | include_dirs: ["external/protobuf/src"], |
| 865 | }, |
| 866 | |
| 867 | srcs: [ |
Mike Ma | d2672bd | 2020-01-15 15:57:20 -0800 | [diff] [blame] | 868 | ":ipconnectivity-proto-src", |
Jeffrey Huang | 17df403 | 2020-11-25 13:38:36 -0800 | [diff] [blame] | 869 | ":libstats_atom_enum_protos", |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 870 | "core/proto/**/*.proto", |
| 871 | "libs/incident/proto/android/os/**/*.proto", |
| 872 | ], |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 873 | exclude_srcs: [ |
| 874 | "core/proto/android/privacy.proto", |
| 875 | "core/proto/android/section.proto", |
| 876 | ], |
Anton Hansson | 0a3b7ad | 2019-12-19 10:17:46 +0000 | [diff] [blame] | 877 | sdk_version: "core_current", |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 878 | // Protos have lots of MissingOverride and similar. |
| 879 | errorprone: { |
| 880 | javacflags: ["-XepDisableAllChecks"], |
| 881 | }, |
| 882 | } |
| 883 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 884 | // ==== c++ proto device library ============================== |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 885 | cc_defaults { |
| 886 | name: "libplatformprotos-defaults", |
| 887 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 888 | proto: { |
| 889 | export_proto_headers: true, |
Jeffrey Huang | 17df403 | 2020-11-25 13:38:36 -0800 | [diff] [blame] | 890 | include_dirs: [ |
| 891 | "external/protobuf/src", |
| 892 | ], |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 893 | }, |
| 894 | |
Chih-Hung Hsieh | c7edf07 | 2017-10-03 09:57:55 -0700 | [diff] [blame] | 895 | cflags: [ |
| 896 | "-Wall", |
| 897 | "-Werror", |
| 898 | "-Wno-unused-parameter", |
| 899 | ], |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 900 | |
| 901 | srcs: [ |
Mike Ma | d2672bd | 2020-01-15 15:57:20 -0800 | [diff] [blame] | 902 | ":ipconnectivity-proto-src", |
Jeffrey Huang | 17df403 | 2020-11-25 13:38:36 -0800 | [diff] [blame] | 903 | ":libstats_atom_enum_protos", |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 904 | "core/proto/**/*.proto", |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 905 | ], |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 906 | } |
| 907 | |
| 908 | cc_library { |
| 909 | name: "libplatformprotos", |
| 910 | defaults: ["libplatformprotos-defaults"], |
| 911 | host_supported: true, |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 912 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 913 | target: { |
| 914 | host: { |
| 915 | proto: { |
| 916 | type: "full", |
| 917 | }, |
| 918 | }, |
| 919 | android: { |
| 920 | proto: { |
| 921 | type: "lite", |
| 922 | }, |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 923 | shared_libs: [ |
| 924 | "libprotobuf-cpp-lite", |
| 925 | ], |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 926 | shared: { |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 927 | enabled: false, |
| 928 | }, |
| 929 | }, |
| 930 | }, |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 931 | } |
| 932 | |
Joe Onorato | 9bd5db7 | 2019-04-03 18:19:43 -0700 | [diff] [blame] | 933 | // This library is meant for vendor code that needs to output protobuf. It links |
| 934 | // against the static version of libprotobuf-cpp-lite, for which we can not guarantee |
| 935 | // binary compatibility. |
| 936 | cc_library { |
| 937 | name: "libplatformprotos-static", |
| 938 | defaults: ["libplatformprotos-defaults"], |
| 939 | host_supported: false, |
| 940 | |
| 941 | // This is okay because this library is only built as a static library. The C++ |
| 942 | // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council, |
| 943 | // but is not authorized to be used outside of debugging. |
| 944 | vendor_available: true, |
| 945 | |
| 946 | target: { |
| 947 | android: { |
| 948 | proto: { |
| 949 | type: "lite", |
| 950 | }, |
| 951 | static_libs: [ |
| 952 | "libprotobuf-cpp-lite", |
| 953 | ], |
| 954 | shared: { |
| 955 | enabled: false, |
| 956 | }, |
| 957 | }, |
| 958 | }, |
| 959 | } |
| 960 | |
| 961 | |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 962 | // This is the full proto version of libplatformprotos. It may only |
| 963 | // be used by test code that is not shipped on the device. |
| 964 | cc_library { |
| 965 | name: "libplatformprotos-test", |
| 966 | defaults: ["libplatformprotos-defaults"], |
| 967 | host_supported: false, |
| 968 | |
| 969 | target: { |
| 970 | android: { |
| 971 | proto: { |
| 972 | type: "full", |
| 973 | }, |
| 974 | shared: { |
| 975 | enabled: false, |
| 976 | }, |
| 977 | }, |
| 978 | }, |
| 979 | } |
| 980 | |
Songchun Fan | 000b5b5 | 2019-12-04 12:17:38 -0800 | [diff] [blame] | 981 | filegroup { |
| 982 | name: "incremental_aidl", |
| 983 | srcs: [ |
Alex Buynytskyy | f415679 | 2020-04-07 14:26:55 -0700 | [diff] [blame] | 984 | "core/java/android/os/incremental/IIncrementalServiceConnector.aidl", |
Songchun Fan | 000b5b5 | 2019-12-04 12:17:38 -0800 | [diff] [blame] | 985 | "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl", |
| 986 | ], |
| 987 | path: "core/java", |
| 988 | } |
| 989 | |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 990 | filegroup { |
Songchun Fan | 6dd47b5 | 2019-11-29 15:20:18 -0800 | [diff] [blame] | 991 | name: "dataloader_aidl", |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 992 | srcs: [ |
Alex Buynytskyy | ea14d19 | 2019-12-13 15:42:18 -0800 | [diff] [blame] | 993 | "core/java/android/content/pm/DataLoaderParamsParcel.aidl", |
Alex Buynytskyy | 1ecfcec | 2019-12-17 12:10:41 -0800 | [diff] [blame] | 994 | "core/java/android/content/pm/DataLoaderType.aidl", |
Alex Buynytskyy | ea14d19 | 2019-12-13 15:42:18 -0800 | [diff] [blame] | 995 | "core/java/android/content/pm/FileSystemControlParcel.aidl", |
Songchun Fan | 6381d61 | 2020-02-26 17:59:41 -0800 | [diff] [blame] | 996 | "core/java/android/content/pm/IDataLoader.aidl", |
| 997 | "core/java/android/content/pm/IDataLoaderManager.aidl", |
| 998 | "core/java/android/content/pm/InstallationFileParcel.aidl", |
| 999 | "core/java/android/content/pm/InstallationFileLocation.aidl", |
Songchun Fan | 6dd47b5 | 2019-11-29 15:20:18 -0800 | [diff] [blame] | 1000 | "core/java/android/content/pm/IDataLoaderStatusListener.aidl", |
Alex Buynytskyy | ea14d19 | 2019-12-13 15:42:18 -0800 | [diff] [blame] | 1001 | "core/java/android/content/pm/IPackageInstallerSessionFileSystemConnector.aidl", |
Alex Buynytskyy | 5b0c7fa | 2019-12-17 21:48:16 -0800 | [diff] [blame] | 1002 | ], |
| 1003 | path: "core/java", |
| 1004 | } |
| 1005 | |
| 1006 | filegroup { |
| 1007 | name: "incremental_manager_aidl", |
| 1008 | srcs: [ |
Alex Buynytskyy | 716588d | 2020-02-04 13:42:59 -0800 | [diff] [blame] | 1009 | "core/java/android/os/incremental/IIncrementalService.aidl", |
Yurii Zubrytskyi | 4a25dfb | 2020-01-10 11:53:24 -0800 | [diff] [blame] | 1010 | "core/java/android/os/incremental/IncrementalNewFileParams.aidl", |
Alex Buynytskyy | 8ef61ae | 2020-05-08 16:18:52 -0700 | [diff] [blame] | 1011 | "core/java/android/os/incremental/IStorageHealthListener.aidl", |
| 1012 | "core/java/android/os/incremental/StorageHealthCheckParams.aidl", |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 1013 | ], |
| 1014 | path: "core/java", |
| 1015 | } |
| 1016 | |
Songchun Fan | 000b5b5 | 2019-12-04 12:17:38 -0800 | [diff] [blame] | 1017 | aidl_interface { |
| 1018 | name: "libincremental_aidl", |
Jiyong Park | 803dc1c | 2020-04-13 12:55:24 +0900 | [diff] [blame] | 1019 | unstable: true, |
Songchun Fan | 000b5b5 | 2019-12-04 12:17:38 -0800 | [diff] [blame] | 1020 | srcs: [ |
| 1021 | ":incremental_aidl", |
| 1022 | ], |
| 1023 | backend: { |
| 1024 | java: { |
| 1025 | sdk_version: "28", |
| 1026 | }, |
| 1027 | cpp: { |
| 1028 | enabled: true, |
| 1029 | }, |
| 1030 | ndk: { |
| 1031 | enabled: true, |
| 1032 | }, |
| 1033 | }, |
| 1034 | } |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 1035 | |
Songchun Fan | 6dd47b5 | 2019-11-29 15:20:18 -0800 | [diff] [blame] | 1036 | aidl_interface { |
| 1037 | name: "libdataloader_aidl", |
Jiyong Park | db589dd | 2020-04-13 12:55:24 +0900 | [diff] [blame] | 1038 | unstable: true, |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 1039 | srcs: [ |
Songchun Fan | 6dd47b5 | 2019-11-29 15:20:18 -0800 | [diff] [blame] | 1040 | ":dataloader_aidl", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 1041 | ], |
Alex Buynytskyy | 5b0c7fa | 2019-12-17 21:48:16 -0800 | [diff] [blame] | 1042 | imports: [ |
| 1043 | "libincremental_aidl", |
| 1044 | ], |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 1045 | backend: { |
| 1046 | java: { |
| 1047 | sdk_version: "28", |
| 1048 | }, |
| 1049 | cpp: { |
| 1050 | enabled: true, |
| 1051 | }, |
| 1052 | ndk: { |
Alex Buynytskyy | 5b0c7fa | 2019-12-17 21:48:16 -0800 | [diff] [blame] | 1053 | enabled: false, |
| 1054 | }, |
| 1055 | }, |
| 1056 | } |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 1057 | |
Alex Buynytskyy | 5b0c7fa | 2019-12-17 21:48:16 -0800 | [diff] [blame] | 1058 | aidl_interface { |
| 1059 | name: "libincremental_manager_aidl", |
Jiyong Park | db589dd | 2020-04-13 12:55:24 +0900 | [diff] [blame] | 1060 | unstable: true, |
Alex Buynytskyy | 5b0c7fa | 2019-12-17 21:48:16 -0800 | [diff] [blame] | 1061 | srcs: [ |
| 1062 | ":incremental_manager_aidl", |
| 1063 | ], |
| 1064 | imports: [ |
| 1065 | "libincremental_aidl", |
| 1066 | "libdataloader_aidl", |
| 1067 | ], |
| 1068 | backend: { |
| 1069 | java: { |
| 1070 | sdk_version: "28", |
| 1071 | }, |
| 1072 | cpp: { |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 1073 | enabled: true, |
| 1074 | }, |
Alex Buynytskyy | 5b0c7fa | 2019-12-17 21:48:16 -0800 | [diff] [blame] | 1075 | ndk: { |
| 1076 | enabled: false, |
| 1077 | }, |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 1078 | }, |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 1079 | } |
| 1080 | |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 1081 | // TODO(b/77285514): remove this once the last few hidl interfaces have been |
| 1082 | // updated to use hwbinder.stubs. |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 1083 | java_library { |
| 1084 | name: "hwbinder", |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 1085 | sdk_version: "core_platform", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 1086 | |
| 1087 | srcs: [ |
| 1088 | "core/java/android/os/HidlSupport.java", |
Steven Moreland | e8e63aa | 2018-01-10 15:45:36 -0800 | [diff] [blame] | 1089 | "core/java/android/annotation/IntDef.java", |
Ytai Ben-Tsvi | a907efc | 2019-11-06 09:53:34 -0800 | [diff] [blame] | 1090 | "core/java/android/annotation/IntRange.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 1091 | "core/java/android/annotation/NonNull.java", |
Steven Moreland | 0ff061a | 2019-03-04 17:56:30 -0800 | [diff] [blame] | 1092 | "core/java/android/annotation/Nullable.java", |
Steven Moreland | e8e63aa | 2018-01-10 15:45:36 -0800 | [diff] [blame] | 1093 | "core/java/android/annotation/SystemApi.java", |
Steven Moreland | cbba4c7 | 2019-01-11 10:19:51 -0800 | [diff] [blame] | 1094 | "core/java/android/annotation/TestApi.java", |
Ytai Ben-Tsvi | a907efc | 2019-11-06 09:53:34 -0800 | [diff] [blame] | 1095 | "core/java/android/os/HidlMemory.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 1096 | "core/java/android/os/HwBinder.java", |
| 1097 | "core/java/android/os/HwBlob.java", |
| 1098 | "core/java/android/os/HwParcel.java", |
| 1099 | "core/java/android/os/IHwBinder.java", |
| 1100 | "core/java/android/os/IHwInterface.java", |
| 1101 | "core/java/android/os/DeadObjectException.java", |
| 1102 | "core/java/android/os/DeadSystemException.java", |
Nirav Atre | 9850dd9 | 2018-07-24 17:03:44 -0700 | [diff] [blame] | 1103 | "core/java/android/os/NativeHandle.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 1104 | "core/java/android/os/RemoteException.java", |
| 1105 | "core/java/android/util/AndroidException.java", |
| 1106 | ], |
Artur Satayev | bc3d8b9 | 2019-12-10 17:47:53 +0000 | [diff] [blame] | 1107 | libs: [ "unsupportedappusage" ], |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 1108 | |
| 1109 | dxflags: ["--core-library"], |
| 1110 | installable: false, |
| 1111 | } |
Nan Zhang | 2db709d | 2017-11-08 20:48:46 -0800 | [diff] [blame] | 1112 | |
| 1113 | python_defaults { |
| 1114 | name: "base_default", |
| 1115 | version: { |
| 1116 | py2: { |
Nan Zhang | 2db709d | 2017-11-08 20:48:46 -0800 | [diff] [blame] | 1117 | enabled: false, |
| 1118 | embedded_launcher: false, |
| 1119 | }, |
Haibo Huang | 715857d | 2020-03-05 11:58:47 -0800 | [diff] [blame] | 1120 | py3: { |
| 1121 | enabled: true, |
| 1122 | embedded_launcher: true, |
| 1123 | }, |
Nan Zhang | 2db709d | 2017-11-08 20:48:46 -0800 | [diff] [blame] | 1124 | }, |
| 1125 | } |
| 1126 | |
| 1127 | python_binary_host { |
| 1128 | name: "fontchain_linter", |
| 1129 | defaults: ["base_default"], |
| 1130 | main: "tools/fonts/fontchain_linter.py", |
| 1131 | srcs: [ |
| 1132 | "tools/fonts/fontchain_linter.py", |
| 1133 | ], |
| 1134 | libs: [ |
| 1135 | "fontTools", |
| 1136 | ], |
| 1137 | } |
Nan Zhang | 172875b | 2018-02-27 11:24:03 -0800 | [diff] [blame] | 1138 | |
Nan Zhang | af25130 | 2018-08-30 10:59:51 -0700 | [diff] [blame] | 1139 | filegroup { |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1140 | name: "framework-media-annotation-srcs", |
| 1141 | srcs: [ |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 1142 | ":framework-annotations", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1143 | "core/java/android/annotation/CallbackExecutor.java", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 1144 | "core/java/android/annotation/CallSuper.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1145 | "core/java/android/annotation/DrawableRes.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1146 | "core/java/android/annotation/LongDef.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1147 | "core/java/android/annotation/StringDef.java", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 1148 | ], |
| 1149 | } |
| 1150 | |
| 1151 | filegroup { |
| 1152 | name: "framework-mediaprovider-annotation-sources", |
| 1153 | srcs: [ |
| 1154 | ":framework-annotations", |
| 1155 | "core/java/android/annotation/BytesLong.java", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 1156 | "core/java/android/annotation/CurrentTimeSecondsLong.java", |
| 1157 | "core/java/android/annotation/DurationMillisLong.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1158 | ], |
| 1159 | } |
| 1160 | |
Andrei Onea | 7a2985c | 2019-02-18 15:28:35 +0000 | [diff] [blame] | 1161 | // Creates an index of AIDL methods; used for adding UnsupportedAppUsage |
| 1162 | // annotations to private apis |
| 1163 | aidl_mapping { |
| 1164 | name: "framework-aidl-mappings", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 1165 | srcs: [":framework-all-sources"], |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1166 | output: "framework-aidl-mappings.txt", |
Dario Freni | 2ce8434 | 2019-04-26 13:06:22 +0100 | [diff] [blame] | 1167 | } |
Anna Trostanetski | 97088e9 | 2019-06-26 14:47:58 +0100 | [diff] [blame] | 1168 | |
Chen Xu | c00cf99 | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1169 | // 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] | 1170 | // Parcelable cross the libraries. This is used by telephony-common (frameworks/opt/telephony) |
| 1171 | // and TeleService app (packages/services/Telephony). |
Chen Xu | c00cf99 | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1172 | filegroup { |
Malcolm Chen | 58b59a5 | 2020-01-14 19:25:13 -0800 | [diff] [blame] | 1173 | name: "framework-telephony-common-shared-srcs", |
Chen Xu | c00cf99 | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1174 | srcs: [ |
| 1175 | "core/java/android/os/RegistrantList.java", |
| 1176 | "core/java/android/os/Registrant.java", |
| 1177 | "core/java/android/util/LocalLog.java", |
Chen Xu | c00cf99 | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1178 | "core/java/android/util/TimeUtils.java", |
| 1179 | "core/java/com/android/internal/os/SomeArgs.java", |
Meng Wang | 9c2a8e0 | 2019-12-13 16:45:34 -0800 | [diff] [blame] | 1180 | "core/java/com/android/internal/util/AsyncChannel.java", |
Meng Wang | 3043dac | 2020-01-14 14:04:10 -0800 | [diff] [blame] | 1181 | "core/java/com/android/internal/util/AsyncService.java", |
Meng Wang | 9c2a8e0 | 2019-12-13 16:45:34 -0800 | [diff] [blame] | 1182 | "core/java/com/android/internal/util/BitwiseInputStream.java", |
Michele | 68370a8 | 2019-10-31 11:48:43 -0700 | [diff] [blame] | 1183 | "core/java/com/android/internal/util/FastXmlSerializer.java", |
| 1184 | "core/java/com/android/internal/util/HexDump.java", |
Meng Wang | 8532de9 | 2019-12-02 10:42:20 -0800 | [diff] [blame] | 1185 | "core/java/com/android/internal/util/IState.java", |
Michele | 68370a8 | 2019-10-31 11:48:43 -0700 | [diff] [blame] | 1186 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
Chen Xu | c00cf99 | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1187 | "core/java/com/android/internal/util/Preconditions.java", |
| 1188 | "core/java/com/android/internal/util/State.java", |
| 1189 | "core/java/com/android/internal/util/StateMachine.java", |
Michele | 68370a8 | 2019-10-31 11:48:43 -0700 | [diff] [blame] | 1190 | "core/java/com/android/internal/util/UserIcons.java", |
Chen Xu | c00cf99 | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1191 | ], |
| 1192 | } |
Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 1193 | |
Chen Xu | 4fea79c | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1194 | // Avoid including Parcelable classes as we don't want to have two copies of |
| 1195 | // Parcelable cross the process. |
| 1196 | filegroup { |
| 1197 | name: "framework-cellbroadcast-shared-srcs", |
| 1198 | srcs: [ |
Jordan Liu | 15a7274 | 2019-11-20 13:55:18 -0800 | [diff] [blame] | 1199 | "core/java/android/os/HandlerExecutor.java", |
Chen Xu | 4fea79c | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1200 | "core/java/android/util/LocalLog.java", |
Jordan Liu | 15a7274 | 2019-11-20 13:55:18 -0800 | [diff] [blame] | 1201 | "core/java/com/android/internal/util/IState.java", |
| 1202 | "core/java/com/android/internal/util/Preconditions.java", |
Chen Xu | 4fea79c | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1203 | "core/java/com/android/internal/util/State.java", |
| 1204 | "core/java/com/android/internal/util/StateMachine.java", |
| 1205 | ], |
atrost | ce84de0 | 2019-10-08 16:16:47 +0100 | [diff] [blame] | 1206 | } |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1207 | |
| 1208 | filegroup { |
Jayachandran C | eeffa01 | 2019-10-23 18:06:33 -0700 | [diff] [blame] | 1209 | name: "framework-ims-common-shared-srcs", |
| 1210 | srcs: [ |
Jayachandran C | eeffa01 | 2019-10-23 18:06:33 -0700 | [diff] [blame] | 1211 | "core/java/android/os/RegistrantList.java", |
| 1212 | "core/java/android/os/Registrant.java", |
| 1213 | "core/java/com/android/internal/os/SomeArgs.java", |
| 1214 | "core/java/com/android/internal/util/Preconditions.java", |
| 1215 | ], |
| 1216 | } |
| 1217 | |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 1218 | // utility classes statically linked into framework-wifi and dynamically linked |
| 1219 | // into wifi-service |
| 1220 | java_library { |
| 1221 | name: "framework-wifi-util-lib", |
Anton Hansson | 5a088e0 | 2020-03-31 18:09:01 +0100 | [diff] [blame] | 1222 | sdk_version: "module_current", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 1223 | srcs: [ |
| 1224 | "core/java/android/content/pm/BaseParceledListSlice.java", |
| 1225 | "core/java/android/content/pm/ParceledListSlice.java", |
David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 1226 | "core/java/android/os/HandlerExecutor.java", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 1227 | "core/java/com/android/internal/util/AsyncChannel.java", |
| 1228 | "core/java/com/android/internal/util/AsyncService.java", |
| 1229 | "core/java/com/android/internal/util/Protocol.java", |
| 1230 | "core/java/com/android/internal/util/Preconditions.java", |
David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 1231 | "telephony/java/android/telephony/Annotation.java", |
David Su | 298cd36 | 2020-01-17 19:02:49 +0000 | [diff] [blame] | 1232 | ":net-utils-framework-wifi-common-srcs", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 1233 | ], |
| 1234 | libs: [ |
| 1235 | "framework-annotations-lib", |
| 1236 | "unsupportedappusage", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 1237 | ], |
David Su | 57bca31 | 2020-04-21 19:49:32 -0700 | [diff] [blame] | 1238 | visibility: [ |
| 1239 | "//frameworks/base/wifi", |
| 1240 | "//frameworks/base/services/net", |
| 1241 | ], |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 1242 | } |
| 1243 | |
David Su | 72f9d63 | 2020-02-10 15:58:26 -0800 | [diff] [blame] | 1244 | filegroup { |
| 1245 | name: "framework-wifi-util-lib-aidls", |
| 1246 | srcs: ["core/java/android/content/pm/ParceledListSlice.aidl"], |
| 1247 | path: "core/java", |
| 1248 | } |
| 1249 | |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 1250 | // utility classes statically linked into wifi-service |
Jayachandran C | eeffa01 | 2019-10-23 18:06:33 -0700 | [diff] [blame] | 1251 | filegroup { |
Roshan Pius | 62eb61c | 2019-12-06 13:49:47 -0800 | [diff] [blame] | 1252 | name: "framework-wifi-service-shared-srcs", |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1253 | srcs: [ |
Roshan Pius | c93cd7a | 2019-12-09 07:39:41 -0800 | [diff] [blame] | 1254 | "core/java/android/net/InterfaceConfiguration.java", |
Roshan Pius | 04769a5 | 2019-12-04 13:03:47 -0800 | [diff] [blame] | 1255 | "core/java/android/util/BackupUtils.java", |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1256 | "core/java/android/util/Rational.java", |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1257 | "core/java/com/android/internal/util/FastXmlSerializer.java", |
| 1258 | "core/java/com/android/internal/util/HexDump.java", |
| 1259 | "core/java/com/android/internal/util/IState.java", |
| 1260 | "core/java/com/android/internal/util/MessageUtils.java", |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1261 | "core/java/com/android/internal/util/State.java", |
| 1262 | "core/java/com/android/internal/util/StateMachine.java", |
| 1263 | "core/java/com/android/internal/util/WakeupMessage.java", |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1264 | ], |
David Su | 298cd36 | 2020-01-17 19:02:49 +0000 | [diff] [blame] | 1265 | visibility: ["//frameworks/opt/net/wifi/service"], |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1266 | } |
Jiyong Park | 0d7e86d | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 1267 | |
Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 1268 | // TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp |
| 1269 | metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " + |
| 1270 | "--ignore-classes-on-classpath " + |
| 1271 | "--hide-package com.android.server " + |
Hayden Gomes | c164f6a | 2020-11-05 16:28:21 -0800 | [diff] [blame] | 1272 | "--hide-package android.audio.policy.configuration.V7_0 " + |
Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 1273 | "--error UnhiddenSystemApi " + |
| 1274 | "--hide RequiresPermission " + |
| 1275 | "--hide CallbackInterface " + |
| 1276 | "--hide MissingPermission --hide BroadcastBehavior " + |
| 1277 | "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " + |
| 1278 | "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " + |
Makoto Onuki | 7821658 | 2020-05-26 10:55:53 -0700 | [diff] [blame] | 1279 | "--error NoSettingsProvider " + |
Aurimas Liutikas | 1f76a5a | 2019-11-20 17:51:42 -0800 | [diff] [blame] | 1280 | "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " + |
| 1281 | "--api-lint-ignore-prefix android.icu. " + |
| 1282 | "--api-lint-ignore-prefix java. " + |
| 1283 | "--api-lint-ignore-prefix junit. " + |
| 1284 | "--api-lint-ignore-prefix org. " |
Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 1285 | |
| 1286 | build = [ |
| 1287 | "StubLibraries.bp", |
| 1288 | "ApiDocs.bp", |
| 1289 | ] |