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