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