blob: 0a3ca3b808ea412f37450f1f3a47cb697e4bc96b [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 ],
Amy Zhang39a3fa42020-12-21 16:56:03 -0800226 exclude_srcs: [
227 ":framework-media-tv-tunerresourcemanager-sources-aidl",
228 ],
Jiyong Parkb3609312019-08-16 21:17:14 +0900229 path: "media/java",
230}
231
232filegroup {
233 name: "framework-mca-effect-sources",
234 srcs: [
235 "media/mca/effect/java/**/*.java",
236 ],
237 path: "media/mca/effect/java",
238}
239
240filegroup {
241 name: "framework-mca-filterfw-sources",
242 srcs: [
243 "media/mca/filterfw/java/**/*.java",
244 ],
245 path: "media/mca/filterfw/java",
246}
247
248filegroup {
249 name: "framework-mca-filterpacks-sources",
250 srcs: [
251 "media/mca/filterpacks/java/**/*.java",
252 ],
253 path: "media/mca/filterpacks/java",
254}
255
256filegroup {
Tobias Thierer878c77b2019-08-18 15:19:45 +0100257 name: "framework-mime-sources",
258 srcs: [
259 "mime/java/**/*.java",
260 ],
261 path: "mime/java",
262}
263
264filegroup {
Jiyong Parkb3609312019-08-16 21:17:14 +0900265 name: "framework-opengl-sources",
266 srcs: [
267 "opengl/java/**/*.java",
268 ],
269 path: "opengl/java",
270}
271
272filegroup {
273 name: "framework-rs-sources",
274 srcs: [
275 "rs/java/**/*.java",
276 ],
277 path: "rs/java",
278}
279
280filegroup {
281 name: "framework-sax-sources",
282 srcs: [
283 "sax/java/**/*.java",
284 ],
285 path: "sax/java",
286}
287
288filegroup {
289 name: "framework-telecomm-sources",
290 srcs: [
291 "telecomm/java/**/*.java",
292 "telecomm/java/**/*.aidl",
293 ],
294 path: "telecomm/java",
295}
296
297filegroup {
298 name: "framework-telephony-sources",
299 srcs: [
300 "telephony/java/**/*.java",
301 "telephony/java/**/*.aidl",
302 ],
303 path: "telephony/java",
304}
305
Muhammad Qureshied8bca02020-01-24 16:07:49 -0800306genrule {
307 name: "statslog-telephony-common-java-gen",
308 tools: ["stats-log-api-gen"],
309 cmd: "$(location stats-log-api-gen) --java $(out) --module telephony_common"
310 + " --javaPackage com.android.internal.telephony --javaClass TelephonyCommonStatsLog",
311 out: ["com/android/internal/telephony/TelephonyCommonStatsLog.java"],
312}
313
Jiyong Parkb3609312019-08-16 21:17:14 +0900314filegroup {
Amit Mahajand3551532019-09-23 17:59:57 -0700315 name: "framework-telephony-common-sources",
316 srcs: [
317 "telephony/common/**/*.java",
Muhammad Qureshied8bca02020-01-24 16:07:49 -0800318 ":statslog-telephony-common-java-gen",
Amit Mahajand3551532019-09-23 17:59:57 -0700319 ],
Amit Mahajand3551532019-09-23 17:59:57 -0700320}
321
322filegroup {
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700323 name: "framework-mms-sources",
324 srcs: [
325 "mms/java/**/*.java",
326 "mms/java/**/*.aidl",
327 ],
328 path: "mms/java",
329}
330
331filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900332 name: "framework-non-updatable-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900333 srcs: [
334 // Java/AIDL sources under frameworks/base
Sudheer Shankaf5b36962019-10-04 16:16:13 -0700335 ":framework-blobstore-sources",
Remi NGUYEN VANfb9c6e82020-12-23 12:45:08 +0900336 ":framework-connectivity-sources", // framework-connectivity is not yet a module
Jiyong Park20426532019-08-19 15:24:49 +0900337 ":framework-core-sources",
338 ":framework-drm-sources",
Alec Mourief37c242020-03-02 21:38:09 +0000339 ":framework-graphics-nonupdatable-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +0900340 ":framework-jobscheduler-sources", // jobscheduler is not a module for R
Jiyong Park20426532019-08-19 15:24:49 +0900341 ":framework-keystore-sources",
David Zeuthen045b6de2019-10-29 15:15:18 -0400342 ":framework-identity-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900343 ":framework-location-sources",
344 ":framework-lowpan-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900345 ":framework-mca-effect-sources",
346 ":framework-mca-filterfw-sources",
347 ":framework-mca-filterpacks-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +0900348 ":framework-media-sources",
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700349 ":framework-mms-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900350 ":framework-opengl-sources",
351 ":framework-rs-sources",
352 ":framework-sax-sources",
353 ":framework-telecomm-sources",
Amit Mahajand3551532019-09-23 17:59:57 -0700354 ":framework-telephony-common-sources",
Malcolm Chenfbc5c362020-03-16 15:28:35 -0700355 ":framework-telephony-sources",
Benedict Wong26497362020-08-10 17:54:33 -0700356 ":framework-vcn-util-sources",
David Su130441b2019-12-14 21:37:20 -0800357 ":framework-wifi-annotations",
David Su6f646ef2019-12-10 13:33:06 -0800358 ":framework-wifi-non-updatable-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900359 ":PacProcessor-aidl-sources",
360 ":ProxyHandler-aidl-sources",
Aaron Huangc4081b22020-01-13 15:03:35 +0800361 ":net-utils-framework-common-srcs",
Jiyong Parkb3609312019-08-16 21:17:14 +0900362
atrost87488352019-10-10 19:27:31 +0100363 // AIDL from frameworks/base/native/
364 ":platform-compat-native-aidl",
365
Jiyong Park20426532019-08-19 15:24:49 +0900366 // AIDL sources from external directories
David Zeuthen045b6de2019-10-29 15:15:18 -0400367 ":credstore_aidl",
Jiyong Park20426532019-08-19 15:24:49 +0900368 ":dumpstate_aidl",
369 ":framework_native_aidl",
370 ":gatekeeper_aidl",
371 ":gsiservice_aidl",
Ryan Mitchellfebbc332021-02-12 09:21:52 -0800372 ":idmap2_aidl",
Ryan Mitchell6a2ca782021-01-19 13:51:15 -0800373 ":idmap2_core_aidl",
Jiyong Park20426532019-08-19 15:24:49 +0900374 ":incidentcompanion_aidl",
Bernardo Rufino64bbd4b2020-08-19 14:45:30 +0100375 ":inputconstants_aidl",
Jiyong Park20426532019-08-19 15:24:49 +0900376 ":installd_aidl",
377 ":keystore_aidl",
378 ":libaudioclient_aidl",
379 ":libbinder_aidl",
380 ":libbluetooth-binder-aidl",
381 ":libcamera_client_aidl",
382 ":libcamera_client_framework_aidl",
383 ":libupdate_engine_aidl",
Amy Zhangccdbc4d2020-06-08 21:29:59 -0700384 ":resourcemanager_aidl",
Jiyong Park20426532019-08-19 15:24:49 +0900385 ":storaged_aidl",
386 ":vold_aidl",
Jiyong Park1cc95662019-08-07 22:45:07 +0900387
Jiyong Park20426532019-08-19 15:24:49 +0900388 // For the generated R.java and Manifest.java
389 ":framework-res{.aapt.srcjar}",
390
391 // etc.
392 ":framework-javastream-protos",
Muhammad Qureshi04ec2522020-01-27 16:36:45 -0800393 ":statslog-framework-java-gen", // FrameworkStatsLog.java
Hayden Gomes24b336f2020-11-05 16:28:21 -0800394 ":audio_policy_configuration_V7_0",
Jiyong Park20426532019-08-19 15:24:49 +0900395 ],
396}
Jiyong Park1cc95662019-08-07 22:45:07 +0900397
Jiyong Parkae9972b2019-09-15 20:19:02 +0900398filegroup {
Anton Hanssonb4f35572019-12-02 16:30:22 +0000399 name: "framework-updatable-sources",
400 srcs: [
Alexander Dorokhine04a05a82019-12-17 10:41:21 -0800401 ":framework-appsearch-sources",
Alec Mourief37c242020-03-02 21:38:09 +0000402 ":framework-graphics-srcs",
Jeff Sharkey40182832019-12-18 14:06:48 -0700403 ":framework-mediaprovider-sources",
Hai Zhang82a62272020-01-14 21:56:34 -0800404 ":framework-permission-sources",
Hai Zhang591e1212021-01-21 12:48:43 -0800405 ":framework-permission-s-sources",
Anton Hanssone996d432020-03-07 11:40:10 +0000406 ":framework-sdkextensions-sources",
407 ":framework-statsd-sources",
Anton Hanssone996d432020-03-07 11:40:10 +0000408 ":framework-tethering-srcs",
409 ":framework-wifi-updatable-sources",
Yan Yan1357a422021-02-03 16:07:30 -0800410 ":ike-srcs",
Anton Hanssone996d432020-03-07 11:40:10 +0000411 ":updatable-media-srcs",
Anton Hansson2d6c4272020-08-18 12:52:44 +0100412 ],
413 visibility: ["//visibility:private"],
Anton Hanssonb4f35572019-12-02 16:30:22 +0000414}
415
Anton Hanssone996d432020-03-07 11:40:10 +0000416java_library {
417 name: "framework-updatable-stubs-module_libs_api",
418 static_libs: [
Yan Yan1357a422021-02-03 16:07:30 -0800419 "android.net.ipsec.ike.stubs.module_lib",
Anton Hansson25a0a2b2020-10-08 13:43:48 +0100420 "framework-appsearch.stubs.module_lib",
Paul Duffin4e006622020-05-31 16:55:13 +0100421 "framework-graphics.stubs.module_lib",
Paul Duffin8b864fb2020-05-31 11:35:50 +0100422 "framework-media.stubs.module_lib",
423 "framework-mediaprovider.stubs.module_lib",
424 "framework-permission.stubs.module_lib",
Hai Zhang591e1212021-01-21 12:48:43 -0800425 "framework-permission-s.stubs.module_lib",
Paul Duffin8b864fb2020-05-31 11:35:50 +0100426 "framework-sdkextensions.stubs.module_lib",
427 "framework-statsd.stubs.module_lib",
428 "framework-tethering.stubs.module_lib",
429 "framework-wifi.stubs.module_lib",
Anton Hanssone996d432020-03-07 11:40:10 +0000430 ],
431 sdk_version: "module_current",
Anton Hansson2d6c4272020-08-18 12:52:44 +0100432 visibility: ["//visibility:private"],
433}
434
435java_library {
436 name: "framework-all",
437 installable: false,
438 static_libs: [
Yan Yan1357a422021-02-03 16:07:30 -0800439 "android.net.ipsec.ike.impl",
Anton Hansson2d6c4272020-08-18 12:52:44 +0100440 "framework-minus-apex",
Anton Hansson25a0a2b2020-10-08 13:43:48 +0100441 "framework-appsearch.impl",
Anton Hansson2d6c4272020-08-18 12:52:44 +0100442 "framework-graphics.impl",
443 "framework-mediaprovider.impl",
444 "framework-permission.impl",
Hai Zhang591e1212021-01-21 12:48:43 -0800445 "framework-permission-s.impl",
Anton Hansson2d6c4272020-08-18 12:52:44 +0100446 "framework-sdkextensions.impl",
447 "framework-statsd.impl",
448 "framework-tethering.impl",
449 "framework-wifi.impl",
450 "updatable-media",
451 ],
452 apex_available: ["//apex_available:platform"],
453 sdk_version: "core_platform",
454 visibility: [
455 // DO NOT ADD ANY MORE ENTRIES TO THIS LIST
456 "//external/robolectric-shadows:__subpackages__",
457 "//frameworks/layoutlib:__subpackages__",
458 ],
Anton Hanssone996d432020-03-07 11:40:10 +0000459}
460
Anton Hanssonb4f35572019-12-02 16:30:22 +0000461filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900462 name: "framework-all-sources",
463 srcs: [
Tobias Thiererc0c06082019-11-22 16:33:18 +0000464 ":framework-mime-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900465 ":framework-non-updatable-sources",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000466 ":framework-updatable-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900467 ],
468}
469
Jiyong Park392729f2020-01-17 16:32:53 +0900470// AIDL files under these paths are mixture of public and private ones.
471// They shouldn't be exported across module boundaries.
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100472java_defaults {
Makoto Onuki62242c42019-08-05 12:54:20 -0700473 name: "framework-aidl-export-defaults",
Makoto Onuki62242c42019-08-05 12:54:20 -0700474 aidl: {
Jiyong Parkb3609312019-08-16 21:17:14 +0900475 export_include_dirs: [
476 "core/java",
477 "drm/java",
478 "graphics/java",
David Zeuthen045b6de2019-10-29 15:15:18 -0400479 "identity/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900480 "keystore/java",
481 "location/java",
482 "lowpan/java",
483 "media/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900484 "media/mca/effect/java",
485 "media/mca/filterfw/java",
486 "media/mca/filterpacks/java",
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700487 "mms/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900488 "opengl/java",
489 "rs/java",
490 "sax/java",
491 "telecomm/java",
Anton Hanssone996d432020-03-07 11:40:10 +0000492
Sungsoo Lim895f4f62020-04-08 11:21:36 +0900493 "apex/media/aidl/stable",
Anton Hanssone996d432020-03-07 11:40:10 +0000494 // TODO(b/147699819): remove this
495 "telephony/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900496 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700497 },
498}
499
Jiyong Park20426532019-08-19 15:24:49 +0900500// Collection of classes that are generated from non-Java files that are not listed in
501// framework_srcs. These have no or very limited dependency to the framework.
502java_library {
503 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800504 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100505 "apex_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800506 "framework-protos",
Peiyong Linb967a4c2020-07-27 22:16:13 -0700507 "updatable-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800508 "android.hidl.base-V1.0-java",
509 "android.hardware.cas-V1.0-java",
Henry Fang43cab922019-12-27 16:50:20 -0800510 "android.hardware.cas-V1.1-java",
511 "android.hardware.cas-V1.2-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800512 "android.hardware.contexthub-V1.0-java",
Anthony Stange521a9052020-02-07 18:45:47 -0500513 "android.hardware.contexthub-V1.1-java",
Arthur Ishiguro8368e942020-10-14 13:39:09 -0700514 "android.hardware.contexthub-V1.2-java",
Yu-Han Yang9fe06dd2019-11-18 16:23:31 -0800515 "android.hardware.gnss-V1.0-java",
Yu-Han Yangad03c472020-01-14 15:31:01 -0800516 "android.hardware.gnss-V2.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800517 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800518 "android.hardware.radio-V1.0-java",
519 "android.hardware.radio-V1.1-java",
520 "android.hardware.radio-V1.2-java",
521 "android.hardware.radio-V1.3-java",
522 "android.hardware.radio-V1.4-java",
Sarah Chin21e9c632019-11-05 13:30:10 -0800523 "android.hardware.radio-V1.5-java",
Daniel Bright8b4502e2020-09-02 17:10:54 -0700524 "android.hardware.radio-V1.6-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800525 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800526 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700527 "android.hardware.thermal-V1.1-java",
528 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800529 "android.hardware.tv.input-V1.0-java-constants",
shubang7e849b02019-10-18 19:36:25 -0700530 "android.hardware.tv.tuner-V1.0-java-constants",
Amy Zhangb13e3042020-07-27 14:50:10 -0700531 "android.hardware.tv.tuner-V1.1-java-constants",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800532 "android.hardware.usb-V1.0-java-constants",
533 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800534 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800535 "android.hardware.usb.gadget-V1.0-java",
raychi88254a22020-09-30 19:04:08 +0800536 "android.hardware.usb.gadget-V1.1-java",
537 "android.hardware.usb.gadget-V1.2-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000538 "android.hardware.vibrator-V1.0-java",
539 "android.hardware.vibrator-V1.1-java",
540 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900541 "android.hardware.vibrator-V1.3-java",
Janis Danisevskis81d75b42020-11-23 21:59:00 -0800542 "android.security.apc-java",
Hasini Gunasinghe5364fce2020-12-04 17:46:20 +0000543 "android.security.authorization-java",
Jeongik Cha969b9212021-01-28 00:49:47 +0900544 "android.system.keystore2-V1-java",
Michael Sund5237962020-11-06 03:28:14 +0000545 "android.system.suspend.control.internal-java",
Shuzhen Wangb2443992020-09-03 15:38:37 -0700546 "cameraprotosnano",
arangelov1ab61492018-11-22 13:56:50 +0000547 "devicepolicyprotosnano",
Inseob Kim4fe9f0f2019-07-30 18:23:26 +0900548
549 "com.android.sysprop.apex",
Nikita Ioffe779d6be2020-02-06 23:17:17 +0000550 "com.android.sysprop.init",
Alexander Mishkovets77f6bc82020-07-14 19:14:10 +0200551 "com.android.sysprop.localization",
Inseob Kim4fe9f0f2019-07-30 18:23:26 +0900552 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800553 ],
Jiyong Park20426532019-08-19 15:24:49 +0900554 sdk_version: "core_platform",
555 installable: false,
556}
557
Colin Crossbc2dc312018-10-26 22:34:06 -0700558filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800559 name: "framework-jarjar-rules",
David Su130441b2019-12-14 21:37:20 -0800560 srcs: ["framework-jarjar-rules.txt"],
Steven Moreland19e8d462019-03-08 10:44:22 -0800561}
562
563filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700564 name: "libincident_aidl",
565 srcs: [
Mike Ma643de922019-12-17 10:56:17 -0800566 "core/java/android/os/IIncidentDumpCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700567 "core/java/android/os/IIncidentManager.aidl",
568 "core/java/android/os/IIncidentReportStatusListener.aidl",
569 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700570 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700571}
572
573filegroup {
Michael Wrightc390fbe2018-12-12 19:45:09 +0000574 name: "libvibrator_aidl",
575 srcs: [
576 "core/java/android/os/IExternalVibrationController.aidl",
577 "core/java/android/os/IExternalVibratorService.aidl",
578 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700579 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000580}
581
Chris Ye48dbcaa2020-02-10 13:29:01 -0800582filegroup {
583 name: "libpowermanager_aidl",
584 srcs: [
585 "core/java/android/os/Temperature.aidl",
586 "core/java/android/os/CoolingDevice.aidl",
587 "core/java/android/os/IThermalEventListener.aidl",
588 "core/java/android/os/IThermalStatusListener.aidl",
589 "core/java/android/os/IThermalService.aidl",
Chris Ye590ff6e2020-02-28 21:42:19 -0800590 "core/java/android/os/IPowerManager.aidl",
Chris Ye48dbcaa2020-02-10 13:29:01 -0800591 ],
592 path: "core/java",
593}
594
Ioana Stefan2f5c5452020-10-15 15:00:24 +0200595java_defaults {
596 name: "framework-minus-apex-defaults",
Anton Hansson5954c6d2020-08-19 14:37:54 +0100597 defaults: ["framework-aidl-export-defaults"],
598 srcs: [
599 ":framework-non-updatable-sources",
600 "core/java/**/*.logtags",
601 ],
602 // See comment on framework-atb-backward-compatibility module below
603 exclude_srcs: ["core/java/android/content/pm/AndroidTestBaseUpdater.java"],
604 aidl: {
605 generate_get_transaction_name: true,
Ytai Ben-Tsvida7c21e2020-09-16 13:04:31 -0700606 local_include_dirs: ["media/aidl"],
Ytai Ben-Tsvic3cd3cd2020-10-30 12:34:51 -0700607 include_dirs: ["frameworks/av/aidl"],
Anton Hansson5954c6d2020-08-19 14:37:54 +0100608 },
609 dxflags: [
610 "--core-library",
611 "--multi-dex",
612 ],
Anton Hansson5954c6d2020-08-19 14:37:54 +0100613 jarjar_rules: ":framework-jarjar-rules",
Jiyong Park911cd4f2019-10-21 14:35:14 +0900614 javac_shard_size: 150,
Anton Hansson5954c6d2020-08-19 14:37:54 +0100615 plugins: [
616 "view-inspector-annotation-processor",
617 "staledataclass-annotation-processor",
618 "error_prone_android_framework",
619 ],
atrostaec9bc12019-08-16 18:14:09 +0100620 required: [
621 "framework-platform-compat-config",
Michal Olech23dcad52020-10-28 12:20:50 +0100622 // 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 +0100623 "gps_debug.conf",
Michal Olech23dcad52020-10-28 12:20:50 +0100624 "cec_config.xml",
Victor Changa4fae272020-10-30 12:14:34 +0000625 "icu4j-platform-compat-config",
atrostaec9bc12019-08-16 18:14:09 +0100626 "libcore-platform-compat-config",
Anton Hansson5954c6d2020-08-19 14:37:54 +0100627 "protolog.conf.json.gz",
atrost86895aa2019-08-19 16:51:15 +0100628 "services-platform-compat-config",
Ivan Chiang3cb1cbd2020-02-18 10:50:10 +0800629 "documents-ui-compat-config",
Varun Shahf952e66c12020-06-25 11:30:13 -0700630 "calendar-provider-compat-config",
atrostaec9bc12019-08-16 18:14:09 +0100631 ],
Anton Hansson5954c6d2020-08-19 14:37:54 +0100632 libs: [
633 "app-compat-annotations",
634 "ext",
635 "framework-updatable-stubs-module_libs_api",
636 "unsupportedappusage",
637 ],
638 sdk_version: "core_platform",
Tobias Thiererc0c06082019-11-22 16:33:18 +0000639 static_libs: [
Daulet Zhanguzin59444d52021-01-25 19:43:53 +0000640 "bouncycastle-repackaged-unbundled",
Anton Hansson5954c6d2020-08-19 14:37:54 +0100641 "framework-internal-utils",
Tobias Thierer82968532019-11-29 19:39:45 +0000642 // If MimeMap ever becomes its own APEX, then this dependency would need to be removed
643 // in favor of an API stubs dependency in java_library "framework" below.
Tobias Thiererc0c06082019-11-22 16:33:18 +0000644 "mimemap",
Ytai Ben-Tsvic3cd3cd2020-10-30 12:34:51 -0700645 "av-types-aidl-java",
Amy Zhang39a3fa42020-12-21 16:56:03 -0800646 "tv_tuner_resource_manager_aidl_interface-java",
Ytai Ben-Tsvida7c21e2020-09-16 13:04:31 -0700647 "soundtrigger_middleware-aidl-java",
Chiachang Wang6a555272020-11-02 16:51:24 +0800648 "modules-utils-os",
Tobias Thiererc0c06082019-11-22 16:33:18 +0000649 ],
Ioana Stefan2f5c5452020-10-15 15:00:24 +0200650}
651
652java_library {
653 name: "framework-minus-apex",
654 defaults: ["framework-minus-apex-defaults"],
655 installable: true,
Jiyong Park911cd4f2019-10-21 14:35:14 +0900656 // For backwards compatibility.
657 stem: "framework",
Jiyong Park352f9e22019-12-09 14:45:07 +0900658 apex_available: ["//apex_available:platform"],
Jiyong Park212d2e82020-01-03 21:07:38 +0900659 visibility: [
660 "//frameworks/base",
Jiyong Park634819c2020-02-04 21:20:02 +0900661 // TODO(b/147128803) remove the below lines
Jiyong Park212d2e82020-01-03 21:07:38 +0900662 "//frameworks/base/apex/appsearch/framework",
663 "//frameworks/base/apex/blobstore/framework",
664 "//frameworks/base/apex/jobscheduler/framework",
markchien2c153702020-02-06 19:23:26 +0800665 "//frameworks/base/packages/Tethering/tests/unit",
Baligh Uddinff8ff122020-10-29 02:11:55 +0000666 "//packages/modules/Connectivity/Tethering/tests/unit",
Jiyong Park212d2e82020-01-03 21:07:38 +0900667 ],
Jeff Sharkey6c8ffbc2020-10-02 11:52:05 -0600668 errorprone: {
669 javacflags: [
Jeff Sharkey7cdc3bf2020-10-06 14:55:37 -0600670 "-Xep:AndroidFrameworkBinderIdentity:ERROR",
Jeff Sharkey6c8ffbc2020-10-02 11:52:05 -0600671 "-Xep:AndroidFrameworkCompatChange:ERROR",
Jeff Sharkey9af4aea2020-10-02 12:00:59 -0600672 "-Xep:AndroidFrameworkUid:ERROR",
Jeff Sharkey6c8ffbc2020-10-02 11:52:05 -0600673 ],
674 },
Jiyong Park911cd4f2019-10-21 14:35:14 +0900675}
676
Ioana Stefan2f5c5452020-10-15 15:00:24 +0200677java_library {
678 name: "framework-minus-apex-intdefs",
679 defaults: ["framework-minus-apex-defaults"],
680 plugins: ["intdef-annotation-processor"],
681}
682
Jiyong Park911cd4f2019-10-21 14:35:14 +0900683// This "framework" module is NOT installed to the device. It's
684// "framework-minus-apex" that gets installed to the device. Note that
685// the filename is still framework.jar (via the stem property) for
686// compatibility reason. The purpose of this module is to provide
687// framework APIs (both public and private) for bundled apps.
688// "framework-minus-apex" can't be used for the purpose because 1)
689// many apps have already hardcoded the name "framework" and
690// 2) it lacks API symbols from updatable modules - as it's clear from
691// its suffix "-minus-apex".
692java_library {
693 name: "framework",
694 defaults: ["framework-aidl-export-defaults"],
695 installable: false, // this lib is a build-only library
696 static_libs: [
Malcolm Chenfbc5c362020-03-16 15:28:35 -0700697 "app-compat-annotations",
Jiyong Park911cd4f2019-10-21 14:35:14 +0900698 "framework-minus-apex",
Anton Hansson25a0a2b2020-10-08 13:43:48 +0100699 "framework-appsearch.impl", // TODO(b/146218515): should be removed
Anton Hanssone996d432020-03-07 11:40:10 +0000700 "framework-updatable-stubs-module_libs_api",
Jiyong Park911cd4f2019-10-21 14:35:14 +0900701 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700702 sdk_version: "core_platform",
Jiyong Park352f9e22019-12-09 14:45:07 +0900703 apex_available: ["//apex_available:platform"],
Makoto Onuki62242c42019-08-05 12:54:20 -0700704}
705
atrostb9c34502019-08-05 12:22:18 +0100706platform_compat_config {
Artur Satayev9f5a5622020-03-25 15:36:55 +0000707 name: "framework-platform-compat-config",
708 src: ":framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100709}
710
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000711// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000712// android.test.base library has been removed and which provides support for
713// maintaining backwards compatibility for APKs that target pre-P and depend on
714// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
715// specified on the build command line.
716java_library {
717 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000718 installable: true,
atrost1a945502019-11-04 17:03:54 +0000719 libs: ["app-compat-annotations"],
Paul Duffina3b69212018-01-25 09:58:32 +0000720 srcs: [
Winson5e0a1d52020-01-24 12:00:33 -0800721 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
Paul Duffina3b69212018-01-25 09:58:32 +0000722 ],
723}
724
Colin Crosscf3a0b52017-11-16 00:15:28 -0800725genrule {
Muhammad Qureshi04ec2522020-01-27 16:36:45 -0800726 name: "statslog-framework-java-gen",
727 tools: ["stats-log-api-gen"],
728 cmd: "$(location stats-log-api-gen) --java $(out) --module framework" +
729 " --javaPackage com.android.internal.util --javaClass FrameworkStatsLog --worksource",
730 out: ["com/android/internal/util/FrameworkStatsLog.java"],
731}
732
Hyunyoung Songa28623b2020-02-06 22:56:21 -0800733java_library {
734 name: "uieventloggerlib",
735 srcs: [
736 "core/java/com/android/internal/logging/UiEvent.java",
737 "core/java/com/android/internal/logging/UiEventLogger.java",
738 "core/java/com/android/internal/logging/UiEventLoggerImpl.java",
739 "core/java/com/android/internal/logging/InstanceId.java",
740 "core/java/com/android/internal/logging/InstanceIdSequence.java",
741 ":statslog-framework-java-gen",
742 ],
743}
744
Colin Crosscf3a0b52017-11-16 00:15:28 -0800745gensrcs {
746 name: "framework-javastream-protos",
747 depfile: true,
748
749 tools: [
750 "aprotoc",
751 "protoc-gen-javastream",
752 "soong_zip",
753 ],
754
Anton Hanssond82b2f72019-11-18 13:34:56 +0000755 cmd: "mkdir -p $(genDir)/$(in) " +
756 "&& $(location aprotoc) " +
757 " --plugin=$(location protoc-gen-javastream) " +
758 " --dependency_out=$(depfile) " +
759 " --javastream_out=$(genDir)/$(in) " +
760 " -Iexternal/protobuf/src " +
761 " -I . " +
762 " $(in) " +
763 "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)",
764
Yi Jin437aa6e2018-01-10 11:34:26 -0800765 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800766 ":ipconnectivity-proto-src",
Jeffrey Huang677a0df2020-11-25 10:46:51 -0800767 ":libstats_atom_enum_protos",
Josh Gao1c8dfd42021-01-29 13:40:30 -0800768 ":libtombstone_proto-src",
Yi Jin437aa6e2018-01-10 11:34:26 -0800769 "core/proto/**/*.proto",
770 "libs/incident/**/*.proto",
Hai Zhang0b4f1712021-01-21 15:45:56 -0800771 ":service-permission-protos",
Yi Jin437aa6e2018-01-10 11:34:26 -0800772 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800773 output_extension: "srcjar",
774}
775
Mike Maa47ad722020-01-28 22:04:20 -0800776gensrcs {
777 name: "framework-cppstream-protos",
778 depfile: true,
779
780 tools: [
781 "aprotoc",
782 "protoc-gen-cppstream",
783 ],
784
785 cmd: "mkdir -p $(genDir) " +
786 "&& $(location aprotoc) " +
787 " --plugin=$(location protoc-gen-cppstream) " +
788 " --dependency_out=$(depfile) " +
789 " --cppstream_out=$(genDir) " +
790 " -Iexternal/protobuf/src " +
791 " -I . " +
792 " $(in)",
793
794 srcs: [
795 ":ipconnectivity-proto-src",
Jeffrey Huang677a0df2020-11-25 10:46:51 -0800796 ":libstats_atom_enum_protos",
Mike Maa47ad722020-01-28 22:04:20 -0800797 "core/proto/**/*.proto",
798 "libs/incident/**/*.proto",
Hai Zhang0b4f1712021-01-21 15:45:56 -0800799 ":service-permission-protos",
Mike Maa47ad722020-01-28 22:04:20 -0800800 ],
801
802 output_extension: "proto.h",
803}
804
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900805filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900806 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900807 srcs: [
Hai Zhang0b4f1712021-01-21 15:45:56 -0800808 "core/java/android/annotation/AnyThread.java",
809 "core/java/android/annotation/AppIdInt.java",
810 "core/java/android/annotation/CallSuper.java",
David Su369c9202020-01-09 18:09:56 -0800811 "core/java/android/annotation/CallbackExecutor.java",
David Su511a8142020-01-09 14:02:21 -0800812 "core/java/android/annotation/CheckResult.java",
David Su77517342020-02-18 18:10:07 -0800813 "core/java/android/annotation/CurrentTimeMillisLong.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800814 "core/java/android/annotation/Hide.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900815 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900816 "core/java/android/annotation/IntRange.java",
lesld41a2992020-02-20 17:30:58 +0800817 "core/java/android/annotation/LongDef.java",
Hai Zhang0b4f1712021-01-21 15:45:56 -0800818 "core/java/android/annotation/MainThread.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700819 "core/java/android/annotation/NonNull.java",
820 "core/java/android/annotation/Nullable.java",
821 "core/java/android/annotation/RequiresPermission.java",
822 "core/java/android/annotation/SdkConstant.java",
David Su369c9202020-01-09 18:09:56 -0800823 "core/java/android/annotation/StringDef.java",
Anton Hansson2157c892020-11-03 09:53:07 +0000824 "core/java/android/annotation/SuppressLint.java",
Anton Hanssondc1e99b2019-12-06 17:07:28 +0000825 "core/java/android/annotation/SystemApi.java",
David Su369c9202020-01-09 18:09:56 -0800826 "core/java/android/annotation/SystemService.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700827 "core/java/android/annotation/TestApi.java",
Hai Zhang0b4f1712021-01-21 15:45:56 -0800828 "core/java/android/annotation/UserIdInt.java",
Jeff Sharkeyf5eebf92020-03-06 14:41:56 -0700829 "core/java/android/annotation/WorkerThread.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900830 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900831 "core/java/com/android/internal/annotations/VisibleForTesting.java",
David Su511a8142020-01-09 14:02:21 -0800832 "core/java/com/android/internal/annotations/Immutable.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100833 ],
Chalard Jean95213512019-01-30 21:04:58 +0900834}
835
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000836java_library {
837 name: "framework-annotations-lib",
838 srcs: [ ":framework-annotations" ],
Anton Hansson791551a2019-12-19 10:17:46 +0000839 sdk_version: "core_current",
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000840}
841
Chalard Jean95213512019-01-30 21:04:58 +0900842filegroup {
evitayane22e47f2019-12-30 16:05:38 -0800843 name: "framework-ike-shared-srcs",
Baligh Uddinb7ec5bb2020-05-27 19:22:36 +0000844 visibility: ["//packages/modules/IPsec"],
evitayane22e47f2019-12-30 16:05:38 -0800845 srcs: [
evitayanbddbfb02020-01-07 21:21:52 -0800846 "core/java/android/annotation/StringDef.java",
evitayane22e47f2019-12-30 16:05:38 -0800847 "core/java/android/net/annotations/PolicyDirection.java",
evitayane9cc4942020-03-03 17:14:47 -0800848 "core/java/com/android/internal/util/HexDump.java",
evitayan0efc7402019-12-20 17:55:57 -0800849 "core/java/com/android/internal/util/IState.java",
850 "core/java/com/android/internal/util/State.java",
851 "core/java/com/android/internal/util/StateMachine.java",
Yan Yana3e954f2020-11-09 00:09:39 -0800852 "services/core/java/com/android/server/vcn/util/PersistableBundleUtils.java",
evitayan996aa2a2019-12-30 11:19:47 -0800853 "telephony/java/android/telephony/Annotation.java",
evitayane22e47f2019-12-30 16:05:38 -0800854 ],
855}
856
857filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900858 name: "framework-networkstack-shared-srcs",
859 srcs: [
860 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900861 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900862 "core/java/android/net/DhcpResults.java",
Dmitri Plotnikovf800b702020-05-15 13:49:20 -0700863 "core/java/android/util/IndentingPrintWriter.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900864 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900865 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900866 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900867 "core/java/com/android/internal/util/IState.java",
868 "core/java/com/android/internal/util/MessageUtils.java",
869 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900870 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900871 "core/java/com/android/internal/util/State.java",
872 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900873 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900874 "core/java/com/android/internal/util/WakeupMessage.java",
johnson.yeh095b7a02019-12-19 20:30:34 +0800875 "core/java/com/android/internal/util/TokenBucket.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100876 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900877}
878
Roshan Piusb6361f92020-02-21 07:37:30 -0800879filegroup {
880 name: "framework-services-net-module-wifi-shared-srcs",
881 srcs: [
882 "core/java/android/net/DhcpResults.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800883 "core/java/android/util/LocalLog.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800884 ],
885}
886
markchienae8aa642019-12-16 20:15:20 +0800887// keep these files in sync with the package/Tethering/jarjar-rules.txt for the tethering module.
markchiena6ba54d2019-09-03 15:58:06 +0800888filegroup {
889 name: "framework-tethering-shared-srcs",
890 srcs: [
Dmitri Plotnikovf800b702020-05-15 13:49:20 -0700891 "core/java/android/util/IndentingPrintWriter.java",
markchiena6ba54d2019-09-03 15:58:06 +0800892 "core/java/android/util/LocalLog.java",
markchienae8aa642019-12-16 20:15:20 +0800893 "core/java/com/android/internal/util/IndentingPrintWriter.java",
894 "core/java/com/android/internal/util/IState.java",
895 "core/java/com/android/internal/util/MessageUtils.java",
markchienae8aa642019-12-16 20:15:20 +0800896 "core/java/com/android/internal/util/State.java",
897 "core/java/com/android/internal/util/StateMachine.java",
markchien87d3f7d2020-01-08 20:58:23 +0800898 "core/java/com/android/internal/util/TrafficStatsConstants.java",
markchienae8aa642019-12-16 20:15:20 +0800899 ],
900}
901
Dmitri Plotnikovb3fd1322020-04-30 12:33:47 -0700902// keep these files in sync with the apex/jobscheduler/service jarjar-rules.txt for
903// the jobscheduler module.
904filegroup {
905 name: "framework-jobscheduler-shared-srcs",
906 srcs: [
907 "core/java/com/android/internal/util/ArrayUtils.java",
908 "core/java/com/android/internal/util/BitUtils.java",
909 "core/java/com/android/internal/util/CollectionUtils.java",
910 "core/java/com/android/internal/util/ConcurrentUtils.java",
911 "core/java/com/android/internal/util/DumpUtils.java",
912 "core/java/com/android/internal/util/FastPrintWriter.java",
913 "core/java/com/android/internal/util/FastXmlSerializer.java",
914 "core/java/com/android/internal/util/FunctionalUtils.java",
915 "core/java/com/android/internal/util/ParseUtils.java",
916 "core/java/com/android/internal/util/Preconditions.java",
917 "core/java/com/android/internal/util/RingBufferIndices.java",
918 "core/java/com/android/internal/util/StatLogger.java",
919 "core/java/com/android/internal/util/XmlUtils.java",
920 ],
921}
922
Hai Zhang0b4f1712021-01-21 15:45:56 -0800923// Keep these files in sync with the apex/permission/jarjar-rules.txt for the permission module.
924filegroup {
925 name: "framework-permission-s-shared-srcs",
926 srcs: [
927 "core/java/com/android/internal/infra/AndroidFuture.java",
928 "core/java/com/android/internal/infra/ServiceConnector.java",
929 "core/java/com/android/internal/util/Preconditions.java",
930 "core/java/com/android/internal/infra/AndroidFuture.aidl",
931 "core/java/com/android/internal/infra/IAndroidFuture.aidl",
932 "core/java/android/os/HandlerExecutor.java",
933 ],
934 path: "core/java",
935}
936
937// Keep these files in sync with the apex/permission/jarjar-rules.txt for the permission module.
938filegroup {
939 name: "service-permission-shared-srcs",
940 srcs: [
941 "core/java/android/util/IndentingPrintWriter.java",
942 "core/java/com/android/internal/util/dump/DualDumpOutputStream.java",
943 ],
944 path: "core/java",
945}
946
Colin Crossd8e02252017-10-02 17:14:22 -0700947// Build ext.jar
948// ============================================================
949java_library {
950 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700951 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100952 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700953 static_libs: [
954 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700955 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000956 "rappor",
Colin Crossd8e02252017-10-02 17:14:22 -0700957 ],
958 dxflags: ["--core-library"],
959}
960
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700961// ==== java proto host library ==============================
962java_library_host {
963 name: "platformprotos",
964 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800965 ":ipconnectivity-proto-src",
Jeffrey Huang677a0df2020-11-25 10:46:51 -0800966 ":libstats_atom_enum_protos",
Jeffrey Huang91224ea2020-11-24 22:28:38 +0000967 ":libstats_internal_protos",
Baligh Uddinb74ba242020-12-03 04:43:33 +0000968 ":statsd_internal_protos",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700969 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700970 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700971 "core/proto/**/*.proto",
972 "libs/incident/proto/**/*.proto",
Hai Zhang0b4f1712021-01-21 15:45:56 -0800973 ":service-permission-protos",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700974 ],
975 proto: {
Jeffrey Huang91224ea2020-11-24 22:28:38 +0000976 include_dirs: [
977 "external/protobuf/src",
978 "frameworks/proto_logging/stats",
979 ],
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700980 type: "full",
981 },
Jeff Sharkeyf14ed642020-11-14 15:54:22 -0700982 // Protos have lots of MissingOverride and similar.
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700983 errorprone: {
Jeff Sharkeyf14ed642020-11-14 15:54:22 -0700984 javacflags: ["-XepDisableAllChecks"],
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700985 },
986}
987
Colin Cross43214162018-08-20 13:57:24 -0700988// ==== java proto device library (for test only) ==============================
989java_library {
990 name: "platformprotosnano",
991 proto: {
992 type: "nano",
993 output_params: ["store_unknown_fields=true"],
994 include_dirs: ["external/protobuf/src"],
995 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000996 exclude_srcs: [
997 "core/proto/android/privacy.proto",
998 "core/proto/android/section.proto",
Pablo Gamitoc18f0a32020-06-12 14:28:08 +0000999 "core/proto/android/typedef.proto",
Joe Onorato99598ee2019-02-11 15:55:13 +00001000 ],
Anton Hansson791551a2019-12-19 10:17:46 +00001001 sdk_version: "9",
Colin Cross43214162018-08-20 13:57:24 -07001002 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -08001003 ":ipconnectivity-proto-src",
Jeffrey Huang677a0df2020-11-25 10:46:51 -08001004 ":libstats_atom_enum_protos",
Colin Cross43214162018-08-20 13:57:24 -07001005 "core/proto/**/*.proto",
1006 "libs/incident/proto/android/os/**/*.proto",
Hai Zhang0b4f1712021-01-21 15:45:56 -08001007 ":service-permission-protos",
Colin Cross43214162018-08-20 13:57:24 -07001008 ],
1009}
1010
1011// ==== java proto device library (for test only) ==============================
1012java_library {
1013 name: "platformprotoslite",
1014 proto: {
1015 type: "lite",
1016 include_dirs: ["external/protobuf/src"],
1017 },
1018
1019 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -08001020 ":ipconnectivity-proto-src",
Jeffrey Huang677a0df2020-11-25 10:46:51 -08001021 ":libstats_atom_enum_protos",
Colin Cross43214162018-08-20 13:57:24 -07001022 "core/proto/**/*.proto",
1023 "libs/incident/proto/android/os/**/*.proto",
Hai Zhang0b4f1712021-01-21 15:45:56 -08001024 ":service-permission-protos",
Colin Cross43214162018-08-20 13:57:24 -07001025 ],
Joe Onorato99598ee2019-02-11 15:55:13 +00001026 exclude_srcs: [
1027 "core/proto/android/privacy.proto",
1028 "core/proto/android/section.proto",
Pablo Gamitoc18f0a32020-06-12 14:28:08 +00001029 "core/proto/android/typedef.proto",
Joe Onorato99598ee2019-02-11 15:55:13 +00001030 ],
Anton Hansson791551a2019-12-19 10:17:46 +00001031 sdk_version: "core_current",
Colin Cross43214162018-08-20 13:57:24 -07001032 // Protos have lots of MissingOverride and similar.
1033 errorprone: {
1034 javacflags: ["-XepDisableAllChecks"],
1035 },
1036}
1037
Colin Crossaa0d4352017-05-02 14:14:56 -07001038// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +00001039cc_defaults {
1040 name: "libplatformprotos-defaults",
1041
Colin Crossaa0d4352017-05-02 14:14:56 -07001042 proto: {
1043 export_proto_headers: true,
Jeffrey Huang677a0df2020-11-25 10:46:51 -08001044 include_dirs: [
1045 "external/protobuf/src",
1046 ],
Colin Crossaa0d4352017-05-02 14:14:56 -07001047 },
1048
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -07001049 cflags: [
1050 "-Wall",
1051 "-Werror",
1052 "-Wno-unused-parameter",
1053 ],
Joe Onorato62c220b2017-11-18 20:32:56 -08001054
1055 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -08001056 ":ipconnectivity-proto-src",
Jeffrey Huang677a0df2020-11-25 10:46:51 -08001057 ":libstats_atom_enum_protos",
Joe Onorato62c220b2017-11-18 20:32:56 -08001058 "core/proto/**/*.proto",
Hai Zhang0b4f1712021-01-21 15:45:56 -08001059 ":service-permission-protos",
Joe Onorato62c220b2017-11-18 20:32:56 -08001060 ],
Joe Onorato99598ee2019-02-11 15:55:13 +00001061}
1062
1063cc_library {
1064 name: "libplatformprotos",
1065 defaults: ["libplatformprotos-defaults"],
1066 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -08001067
Colin Crossaa0d4352017-05-02 14:14:56 -07001068 target: {
1069 host: {
1070 proto: {
1071 type: "full",
1072 },
1073 },
1074 android: {
1075 proto: {
1076 type: "lite",
1077 },
Joe Onorato99598ee2019-02-11 15:55:13 +00001078 shared_libs: [
1079 "libprotobuf-cpp-lite",
1080 ],
Colin Crossaa0d4352017-05-02 14:14:56 -07001081 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -07001082 enabled: false,
1083 },
1084 },
1085 },
Colin Crossaa0d4352017-05-02 14:14:56 -07001086}
1087
Joe Onorato9bd5db72019-04-03 18:19:43 -07001088// This library is meant for vendor code that needs to output protobuf. It links
1089// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
1090// binary compatibility.
1091cc_library {
1092 name: "libplatformprotos-static",
1093 defaults: ["libplatformprotos-defaults"],
1094 host_supported: false,
1095
1096 // This is okay because this library is only built as a static library. The C++
1097 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
1098 // but is not authorized to be used outside of debugging.
1099 vendor_available: true,
1100
1101 target: {
1102 android: {
1103 proto: {
1104 type: "lite",
1105 },
1106 static_libs: [
1107 "libprotobuf-cpp-lite",
1108 ],
1109 shared: {
1110 enabled: false,
1111 },
1112 },
1113 },
1114}
1115
1116
Joe Onorato99598ee2019-02-11 15:55:13 +00001117// This is the full proto version of libplatformprotos. It may only
1118// be used by test code that is not shipped on the device.
1119cc_library {
1120 name: "libplatformprotos-test",
1121 defaults: ["libplatformprotos-defaults"],
1122 host_supported: false,
1123
1124 target: {
1125 android: {
1126 proto: {
1127 type: "full",
1128 },
1129 shared: {
1130 enabled: false,
1131 },
1132 },
1133 },
1134}
1135
Songchun Fan0037c3f2019-10-30 15:20:59 -07001136filegroup {
1137 name: "incremental_aidl",
1138 srcs: [
Alex Buynytskyyf4156792020-04-07 14:26:55 -07001139 "core/java/android/os/incremental/IIncrementalServiceConnector.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001140 "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001141 ],
1142 path: "core/java",
1143}
1144
1145filegroup {
Songchun Fan6dd47b52019-11-29 15:20:18 -08001146 name: "dataloader_aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001147 srcs: [
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001148 "core/java/android/content/pm/DataLoaderParamsParcel.aidl",
Alex Buynytskyy1ecfcec2019-12-17 12:10:41 -08001149 "core/java/android/content/pm/DataLoaderType.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001150 "core/java/android/content/pm/FileSystemControlParcel.aidl",
Songchun Fan6381d612020-02-26 17:59:41 -08001151 "core/java/android/content/pm/IDataLoader.aidl",
1152 "core/java/android/content/pm/IDataLoaderManager.aidl",
1153 "core/java/android/content/pm/InstallationFileParcel.aidl",
1154 "core/java/android/content/pm/InstallationFileLocation.aidl",
Songchun Fan6dd47b52019-11-29 15:20:18 -08001155 "core/java/android/content/pm/IDataLoaderStatusListener.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001156 "core/java/android/content/pm/IPackageInstallerSessionFileSystemConnector.aidl",
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001157 ],
1158 path: "core/java",
1159}
1160
1161filegroup {
1162 name: "incremental_manager_aidl",
1163 srcs: [
Alex Buynytskyy716588d2020-02-04 13:42:59 -08001164 "core/java/android/os/incremental/IIncrementalService.aidl",
Songchun Fana7098592020-09-03 11:45:53 -07001165 "core/java/android/os/incremental/IStorageLoadingProgressListener.aidl",
Yurii Zubrytskyi4a25dfb2020-01-10 11:53:24 -08001166 "core/java/android/os/incremental/IncrementalNewFileParams.aidl",
Alex Buynytskyy8ef61ae2020-05-08 16:18:52 -07001167 "core/java/android/os/incremental/IStorageHealthListener.aidl",
Alex Buynytskyyaa8e95e2020-12-14 21:50:04 -08001168 "core/java/android/os/incremental/PerUidReadTimeouts.aidl",
Alex Buynytskyy8ef61ae2020-05-08 16:18:52 -07001169 "core/java/android/os/incremental/StorageHealthCheckParams.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001170 ],
1171 path: "core/java",
1172}
1173
Chong Zhang42334952020-11-10 12:16:09 -08001174filegroup {
1175 name: "activity_manager_procstate_aidl",
1176 srcs: [
1177 "core/java/android/app/ProcessStateEnum.aidl",
1178 ],
1179 path: "core/java",
1180}
1181
Songchun Fan0037c3f2019-10-30 15:20:59 -07001182aidl_interface {
1183 name: "libincremental_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001184 unstable: true,
Songchun Fan0037c3f2019-10-30 15:20:59 -07001185 srcs: [
1186 ":incremental_aidl",
Songchun Fan6dd47b52019-11-29 15:20:18 -08001187 ],
Songchun Fan6dd47b52019-11-29 15:20:18 -08001188 backend: {
1189 java: {
1190 sdk_version: "28",
1191 },
1192 cpp: {
1193 enabled: true,
1194 },
1195 ndk: {
1196 enabled: true,
1197 },
1198 },
1199}
1200
1201aidl_interface {
1202 name: "libdataloader_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001203 unstable: true,
Songchun Fan6dd47b52019-11-29 15:20:18 -08001204 srcs: [
1205 ":dataloader_aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001206 ],
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001207 imports: [
1208 "libincremental_aidl",
1209 ],
Songchun Fan0037c3f2019-10-30 15:20:59 -07001210 backend: {
1211 java: {
1212 sdk_version: "28",
1213 },
1214 cpp: {
1215 enabled: true,
1216 },
1217 ndk: {
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001218 enabled: false,
1219 },
1220 },
1221}
1222
1223aidl_interface {
1224 name: "libincremental_manager_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001225 unstable: true,
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001226 srcs: [
1227 ":incremental_manager_aidl",
1228 ],
1229 imports: [
1230 "libincremental_aidl",
1231 "libdataloader_aidl",
1232 ],
1233 backend: {
1234 java: {
1235 sdk_version: "28",
1236 },
1237 cpp: {
Songchun Fan0037c3f2019-10-30 15:20:59 -07001238 enabled: true,
1239 },
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001240 ndk: {
1241 enabled: false,
1242 },
Songchun Fan0037c3f2019-10-30 15:20:59 -07001243 },
Songchun Fan0037c3f2019-10-30 15:20:59 -07001244}
Joe Onorato99598ee2019-02-11 15:55:13 +00001245
Colin Crossa2b78a72018-03-29 13:31:04 -07001246// TODO(b/77285514): remove this once the last few hidl interfaces have been
1247// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -07001248java_library {
1249 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +01001250 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -07001251
1252 srcs: [
1253 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001254 "core/java/android/annotation/IntDef.java",
Ytai Ben-Tsvi4659e182019-11-06 09:53:34 -08001255 "core/java/android/annotation/IntRange.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001256 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -08001257 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001258 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -08001259 "core/java/android/annotation/TestApi.java",
Ytai Ben-Tsvi4659e182019-11-06 09:53:34 -08001260 "core/java/android/os/HidlMemory.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001261 "core/java/android/os/HwBinder.java",
1262 "core/java/android/os/HwBlob.java",
1263 "core/java/android/os/HwParcel.java",
1264 "core/java/android/os/IHwBinder.java",
1265 "core/java/android/os/IHwInterface.java",
1266 "core/java/android/os/DeadObjectException.java",
1267 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -07001268 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001269 "core/java/android/os/RemoteException.java",
1270 "core/java/android/util/AndroidException.java",
1271 ],
Artur Satayevafdb23a2019-12-10 17:47:53 +00001272 libs: [ "unsupportedappusage" ],
Steven Morelandeddafe92017-10-02 16:58:41 -07001273
1274 dxflags: ["--core-library"],
1275 installable: false,
1276}
Nan Zhang2db709d2017-11-08 20:48:46 -08001277
1278python_defaults {
1279 name: "base_default",
1280 version: {
1281 py2: {
Nan Zhang2db709d2017-11-08 20:48:46 -08001282 enabled: false,
1283 embedded_launcher: false,
1284 },
Haibo Huang715857d2020-03-05 11:58:47 -08001285 py3: {
1286 enabled: true,
1287 embedded_launcher: true,
1288 },
Nan Zhang2db709d2017-11-08 20:48:46 -08001289 },
1290}
1291
1292python_binary_host {
1293 name: "fontchain_linter",
1294 defaults: ["base_default"],
1295 main: "tools/fonts/fontchain_linter.py",
1296 srcs: [
1297 "tools/fonts/fontchain_linter.py",
1298 ],
1299 libs: [
1300 "fontTools",
1301 ],
1302}
Nan Zhang172875b2018-02-27 11:24:03 -08001303
Kohsuke Yatohbc718222021-01-31 23:48:46 -08001304python_binary_host {
1305 name: "update_font_metadata",
1306 defaults: ["base_default"],
1307 main: "tools/fonts/update_font_metadata.py",
1308 srcs: [
1309 "tools/fonts/update_font_metadata.py",
1310 ],
1311 libs: [
1312 "fontTools",
1313 ],
1314}
1315
Nan Zhangaf251302018-08-30 10:59:51 -07001316filegroup {
Insun Kang06b25ae2018-11-20 10:05:44 +09001317 name: "framework-media-annotation-srcs",
1318 srcs: [
Jeff Sharkey40182832019-12-18 14:06:48 -07001319 ":framework-annotations",
Insun Kang06b25ae2018-11-20 10:05:44 +09001320 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001321 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001322 "core/java/android/annotation/DrawableRes.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001323 "core/java/android/annotation/LongDef.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001324 "core/java/android/annotation/StringDef.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001325 ],
1326}
1327
1328filegroup {
1329 name: "framework-mediaprovider-annotation-sources",
1330 srcs: [
1331 ":framework-annotations",
1332 "core/java/android/annotation/BytesLong.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001333 "core/java/android/annotation/CurrentTimeSecondsLong.java",
1334 "core/java/android/annotation/DurationMillisLong.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001335 ],
1336}
1337
Andrei Onea7a2985c2019-02-18 15:28:35 +00001338// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1339// annotations to private apis
1340aidl_mapping {
1341 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001342 srcs: [":framework-all-sources"],
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001343 output: "framework-aidl-mappings.txt",
Kyunglyul Hyund51666d2019-04-11 04:08:40 +00001344}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001345
Chen Xu192bf1f2019-09-05 22:07:42 -07001346// Avoid including Parcelable classes as we don't want to have two copies of
Malcolm Chen58b59a52020-01-14 19:25:13 -08001347// Parcelable cross the libraries. This is used by telephony-common (frameworks/opt/telephony)
1348// and TeleService app (packages/services/Telephony).
Chen Xu192bf1f2019-09-05 22:07:42 -07001349filegroup {
Malcolm Chen58b59a52020-01-14 19:25:13 -08001350 name: "framework-telephony-common-shared-srcs",
Chen Xu192bf1f2019-09-05 22:07:42 -07001351 srcs: [
1352 "core/java/android/os/RegistrantList.java",
1353 "core/java/android/os/Registrant.java",
Dmitri Plotnikovf800b702020-05-15 13:49:20 -07001354 "core/java/android/util/IndentingPrintWriter.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001355 "core/java/android/util/LocalLog.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001356 "core/java/android/util/TimeUtils.java",
1357 "core/java/com/android/internal/os/SomeArgs.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001358 "core/java/com/android/internal/util/AsyncChannel.java",
Meng Wang3043dac2020-01-14 14:04:10 -08001359 "core/java/com/android/internal/util/AsyncService.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001360 "core/java/com/android/internal/util/BitwiseInputStream.java",
Michelebadc0212019-10-31 11:48:43 -07001361 "core/java/com/android/internal/util/FastXmlSerializer.java",
1362 "core/java/com/android/internal/util/HexDump.java",
Meng Wang64fffb92019-12-02 10:42:20 -08001363 "core/java/com/android/internal/util/IState.java",
Michelebadc0212019-10-31 11:48:43 -07001364 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001365 "core/java/com/android/internal/util/Preconditions.java",
1366 "core/java/com/android/internal/util/State.java",
1367 "core/java/com/android/internal/util/StateMachine.java",
Michelebadc0212019-10-31 11:48:43 -07001368 "core/java/com/android/internal/util/UserIcons.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001369 ],
1370}
1371
Chen Xu4fea79c2019-10-08 18:39:03 -07001372// Avoid including Parcelable classes as we don't want to have two copies of
1373// Parcelable cross the process.
1374filegroup {
1375 name: "framework-cellbroadcast-shared-srcs",
1376 srcs: [
Jordan Liu15a72742019-11-20 13:55:18 -08001377 "core/java/android/os/HandlerExecutor.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001378 "core/java/android/util/LocalLog.java",
Jordan Liu15a72742019-11-20 13:55:18 -08001379 "core/java/com/android/internal/util/IState.java",
1380 "core/java/com/android/internal/util/Preconditions.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001381 "core/java/com/android/internal/util/State.java",
1382 "core/java/com/android/internal/util/StateMachine.java",
1383 ],
atrostce84de02019-10-08 16:16:47 +01001384}
Roshan Pius09de13e2019-10-16 13:16:04 -07001385
1386filegroup {
Jayachandran Ceeffa012019-10-23 18:06:33 -07001387 name: "framework-ims-common-shared-srcs",
1388 srcs: [
Jayachandran Ceeffa012019-10-23 18:06:33 -07001389 "core/java/android/os/RegistrantList.java",
1390 "core/java/android/os/Registrant.java",
1391 "core/java/com/android/internal/os/SomeArgs.java",
1392 "core/java/com/android/internal/util/Preconditions.java",
1393 ],
1394}
1395
David Su511a8142020-01-09 14:02:21 -08001396// utility classes statically linked into framework-wifi and dynamically linked
1397// into wifi-service
1398java_library {
1399 name: "framework-wifi-util-lib",
David Sufd626db2020-11-09 14:31:45 -08001400 sdk_version: "module_current",
1401 min_sdk_version: "30",
David Su511a8142020-01-09 14:02:21 -08001402 srcs: [
David Su369c9202020-01-09 18:09:56 -08001403 "core/java/android/os/HandlerExecutor.java",
David Su511a8142020-01-09 14:02:21 -08001404 "core/java/com/android/internal/util/AsyncChannel.java",
1405 "core/java/com/android/internal/util/AsyncService.java",
1406 "core/java/com/android/internal/util/Protocol.java",
1407 "core/java/com/android/internal/util/Preconditions.java",
David Su369c9202020-01-09 18:09:56 -08001408 "telephony/java/android/telephony/Annotation.java",
David Su298cd362020-01-17 19:02:49 +00001409 ":net-utils-framework-wifi-common-srcs",
David Su511a8142020-01-09 14:02:21 -08001410 ],
1411 libs: [
1412 "framework-annotations-lib",
1413 "unsupportedappusage",
David Su511a8142020-01-09 14:02:21 -08001414 ],
David Su57bca312020-04-21 19:49:32 -07001415 visibility: [
1416 "//frameworks/base/wifi",
1417 "//frameworks/base/services/net",
Baligh Uddin09fdba42020-12-23 22:42:10 +00001418 "//packages/modules/Wifi/framework",
David Su57bca312020-04-21 19:49:32 -07001419 ],
David Su511a8142020-01-09 14:02:21 -08001420}
1421
1422// utility classes statically linked into wifi-service
Jayachandran Ceeffa012019-10-23 18:06:33 -07001423filegroup {
Roshan Pius62eb61c2019-12-06 13:49:47 -08001424 name: "framework-wifi-service-shared-srcs",
Roshan Pius09de13e2019-10-16 13:16:04 -07001425 srcs: [
Roshan Piusc93cd7a2019-12-09 07:39:41 -08001426 "core/java/android/net/InterfaceConfiguration.java",
Roshan Pius04769a52019-12-04 13:03:47 -08001427 "core/java/android/util/BackupUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001428 "core/java/android/util/Rational.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001429 "core/java/com/android/internal/util/FastXmlSerializer.java",
1430 "core/java/com/android/internal/util/HexDump.java",
1431 "core/java/com/android/internal/util/IState.java",
1432 "core/java/com/android/internal/util/MessageUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001433 "core/java/com/android/internal/util/State.java",
1434 "core/java/com/android/internal/util/StateMachine.java",
1435 "core/java/com/android/internal/util/WakeupMessage.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001436 ],
Baligh Uddin5879a832020-12-24 06:05:52 +00001437 visibility: [
1438 "//frameworks/opt/net/wifi/service",
1439 "//packages/modules/Wifi/service",
1440 ],
Roshan Pius09de13e2019-10-16 13:16:04 -07001441}
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001442
1443// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
1444metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001445 "--hide-package com.android.server " +
Hayden Gomes24b336f2020-11-05 16:28:21 -08001446 "--hide-package android.audio.policy.configuration.V7_0 " +
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001447 "--error UnhiddenSystemApi " +
1448 "--hide RequiresPermission " +
1449 "--hide CallbackInterface " +
1450 "--hide MissingPermission --hide BroadcastBehavior " +
1451 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
1452 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
Makoto Onuki451da1c2020-05-26 10:55:53 -07001453 "--error NoSettingsProvider " +
Aurimas Liutikas1f76a5a2019-11-20 17:51:42 -08001454 "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " +
1455 "--api-lint-ignore-prefix android.icu. " +
1456 "--api-lint-ignore-prefix java. " +
1457 "--api-lint-ignore-prefix junit. " +
1458 "--api-lint-ignore-prefix org. "
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001459
1460build = [
1461 "StubLibraries.bp",
1462 "ApiDocs.bp",
1463]
Chen Xu546ce5e2020-01-10 08:38:31 -08001464
Hongwei Wang6014caf2020-07-20 18:04:35 -07001465// protolog start
1466filegroup {
1467 name: "protolog-common-src",
1468 srcs: [
1469 "core/java/com/android/internal/protolog/common/**/*.java",
1470 ],
1471}
1472
1473java_library {
1474 name: "protolog-lib",
1475 platform_apis: true,
1476 srcs: [
1477 "core/java/com/android/internal/protolog/ProtoLogImpl.java",
1478 "core/java/com/android/internal/protolog/ProtoLogViewerConfigReader.java",
1479 ":protolog-common-src",
1480 ],
1481}
1482
1483java_library {
1484 name: "protolog-groups",
1485 srcs: [
1486 "core/java/com/android/internal/protolog/ProtoLogGroup.java",
1487 ":protolog-common-src",
1488 ],
1489}
1490// protolog end