blob: 59530079d4ade0085703fa6837569cebd111060c [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
17// READ ME: ########################################################
18//
19// When updating this list of aidl files, consider if that aidl is
20// part of the SDK API. If it is, also add it to the list in Android.mk
21// that is preprocessed and distributed with the SDK. This list should
22// not contain any aidl files for parcelables, but the one below should
23// if you intend for 3rd parties to be able to send those objects
24// across process boundaries.
25//
26// READ ME: ########################################################
27
Artur Satayev3cc3fa42019-08-02 16:42:07 +010028filegroup {
Jiyong Parkb3609312019-08-16 21:17:14 +090029 name: "framework-core-sources",
Artur Satayev3cc3fa42019-08-02 16:42:07 +010030 srcs: [
Artur Satayev3cc3fa42019-08-02 16:42:07 +010031 "core/java/**/*.java",
Jiyong Parkb3609312019-08-16 21:17:14 +090032 "core/java/**/*.aidl",
Artur Satayev3cc3fa42019-08-02 16:42:07 +010033 ],
Jiyong Parkb3609312019-08-16 21:17:14 +090034 path: "core/java",
Artur Satayev3cc3fa42019-08-02 16:42:07 +010035}
36
Jiyong Park00ea0b12019-10-31 20:38:47 +090037// These are subset of framework-core-sources that are needed by the
Ramy Medhat10146d82020-05-19 01:57:41 -040038// android.test.mock library. The implementation of android.test.mock references
39// private members of various components to allow mocking of classes that cannot
40// be mocked without access to those internal implementation details.
Jiyong Park00ea0b12019-10-31 20:38:47 +090041filegroup {
42 name: "framework-core-sources-for-test-mock",
43 srcs: [
Ramy Medhat10146d82020-05-19 01:57:41 -040044 "core/java/android/accounts/AccountManagerCallback.java",
45 "core/java/android/accounts/AccountManagerFuture.java",
46 "core/java/android/accounts/AccountManager.java",
47 "core/java/android/accounts/AccountsException.java",
48 "core/java/android/accounts/AuthenticatorException.java",
49 "core/java/android/accounts/OperationCanceledException.java",
50 "core/java/android/annotation/AnimatorRes.java",
51 "core/java/android/annotation/AnimRes.java",
52 "core/java/android/annotation/AnyRes.java",
53 "core/java/android/annotation/ArrayRes.java",
54 "core/java/android/annotation/AttrRes.java",
55 "core/java/android/annotation/BoolRes.java",
56 "core/java/android/annotation/BroadcastBehavior.java",
57 "core/java/android/annotation/CallbackExecutor.java",
58 "core/java/android/annotation/CallSuper.java",
59 "core/java/android/annotation/CheckResult.java",
60 "core/java/android/annotation/ColorInt.java",
61 "core/java/android/annotation/ColorRes.java",
62 "core/java/android/annotation/DimenRes.java",
63 "core/java/android/annotation/DrawableRes.java",
64 "core/java/android/annotation/FontRes.java",
65 "core/java/android/annotation/FractionRes.java",
66 "core/java/android/annotation/IntDef.java",
67 "core/java/android/annotation/IntegerRes.java",
68 "core/java/android/annotation/IntRange.java",
69 "core/java/android/annotation/LayoutRes.java",
70 "core/java/android/annotation/NonNull.java",
71 "core/java/android/annotation/Nullable.java",
72 "core/java/android/annotation/PluralsRes.java",
73 "core/java/android/annotation/RawRes.java",
74 "core/java/android/annotation/RequiresPermission.java",
75 "core/java/android/annotation/SdkConstant.java",
76 "core/java/android/annotation/Size.java",
77 "core/java/android/annotation/StringDef.java",
78 "core/java/android/annotation/StringRes.java",
79 "core/java/android/annotation/StyleableRes.java",
80 "core/java/android/annotation/StyleRes.java",
81 "core/java/android/annotation/SuppressLint.java",
82 "core/java/android/annotation/SystemApi.java",
83 "core/java/android/annotation/SystemService.java",
84 "core/java/android/annotation/TestApi.java",
85 "core/java/android/annotation/UserIdInt.java",
86 "core/java/android/annotation/XmlRes.java",
87 "core/java/android/app/Application.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +090088 "core/java/android/app/IApplicationThread.aidl",
89 "core/java/android/app/IServiceConnection.aidl",
Ramy Medhat10146d82020-05-19 01:57:41 -040090 "core/java/android/app/PackageDeleteObserver.java",
91 "core/java/android/content/ComponentCallbacks2.java",
92 "core/java/android/content/ComponentCallbacks.java",
93 "core/java/android/content/ContentInterface.java",
94 "core/java/android/content/ContentProvider.java",
95 "core/java/android/content/ContentProviderNative.java",
96 "core/java/android/content/ContentResolver.java",
97 "core/java/android/content/Context.java",
98 "core/java/android/content/ContextWrapper.java",
99 "core/java/android/content/DialogInterface.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900100 "core/java/android/content/IContentProvider.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400101 "core/java/android/content/Intent.java",
102 "core/java/android/content/IntentSender.java",
103 "core/java/android/content/OperationApplicationException.java",
104 "core/java/android/content/pm/ActivityInfo.java",
105 "core/java/android/content/pm/ApplicationInfo.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900106 "core/java/android/content/pm/InstantAppInfo.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400107 "core/java/android/content/pm/IPackageDataObserver.aidl",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900108 "core/java/android/content/pm/KeySet.java",
109 "core/java/android/content/pm/PackageManager.java",
110 "core/java/android/content/pm/VerifierDeviceIdentity.java",
111 "core/java/android/content/res/Resources.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400112 "core/java/android/database/CrossProcessCursor.java",
113 "core/java/android/database/CrossProcessCursorWrapper.java",
114 "core/java/android/database/Cursor.java",
115 "core/java/android/database/CursorWrapper.java",
116 "core/java/android/os/Binder.java",
117 "core/java/android/os/Bundle.java",
118 "core/java/android/os/IBinder.java",
119 "core/java/android/os/IInterface.java",
120 "core/java/android/os/Parcelable.java",
121 "core/java/android/os/ParcelFileDescriptor.java",
122 "core/java/android/os/RemoteException.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900123 "core/java/android/os/storage/VolumeInfo.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400124 "core/java/android/util/AndroidException.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900125 "core/java/android/view/DisplayAdjustments.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400126 "core/java/android/view/ViewDebug.java",
127 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900128 ],
129 path: "core/java",
Jiyong Park673e2982020-01-17 16:14:57 +0900130 visibility: ["//frameworks/base/test-mock"],
Jiyong Park00ea0b12019-10-31 20:38:47 +0900131}
132
Jiyong Parkb3609312019-08-16 21:17:14 +0900133filegroup {
134 name: "framework-drm-sources",
135 srcs: [
136 "drm/java/**/*.java",
137 ],
138 path: "drm/java",
139}
Jiyong Park1cc95662019-08-07 22:45:07 +0900140
Jiyong Parkb3609312019-08-16 21:17:14 +0900141filegroup {
Alec Mourief37c242020-03-02 21:38:09 +0000142 name: "framework-graphics-nonupdatable-sources",
Jiyong Parkb3609312019-08-16 21:17:14 +0900143 srcs: [
144 "graphics/java/**/*.java",
145 "graphics/java/**/*.aidl",
146 ],
147 path: "graphics/java",
148}
149
150filegroup {
David Zeuthen045b6de2019-10-29 15:15:18 -0400151 name: "framework-identity-sources",
152 srcs: [
153 "identity/java/**/*.java",
154 ],
155 path: "identity/java",
156}
157
158filegroup {
Jiyong Parkb3609312019-08-16 21:17:14 +0900159 name: "framework-keystore-sources",
160 srcs: [
161 "keystore/java/**/*.java",
162 "keystore/java/**/*.aidl",
163 ],
164 path: "keystore/java",
165}
166
167filegroup {
168 name: "framework-location-sources",
169 srcs: [
170 "location/java/**/*.java",
171 "location/java/**/*.aidl",
172 ],
173 path: "location/java",
174}
175
176filegroup {
177 name: "framework-lowpan-sources",
178 srcs: [
179 "lowpan/java/**/*.java",
180 "lowpan/java/**/*.aidl",
181 ],
182 path: "lowpan/java",
183}
184
185filegroup {
186 name: "framework-media-sources",
187 srcs: [
188 "media/java/**/*.java",
189 "media/java/**/*.aidl",
190 ],
191 path: "media/java",
192}
193
194filegroup {
195 name: "framework-mca-effect-sources",
196 srcs: [
197 "media/mca/effect/java/**/*.java",
198 ],
199 path: "media/mca/effect/java",
200}
201
202filegroup {
203 name: "framework-mca-filterfw-sources",
204 srcs: [
205 "media/mca/filterfw/java/**/*.java",
206 ],
207 path: "media/mca/filterfw/java",
208}
209
210filegroup {
211 name: "framework-mca-filterpacks-sources",
212 srcs: [
213 "media/mca/filterpacks/java/**/*.java",
214 ],
215 path: "media/mca/filterpacks/java",
216}
217
218filegroup {
Tobias Thierer878c77b2019-08-18 15:19:45 +0100219 name: "framework-mime-sources",
220 srcs: [
221 "mime/java/**/*.java",
222 ],
223 path: "mime/java",
224}
225
226filegroup {
Jiyong Parkb3609312019-08-16 21:17:14 +0900227 name: "framework-opengl-sources",
228 srcs: [
229 "opengl/java/**/*.java",
230 ],
231 path: "opengl/java",
232}
233
234filegroup {
235 name: "framework-rs-sources",
236 srcs: [
237 "rs/java/**/*.java",
238 ],
239 path: "rs/java",
240}
241
242filegroup {
243 name: "framework-sax-sources",
244 srcs: [
245 "sax/java/**/*.java",
246 ],
247 path: "sax/java",
248}
249
250filegroup {
251 name: "framework-telecomm-sources",
252 srcs: [
253 "telecomm/java/**/*.java",
254 "telecomm/java/**/*.aidl",
255 ],
256 path: "telecomm/java",
257}
258
259filegroup {
260 name: "framework-telephony-sources",
261 srcs: [
262 "telephony/java/**/*.java",
263 "telephony/java/**/*.aidl",
264 ],
265 path: "telephony/java",
266}
267
Muhammad Qureshied8bca02020-01-24 16:07:49 -0800268genrule {
269 name: "statslog-telephony-common-java-gen",
270 tools: ["stats-log-api-gen"],
271 cmd: "$(location stats-log-api-gen) --java $(out) --module telephony_common"
272 + " --javaPackage com.android.internal.telephony --javaClass TelephonyCommonStatsLog",
273 out: ["com/android/internal/telephony/TelephonyCommonStatsLog.java"],
274}
275
Jiyong Parkb3609312019-08-16 21:17:14 +0900276filegroup {
Amit Mahajand3551532019-09-23 17:59:57 -0700277 name: "framework-telephony-common-sources",
278 srcs: [
279 "telephony/common/**/*.java",
Muhammad Qureshied8bca02020-01-24 16:07:49 -0800280 ":statslog-telephony-common-java-gen",
Amit Mahajand3551532019-09-23 17:59:57 -0700281 ],
Amit Mahajand3551532019-09-23 17:59:57 -0700282}
283
284filegroup {
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700285 name: "framework-mms-sources",
286 srcs: [
287 "mms/java/**/*.java",
288 "mms/java/**/*.aidl",
289 ],
290 path: "mms/java",
291}
292
293filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900294 name: "framework-non-updatable-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900295 srcs: [
296 // Java/AIDL sources under frameworks/base
Sudheer Shankaf5b36962019-10-04 16:16:13 -0700297 ":framework-blobstore-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900298 ":framework-core-sources",
299 ":framework-drm-sources",
Alec Mourief37c242020-03-02 21:38:09 +0000300 ":framework-graphics-nonupdatable-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +0900301 ":framework-jobscheduler-sources", // jobscheduler is not a module for R
Jiyong Park20426532019-08-19 15:24:49 +0900302 ":framework-keystore-sources",
David Zeuthen045b6de2019-10-29 15:15:18 -0400303 ":framework-identity-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900304 ":framework-location-sources",
305 ":framework-lowpan-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900306 ":framework-mca-effect-sources",
307 ":framework-mca-filterfw-sources",
308 ":framework-mca-filterpacks-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +0900309 ":framework-media-sources",
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700310 ":framework-mms-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900311 ":framework-opengl-sources",
312 ":framework-rs-sources",
313 ":framework-sax-sources",
314 ":framework-telecomm-sources",
Amit Mahajand3551532019-09-23 17:59:57 -0700315 ":framework-telephony-common-sources",
Malcolm Chenfbc5c362020-03-16 15:28:35 -0700316 ":framework-telephony-sources",
David Su130441b2019-12-14 21:37:20 -0800317 ":framework-wifi-annotations",
David Su6f646ef2019-12-10 13:33:06 -0800318 ":framework-wifi-non-updatable-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900319 ":PacProcessor-aidl-sources",
320 ":ProxyHandler-aidl-sources",
Aaron Huangc4081b22020-01-13 15:03:35 +0800321 ":net-utils-framework-common-srcs",
Jiyong Parkb3609312019-08-16 21:17:14 +0900322
atrost87488352019-10-10 19:27:31 +0100323 // AIDL from frameworks/base/native/
324 ":platform-compat-native-aidl",
325
Jiyong Park20426532019-08-19 15:24:49 +0900326 // AIDL sources from external directories
David Zeuthen045b6de2019-10-29 15:15:18 -0400327 ":credstore_aidl",
Jiyong Park20426532019-08-19 15:24:49 +0900328 ":dumpstate_aidl",
329 ":framework_native_aidl",
330 ":gatekeeper_aidl",
331 ":gsiservice_aidl",
332 ":incidentcompanion_aidl",
333 ":installd_aidl",
334 ":keystore_aidl",
335 ":libaudioclient_aidl",
336 ":libbinder_aidl",
337 ":libbluetooth-binder-aidl",
338 ":libcamera_client_aidl",
339 ":libcamera_client_framework_aidl",
340 ":libupdate_engine_aidl",
Amy Zhangccdbc4d2020-06-08 21:29:59 -0700341 ":resourcemanager_aidl",
Jiyong Park20426532019-08-19 15:24:49 +0900342 ":storaged_aidl",
343 ":vold_aidl",
Jiyong Park1cc95662019-08-07 22:45:07 +0900344
Jiyong Park20426532019-08-19 15:24:49 +0900345 // For the generated R.java and Manifest.java
346 ":framework-res{.aapt.srcjar}",
347
348 // etc.
349 ":framework-javastream-protos",
Muhammad Qureshi04ec2522020-01-27 16:36:45 -0800350 ":statslog-framework-java-gen", // FrameworkStatsLog.java
Chen Xu546ce5e2020-01-10 08:38:31 -0800351
352 // telephony annotations
353 ":framework-telephony-annotations",
Jiyong Park20426532019-08-19 15:24:49 +0900354 ],
355}
Jiyong Park1cc95662019-08-07 22:45:07 +0900356
Jiyong Parkae9972b2019-09-15 20:19:02 +0900357filegroup {
Anton Hanssonb4f35572019-12-02 16:30:22 +0000358 name: "framework-updatable-sources",
359 srcs: [
Alexander Dorokhine04a05a82019-12-17 10:41:21 -0800360 ":framework-appsearch-sources",
Alec Mourief37c242020-03-02 21:38:09 +0000361 ":framework-graphics-srcs",
Jeff Sharkey40182832019-12-18 14:06:48 -0700362 ":framework-mediaprovider-sources",
Hai Zhang82a62272020-01-14 21:56:34 -0800363 ":framework-permission-sources",
Anton Hanssone996d432020-03-07 11:40:10 +0000364 ":framework-sdkextensions-sources",
365 ":framework-statsd-sources",
Anton Hanssone996d432020-03-07 11:40:10 +0000366 ":framework-tethering-srcs",
367 ":framework-wifi-updatable-sources",
368 ":updatable-media-srcs",
Anton Hansson2d6c4272020-08-18 12:52:44 +0100369 ],
370 visibility: ["//visibility:private"],
Anton Hanssonb4f35572019-12-02 16:30:22 +0000371}
372
Anton Hanssone996d432020-03-07 11:40:10 +0000373java_library {
374 name: "framework-updatable-stubs-module_libs_api",
375 static_libs: [
376 "framework-appsearch-stubs", // TODO: Update to module_libs_api when there is one.
Paul Duffin4e006622020-05-31 16:55:13 +0100377 "framework-graphics.stubs.module_lib",
Paul Duffin8b864fb2020-05-31 11:35:50 +0100378 "framework-media.stubs.module_lib",
379 "framework-mediaprovider.stubs.module_lib",
380 "framework-permission.stubs.module_lib",
381 "framework-sdkextensions.stubs.module_lib",
382 "framework-statsd.stubs.module_lib",
383 "framework-tethering.stubs.module_lib",
384 "framework-wifi.stubs.module_lib",
Anton Hanssone996d432020-03-07 11:40:10 +0000385 ],
386 sdk_version: "module_current",
Anton Hansson2d6c4272020-08-18 12:52:44 +0100387 visibility: ["//visibility:private"],
388}
389
390java_library {
391 name: "framework-all",
392 installable: false,
393 static_libs: [
394 "framework-minus-apex",
395 "framework-appsearch",
396 "framework-graphics.impl",
397 "framework-mediaprovider.impl",
398 "framework-permission.impl",
399 "framework-sdkextensions.impl",
400 "framework-statsd.impl",
401 "framework-tethering.impl",
402 "framework-wifi.impl",
403 "updatable-media",
404 ],
405 apex_available: ["//apex_available:platform"],
406 sdk_version: "core_platform",
407 visibility: [
408 // DO NOT ADD ANY MORE ENTRIES TO THIS LIST
409 "//external/robolectric-shadows:__subpackages__",
410 "//frameworks/layoutlib:__subpackages__",
411 ],
Anton Hanssone996d432020-03-07 11:40:10 +0000412}
413
Anton Hanssonb4f35572019-12-02 16:30:22 +0000414filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900415 name: "framework-all-sources",
416 srcs: [
Tobias Thiererc0c06082019-11-22 16:33:18 +0000417 ":framework-mime-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900418 ":framework-non-updatable-sources",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000419 ":framework-updatable-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900420 ],
421}
422
Jiyong Park392729f2020-01-17 16:32:53 +0900423// AIDL files under these paths are mixture of public and private ones.
424// They shouldn't be exported across module boundaries.
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100425java_defaults {
Makoto Onuki62242c42019-08-05 12:54:20 -0700426 name: "framework-aidl-export-defaults",
Makoto Onuki62242c42019-08-05 12:54:20 -0700427 aidl: {
Jiyong Parkb3609312019-08-16 21:17:14 +0900428 export_include_dirs: [
429 "core/java",
430 "drm/java",
431 "graphics/java",
David Zeuthen045b6de2019-10-29 15:15:18 -0400432 "identity/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900433 "keystore/java",
434 "location/java",
435 "lowpan/java",
436 "media/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900437 "media/mca/effect/java",
438 "media/mca/filterfw/java",
439 "media/mca/filterpacks/java",
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700440 "mms/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900441 "opengl/java",
442 "rs/java",
443 "sax/java",
444 "telecomm/java",
Anton Hanssone996d432020-03-07 11:40:10 +0000445
Sungsoo Lim895f4f62020-04-08 11:21:36 +0900446 "apex/media/aidl/stable",
Anton Hanssone996d432020-03-07 11:40:10 +0000447 // TODO(b/147699819): remove this
448 "telephony/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900449 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700450 },
451}
452
Jiyong Park20426532019-08-19 15:24:49 +0900453// Collection of classes that are generated from non-Java files that are not listed in
454// framework_srcs. These have no or very limited dependency to the framework.
455java_library {
456 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800457 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100458 "apex_aidl_interface-java",
Kalesh Singh759af322019-06-19 12:17:43 -0700459 "suspend_control_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800460 "framework-protos",
Peiyong Linb967a4c2020-07-27 22:16:13 -0700461 "updatable-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800462 "android.hidl.base-V1.0-java",
463 "android.hardware.cas-V1.0-java",
Henry Fang43cab922019-12-27 16:50:20 -0800464 "android.hardware.cas-V1.1-java",
465 "android.hardware.cas-V1.2-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800466 "android.hardware.contexthub-V1.0-java",
Anthony Stange521a9052020-02-07 18:45:47 -0500467 "android.hardware.contexthub-V1.1-java",
Yu-Han Yang9fe06dd2019-11-18 16:23:31 -0800468 "android.hardware.gnss-V1.0-java",
Yu-Han Yangad03c472020-01-14 15:31:01 -0800469 "android.hardware.gnss-V2.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800470 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800471 "android.hardware.radio-V1.0-java",
472 "android.hardware.radio-V1.1-java",
473 "android.hardware.radio-V1.2-java",
474 "android.hardware.radio-V1.3-java",
475 "android.hardware.radio-V1.4-java",
Sarah Chin21e9c632019-11-05 13:30:10 -0800476 "android.hardware.radio-V1.5-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800477 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800478 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700479 "android.hardware.thermal-V1.1-java",
480 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800481 "android.hardware.tv.input-V1.0-java-constants",
shubang7e849b02019-10-18 19:36:25 -0700482 "android.hardware.tv.tuner-V1.0-java-constants",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800483 "android.hardware.usb-V1.0-java-constants",
484 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800485 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800486 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000487 "android.hardware.vibrator-V1.0-java",
488 "android.hardware.vibrator-V1.1-java",
489 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900490 "android.hardware.vibrator-V1.3-java",
arangelov1ab61492018-11-22 13:56:50 +0000491 "devicepolicyprotosnano",
Inseob Kim4fe9f0f2019-07-30 18:23:26 +0900492
493 "com.android.sysprop.apex",
Nikita Ioffe779d6be2020-02-06 23:17:17 +0000494 "com.android.sysprop.init",
Alexander Mishkovets77f6bc82020-07-14 19:14:10 +0200495 "com.android.sysprop.localization",
Inseob Kim4fe9f0f2019-07-30 18:23:26 +0900496 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800497 ],
Jiyong Park20426532019-08-19 15:24:49 +0900498 sdk_version: "core_platform",
499 installable: false,
500}
501
Colin Crossbc2dc312018-10-26 22:34:06 -0700502filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800503 name: "framework-jarjar-rules",
David Su130441b2019-12-14 21:37:20 -0800504 srcs: ["framework-jarjar-rules.txt"],
Steven Moreland19e8d462019-03-08 10:44:22 -0800505}
506
507filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700508 name: "libincident_aidl",
509 srcs: [
Mike Ma643de922019-12-17 10:56:17 -0800510 "core/java/android/os/IIncidentDumpCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700511 "core/java/android/os/IIncidentManager.aidl",
512 "core/java/android/os/IIncidentReportStatusListener.aidl",
513 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700514 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700515}
516
517filegroup {
Michael Wrightc390fbe2018-12-12 19:45:09 +0000518 name: "libvibrator_aidl",
519 srcs: [
520 "core/java/android/os/IExternalVibrationController.aidl",
521 "core/java/android/os/IExternalVibratorService.aidl",
522 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700523 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000524}
525
Chris Ye48dbcaa2020-02-10 13:29:01 -0800526filegroup {
527 name: "libpowermanager_aidl",
528 srcs: [
529 "core/java/android/os/Temperature.aidl",
530 "core/java/android/os/CoolingDevice.aidl",
531 "core/java/android/os/IThermalEventListener.aidl",
532 "core/java/android/os/IThermalStatusListener.aidl",
533 "core/java/android/os/IThermalService.aidl",
Chris Ye590ff6e2020-02-28 21:42:19 -0800534 "core/java/android/os/IPowerManager.aidl",
Chris Ye48dbcaa2020-02-10 13:29:01 -0800535 ],
536 path: "core/java",
537}
538
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100539java_library {
Makoto Onuki62242c42019-08-05 12:54:20 -0700540 name: "framework-minus-apex",
Anton Hansson5954c6d2020-08-19 14:37:54 +0100541 defaults: ["framework-aidl-export-defaults"],
542 srcs: [
543 ":framework-non-updatable-sources",
544 "core/java/**/*.logtags",
545 ],
546 // See comment on framework-atb-backward-compatibility module below
547 exclude_srcs: ["core/java/android/content/pm/AndroidTestBaseUpdater.java"],
548 aidl: {
549 generate_get_transaction_name: true,
Ytai Ben-Tsvida7c21e2020-09-16 13:04:31 -0700550 local_include_dirs: ["media/aidl"],
Anton Hansson5954c6d2020-08-19 14:37:54 +0100551 },
552 dxflags: [
553 "--core-library",
554 "--multi-dex",
555 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700556 installable: true,
Anton Hansson5954c6d2020-08-19 14:37:54 +0100557 jarjar_rules: ":framework-jarjar-rules",
Jiyong Park911cd4f2019-10-21 14:35:14 +0900558 javac_shard_size: 150,
Anton Hansson5954c6d2020-08-19 14:37:54 +0100559 plugins: [
560 "view-inspector-annotation-processor",
561 "staledataclass-annotation-processor",
562 "error_prone_android_framework",
563 ],
atrostaec9bc12019-08-16 18:14:09 +0100564 required: [
565 "framework-platform-compat-config",
Anton Hansson5954c6d2020-08-19 14:37:54 +0100566 // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly.
567 "gps_debug.conf",
atrostaec9bc12019-08-16 18:14:09 +0100568 "libcore-platform-compat-config",
Anton Hansson5954c6d2020-08-19 14:37:54 +0100569 "protolog.conf.json.gz",
atrost86895aa2019-08-19 16:51:15 +0100570 "services-platform-compat-config",
Ivan Chiang3cb1cbd2020-02-18 10:50:10 +0800571 "documents-ui-compat-config",
Varun Shahf952e66c12020-06-25 11:30:13 -0700572 "calendar-provider-compat-config",
atrostaec9bc12019-08-16 18:14:09 +0100573 ],
Anton Hansson5954c6d2020-08-19 14:37:54 +0100574 libs: [
575 "app-compat-annotations",
576 "ext",
577 "framework-updatable-stubs-module_libs_api",
578 "unsupportedappusage",
579 ],
580 sdk_version: "core_platform",
Tobias Thiererc0c06082019-11-22 16:33:18 +0000581 static_libs: [
Anton Hansson5954c6d2020-08-19 14:37:54 +0100582 "framework-internal-utils",
Tobias Thierer82968532019-11-29 19:39:45 +0000583 // If MimeMap ever becomes its own APEX, then this dependency would need to be removed
584 // in favor of an API stubs dependency in java_library "framework" below.
Tobias Thiererc0c06082019-11-22 16:33:18 +0000585 "mimemap",
Jiyong Park09939272020-08-28 13:08:32 +0900586 "mediatranscoding_aidl_interface-java",
Ytai Ben-Tsvida7c21e2020-09-16 13:04:31 -0700587 "soundtrigger_middleware-aidl-java",
Tobias Thiererc0c06082019-11-22 16:33:18 +0000588 ],
Jiyong Park911cd4f2019-10-21 14:35:14 +0900589 // For backwards compatibility.
590 stem: "framework",
Jiyong Park352f9e22019-12-09 14:45:07 +0900591 apex_available: ["//apex_available:platform"],
Jiyong Park212d2e82020-01-03 21:07:38 +0900592 visibility: [
593 "//frameworks/base",
Jiyong Park634819c2020-02-04 21:20:02 +0900594 // TODO(b/147128803) remove the below lines
Jiyong Park212d2e82020-01-03 21:07:38 +0900595 "//frameworks/base/apex/appsearch/framework",
596 "//frameworks/base/apex/blobstore/framework",
597 "//frameworks/base/apex/jobscheduler/framework",
markchien2c153702020-02-06 19:23:26 +0800598 "//frameworks/base/packages/Tethering/tests/unit",
Jiyong Park212d2e82020-01-03 21:07:38 +0900599 ],
Jiyong Park911cd4f2019-10-21 14:35:14 +0900600}
601
602// This "framework" module is NOT installed to the device. It's
603// "framework-minus-apex" that gets installed to the device. Note that
604// the filename is still framework.jar (via the stem property) for
605// compatibility reason. The purpose of this module is to provide
606// framework APIs (both public and private) for bundled apps.
607// "framework-minus-apex" can't be used for the purpose because 1)
608// many apps have already hardcoded the name "framework" and
609// 2) it lacks API symbols from updatable modules - as it's clear from
610// its suffix "-minus-apex".
611java_library {
612 name: "framework",
613 defaults: ["framework-aidl-export-defaults"],
614 installable: false, // this lib is a build-only library
615 static_libs: [
Malcolm Chenfbc5c362020-03-16 15:28:35 -0700616 "app-compat-annotations",
Jiyong Park911cd4f2019-10-21 14:35:14 +0900617 "framework-minus-apex",
Anton Hanssone996d432020-03-07 11:40:10 +0000618 // TODO(b/146218515): should be removed
619 "framework-appsearch",
Anton Hanssone996d432020-03-07 11:40:10 +0000620 "framework-updatable-stubs-module_libs_api",
Jiyong Park911cd4f2019-10-21 14:35:14 +0900621 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700622 sdk_version: "core_platform",
Jiyong Park352f9e22019-12-09 14:45:07 +0900623 apex_available: ["//apex_available:platform"],
Makoto Onuki62242c42019-08-05 12:54:20 -0700624}
625
atrostb9c34502019-08-05 12:22:18 +0100626platform_compat_config {
Artur Satayev9f5a5622020-03-25 15:36:55 +0000627 name: "framework-platform-compat-config",
628 src: ":framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100629}
630
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000631// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000632// android.test.base library has been removed and which provides support for
633// maintaining backwards compatibility for APKs that target pre-P and depend on
634// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
635// specified on the build command line.
636java_library {
637 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000638 installable: true,
atrost1a945502019-11-04 17:03:54 +0000639 libs: ["app-compat-annotations"],
Paul Duffina3b69212018-01-25 09:58:32 +0000640 srcs: [
Winson5e0a1d52020-01-24 12:00:33 -0800641 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
Paul Duffina3b69212018-01-25 09:58:32 +0000642 ],
643}
644
Colin Crosscf3a0b52017-11-16 00:15:28 -0800645genrule {
Muhammad Qureshi04ec2522020-01-27 16:36:45 -0800646 name: "statslog-framework-java-gen",
647 tools: ["stats-log-api-gen"],
648 cmd: "$(location stats-log-api-gen) --java $(out) --module framework" +
649 " --javaPackage com.android.internal.util --javaClass FrameworkStatsLog --worksource",
650 out: ["com/android/internal/util/FrameworkStatsLog.java"],
651}
652
Hyunyoung Songa28623b2020-02-06 22:56:21 -0800653java_library {
654 name: "uieventloggerlib",
655 srcs: [
656 "core/java/com/android/internal/logging/UiEvent.java",
657 "core/java/com/android/internal/logging/UiEventLogger.java",
658 "core/java/com/android/internal/logging/UiEventLoggerImpl.java",
659 "core/java/com/android/internal/logging/InstanceId.java",
660 "core/java/com/android/internal/logging/InstanceIdSequence.java",
661 ":statslog-framework-java-gen",
662 ],
663}
664
Colin Crosscf3a0b52017-11-16 00:15:28 -0800665gensrcs {
666 name: "framework-javastream-protos",
667 depfile: true,
668
669 tools: [
670 "aprotoc",
671 "protoc-gen-javastream",
672 "soong_zip",
673 ],
674
Anton Hanssond82b2f72019-11-18 13:34:56 +0000675 cmd: "mkdir -p $(genDir)/$(in) " +
676 "&& $(location aprotoc) " +
677 " --plugin=$(location protoc-gen-javastream) " +
678 " --dependency_out=$(depfile) " +
679 " --javastream_out=$(genDir)/$(in) " +
680 " -Iexternal/protobuf/src " +
681 " -I . " +
682 " $(in) " +
683 "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)",
684
Yi Jin437aa6e2018-01-10 11:34:26 -0800685 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800686 ":ipconnectivity-proto-src",
Yi Jin437aa6e2018-01-10 11:34:26 -0800687 "core/proto/**/*.proto",
688 "libs/incident/**/*.proto",
689 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800690 output_extension: "srcjar",
691}
692
Mike Maa47ad722020-01-28 22:04:20 -0800693gensrcs {
694 name: "framework-cppstream-protos",
695 depfile: true,
696
697 tools: [
698 "aprotoc",
699 "protoc-gen-cppstream",
700 ],
701
702 cmd: "mkdir -p $(genDir) " +
703 "&& $(location aprotoc) " +
704 " --plugin=$(location protoc-gen-cppstream) " +
705 " --dependency_out=$(depfile) " +
706 " --cppstream_out=$(genDir) " +
707 " -Iexternal/protobuf/src " +
708 " -I . " +
709 " $(in)",
710
711 srcs: [
712 ":ipconnectivity-proto-src",
713 "core/proto/**/*.proto",
714 "libs/incident/**/*.proto",
715 ],
716
717 output_extension: "proto.h",
718}
719
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900720filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900721 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900722 srcs: [
David Su369c9202020-01-09 18:09:56 -0800723 "core/java/android/annotation/CallbackExecutor.java",
David Su511a8142020-01-09 14:02:21 -0800724 "core/java/android/annotation/CheckResult.java",
David Su77517342020-02-18 18:10:07 -0800725 "core/java/android/annotation/CurrentTimeMillisLong.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800726 "core/java/android/annotation/Hide.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900727 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900728 "core/java/android/annotation/IntRange.java",
lesld41a2992020-02-20 17:30:58 +0800729 "core/java/android/annotation/LongDef.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700730 "core/java/android/annotation/NonNull.java",
731 "core/java/android/annotation/Nullable.java",
732 "core/java/android/annotation/RequiresPermission.java",
733 "core/java/android/annotation/SdkConstant.java",
David Su369c9202020-01-09 18:09:56 -0800734 "core/java/android/annotation/StringDef.java",
Anton Hanssondc1e99b2019-12-06 17:07:28 +0000735 "core/java/android/annotation/SystemApi.java",
David Su369c9202020-01-09 18:09:56 -0800736 "core/java/android/annotation/SystemService.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700737 "core/java/android/annotation/TestApi.java",
Jeff Sharkeyf5eebf92020-03-06 14:41:56 -0700738 "core/java/android/annotation/WorkerThread.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900739 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900740 "core/java/com/android/internal/annotations/VisibleForTesting.java",
David Su511a8142020-01-09 14:02:21 -0800741 "core/java/com/android/internal/annotations/Immutable.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100742 ],
Chalard Jean95213512019-01-30 21:04:58 +0900743}
744
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000745java_library {
746 name: "framework-annotations-lib",
747 srcs: [ ":framework-annotations" ],
Anton Hansson791551a2019-12-19 10:17:46 +0000748 sdk_version: "core_current",
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000749}
750
Chalard Jean95213512019-01-30 21:04:58 +0900751filegroup {
evitayane22e47f2019-12-30 16:05:38 -0800752 name: "framework-ike-shared-srcs",
Baligh Uddinb7ec5bb2020-05-27 19:22:36 +0000753 visibility: ["//packages/modules/IPsec"],
evitayane22e47f2019-12-30 16:05:38 -0800754 srcs: [
evitayanbddbfb02020-01-07 21:21:52 -0800755 "core/java/android/annotation/StringDef.java",
evitayane22e47f2019-12-30 16:05:38 -0800756 "core/java/android/net/annotations/PolicyDirection.java",
evitayane9cc4942020-03-03 17:14:47 -0800757 "core/java/com/android/internal/util/HexDump.java",
evitayan0efc7402019-12-20 17:55:57 -0800758 "core/java/com/android/internal/util/IState.java",
759 "core/java/com/android/internal/util/State.java",
760 "core/java/com/android/internal/util/StateMachine.java",
evitayan996aa2a2019-12-30 11:19:47 -0800761 "telephony/java/android/telephony/Annotation.java",
evitayane22e47f2019-12-30 16:05:38 -0800762 ],
763}
764
765filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900766 name: "framework-networkstack-shared-srcs",
767 srcs: [
768 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900769 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900770 "core/java/android/net/DhcpResults.java",
Dmitri Plotnikovf800b702020-05-15 13:49:20 -0700771 "core/java/android/util/IndentingPrintWriter.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900772 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900773 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900774 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900775 "core/java/com/android/internal/util/IState.java",
776 "core/java/com/android/internal/util/MessageUtils.java",
777 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900778 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900779 "core/java/com/android/internal/util/State.java",
780 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900781 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900782 "core/java/com/android/internal/util/WakeupMessage.java",
johnson.yeh095b7a02019-12-19 20:30:34 +0800783 "core/java/com/android/internal/util/TokenBucket.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100784 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900785}
786
Roshan Piusb6361f92020-02-21 07:37:30 -0800787filegroup {
788 name: "framework-services-net-module-wifi-shared-srcs",
789 srcs: [
790 "core/java/android/net/DhcpResults.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800791 "core/java/android/net/util/IpUtils.java",
792 "core/java/android/util/LocalLog.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800793 ],
794}
795
markchienae8aa642019-12-16 20:15:20 +0800796// keep these files in sync with the package/Tethering/jarjar-rules.txt for the tethering module.
markchiena6ba54d2019-09-03 15:58:06 +0800797filegroup {
798 name: "framework-tethering-shared-srcs",
799 srcs: [
Dmitri Plotnikovf800b702020-05-15 13:49:20 -0700800 "core/java/android/util/IndentingPrintWriter.java",
markchiena6ba54d2019-09-03 15:58:06 +0800801 "core/java/android/util/LocalLog.java",
markchienae8aa642019-12-16 20:15:20 +0800802 "core/java/com/android/internal/util/IndentingPrintWriter.java",
803 "core/java/com/android/internal/util/IState.java",
804 "core/java/com/android/internal/util/MessageUtils.java",
markchienae8aa642019-12-16 20:15:20 +0800805 "core/java/com/android/internal/util/State.java",
806 "core/java/com/android/internal/util/StateMachine.java",
markchien87d3f7d2020-01-08 20:58:23 +0800807 "core/java/com/android/internal/util/TrafficStatsConstants.java",
markchienae8aa642019-12-16 20:15:20 +0800808 ],
809}
810
Dmitri Plotnikovb3fd1322020-04-30 12:33:47 -0700811// keep these files in sync with the apex/jobscheduler/service jarjar-rules.txt for
812// the jobscheduler module.
813filegroup {
814 name: "framework-jobscheduler-shared-srcs",
815 srcs: [
816 "core/java/com/android/internal/util/ArrayUtils.java",
817 "core/java/com/android/internal/util/BitUtils.java",
818 "core/java/com/android/internal/util/CollectionUtils.java",
819 "core/java/com/android/internal/util/ConcurrentUtils.java",
820 "core/java/com/android/internal/util/DumpUtils.java",
821 "core/java/com/android/internal/util/FastPrintWriter.java",
822 "core/java/com/android/internal/util/FastXmlSerializer.java",
823 "core/java/com/android/internal/util/FunctionalUtils.java",
824 "core/java/com/android/internal/util/ParseUtils.java",
825 "core/java/com/android/internal/util/Preconditions.java",
826 "core/java/com/android/internal/util/RingBufferIndices.java",
827 "core/java/com/android/internal/util/StatLogger.java",
828 "core/java/com/android/internal/util/XmlUtils.java",
829 ],
830}
831
Colin Crossd8e02252017-10-02 17:14:22 -0700832// Build ext.jar
833// ============================================================
834java_library {
835 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700836 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100837 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700838 static_libs: [
839 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700840 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000841 "rappor",
Colin Crossd8e02252017-10-02 17:14:22 -0700842 ],
843 dxflags: ["--core-library"],
844}
845
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700846// ==== java proto host library ==============================
847java_library_host {
848 name: "platformprotos",
849 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800850 ":ipconnectivity-proto-src",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700851 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700852 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700853 "core/proto/**/*.proto",
854 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700855 ],
856 proto: {
857 include_dirs: ["external/protobuf/src"],
858 type: "full",
859 },
860 errorprone: {
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100861 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700862 },
863}
864
Colin Cross43214162018-08-20 13:57:24 -0700865// ==== java proto device library (for test only) ==============================
866java_library {
867 name: "platformprotosnano",
868 proto: {
869 type: "nano",
870 output_params: ["store_unknown_fields=true"],
871 include_dirs: ["external/protobuf/src"],
872 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000873 exclude_srcs: [
874 "core/proto/android/privacy.proto",
875 "core/proto/android/section.proto",
Pablo Gamitoc18f0a32020-06-12 14:28:08 +0000876 "core/proto/android/typedef.proto",
Joe Onorato99598ee2019-02-11 15:55:13 +0000877 ],
Anton Hansson791551a2019-12-19 10:17:46 +0000878 sdk_version: "9",
Colin Cross43214162018-08-20 13:57:24 -0700879 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800880 ":ipconnectivity-proto-src",
Colin Cross43214162018-08-20 13:57:24 -0700881 "core/proto/**/*.proto",
882 "libs/incident/proto/android/os/**/*.proto",
883 ],
884}
885
886// ==== java proto device library (for test only) ==============================
887java_library {
888 name: "platformprotoslite",
889 proto: {
890 type: "lite",
891 include_dirs: ["external/protobuf/src"],
892 },
893
894 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800895 ":ipconnectivity-proto-src",
Colin Cross43214162018-08-20 13:57:24 -0700896 "core/proto/**/*.proto",
897 "libs/incident/proto/android/os/**/*.proto",
898 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000899 exclude_srcs: [
900 "core/proto/android/privacy.proto",
901 "core/proto/android/section.proto",
Pablo Gamitoc18f0a32020-06-12 14:28:08 +0000902 "core/proto/android/typedef.proto",
Joe Onorato99598ee2019-02-11 15:55:13 +0000903 ],
Anton Hansson791551a2019-12-19 10:17:46 +0000904 sdk_version: "core_current",
Colin Cross43214162018-08-20 13:57:24 -0700905 // Protos have lots of MissingOverride and similar.
906 errorprone: {
907 javacflags: ["-XepDisableAllChecks"],
908 },
909}
910
Colin Crossaa0d4352017-05-02 14:14:56 -0700911// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000912cc_defaults {
913 name: "libplatformprotos-defaults",
914
Colin Crossaa0d4352017-05-02 14:14:56 -0700915 proto: {
916 export_proto_headers: true,
917 include_dirs: ["external/protobuf/src"],
918 },
919
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700920 cflags: [
921 "-Wall",
922 "-Werror",
923 "-Wno-unused-parameter",
924 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800925
926 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800927 ":ipconnectivity-proto-src",
Joe Onorato62c220b2017-11-18 20:32:56 -0800928 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800929 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000930}
931
932cc_library {
933 name: "libplatformprotos",
934 defaults: ["libplatformprotos-defaults"],
935 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800936
Colin Crossaa0d4352017-05-02 14:14:56 -0700937 target: {
938 host: {
939 proto: {
940 type: "full",
941 },
942 },
943 android: {
944 proto: {
945 type: "lite",
946 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000947 shared_libs: [
948 "libprotobuf-cpp-lite",
949 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700950 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700951 enabled: false,
952 },
953 },
954 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700955}
956
Joe Onorato9bd5db72019-04-03 18:19:43 -0700957// This library is meant for vendor code that needs to output protobuf. It links
958// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
959// binary compatibility.
960cc_library {
961 name: "libplatformprotos-static",
962 defaults: ["libplatformprotos-defaults"],
963 host_supported: false,
964
965 // This is okay because this library is only built as a static library. The C++
966 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
967 // but is not authorized to be used outside of debugging.
968 vendor_available: true,
969
970 target: {
971 android: {
972 proto: {
973 type: "lite",
974 },
975 static_libs: [
976 "libprotobuf-cpp-lite",
977 ],
978 shared: {
979 enabled: false,
980 },
981 },
982 },
983}
984
985
Joe Onorato99598ee2019-02-11 15:55:13 +0000986// This is the full proto version of libplatformprotos. It may only
987// be used by test code that is not shipped on the device.
988cc_library {
989 name: "libplatformprotos-test",
990 defaults: ["libplatformprotos-defaults"],
991 host_supported: false,
992
993 target: {
994 android: {
995 proto: {
996 type: "full",
997 },
998 shared: {
999 enabled: false,
1000 },
1001 },
1002 },
1003}
1004
Songchun Fan0037c3f2019-10-30 15:20:59 -07001005filegroup {
1006 name: "incremental_aidl",
1007 srcs: [
Alex Buynytskyyf4156792020-04-07 14:26:55 -07001008 "core/java/android/os/incremental/IIncrementalServiceConnector.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001009 "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001010 ],
1011 path: "core/java",
1012}
1013
1014filegroup {
Songchun Fan6dd47b52019-11-29 15:20:18 -08001015 name: "dataloader_aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001016 srcs: [
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001017 "core/java/android/content/pm/DataLoaderParamsParcel.aidl",
Alex Buynytskyy1ecfcec2019-12-17 12:10:41 -08001018 "core/java/android/content/pm/DataLoaderType.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001019 "core/java/android/content/pm/FileSystemControlParcel.aidl",
Songchun Fan6381d612020-02-26 17:59:41 -08001020 "core/java/android/content/pm/IDataLoader.aidl",
1021 "core/java/android/content/pm/IDataLoaderManager.aidl",
1022 "core/java/android/content/pm/InstallationFileParcel.aidl",
1023 "core/java/android/content/pm/InstallationFileLocation.aidl",
Songchun Fan6dd47b52019-11-29 15:20:18 -08001024 "core/java/android/content/pm/IDataLoaderStatusListener.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001025 "core/java/android/content/pm/IPackageInstallerSessionFileSystemConnector.aidl",
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001026 ],
1027 path: "core/java",
1028}
1029
1030filegroup {
1031 name: "incremental_manager_aidl",
1032 srcs: [
Alex Buynytskyy716588d2020-02-04 13:42:59 -08001033 "core/java/android/os/incremental/IIncrementalService.aidl",
Songchun Fana7098592020-09-03 11:45:53 -07001034 "core/java/android/os/incremental/IStorageLoadingProgressListener.aidl",
Yurii Zubrytskyi4a25dfb2020-01-10 11:53:24 -08001035 "core/java/android/os/incremental/IncrementalNewFileParams.aidl",
Alex Buynytskyy8ef61ae2020-05-08 16:18:52 -07001036 "core/java/android/os/incremental/IStorageHealthListener.aidl",
1037 "core/java/android/os/incremental/StorageHealthCheckParams.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001038 ],
1039 path: "core/java",
1040}
1041
1042aidl_interface {
1043 name: "libincremental_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001044 unstable: true,
Songchun Fan0037c3f2019-10-30 15:20:59 -07001045 srcs: [
1046 ":incremental_aidl",
Songchun Fan6dd47b52019-11-29 15:20:18 -08001047 ],
Songchun Fan6dd47b52019-11-29 15:20:18 -08001048 backend: {
1049 java: {
1050 sdk_version: "28",
1051 },
1052 cpp: {
1053 enabled: true,
1054 },
1055 ndk: {
1056 enabled: true,
1057 },
1058 },
1059}
1060
1061aidl_interface {
1062 name: "libdataloader_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001063 unstable: true,
Songchun Fan6dd47b52019-11-29 15:20:18 -08001064 srcs: [
1065 ":dataloader_aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001066 ],
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001067 imports: [
1068 "libincremental_aidl",
1069 ],
Songchun Fan0037c3f2019-10-30 15:20:59 -07001070 backend: {
1071 java: {
1072 sdk_version: "28",
1073 },
1074 cpp: {
1075 enabled: true,
1076 },
1077 ndk: {
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001078 enabled: false,
1079 },
1080 },
1081}
1082
1083aidl_interface {
1084 name: "libincremental_manager_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001085 unstable: true,
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001086 srcs: [
1087 ":incremental_manager_aidl",
1088 ],
1089 imports: [
1090 "libincremental_aidl",
1091 "libdataloader_aidl",
1092 ],
1093 backend: {
1094 java: {
1095 sdk_version: "28",
1096 },
1097 cpp: {
Songchun Fan0037c3f2019-10-30 15:20:59 -07001098 enabled: true,
1099 },
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001100 ndk: {
1101 enabled: false,
1102 },
Songchun Fan0037c3f2019-10-30 15:20:59 -07001103 },
Songchun Fan0037c3f2019-10-30 15:20:59 -07001104}
Joe Onorato99598ee2019-02-11 15:55:13 +00001105
Colin Crossa2b78a72018-03-29 13:31:04 -07001106// TODO(b/77285514): remove this once the last few hidl interfaces have been
1107// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -07001108java_library {
1109 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +01001110 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -07001111
1112 srcs: [
1113 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001114 "core/java/android/annotation/IntDef.java",
Ytai Ben-Tsvi4659e182019-11-06 09:53:34 -08001115 "core/java/android/annotation/IntRange.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001116 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -08001117 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001118 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -08001119 "core/java/android/annotation/TestApi.java",
Ytai Ben-Tsvi4659e182019-11-06 09:53:34 -08001120 "core/java/android/os/HidlMemory.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001121 "core/java/android/os/HwBinder.java",
1122 "core/java/android/os/HwBlob.java",
1123 "core/java/android/os/HwParcel.java",
1124 "core/java/android/os/IHwBinder.java",
1125 "core/java/android/os/IHwInterface.java",
1126 "core/java/android/os/DeadObjectException.java",
1127 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -07001128 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001129 "core/java/android/os/RemoteException.java",
1130 "core/java/android/util/AndroidException.java",
1131 ],
Artur Satayevafdb23a2019-12-10 17:47:53 +00001132 libs: [ "unsupportedappusage" ],
Steven Morelandeddafe92017-10-02 16:58:41 -07001133
1134 dxflags: ["--core-library"],
1135 installable: false,
1136}
Nan Zhang2db709d2017-11-08 20:48:46 -08001137
1138python_defaults {
1139 name: "base_default",
1140 version: {
1141 py2: {
Nan Zhang2db709d2017-11-08 20:48:46 -08001142 enabled: false,
1143 embedded_launcher: false,
1144 },
Haibo Huang715857d2020-03-05 11:58:47 -08001145 py3: {
1146 enabled: true,
1147 embedded_launcher: true,
1148 },
Nan Zhang2db709d2017-11-08 20:48:46 -08001149 },
1150}
1151
1152python_binary_host {
1153 name: "fontchain_linter",
1154 defaults: ["base_default"],
1155 main: "tools/fonts/fontchain_linter.py",
1156 srcs: [
1157 "tools/fonts/fontchain_linter.py",
1158 ],
1159 libs: [
1160 "fontTools",
1161 ],
1162}
Nan Zhang172875b2018-02-27 11:24:03 -08001163
Nan Zhangaf251302018-08-30 10:59:51 -07001164filegroup {
Insun Kang06b25ae2018-11-20 10:05:44 +09001165 name: "framework-media-annotation-srcs",
1166 srcs: [
Jeff Sharkey40182832019-12-18 14:06:48 -07001167 ":framework-annotations",
Insun Kang06b25ae2018-11-20 10:05:44 +09001168 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001169 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001170 "core/java/android/annotation/DrawableRes.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001171 "core/java/android/annotation/LongDef.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001172 "core/java/android/annotation/StringDef.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001173 ],
1174}
1175
1176filegroup {
1177 name: "framework-mediaprovider-annotation-sources",
1178 srcs: [
1179 ":framework-annotations",
1180 "core/java/android/annotation/BytesLong.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001181 "core/java/android/annotation/CurrentTimeSecondsLong.java",
1182 "core/java/android/annotation/DurationMillisLong.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001183 ],
1184}
1185
Andrei Onea7a2985c2019-02-18 15:28:35 +00001186// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1187// annotations to private apis
1188aidl_mapping {
1189 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001190 srcs: [":framework-all-sources"],
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001191 output: "framework-aidl-mappings.txt",
Kyunglyul Hyund51666d2019-04-11 04:08:40 +00001192}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001193
Chen Xu192bf1f2019-09-05 22:07:42 -07001194// Avoid including Parcelable classes as we don't want to have two copies of
Malcolm Chen58b59a52020-01-14 19:25:13 -08001195// Parcelable cross the libraries. This is used by telephony-common (frameworks/opt/telephony)
1196// and TeleService app (packages/services/Telephony).
Chen Xu192bf1f2019-09-05 22:07:42 -07001197filegroup {
Malcolm Chen58b59a52020-01-14 19:25:13 -08001198 name: "framework-telephony-common-shared-srcs",
Chen Xu192bf1f2019-09-05 22:07:42 -07001199 srcs: [
Hall Liuaa4398e2019-12-24 14:13:25 -08001200 "core/java/android/os/BasicShellCommandHandler.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001201 "core/java/android/os/RegistrantList.java",
1202 "core/java/android/os/Registrant.java",
Dmitri Plotnikovf800b702020-05-15 13:49:20 -07001203 "core/java/android/util/IndentingPrintWriter.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001204 "core/java/android/util/LocalLog.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001205 "core/java/android/util/TimeUtils.java",
1206 "core/java/com/android/internal/os/SomeArgs.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001207 "core/java/com/android/internal/util/AsyncChannel.java",
Meng Wang3043dac2020-01-14 14:04:10 -08001208 "core/java/com/android/internal/util/AsyncService.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001209 "core/java/com/android/internal/util/BitwiseInputStream.java",
Michelebadc0212019-10-31 11:48:43 -07001210 "core/java/com/android/internal/util/FastXmlSerializer.java",
1211 "core/java/com/android/internal/util/HexDump.java",
Meng Wang64fffb92019-12-02 10:42:20 -08001212 "core/java/com/android/internal/util/IState.java",
Michelebadc0212019-10-31 11:48:43 -07001213 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001214 "core/java/com/android/internal/util/Preconditions.java",
1215 "core/java/com/android/internal/util/State.java",
1216 "core/java/com/android/internal/util/StateMachine.java",
Michelebadc0212019-10-31 11:48:43 -07001217 "core/java/com/android/internal/util/UserIcons.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001218 ],
1219}
1220
Chen Xu4fea79c2019-10-08 18:39:03 -07001221// Avoid including Parcelable classes as we don't want to have two copies of
Malcolm Chen58b59a52020-01-14 19:25:13 -08001222// Parcelable cross the process. This is used by framework-telephony (frameworks/base/telephony).
1223filegroup {
1224 name: "framework-telephony-shared-srcs",
1225 srcs: [
Dmitri Plotnikovf800b702020-05-15 13:49:20 -07001226 "core/java/android/util/IndentingPrintWriter.java",
Malcolm Chen58b59a52020-01-14 19:25:13 -08001227 "core/java/android/util/RecurrenceRule.java",
1228 "core/java/com/android/internal/os/SomeArgs.java",
1229 "core/java/com/android/internal/util/BitwiseInputStream.java",
1230 "core/java/com/android/internal/util/BitwiseOutputStream.java",
Hall Liu69e3f352020-04-07 18:23:09 -07001231 "core/java/com/android/internal/util/FunctionalUtils.java",
Malcolm Chen58b59a52020-01-14 19:25:13 -08001232 "core/java/com/android/internal/util/HexDump.java",
1233 "core/java/com/android/internal/util/IndentingPrintWriter.java",
1234 "core/java/com/android/internal/util/Preconditions.java",
1235 ],
1236}
1237
1238// Avoid including Parcelable classes as we don't want to have two copies of
Chen Xu4fea79c2019-10-08 18:39:03 -07001239// Parcelable cross the process.
1240filegroup {
1241 name: "framework-cellbroadcast-shared-srcs",
1242 srcs: [
Jordan Liu15a72742019-11-20 13:55:18 -08001243 "core/java/android/os/HandlerExecutor.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001244 "core/java/android/util/LocalLog.java",
Jordan Liu15a72742019-11-20 13:55:18 -08001245 "core/java/com/android/internal/util/IState.java",
1246 "core/java/com/android/internal/util/Preconditions.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001247 "core/java/com/android/internal/util/State.java",
1248 "core/java/com/android/internal/util/StateMachine.java",
1249 ],
atrostce84de02019-10-08 16:16:47 +01001250}
Roshan Pius09de13e2019-10-16 13:16:04 -07001251
1252filegroup {
Jayachandran Ceeffa012019-10-23 18:06:33 -07001253 name: "framework-ims-common-shared-srcs",
1254 srcs: [
Jayachandran Ceeffa012019-10-23 18:06:33 -07001255 "core/java/android/os/RegistrantList.java",
1256 "core/java/android/os/Registrant.java",
1257 "core/java/com/android/internal/os/SomeArgs.java",
1258 "core/java/com/android/internal/util/Preconditions.java",
1259 ],
1260}
1261
David Su511a8142020-01-09 14:02:21 -08001262// utility classes statically linked into framework-wifi and dynamically linked
1263// into wifi-service
1264java_library {
1265 name: "framework-wifi-util-lib",
Anton Hansson5a088e02020-03-31 18:09:01 +01001266 sdk_version: "module_current",
David Su511a8142020-01-09 14:02:21 -08001267 srcs: [
1268 "core/java/android/content/pm/BaseParceledListSlice.java",
1269 "core/java/android/content/pm/ParceledListSlice.java",
David Su369c9202020-01-09 18:09:56 -08001270 "core/java/android/os/HandlerExecutor.java",
David Su511a8142020-01-09 14:02:21 -08001271 "core/java/com/android/internal/util/AsyncChannel.java",
1272 "core/java/com/android/internal/util/AsyncService.java",
1273 "core/java/com/android/internal/util/Protocol.java",
1274 "core/java/com/android/internal/util/Preconditions.java",
David Su369c9202020-01-09 18:09:56 -08001275 "telephony/java/android/telephony/Annotation.java",
David Su298cd362020-01-17 19:02:49 +00001276 ":net-utils-framework-wifi-common-srcs",
David Su511a8142020-01-09 14:02:21 -08001277 ],
1278 libs: [
1279 "framework-annotations-lib",
1280 "unsupportedappusage",
David Su511a8142020-01-09 14:02:21 -08001281 ],
David Su57bca312020-04-21 19:49:32 -07001282 visibility: [
1283 "//frameworks/base/wifi",
1284 "//frameworks/base/services/net",
1285 ],
David Su511a8142020-01-09 14:02:21 -08001286}
1287
David Su72f9d632020-02-10 15:58:26 -08001288filegroup {
1289 name: "framework-wifi-util-lib-aidls",
1290 srcs: ["core/java/android/content/pm/ParceledListSlice.aidl"],
1291 path: "core/java",
1292}
1293
David Su511a8142020-01-09 14:02:21 -08001294// utility classes statically linked into wifi-service
Jayachandran Ceeffa012019-10-23 18:06:33 -07001295filegroup {
Roshan Pius62eb61c2019-12-06 13:49:47 -08001296 name: "framework-wifi-service-shared-srcs",
Roshan Pius09de13e2019-10-16 13:16:04 -07001297 srcs: [
Roshan Piusc93cd7a2019-12-09 07:39:41 -08001298 "core/java/android/net/InterfaceConfiguration.java",
Roshan Pius3032c892020-01-08 11:10:15 -08001299 "core/java/android/os/BasicShellCommandHandler.java",
Roshan Pius04769a52019-12-04 13:03:47 -08001300 "core/java/android/util/BackupUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001301 "core/java/android/util/Rational.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001302 "core/java/com/android/internal/util/FastXmlSerializer.java",
1303 "core/java/com/android/internal/util/HexDump.java",
1304 "core/java/com/android/internal/util/IState.java",
1305 "core/java/com/android/internal/util/MessageUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001306 "core/java/com/android/internal/util/State.java",
1307 "core/java/com/android/internal/util/StateMachine.java",
1308 "core/java/com/android/internal/util/WakeupMessage.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001309 ],
David Su298cd362020-01-17 19:02:49 +00001310 visibility: ["//frameworks/opt/net/wifi/service"],
Roshan Pius09de13e2019-10-16 13:16:04 -07001311}
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001312
1313// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
1314metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
1315 "--ignore-classes-on-classpath " +
1316 "--hide-package com.android.server " +
1317 "--error UnhiddenSystemApi " +
1318 "--hide RequiresPermission " +
1319 "--hide CallbackInterface " +
1320 "--hide MissingPermission --hide BroadcastBehavior " +
1321 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
1322 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
Makoto Onuki451da1c2020-05-26 10:55:53 -07001323 "--error NoSettingsProvider " +
Aurimas Liutikas1f76a5a2019-11-20 17:51:42 -08001324 "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " +
1325 "--api-lint-ignore-prefix android.icu. " +
1326 "--api-lint-ignore-prefix java. " +
1327 "--api-lint-ignore-prefix junit. " +
1328 "--api-lint-ignore-prefix org. "
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001329
1330build = [
1331 "StubLibraries.bp",
1332 "ApiDocs.bp",
1333]
Chen Xu546ce5e2020-01-10 08:38:31 -08001334
1335// TODO(b/147699819): move to frameworks/base/telephony/ folder
1336droidstubs {
1337 name: "framework-telephony-stubs-srcs",
1338 srcs: [
1339 ":framework-telephony-sources",
1340 ":framework_native_aidl",
1341 ":framework-javastream-protos",
1342 ],
1343 aidl: {
1344 local_include_dirs: [
1345 "core/java",
1346 "telecomm/java"
1347 ],
1348 },
1349 libs: [
1350 "framework-annotations-lib",
1351 "android.hardware.radio-V1.5-java",
1352 ],
Anton Hanssonbb61f962020-01-17 19:03:34 +00001353 check_api: {
1354 current: {
1355 // TODO(b/147699819): remove telephony prefix when moved
1356 api_file: "telephony/api/system-current.txt",
1357 removed_api_file: "telephony/api/system-removed.txt",
1358 },
1359 },
Anton Hanssonf79b08b2020-03-24 15:21:01 +00001360 // TODO: make telephony inherit the shared stubs and remove this
1361 args: "--show-annotation android.annotation.SystemApi\\(" +
1362 "client=android.annotation.SystemApi.Client.PRIVILEGED_APPS" +
1363 "\\) " +
1364 "--error UnhiddenSystemApi " +
1365 "--hide BroadcastBehavior " +
1366 "--hide DeprecationMismatch " +
1367 "--hide HiddenSuperclass " +
1368 "--hide HiddenTypedefConstant " +
1369 "--hide HiddenTypeParameter " +
1370 "--hide MissingPermission " +
1371 "--hide RequiresPermission " +
1372 "--hide SdkConstant " +
1373 "--hide Todo " +
1374 "--hide Typo " +
1375 "--hide UnavailableSymbol ",
Chen Xu546ce5e2020-01-10 08:38:31 -08001376 filter_packages: ["android.telephony"],
1377 sdk_version: "system_current",
1378}
1379
1380java_library {
1381 name: "framework-telephony-stubs",
1382 srcs: [":framework-telephony-stubs-srcs"],
1383 // TODO(b/147699819): move public aidls to a separate folder and potentially remove
1384 // below aidl exports.
1385 aidl: {
1386 export_include_dirs: ["telephony/java"],
1387 },
Anton Hanssonc33a1b62020-03-31 18:33:36 +01001388 sdk_version: "module_current",
Chen Xu546ce5e2020-01-10 08:38:31 -08001389}
1390
Chen Xu546ce5e2020-01-10 08:38:31 -08001391filegroup {
1392 // TODO (b/147690217): move to frameworks/base/telephony/common.
1393 name: "framework-telephony-annotations",
1394 srcs: ["telephony/java/android/telephony/Annotation.java"],
1395}
1396
1397filegroup {
Malcolm Chen58b59a52020-01-14 19:25:13 -08001398 name: "framework-telephony-jarjar-rules",
Chen Xu546ce5e2020-01-10 08:38:31 -08001399 srcs: ["telephony/framework-telephony-jarjar-rules.txt"],
1400}
Hongwei Wang6014caf2020-07-20 18:04:35 -07001401
1402// protolog start
1403filegroup {
1404 name: "protolog-common-src",
1405 srcs: [
1406 "core/java/com/android/internal/protolog/common/**/*.java",
1407 ],
1408}
1409
1410java_library {
1411 name: "protolog-lib",
1412 platform_apis: true,
1413 srcs: [
1414 "core/java/com/android/internal/protolog/ProtoLogImpl.java",
1415 "core/java/com/android/internal/protolog/ProtoLogViewerConfigReader.java",
1416 ":protolog-common-src",
1417 ],
1418}
1419
1420java_library {
1421 name: "protolog-groups",
1422 srcs: [
1423 "core/java/com/android/internal/protolog/ProtoLogGroup.java",
1424 ":protolog-common-src",
1425 ],
1426}
1427// protolog end