blob: df0cf0bfc4680fdbb3f66b8fb907b5702b739c90 [file] [log] [blame]
Dan Albert2a8d9c22016-09-23 15:55:49 -07001// 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 Crosscf3a0b52017-11-16 00:15:28 -080015// Build the master framework library.
16
Jeff Sharkeyd23b5372020-10-23 14:30:42 -060017// Defaults for platform code that runs inside system_server
18java_defaults {
19 name: "platform_service_defaults",
20 plugins: [
21 "error_prone_android_framework",
22 ],
23 errorprone: {
24 javacflags: [
Jeff Sharkey8fa24072020-11-17 12:26:48 -070025 // "-Xep:AndroidFrameworkBinderIdentity:ERROR",
Jeff Sharkeyd23b5372020-10-23 14:30:42 -060026 "-Xep:AndroidFrameworkCompatChange:ERROR",
Jeff Sharkey8fa24072020-11-17 12:26:48 -070027 // "-Xep:AndroidFrameworkUid:ERROR",
Jeff Sharkeyf14ed642020-11-14 15:54:22 -070028 // NOTE: only enable to generate local patchfiles
29 // "-XepPatchChecks:refaster:frameworks/base/errorprone/refaster/EfficientXml.java.refaster",
30 // "-XepPatchLocation:/tmp/refaster/",
Jeff Sharkeyd23b5372020-10-23 14:30:42 -060031 ],
32 },
33}
34
35// Defaults for platform apps
36java_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 Sharkey8fa24072020-11-17 12:26:48 -070047 "-Xep:AndroidFrameworkEfficientXml:OFF",
Jeff Sharkeyd23b5372020-10-23 14:30:42 -060048 ],
49 },
50}
51
Colin Crosscf3a0b52017-11-16 00:15:28 -080052// 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 Satayev3cc3fa42019-08-02 16:42:07 +010063filegroup {
Jiyong Parkb3609312019-08-16 21:17:14 +090064 name: "framework-core-sources",
Artur Satayev3cc3fa42019-08-02 16:42:07 +010065 srcs: [
Artur Satayev3cc3fa42019-08-02 16:42:07 +010066 "core/java/**/*.java",
Jiyong Parkb3609312019-08-16 21:17:14 +090067 "core/java/**/*.aidl",
Artur Satayev3cc3fa42019-08-02 16:42:07 +010068 ],
Jiyong Parkb3609312019-08-16 21:17:14 +090069 path: "core/java",
Artur Satayev3cc3fa42019-08-02 16:42:07 +010070}
71
Jiyong Park00ea0b12019-10-31 20:38:47 +090072// These are subset of framework-core-sources that are needed by the
Ramy Medhat10146d82020-05-19 01:57:41 -040073// 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 Park00ea0b12019-10-31 20:38:47 +090076filegroup {
77 name: "framework-core-sources-for-test-mock",
78 srcs: [
Ramy Medhat10146d82020-05-19 01:57:41 -040079 "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 Park00ea0b12019-10-31 20:38:47 +0900123 "core/java/android/app/IApplicationThread.aidl",
124 "core/java/android/app/IServiceConnection.aidl",
Ramy Medhat10146d82020-05-19 01:57:41 -0400125 "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 Park00ea0b12019-10-31 20:38:47 +0900135 "core/java/android/content/IContentProvider.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400136 "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 Park00ea0b12019-10-31 20:38:47 +0900141 "core/java/android/content/pm/InstantAppInfo.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400142 "core/java/android/content/pm/IPackageDataObserver.aidl",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900143 "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 Medhat10146d82020-05-19 01:57:41 -0400147 "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 Park00ea0b12019-10-31 20:38:47 +0900158 "core/java/android/os/storage/VolumeInfo.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400159 "core/java/android/util/AndroidException.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900160 "core/java/android/view/DisplayAdjustments.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400161 "core/java/android/view/ViewDebug.java",
162 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900163 ],
164 path: "core/java",
Jiyong Park673e2982020-01-17 16:14:57 +0900165 visibility: ["//frameworks/base/test-mock"],
Jiyong Park00ea0b12019-10-31 20:38:47 +0900166}
167
Jiyong Parkb3609312019-08-16 21:17:14 +0900168filegroup {
169 name: "framework-drm-sources",
170 srcs: [
171 "drm/java/**/*.java",
172 ],
173 path: "drm/java",
174}
Jiyong Park1cc95662019-08-07 22:45:07 +0900175
Jiyong Parkb3609312019-08-16 21:17:14 +0900176filegroup {
Alec Mourief37c242020-03-02 21:38:09 +0000177 name: "framework-graphics-nonupdatable-sources",
Jiyong Parkb3609312019-08-16 21:17:14 +0900178 srcs: [
179 "graphics/java/**/*.java",
180 "graphics/java/**/*.aidl",
181 ],
182 path: "graphics/java",
183}
184
185filegroup {
David Zeuthen045b6de2019-10-29 15:15:18 -0400186 name: "framework-identity-sources",
187 srcs: [
188 "identity/java/**/*.java",
189 ],
190 path: "identity/java",
191}
192
193filegroup {
Jiyong Parkb3609312019-08-16 21:17:14 +0900194 name: "framework-keystore-sources",
195 srcs: [
196 "keystore/java/**/*.java",
197 "keystore/java/**/*.aidl",
198 ],
199 path: "keystore/java",
200}
201
202filegroup {
203 name: "framework-location-sources",
204 srcs: [
205 "location/java/**/*.java",
206 "location/java/**/*.aidl",
207 ],
208 path: "location/java",
209}
210
211filegroup {
212 name: "framework-lowpan-sources",
213 srcs: [
214 "lowpan/java/**/*.java",
215 "lowpan/java/**/*.aidl",
216 ],
217 path: "lowpan/java",
218}
219
220filegroup {
221 name: "framework-media-sources",
222 srcs: [
223 "media/java/**/*.java",
224 "media/java/**/*.aidl",
225 ],
226 path: "media/java",
227}
228
229filegroup {
230 name: "framework-mca-effect-sources",
231 srcs: [
232 "media/mca/effect/java/**/*.java",
233 ],
234 path: "media/mca/effect/java",
235}
236
237filegroup {
238 name: "framework-mca-filterfw-sources",
239 srcs: [
240 "media/mca/filterfw/java/**/*.java",
241 ],
242 path: "media/mca/filterfw/java",
243}
244
245filegroup {
246 name: "framework-mca-filterpacks-sources",
247 srcs: [
248 "media/mca/filterpacks/java/**/*.java",
249 ],
250 path: "media/mca/filterpacks/java",
251}
252
253filegroup {
Tobias Thierer878c77b2019-08-18 15:19:45 +0100254 name: "framework-mime-sources",
255 srcs: [
256 "mime/java/**/*.java",
257 ],
258 path: "mime/java",
259}
260
261filegroup {
Jiyong Parkb3609312019-08-16 21:17:14 +0900262 name: "framework-opengl-sources",
263 srcs: [
264 "opengl/java/**/*.java",
265 ],
266 path: "opengl/java",
267}
268
269filegroup {
270 name: "framework-rs-sources",
271 srcs: [
272 "rs/java/**/*.java",
273 ],
274 path: "rs/java",
275}
276
277filegroup {
278 name: "framework-sax-sources",
279 srcs: [
280 "sax/java/**/*.java",
281 ],
282 path: "sax/java",
283}
284
285filegroup {
286 name: "framework-telecomm-sources",
287 srcs: [
288 "telecomm/java/**/*.java",
289 "telecomm/java/**/*.aidl",
290 ],
291 path: "telecomm/java",
292}
293
294filegroup {
295 name: "framework-telephony-sources",
296 srcs: [
297 "telephony/java/**/*.java",
298 "telephony/java/**/*.aidl",
299 ],
300 path: "telephony/java",
301}
302
Muhammad Qureshied8bca02020-01-24 16:07:49 -0800303genrule {
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 Parkb3609312019-08-16 21:17:14 +0900311filegroup {
Amit Mahajand3551532019-09-23 17:59:57 -0700312 name: "framework-telephony-common-sources",
313 srcs: [
314 "telephony/common/**/*.java",
Muhammad Qureshied8bca02020-01-24 16:07:49 -0800315 ":statslog-telephony-common-java-gen",
Amit Mahajand3551532019-09-23 17:59:57 -0700316 ],
Amit Mahajand3551532019-09-23 17:59:57 -0700317}
318
319filegroup {
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700320 name: "framework-mms-sources",
321 srcs: [
322 "mms/java/**/*.java",
323 "mms/java/**/*.aidl",
324 ],
325 path: "mms/java",
326}
327
328filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900329 name: "framework-non-updatable-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900330 srcs: [
331 // Java/AIDL sources under frameworks/base
Sudheer Shankaf5b36962019-10-04 16:16:13 -0700332 ":framework-blobstore-sources",
Remi NGUYEN VANfb9c6e82020-12-23 12:45:08 +0900333 ":framework-connectivity-sources", // framework-connectivity is not yet a module
Jiyong Park20426532019-08-19 15:24:49 +0900334 ":framework-core-sources",
335 ":framework-drm-sources",
Alec Mourief37c242020-03-02 21:38:09 +0000336 ":framework-graphics-nonupdatable-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +0900337 ":framework-jobscheduler-sources", // jobscheduler is not a module for R
Jiyong Park20426532019-08-19 15:24:49 +0900338 ":framework-keystore-sources",
David Zeuthen045b6de2019-10-29 15:15:18 -0400339 ":framework-identity-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900340 ":framework-location-sources",
341 ":framework-lowpan-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900342 ":framework-mca-effect-sources",
343 ":framework-mca-filterfw-sources",
344 ":framework-mca-filterpacks-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +0900345 ":framework-media-sources",
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700346 ":framework-mms-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900347 ":framework-opengl-sources",
348 ":framework-rs-sources",
349 ":framework-sax-sources",
350 ":framework-telecomm-sources",
Amit Mahajand3551532019-09-23 17:59:57 -0700351 ":framework-telephony-common-sources",
Malcolm Chenfbc5c362020-03-16 15:28:35 -0700352 ":framework-telephony-sources",
Benedict Wong26497362020-08-10 17:54:33 -0700353 ":framework-vcn-util-sources",
David Su130441b2019-12-14 21:37:20 -0800354 ":framework-wifi-annotations",
David Su6f646ef2019-12-10 13:33:06 -0800355 ":framework-wifi-non-updatable-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900356 ":PacProcessor-aidl-sources",
357 ":ProxyHandler-aidl-sources",
Aaron Huangc4081b22020-01-13 15:03:35 +0800358 ":net-utils-framework-common-srcs",
Jiyong Parkb3609312019-08-16 21:17:14 +0900359
atrost87488352019-10-10 19:27:31 +0100360 // AIDL from frameworks/base/native/
361 ":platform-compat-native-aidl",
362
Jiyong Park20426532019-08-19 15:24:49 +0900363 // AIDL sources from external directories
David Zeuthen045b6de2019-10-29 15:15:18 -0400364 ":credstore_aidl",
Jiyong Park20426532019-08-19 15:24:49 +0900365 ":dumpstate_aidl",
366 ":framework_native_aidl",
367 ":gatekeeper_aidl",
368 ":gsiservice_aidl",
369 ":incidentcompanion_aidl",
Bernardo Rufino64bbd4b2020-08-19 14:45:30 +0100370 ":inputconstants_aidl",
Jiyong Park20426532019-08-19 15:24:49 +0900371 ":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 Zhangccdbc4d2020-06-08 21:29:59 -0700379 ":resourcemanager_aidl",
Jiyong Park20426532019-08-19 15:24:49 +0900380 ":storaged_aidl",
381 ":vold_aidl",
Jiyong Park1cc95662019-08-07 22:45:07 +0900382
Jiyong Park20426532019-08-19 15:24:49 +0900383 // For the generated R.java and Manifest.java
384 ":framework-res{.aapt.srcjar}",
385
386 // etc.
387 ":framework-javastream-protos",
Muhammad Qureshi04ec2522020-01-27 16:36:45 -0800388 ":statslog-framework-java-gen", // FrameworkStatsLog.java
Hayden Gomes24b336f2020-11-05 16:28:21 -0800389 ":audio_policy_configuration_V7_0",
Jiyong Park20426532019-08-19 15:24:49 +0900390 ],
391}
Jiyong Park1cc95662019-08-07 22:45:07 +0900392
Jiyong Parkae9972b2019-09-15 20:19:02 +0900393filegroup {
Anton Hanssonb4f35572019-12-02 16:30:22 +0000394 name: "framework-updatable-sources",
395 srcs: [
Alexander Dorokhine04a05a82019-12-17 10:41:21 -0800396 ":framework-appsearch-sources",
Alec Mourief37c242020-03-02 21:38:09 +0000397 ":framework-graphics-srcs",
Jeff Sharkey40182832019-12-18 14:06:48 -0700398 ":framework-mediaprovider-sources",
Hai Zhang82a62272020-01-14 21:56:34 -0800399 ":framework-permission-sources",
Anton Hanssone996d432020-03-07 11:40:10 +0000400 ":framework-sdkextensions-sources",
401 ":framework-statsd-sources",
Anton Hanssone996d432020-03-07 11:40:10 +0000402 ":framework-tethering-srcs",
403 ":framework-wifi-updatable-sources",
404 ":updatable-media-srcs",
Anton Hansson2d6c4272020-08-18 12:52:44 +0100405 ],
406 visibility: ["//visibility:private"],
Anton Hanssonb4f35572019-12-02 16:30:22 +0000407}
408
Anton Hanssone996d432020-03-07 11:40:10 +0000409java_library {
410 name: "framework-updatable-stubs-module_libs_api",
411 static_libs: [
Anton Hansson25a0a2b2020-10-08 13:43:48 +0100412 "framework-appsearch.stubs.module_lib",
Paul Duffin4e006622020-05-31 16:55:13 +0100413 "framework-graphics.stubs.module_lib",
Paul Duffin8b864fb2020-05-31 11:35:50 +0100414 "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 Hanssone996d432020-03-07 11:40:10 +0000421 ],
422 sdk_version: "module_current",
Anton Hansson2d6c4272020-08-18 12:52:44 +0100423 visibility: ["//visibility:private"],
424}
425
426java_library {
427 name: "framework-all",
428 installable: false,
429 static_libs: [
430 "framework-minus-apex",
Anton Hansson25a0a2b2020-10-08 13:43:48 +0100431 "framework-appsearch.impl",
Anton Hansson2d6c4272020-08-18 12:52:44 +0100432 "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 Hanssone996d432020-03-07 11:40:10 +0000448}
449
Anton Hanssonb4f35572019-12-02 16:30:22 +0000450filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900451 name: "framework-all-sources",
452 srcs: [
Tobias Thiererc0c06082019-11-22 16:33:18 +0000453 ":framework-mime-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900454 ":framework-non-updatable-sources",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000455 ":framework-updatable-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900456 ],
457}
458
Jiyong Park392729f2020-01-17 16:32:53 +0900459// AIDL files under these paths are mixture of public and private ones.
460// They shouldn't be exported across module boundaries.
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100461java_defaults {
Makoto Onuki62242c42019-08-05 12:54:20 -0700462 name: "framework-aidl-export-defaults",
Makoto Onuki62242c42019-08-05 12:54:20 -0700463 aidl: {
Jiyong Parkb3609312019-08-16 21:17:14 +0900464 export_include_dirs: [
465 "core/java",
466 "drm/java",
467 "graphics/java",
David Zeuthen045b6de2019-10-29 15:15:18 -0400468 "identity/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900469 "keystore/java",
470 "location/java",
471 "lowpan/java",
472 "media/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900473 "media/mca/effect/java",
474 "media/mca/filterfw/java",
475 "media/mca/filterpacks/java",
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700476 "mms/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900477 "opengl/java",
478 "rs/java",
479 "sax/java",
480 "telecomm/java",
Anton Hanssone996d432020-03-07 11:40:10 +0000481
Sungsoo Lim895f4f62020-04-08 11:21:36 +0900482 "apex/media/aidl/stable",
Anton Hanssone996d432020-03-07 11:40:10 +0000483 // TODO(b/147699819): remove this
484 "telephony/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900485 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700486 },
487}
488
Jiyong Park20426532019-08-19 15:24:49 +0900489// 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.
491java_library {
492 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800493 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100494 "apex_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800495 "framework-protos",
Peiyong Linb967a4c2020-07-27 22:16:13 -0700496 "updatable-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800497 "android.hidl.base-V1.0-java",
498 "android.hardware.cas-V1.0-java",
Henry Fang43cab922019-12-27 16:50:20 -0800499 "android.hardware.cas-V1.1-java",
500 "android.hardware.cas-V1.2-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800501 "android.hardware.contexthub-V1.0-java",
Anthony Stange521a9052020-02-07 18:45:47 -0500502 "android.hardware.contexthub-V1.1-java",
Arthur Ishiguro8368e942020-10-14 13:39:09 -0700503 "android.hardware.contexthub-V1.2-java",
Yu-Han Yang9fe06dd2019-11-18 16:23:31 -0800504 "android.hardware.gnss-V1.0-java",
Yu-Han Yangad03c472020-01-14 15:31:01 -0800505 "android.hardware.gnss-V2.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800506 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800507 "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 Chin21e9c632019-11-05 13:30:10 -0800512 "android.hardware.radio-V1.5-java",
Daniel Bright8b4502e2020-09-02 17:10:54 -0700513 "android.hardware.radio-V1.6-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800514 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800515 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700516 "android.hardware.thermal-V1.1-java",
517 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800518 "android.hardware.tv.input-V1.0-java-constants",
shubang7e849b02019-10-18 19:36:25 -0700519 "android.hardware.tv.tuner-V1.0-java-constants",
Amy Zhangb13e3042020-07-27 14:50:10 -0700520 "android.hardware.tv.tuner-V1.1-java-constants",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800521 "android.hardware.usb-V1.0-java-constants",
522 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800523 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800524 "android.hardware.usb.gadget-V1.0-java",
raychi88254a22020-09-30 19:04:08 +0800525 "android.hardware.usb.gadget-V1.1-java",
526 "android.hardware.usb.gadget-V1.2-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000527 "android.hardware.vibrator-V1.0-java",
528 "android.hardware.vibrator-V1.1-java",
529 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900530 "android.hardware.vibrator-V1.3-java",
Janis Danisevskis145e11f2020-09-28 17:37:13 -0700531 "android.system.keystore2-java",
Michael Sund5237962020-11-06 03:28:14 +0000532 "android.system.suspend.control.internal-java",
Shuzhen Wangb2443992020-09-03 15:38:37 -0700533 "cameraprotosnano",
arangelov1ab61492018-11-22 13:56:50 +0000534 "devicepolicyprotosnano",
Inseob Kim4fe9f0f2019-07-30 18:23:26 +0900535
536 "com.android.sysprop.apex",
Nikita Ioffe779d6be2020-02-06 23:17:17 +0000537 "com.android.sysprop.init",
Alexander Mishkovets77f6bc82020-07-14 19:14:10 +0200538 "com.android.sysprop.localization",
Inseob Kim4fe9f0f2019-07-30 18:23:26 +0900539 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800540 ],
Jiyong Park20426532019-08-19 15:24:49 +0900541 sdk_version: "core_platform",
542 installable: false,
543}
544
Colin Crossbc2dc312018-10-26 22:34:06 -0700545filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800546 name: "framework-jarjar-rules",
David Su130441b2019-12-14 21:37:20 -0800547 srcs: ["framework-jarjar-rules.txt"],
Steven Moreland19e8d462019-03-08 10:44:22 -0800548}
549
550filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700551 name: "libincident_aidl",
552 srcs: [
Mike Ma643de922019-12-17 10:56:17 -0800553 "core/java/android/os/IIncidentDumpCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700554 "core/java/android/os/IIncidentManager.aidl",
555 "core/java/android/os/IIncidentReportStatusListener.aidl",
556 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700557 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700558}
559
560filegroup {
Michael Wrightc390fbe2018-12-12 19:45:09 +0000561 name: "libvibrator_aidl",
562 srcs: [
563 "core/java/android/os/IExternalVibrationController.aidl",
564 "core/java/android/os/IExternalVibratorService.aidl",
565 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700566 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000567}
568
Chris Ye48dbcaa2020-02-10 13:29:01 -0800569filegroup {
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 Ye590ff6e2020-02-28 21:42:19 -0800577 "core/java/android/os/IPowerManager.aidl",
Chris Ye48dbcaa2020-02-10 13:29:01 -0800578 ],
579 path: "core/java",
580}
581
Ioana Stefan2f5c5452020-10-15 15:00:24 +0200582java_defaults {
583 name: "framework-minus-apex-defaults",
Anton Hansson5954c6d2020-08-19 14:37:54 +0100584 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-Tsvida7c21e2020-09-16 13:04:31 -0700593 local_include_dirs: ["media/aidl"],
Ytai Ben-Tsvic3cd3cd2020-10-30 12:34:51 -0700594 include_dirs: ["frameworks/av/aidl"],
Anton Hansson5954c6d2020-08-19 14:37:54 +0100595 },
596 dxflags: [
597 "--core-library",
598 "--multi-dex",
599 ],
Anton Hansson5954c6d2020-08-19 14:37:54 +0100600 jarjar_rules: ":framework-jarjar-rules",
Jiyong Park911cd4f2019-10-21 14:35:14 +0900601 javac_shard_size: 150,
Anton Hansson5954c6d2020-08-19 14:37:54 +0100602 plugins: [
603 "view-inspector-annotation-processor",
604 "staledataclass-annotation-processor",
605 "error_prone_android_framework",
606 ],
atrostaec9bc12019-08-16 18:14:09 +0100607 required: [
608 "framework-platform-compat-config",
Michal Olech23dcad52020-10-28 12:20:50 +0100609 // TODO: remove gps_debug, cec_config.xml and protolog.conf.json when the build system propagates "required" properly.
Anton Hansson5954c6d2020-08-19 14:37:54 +0100610 "gps_debug.conf",
Michal Olech23dcad52020-10-28 12:20:50 +0100611 "cec_config.xml",
Victor Changa4fae272020-10-30 12:14:34 +0000612 "icu4j-platform-compat-config",
atrostaec9bc12019-08-16 18:14:09 +0100613 "libcore-platform-compat-config",
Anton Hansson5954c6d2020-08-19 14:37:54 +0100614 "protolog.conf.json.gz",
atrost86895aa2019-08-19 16:51:15 +0100615 "services-platform-compat-config",
Ivan Chiang3cb1cbd2020-02-18 10:50:10 +0800616 "documents-ui-compat-config",
Varun Shahf952e66c12020-06-25 11:30:13 -0700617 "calendar-provider-compat-config",
atrostaec9bc12019-08-16 18:14:09 +0100618 ],
Anton Hansson5954c6d2020-08-19 14:37:54 +0100619 libs: [
620 "app-compat-annotations",
621 "ext",
622 "framework-updatable-stubs-module_libs_api",
623 "unsupportedappusage",
624 ],
625 sdk_version: "core_platform",
Tobias Thiererc0c06082019-11-22 16:33:18 +0000626 static_libs: [
Anton Hansson5954c6d2020-08-19 14:37:54 +0100627 "framework-internal-utils",
Tobias Thierer82968532019-11-29 19:39:45 +0000628 // 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 Thiererc0c06082019-11-22 16:33:18 +0000630 "mimemap",
Ytai Ben-Tsvic3cd3cd2020-10-30 12:34:51 -0700631 "av-types-aidl-java",
Ytai Ben-Tsvida7c21e2020-09-16 13:04:31 -0700632 "soundtrigger_middleware-aidl-java",
Chiachang Wang6a555272020-11-02 16:51:24 +0800633 "modules-utils-os",
Tobias Thiererc0c06082019-11-22 16:33:18 +0000634 ],
Ioana Stefan2f5c5452020-10-15 15:00:24 +0200635}
636
637java_library {
638 name: "framework-minus-apex",
639 defaults: ["framework-minus-apex-defaults"],
640 installable: true,
Jiyong Park911cd4f2019-10-21 14:35:14 +0900641 // For backwards compatibility.
642 stem: "framework",
Jiyong Park352f9e22019-12-09 14:45:07 +0900643 apex_available: ["//apex_available:platform"],
Jiyong Park212d2e82020-01-03 21:07:38 +0900644 visibility: [
645 "//frameworks/base",
Jiyong Park634819c2020-02-04 21:20:02 +0900646 // TODO(b/147128803) remove the below lines
Jiyong Park212d2e82020-01-03 21:07:38 +0900647 "//frameworks/base/apex/appsearch/framework",
648 "//frameworks/base/apex/blobstore/framework",
649 "//frameworks/base/apex/jobscheduler/framework",
markchien2c153702020-02-06 19:23:26 +0800650 "//frameworks/base/packages/Tethering/tests/unit",
Baligh Uddinff8ff122020-10-29 02:11:55 +0000651 "//packages/modules/Connectivity/Tethering/tests/unit",
Jiyong Park212d2e82020-01-03 21:07:38 +0900652 ],
Jeff Sharkey6c8ffbc2020-10-02 11:52:05 -0600653 errorprone: {
654 javacflags: [
Jeff Sharkey7cdc3bf2020-10-06 14:55:37 -0600655 "-Xep:AndroidFrameworkBinderIdentity:ERROR",
Jeff Sharkey6c8ffbc2020-10-02 11:52:05 -0600656 "-Xep:AndroidFrameworkCompatChange:ERROR",
Jeff Sharkey9af4aea2020-10-02 12:00:59 -0600657 "-Xep:AndroidFrameworkUid:ERROR",
Jeff Sharkey6c8ffbc2020-10-02 11:52:05 -0600658 ],
659 },
Jiyong Park911cd4f2019-10-21 14:35:14 +0900660}
661
Ioana Stefan2f5c5452020-10-15 15:00:24 +0200662java_library {
663 name: "framework-minus-apex-intdefs",
664 defaults: ["framework-minus-apex-defaults"],
665 plugins: ["intdef-annotation-processor"],
666}
667
Jiyong Park911cd4f2019-10-21 14:35:14 +0900668// 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".
677java_library {
678 name: "framework",
679 defaults: ["framework-aidl-export-defaults"],
680 installable: false, // this lib is a build-only library
681 static_libs: [
Malcolm Chenfbc5c362020-03-16 15:28:35 -0700682 "app-compat-annotations",
Jiyong Park911cd4f2019-10-21 14:35:14 +0900683 "framework-minus-apex",
Anton Hansson25a0a2b2020-10-08 13:43:48 +0100684 "framework-appsearch.impl", // TODO(b/146218515): should be removed
Anton Hanssone996d432020-03-07 11:40:10 +0000685 "framework-updatable-stubs-module_libs_api",
Jiyong Park911cd4f2019-10-21 14:35:14 +0900686 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700687 sdk_version: "core_platform",
Jiyong Park352f9e22019-12-09 14:45:07 +0900688 apex_available: ["//apex_available:platform"],
Makoto Onuki62242c42019-08-05 12:54:20 -0700689}
690
atrostb9c34502019-08-05 12:22:18 +0100691platform_compat_config {
Artur Satayev9f5a5622020-03-25 15:36:55 +0000692 name: "framework-platform-compat-config",
693 src: ":framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100694}
695
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000696// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000697// 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.
701java_library {
702 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000703 installable: true,
atrost1a945502019-11-04 17:03:54 +0000704 libs: ["app-compat-annotations"],
Paul Duffina3b69212018-01-25 09:58:32 +0000705 srcs: [
Winson5e0a1d52020-01-24 12:00:33 -0800706 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
Paul Duffina3b69212018-01-25 09:58:32 +0000707 ],
708}
709
Colin Crosscf3a0b52017-11-16 00:15:28 -0800710genrule {
Muhammad Qureshi04ec2522020-01-27 16:36:45 -0800711 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 Songa28623b2020-02-06 22:56:21 -0800718java_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 Crosscf3a0b52017-11-16 00:15:28 -0800730gensrcs {
731 name: "framework-javastream-protos",
732 depfile: true,
733
734 tools: [
735 "aprotoc",
736 "protoc-gen-javastream",
737 "soong_zip",
738 ],
739
Anton Hanssond82b2f72019-11-18 13:34:56 +0000740 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 Jin437aa6e2018-01-10 11:34:26 -0800750 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800751 ":ipconnectivity-proto-src",
Jeffrey Huang677a0df2020-11-25 10:46:51 -0800752 ":libstats_atom_enum_protos",
Yi Jin437aa6e2018-01-10 11:34:26 -0800753 "core/proto/**/*.proto",
754 "libs/incident/**/*.proto",
755 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800756 output_extension: "srcjar",
757}
758
Mike Maa47ad722020-01-28 22:04:20 -0800759gensrcs {
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 Huang677a0df2020-11-25 10:46:51 -0800779 ":libstats_atom_enum_protos",
Mike Maa47ad722020-01-28 22:04:20 -0800780 "core/proto/**/*.proto",
781 "libs/incident/**/*.proto",
782 ],
783
784 output_extension: "proto.h",
785}
786
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900787filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900788 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900789 srcs: [
David Su369c9202020-01-09 18:09:56 -0800790 "core/java/android/annotation/CallbackExecutor.java",
David Su511a8142020-01-09 14:02:21 -0800791 "core/java/android/annotation/CheckResult.java",
David Su77517342020-02-18 18:10:07 -0800792 "core/java/android/annotation/CurrentTimeMillisLong.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800793 "core/java/android/annotation/Hide.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900794 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900795 "core/java/android/annotation/IntRange.java",
lesld41a2992020-02-20 17:30:58 +0800796 "core/java/android/annotation/LongDef.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700797 "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 Su369c9202020-01-09 18:09:56 -0800801 "core/java/android/annotation/StringDef.java",
Anton Hansson2157c892020-11-03 09:53:07 +0000802 "core/java/android/annotation/SuppressLint.java",
Anton Hanssondc1e99b2019-12-06 17:07:28 +0000803 "core/java/android/annotation/SystemApi.java",
David Su369c9202020-01-09 18:09:56 -0800804 "core/java/android/annotation/SystemService.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700805 "core/java/android/annotation/TestApi.java",
Jeff Sharkeyf5eebf92020-03-06 14:41:56 -0700806 "core/java/android/annotation/WorkerThread.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900807 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900808 "core/java/com/android/internal/annotations/VisibleForTesting.java",
David Su511a8142020-01-09 14:02:21 -0800809 "core/java/com/android/internal/annotations/Immutable.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100810 ],
Chalard Jean95213512019-01-30 21:04:58 +0900811}
812
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000813java_library {
814 name: "framework-annotations-lib",
815 srcs: [ ":framework-annotations" ],
Anton Hansson791551a2019-12-19 10:17:46 +0000816 sdk_version: "core_current",
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000817}
818
Chalard Jean95213512019-01-30 21:04:58 +0900819filegroup {
evitayane22e47f2019-12-30 16:05:38 -0800820 name: "framework-ike-shared-srcs",
Baligh Uddinb7ec5bb2020-05-27 19:22:36 +0000821 visibility: ["//packages/modules/IPsec"],
evitayane22e47f2019-12-30 16:05:38 -0800822 srcs: [
evitayanbddbfb02020-01-07 21:21:52 -0800823 "core/java/android/annotation/StringDef.java",
evitayane22e47f2019-12-30 16:05:38 -0800824 "core/java/android/net/annotations/PolicyDirection.java",
evitayane9cc4942020-03-03 17:14:47 -0800825 "core/java/com/android/internal/util/HexDump.java",
evitayan0efc7402019-12-20 17:55:57 -0800826 "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 Yana3e954f2020-11-09 00:09:39 -0800829 "services/core/java/com/android/server/vcn/util/PersistableBundleUtils.java",
evitayan996aa2a2019-12-30 11:19:47 -0800830 "telephony/java/android/telephony/Annotation.java",
evitayane22e47f2019-12-30 16:05:38 -0800831 ],
832}
833
834filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900835 name: "framework-networkstack-shared-srcs",
836 srcs: [
837 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900838 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900839 "core/java/android/net/DhcpResults.java",
Dmitri Plotnikovf800b702020-05-15 13:49:20 -0700840 "core/java/android/util/IndentingPrintWriter.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900841 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900842 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900843 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900844 "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 VAN3ba6c0d2019-01-20 13:48:19 +0900847 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900848 "core/java/com/android/internal/util/State.java",
849 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900850 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900851 "core/java/com/android/internal/util/WakeupMessage.java",
johnson.yeh095b7a02019-12-19 20:30:34 +0800852 "core/java/com/android/internal/util/TokenBucket.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100853 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900854}
855
Roshan Piusb6361f92020-02-21 07:37:30 -0800856filegroup {
857 name: "framework-services-net-module-wifi-shared-srcs",
858 srcs: [
859 "core/java/android/net/DhcpResults.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800860 "core/java/android/util/LocalLog.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800861 ],
862}
863
markchienae8aa642019-12-16 20:15:20 +0800864// keep these files in sync with the package/Tethering/jarjar-rules.txt for the tethering module.
markchiena6ba54d2019-09-03 15:58:06 +0800865filegroup {
866 name: "framework-tethering-shared-srcs",
867 srcs: [
Dmitri Plotnikovf800b702020-05-15 13:49:20 -0700868 "core/java/android/util/IndentingPrintWriter.java",
markchiena6ba54d2019-09-03 15:58:06 +0800869 "core/java/android/util/LocalLog.java",
markchienae8aa642019-12-16 20:15:20 +0800870 "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",
markchienae8aa642019-12-16 20:15:20 +0800873 "core/java/com/android/internal/util/State.java",
874 "core/java/com/android/internal/util/StateMachine.java",
markchien87d3f7d2020-01-08 20:58:23 +0800875 "core/java/com/android/internal/util/TrafficStatsConstants.java",
markchienae8aa642019-12-16 20:15:20 +0800876 ],
877}
878
Dmitri Plotnikovb3fd1322020-04-30 12:33:47 -0700879// keep these files in sync with the apex/jobscheduler/service jarjar-rules.txt for
880// the jobscheduler module.
881filegroup {
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 Crossd8e02252017-10-02 17:14:22 -0700900// Build ext.jar
901// ============================================================
902java_library {
903 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700904 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100905 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700906 static_libs: [
907 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700908 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000909 "rappor",
Colin Crossd8e02252017-10-02 17:14:22 -0700910 ],
911 dxflags: ["--core-library"],
912}
913
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700914// ==== java proto host library ==============================
915java_library_host {
916 name: "platformprotos",
917 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800918 ":ipconnectivity-proto-src",
Jeffrey Huang677a0df2020-11-25 10:46:51 -0800919 ":libstats_atom_enum_protos",
Jeffrey Huang91224ea2020-11-24 22:28:38 +0000920 ":libstats_internal_protos",
Baligh Uddinb74ba242020-12-03 04:43:33 +0000921 ":statsd_internal_protos",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700922 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700923 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700924 "core/proto/**/*.proto",
925 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700926 ],
927 proto: {
Jeffrey Huang91224ea2020-11-24 22:28:38 +0000928 include_dirs: [
929 "external/protobuf/src",
930 "frameworks/proto_logging/stats",
931 ],
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700932 type: "full",
933 },
Jeff Sharkeyf14ed642020-11-14 15:54:22 -0700934 // Protos have lots of MissingOverride and similar.
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700935 errorprone: {
Jeff Sharkeyf14ed642020-11-14 15:54:22 -0700936 javacflags: ["-XepDisableAllChecks"],
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700937 },
938}
939
Colin Cross43214162018-08-20 13:57:24 -0700940// ==== java proto device library (for test only) ==============================
941java_library {
942 name: "platformprotosnano",
943 proto: {
944 type: "nano",
945 output_params: ["store_unknown_fields=true"],
946 include_dirs: ["external/protobuf/src"],
947 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000948 exclude_srcs: [
949 "core/proto/android/privacy.proto",
950 "core/proto/android/section.proto",
Pablo Gamitoc18f0a32020-06-12 14:28:08 +0000951 "core/proto/android/typedef.proto",
Joe Onorato99598ee2019-02-11 15:55:13 +0000952 ],
Anton Hansson791551a2019-12-19 10:17:46 +0000953 sdk_version: "9",
Colin Cross43214162018-08-20 13:57:24 -0700954 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800955 ":ipconnectivity-proto-src",
Jeffrey Huang677a0df2020-11-25 10:46:51 -0800956 ":libstats_atom_enum_protos",
Colin Cross43214162018-08-20 13:57:24 -0700957 "core/proto/**/*.proto",
958 "libs/incident/proto/android/os/**/*.proto",
959 ],
960}
961
962// ==== java proto device library (for test only) ==============================
963java_library {
964 name: "platformprotoslite",
965 proto: {
966 type: "lite",
967 include_dirs: ["external/protobuf/src"],
968 },
969
970 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800971 ":ipconnectivity-proto-src",
Jeffrey Huang677a0df2020-11-25 10:46:51 -0800972 ":libstats_atom_enum_protos",
Colin Cross43214162018-08-20 13:57:24 -0700973 "core/proto/**/*.proto",
974 "libs/incident/proto/android/os/**/*.proto",
975 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000976 exclude_srcs: [
977 "core/proto/android/privacy.proto",
978 "core/proto/android/section.proto",
Pablo Gamitoc18f0a32020-06-12 14:28:08 +0000979 "core/proto/android/typedef.proto",
Joe Onorato99598ee2019-02-11 15:55:13 +0000980 ],
Anton Hansson791551a2019-12-19 10:17:46 +0000981 sdk_version: "core_current",
Colin Cross43214162018-08-20 13:57:24 -0700982 // Protos have lots of MissingOverride and similar.
983 errorprone: {
984 javacflags: ["-XepDisableAllChecks"],
985 },
986}
987
Colin Crossaa0d4352017-05-02 14:14:56 -0700988// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000989cc_defaults {
990 name: "libplatformprotos-defaults",
991
Colin Crossaa0d4352017-05-02 14:14:56 -0700992 proto: {
993 export_proto_headers: true,
Jeffrey Huang677a0df2020-11-25 10:46:51 -0800994 include_dirs: [
995 "external/protobuf/src",
996 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700997 },
998
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700999 cflags: [
1000 "-Wall",
1001 "-Werror",
1002 "-Wno-unused-parameter",
1003 ],
Joe Onorato62c220b2017-11-18 20:32:56 -08001004
1005 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -08001006 ":ipconnectivity-proto-src",
Jeffrey Huang677a0df2020-11-25 10:46:51 -08001007 ":libstats_atom_enum_protos",
Joe Onorato62c220b2017-11-18 20:32:56 -08001008 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -08001009 ],
Joe Onorato99598ee2019-02-11 15:55:13 +00001010}
1011
1012cc_library {
1013 name: "libplatformprotos",
1014 defaults: ["libplatformprotos-defaults"],
1015 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -08001016
Colin Crossaa0d4352017-05-02 14:14:56 -07001017 target: {
1018 host: {
1019 proto: {
1020 type: "full",
1021 },
1022 },
1023 android: {
1024 proto: {
1025 type: "lite",
1026 },
Joe Onorato99598ee2019-02-11 15:55:13 +00001027 shared_libs: [
1028 "libprotobuf-cpp-lite",
1029 ],
Colin Crossaa0d4352017-05-02 14:14:56 -07001030 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -07001031 enabled: false,
1032 },
1033 },
1034 },
Colin Crossaa0d4352017-05-02 14:14:56 -07001035}
1036
Joe Onorato9bd5db72019-04-03 18:19:43 -07001037// 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.
1040cc_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 Onorato99598ee2019-02-11 15:55:13 +00001066// This is the full proto version of libplatformprotos. It may only
1067// be used by test code that is not shipped on the device.
1068cc_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 Fan0037c3f2019-10-30 15:20:59 -07001085filegroup {
1086 name: "incremental_aidl",
1087 srcs: [
Alex Buynytskyyf4156792020-04-07 14:26:55 -07001088 "core/java/android/os/incremental/IIncrementalServiceConnector.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001089 "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001090 ],
1091 path: "core/java",
1092}
1093
1094filegroup {
Songchun Fan6dd47b52019-11-29 15:20:18 -08001095 name: "dataloader_aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001096 srcs: [
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001097 "core/java/android/content/pm/DataLoaderParamsParcel.aidl",
Alex Buynytskyy1ecfcec2019-12-17 12:10:41 -08001098 "core/java/android/content/pm/DataLoaderType.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001099 "core/java/android/content/pm/FileSystemControlParcel.aidl",
Songchun Fan6381d612020-02-26 17:59:41 -08001100 "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 Fan6dd47b52019-11-29 15:20:18 -08001104 "core/java/android/content/pm/IDataLoaderStatusListener.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001105 "core/java/android/content/pm/IPackageInstallerSessionFileSystemConnector.aidl",
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001106 ],
1107 path: "core/java",
1108}
1109
1110filegroup {
1111 name: "incremental_manager_aidl",
1112 srcs: [
Alex Buynytskyy716588d2020-02-04 13:42:59 -08001113 "core/java/android/os/incremental/IIncrementalService.aidl",
Songchun Fana7098592020-09-03 11:45:53 -07001114 "core/java/android/os/incremental/IStorageLoadingProgressListener.aidl",
Yurii Zubrytskyi4a25dfb2020-01-10 11:53:24 -08001115 "core/java/android/os/incremental/IncrementalNewFileParams.aidl",
Alex Buynytskyy8ef61ae2020-05-08 16:18:52 -07001116 "core/java/android/os/incremental/IStorageHealthListener.aidl",
1117 "core/java/android/os/incremental/StorageHealthCheckParams.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001118 ],
1119 path: "core/java",
1120}
1121
Chong Zhang42334952020-11-10 12:16:09 -08001122filegroup {
1123 name: "activity_manager_procstate_aidl",
1124 srcs: [
1125 "core/java/android/app/ProcessStateEnum.aidl",
1126 ],
1127 path: "core/java",
1128}
1129
Songchun Fan0037c3f2019-10-30 15:20:59 -07001130aidl_interface {
1131 name: "libincremental_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001132 unstable: true,
Songchun Fan0037c3f2019-10-30 15:20:59 -07001133 srcs: [
1134 ":incremental_aidl",
Songchun Fan6dd47b52019-11-29 15:20:18 -08001135 ],
Songchun Fan6dd47b52019-11-29 15:20:18 -08001136 backend: {
1137 java: {
1138 sdk_version: "28",
1139 },
1140 cpp: {
1141 enabled: true,
1142 },
1143 ndk: {
1144 enabled: true,
1145 },
1146 },
1147}
1148
1149aidl_interface {
1150 name: "libdataloader_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001151 unstable: true,
Songchun Fan6dd47b52019-11-29 15:20:18 -08001152 srcs: [
1153 ":dataloader_aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001154 ],
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001155 imports: [
1156 "libincremental_aidl",
1157 ],
Songchun Fan0037c3f2019-10-30 15:20:59 -07001158 backend: {
1159 java: {
1160 sdk_version: "28",
1161 },
1162 cpp: {
1163 enabled: true,
1164 },
1165 ndk: {
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001166 enabled: false,
1167 },
1168 },
1169}
1170
1171aidl_interface {
1172 name: "libincremental_manager_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001173 unstable: true,
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001174 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 Fan0037c3f2019-10-30 15:20:59 -07001186 enabled: true,
1187 },
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001188 ndk: {
1189 enabled: false,
1190 },
Songchun Fan0037c3f2019-10-30 15:20:59 -07001191 },
Songchun Fan0037c3f2019-10-30 15:20:59 -07001192}
Joe Onorato99598ee2019-02-11 15:55:13 +00001193
Colin Crossa2b78a72018-03-29 13:31:04 -07001194// TODO(b/77285514): remove this once the last few hidl interfaces have been
1195// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -07001196java_library {
1197 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +01001198 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -07001199
1200 srcs: [
1201 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001202 "core/java/android/annotation/IntDef.java",
Ytai Ben-Tsvi4659e182019-11-06 09:53:34 -08001203 "core/java/android/annotation/IntRange.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001204 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -08001205 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001206 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -08001207 "core/java/android/annotation/TestApi.java",
Ytai Ben-Tsvi4659e182019-11-06 09:53:34 -08001208 "core/java/android/os/HidlMemory.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001209 "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 Atre9850dd92018-07-24 17:03:44 -07001216 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001217 "core/java/android/os/RemoteException.java",
1218 "core/java/android/util/AndroidException.java",
1219 ],
Artur Satayevafdb23a2019-12-10 17:47:53 +00001220 libs: [ "unsupportedappusage" ],
Steven Morelandeddafe92017-10-02 16:58:41 -07001221
1222 dxflags: ["--core-library"],
1223 installable: false,
1224}
Nan Zhang2db709d2017-11-08 20:48:46 -08001225
1226python_defaults {
1227 name: "base_default",
1228 version: {
1229 py2: {
Nan Zhang2db709d2017-11-08 20:48:46 -08001230 enabled: false,
1231 embedded_launcher: false,
1232 },
Haibo Huang715857d2020-03-05 11:58:47 -08001233 py3: {
1234 enabled: true,
1235 embedded_launcher: true,
1236 },
Nan Zhang2db709d2017-11-08 20:48:46 -08001237 },
1238}
1239
1240python_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 Zhang172875b2018-02-27 11:24:03 -08001251
Nan Zhangaf251302018-08-30 10:59:51 -07001252filegroup {
Insun Kang06b25ae2018-11-20 10:05:44 +09001253 name: "framework-media-annotation-srcs",
1254 srcs: [
Jeff Sharkey40182832019-12-18 14:06:48 -07001255 ":framework-annotations",
Insun Kang06b25ae2018-11-20 10:05:44 +09001256 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001257 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001258 "core/java/android/annotation/DrawableRes.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001259 "core/java/android/annotation/LongDef.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001260 "core/java/android/annotation/StringDef.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001261 ],
1262}
1263
1264filegroup {
1265 name: "framework-mediaprovider-annotation-sources",
1266 srcs: [
1267 ":framework-annotations",
1268 "core/java/android/annotation/BytesLong.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001269 "core/java/android/annotation/CurrentTimeSecondsLong.java",
1270 "core/java/android/annotation/DurationMillisLong.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001271 ],
1272}
1273
Andrei Onea7a2985c2019-02-18 15:28:35 +00001274// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1275// annotations to private apis
1276aidl_mapping {
1277 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001278 srcs: [":framework-all-sources"],
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001279 output: "framework-aidl-mappings.txt",
Kyunglyul Hyund51666d2019-04-11 04:08:40 +00001280}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001281
Chen Xu192bf1f2019-09-05 22:07:42 -07001282// Avoid including Parcelable classes as we don't want to have two copies of
Malcolm Chen58b59a52020-01-14 19:25:13 -08001283// Parcelable cross the libraries. This is used by telephony-common (frameworks/opt/telephony)
1284// and TeleService app (packages/services/Telephony).
Chen Xu192bf1f2019-09-05 22:07:42 -07001285filegroup {
Malcolm Chen58b59a52020-01-14 19:25:13 -08001286 name: "framework-telephony-common-shared-srcs",
Chen Xu192bf1f2019-09-05 22:07:42 -07001287 srcs: [
1288 "core/java/android/os/RegistrantList.java",
1289 "core/java/android/os/Registrant.java",
Dmitri Plotnikovf800b702020-05-15 13:49:20 -07001290 "core/java/android/util/IndentingPrintWriter.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001291 "core/java/android/util/LocalLog.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001292 "core/java/android/util/TimeUtils.java",
1293 "core/java/com/android/internal/os/SomeArgs.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001294 "core/java/com/android/internal/util/AsyncChannel.java",
Meng Wang3043dac2020-01-14 14:04:10 -08001295 "core/java/com/android/internal/util/AsyncService.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001296 "core/java/com/android/internal/util/BitwiseInputStream.java",
Michelebadc0212019-10-31 11:48:43 -07001297 "core/java/com/android/internal/util/FastXmlSerializer.java",
1298 "core/java/com/android/internal/util/HexDump.java",
Meng Wang64fffb92019-12-02 10:42:20 -08001299 "core/java/com/android/internal/util/IState.java",
Michelebadc0212019-10-31 11:48:43 -07001300 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001301 "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",
Michelebadc0212019-10-31 11:48:43 -07001304 "core/java/com/android/internal/util/UserIcons.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001305 ],
1306}
1307
Chen Xu4fea79c2019-10-08 18:39:03 -07001308// Avoid including Parcelable classes as we don't want to have two copies of
1309// Parcelable cross the process.
1310filegroup {
1311 name: "framework-cellbroadcast-shared-srcs",
1312 srcs: [
Jordan Liu15a72742019-11-20 13:55:18 -08001313 "core/java/android/os/HandlerExecutor.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001314 "core/java/android/util/LocalLog.java",
Jordan Liu15a72742019-11-20 13:55:18 -08001315 "core/java/com/android/internal/util/IState.java",
1316 "core/java/com/android/internal/util/Preconditions.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001317 "core/java/com/android/internal/util/State.java",
1318 "core/java/com/android/internal/util/StateMachine.java",
1319 ],
atrostce84de02019-10-08 16:16:47 +01001320}
Roshan Pius09de13e2019-10-16 13:16:04 -07001321
1322filegroup {
Jayachandran Ceeffa012019-10-23 18:06:33 -07001323 name: "framework-ims-common-shared-srcs",
1324 srcs: [
Jayachandran Ceeffa012019-10-23 18:06:33 -07001325 "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 Su511a8142020-01-09 14:02:21 -08001332// utility classes statically linked into framework-wifi and dynamically linked
1333// into wifi-service
1334java_library {
1335 name: "framework-wifi-util-lib",
David Sufd626db2020-11-09 14:31:45 -08001336 sdk_version: "module_current",
1337 min_sdk_version: "30",
David Su511a8142020-01-09 14:02:21 -08001338 srcs: [
David Su369c9202020-01-09 18:09:56 -08001339 "core/java/android/os/HandlerExecutor.java",
David Su511a8142020-01-09 14:02:21 -08001340 "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 Su369c9202020-01-09 18:09:56 -08001344 "telephony/java/android/telephony/Annotation.java",
David Su298cd362020-01-17 19:02:49 +00001345 ":net-utils-framework-wifi-common-srcs",
David Su511a8142020-01-09 14:02:21 -08001346 ],
1347 libs: [
1348 "framework-annotations-lib",
1349 "unsupportedappusage",
David Su511a8142020-01-09 14:02:21 -08001350 ],
David Su57bca312020-04-21 19:49:32 -07001351 visibility: [
1352 "//frameworks/base/wifi",
1353 "//frameworks/base/services/net",
Baligh Uddin09fdba42020-12-23 22:42:10 +00001354 "//packages/modules/Wifi/framework",
David Su57bca312020-04-21 19:49:32 -07001355 ],
David Su511a8142020-01-09 14:02:21 -08001356}
1357
1358// utility classes statically linked into wifi-service
Jayachandran Ceeffa012019-10-23 18:06:33 -07001359filegroup {
Roshan Pius62eb61c2019-12-06 13:49:47 -08001360 name: "framework-wifi-service-shared-srcs",
Roshan Pius09de13e2019-10-16 13:16:04 -07001361 srcs: [
Roshan Piusc93cd7a2019-12-09 07:39:41 -08001362 "core/java/android/net/InterfaceConfiguration.java",
Roshan Pius04769a52019-12-04 13:03:47 -08001363 "core/java/android/util/BackupUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001364 "core/java/android/util/Rational.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001365 "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 Pius09de13e2019-10-16 13:16:04 -07001369 "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 Pius09de13e2019-10-16 13:16:04 -07001372 ],
Baligh Uddin5879a832020-12-24 06:05:52 +00001373 visibility: [
1374 "//frameworks/opt/net/wifi/service",
1375 "//packages/modules/Wifi/service",
1376 ],
Roshan Pius09de13e2019-10-16 13:16:04 -07001377}
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001378
1379// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
1380metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001381 "--hide-package com.android.server " +
Hayden Gomes24b336f2020-11-05 16:28:21 -08001382 "--hide-package android.audio.policy.configuration.V7_0 " +
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001383 "--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 Onuki451da1c2020-05-26 10:55:53 -07001389 "--error NoSettingsProvider " +
Aurimas Liutikas1f76a5a2019-11-20 17:51:42 -08001390 "--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 Park0d7e86d2019-12-20 14:35:43 +09001395
1396build = [
1397 "StubLibraries.bp",
1398 "ApiDocs.bp",
1399]
Chen Xu546ce5e2020-01-10 08:38:31 -08001400
Hongwei Wang6014caf2020-07-20 18:04:35 -07001401// protolog start
1402filegroup {
1403 name: "protolog-common-src",
1404 srcs: [
1405 "core/java/com/android/internal/protolog/common/**/*.java",
1406 ],
1407}
1408
1409java_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
1419java_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