blob: f910cc3857ea3f2db2c5067ae6c89733722c1d10 [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
Bob Badour051ef782021-02-12 17:07:05 -080028package {
29 default_applicable_licenses: ["frameworks_base_license"],
30}
31
32// Added automatically by a large-scale-change that took the approach of
33// 'apply every license found to every target'. While this makes sure we respect
34// every license restriction, it may not be entirely correct.
35//
36// e.g. GPL in an MIT project might only apply to the contrib/ directory.
37//
38// Please consider splitting the single license below into multiple licenses,
39// taking care not to lose any license_kind information, and overriding the
40// default license using the 'licenses: [...]' property on targets as needed.
41//
42// For unused files, consider creating a 'fileGroup' with "//visibility:private"
43// to attach the license to, and including a comment whether the files may be
44// used in the current project.
45// See: http://go/android-license-faq
46license {
47 name: "frameworks_base_license",
48 visibility: [":__subpackages__"],
49 license_kinds: [
50 "SPDX-license-identifier-Apache-2.0",
51 "SPDX-license-identifier-BSD",
52 "SPDX-license-identifier-CC-BY",
53 "SPDX-license-identifier-CPL-1.0",
54 "SPDX-license-identifier-GPL",
55 "SPDX-license-identifier-GPL-2.0",
56 "SPDX-license-identifier-MIT",
57 "SPDX-license-identifier-Unicode-DFS",
58 "SPDX-license-identifier-W3C",
59 "legacy_unencumbered",
60 ],
61 license_text: [
62 "NOTICE",
63 ],
64}
65
Artur Satayev005d7352019-08-02 16:42:07 +010066filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +090067 name: "framework-core-sources",
Colin Crosscf3a0b52017-11-16 00:15:28 -080068 srcs: [
Colin Crosscf3a0b52017-11-16 00:15:28 -080069 "core/java/**/*.java",
Jiyong Park7e1339e2019-08-16 21:17:14 +090070 "core/java/**/*.aidl",
Artur Satayev005d7352019-08-02 16:42:07 +010071 ],
Jiyong Park7e1339e2019-08-16 21:17:14 +090072 path: "core/java",
Artur Satayev005d7352019-08-02 16:42:07 +010073}
Colin Crosscf3a0b52017-11-16 00:15:28 -080074
Jiyong Park00ea0b12019-10-31 20:38:47 +090075// These are subset of framework-core-sources that are needed by the
Ramy Medhat10146d82020-05-19 01:57:41 -040076// android.test.mock library. The implementation of android.test.mock references
77// private members of various components to allow mocking of classes that cannot
78// be mocked without access to those internal implementation details.
Jiyong Park00ea0b12019-10-31 20:38:47 +090079filegroup {
80 name: "framework-core-sources-for-test-mock",
81 srcs: [
Ramy Medhat10146d82020-05-19 01:57:41 -040082 "core/java/android/accounts/AccountManagerCallback.java",
83 "core/java/android/accounts/AccountManagerFuture.java",
84 "core/java/android/accounts/AccountManager.java",
85 "core/java/android/accounts/AccountsException.java",
86 "core/java/android/accounts/AuthenticatorException.java",
87 "core/java/android/accounts/OperationCanceledException.java",
88 "core/java/android/annotation/AnimatorRes.java",
89 "core/java/android/annotation/AnimRes.java",
90 "core/java/android/annotation/AnyRes.java",
91 "core/java/android/annotation/ArrayRes.java",
92 "core/java/android/annotation/AttrRes.java",
93 "core/java/android/annotation/BoolRes.java",
94 "core/java/android/annotation/BroadcastBehavior.java",
95 "core/java/android/annotation/CallbackExecutor.java",
96 "core/java/android/annotation/CallSuper.java",
97 "core/java/android/annotation/CheckResult.java",
98 "core/java/android/annotation/ColorInt.java",
99 "core/java/android/annotation/ColorRes.java",
100 "core/java/android/annotation/DimenRes.java",
101 "core/java/android/annotation/DrawableRes.java",
102 "core/java/android/annotation/FontRes.java",
103 "core/java/android/annotation/FractionRes.java",
104 "core/java/android/annotation/IntDef.java",
105 "core/java/android/annotation/IntegerRes.java",
106 "core/java/android/annotation/IntRange.java",
107 "core/java/android/annotation/LayoutRes.java",
108 "core/java/android/annotation/NonNull.java",
109 "core/java/android/annotation/Nullable.java",
110 "core/java/android/annotation/PluralsRes.java",
111 "core/java/android/annotation/RawRes.java",
112 "core/java/android/annotation/RequiresPermission.java",
113 "core/java/android/annotation/SdkConstant.java",
114 "core/java/android/annotation/Size.java",
115 "core/java/android/annotation/StringDef.java",
116 "core/java/android/annotation/StringRes.java",
117 "core/java/android/annotation/StyleableRes.java",
118 "core/java/android/annotation/StyleRes.java",
119 "core/java/android/annotation/SuppressLint.java",
120 "core/java/android/annotation/SystemApi.java",
121 "core/java/android/annotation/SystemService.java",
122 "core/java/android/annotation/TestApi.java",
123 "core/java/android/annotation/UserIdInt.java",
124 "core/java/android/annotation/XmlRes.java",
125 "core/java/android/app/Application.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900126 "core/java/android/app/IApplicationThread.aidl",
127 "core/java/android/app/IServiceConnection.aidl",
Ramy Medhat10146d82020-05-19 01:57:41 -0400128 "core/java/android/app/PackageDeleteObserver.java",
129 "core/java/android/content/ComponentCallbacks2.java",
130 "core/java/android/content/ComponentCallbacks.java",
131 "core/java/android/content/ContentInterface.java",
132 "core/java/android/content/ContentProvider.java",
133 "core/java/android/content/ContentProviderNative.java",
134 "core/java/android/content/ContentResolver.java",
135 "core/java/android/content/Context.java",
136 "core/java/android/content/ContextWrapper.java",
137 "core/java/android/content/DialogInterface.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900138 "core/java/android/content/IContentProvider.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400139 "core/java/android/content/Intent.java",
140 "core/java/android/content/IntentSender.java",
141 "core/java/android/content/OperationApplicationException.java",
142 "core/java/android/content/pm/ActivityInfo.java",
143 "core/java/android/content/pm/ApplicationInfo.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900144 "core/java/android/content/pm/InstantAppInfo.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400145 "core/java/android/content/pm/IPackageDataObserver.aidl",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900146 "core/java/android/content/pm/KeySet.java",
147 "core/java/android/content/pm/PackageManager.java",
148 "core/java/android/content/pm/VerifierDeviceIdentity.java",
149 "core/java/android/content/res/Resources.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400150 "core/java/android/database/CrossProcessCursor.java",
151 "core/java/android/database/CrossProcessCursorWrapper.java",
152 "core/java/android/database/Cursor.java",
153 "core/java/android/database/CursorWrapper.java",
154 "core/java/android/os/Binder.java",
155 "core/java/android/os/Bundle.java",
156 "core/java/android/os/IBinder.java",
157 "core/java/android/os/IInterface.java",
158 "core/java/android/os/Parcelable.java",
159 "core/java/android/os/ParcelFileDescriptor.java",
160 "core/java/android/os/RemoteException.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900161 "core/java/android/os/storage/VolumeInfo.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400162 "core/java/android/util/AndroidException.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900163 "core/java/android/view/DisplayAdjustments.java",
Ramy Medhat10146d82020-05-19 01:57:41 -0400164 "core/java/android/view/ViewDebug.java",
165 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Jiyong Park00ea0b12019-10-31 20:38:47 +0900166 ],
167 path: "core/java",
Jiyong Park673e2982020-01-17 16:14:57 +0900168 visibility: ["//frameworks/base/test-mock"],
Jiyong Park00ea0b12019-10-31 20:38:47 +0900169}
170
Jiyong Park7e1339e2019-08-16 21:17:14 +0900171filegroup {
172 name: "framework-drm-sources",
173 srcs: [
174 "drm/java/**/*.java",
175 ],
176 path: "drm/java",
177}
178
179filegroup {
180 name: "framework-graphics-sources",
181 srcs: [
182 "graphics/java/**/*.java",
183 "graphics/java/**/*.aidl",
184 ],
185 path: "graphics/java",
186}
187
188filegroup {
David Zeuthen045b6de2019-10-29 15:15:18 -0400189 name: "framework-identity-sources",
190 srcs: [
191 "identity/java/**/*.java",
192 ],
193 path: "identity/java",
194}
195
196filegroup {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900197 name: "framework-keystore-sources",
198 srcs: [
199 "keystore/java/**/*.java",
200 "keystore/java/**/*.aidl",
201 ],
202 path: "keystore/java",
203}
204
205filegroup {
206 name: "framework-location-sources",
207 srcs: [
208 "location/java/**/*.java",
209 "location/java/**/*.aidl",
210 ],
211 path: "location/java",
212}
213
214filegroup {
215 name: "framework-lowpan-sources",
216 srcs: [
217 "lowpan/java/**/*.java",
218 "lowpan/java/**/*.aidl",
219 ],
220 path: "lowpan/java",
221}
222
223filegroup {
224 name: "framework-media-sources",
225 srcs: [
226 "media/java/**/*.java",
227 "media/java/**/*.aidl",
228 ],
229 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 Park7e1339e2019-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"],
Paul Duffinc1309182021-03-19 15:14:58 +0000309 cmd: "$(location stats-log-api-gen) --java $(out) --module telephony_common" +
310 " --javaPackage com.android.internal.telephony --javaClass TelephonyCommonStatsLog",
Muhammad Qureshied8bca02020-01-24 16:07:49 -0800311 out: ["com/android/internal/telephony/TelephonyCommonStatsLog.java"],
312}
313
Jiyong Park7e1339e2019-08-16 21:17:14 +0900314filegroup {
Amit Mahajanac0fd652019-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 Mahajanac0fd652019-09-23 17:59:57 -0700319 ],
Amit Mahajanac0fd652019-09-23 17:59:57 -0700320}
321
322filegroup {
Amit Mahajan153d31b2019-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 Park5366ea22019-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",
Jiyong Park5366ea22019-08-19 15:24:49 +0900336 ":framework-core-sources",
337 ":framework-drm-sources",
338 ":framework-graphics-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +0900339 ":framework-jobscheduler-sources", // jobscheduler is not a module for R
Jiyong Park5366ea22019-08-19 15:24:49 +0900340 ":framework-keystore-sources",
David Zeuthen045b6de2019-10-29 15:15:18 -0400341 ":framework-identity-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900342 ":framework-location-sources",
343 ":framework-lowpan-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900344 ":framework-mca-effect-sources",
345 ":framework-mca-filterfw-sources",
346 ":framework-mca-filterpacks-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +0900347 ":framework-media-sources",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700348 ":framework-mms-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900349 ":framework-opengl-sources",
350 ":framework-rs-sources",
351 ":framework-sax-sources",
352 ":framework-telecomm-sources",
Amit Mahajanac0fd652019-09-23 17:59:57 -0700353 ":framework-telephony-common-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900354 ":framework-telephony-sources",
Benedict Wong26497362020-08-10 17:54:33 -0700355 ":framework-vcn-util-sources",
David Su130441b2019-12-14 21:37:20 -0800356 ":framework-wifi-annotations",
David Su6f646ef2019-12-10 13:33:06 -0800357 ":framework-wifi-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +0900358 ":PacProcessor-aidl-sources",
359 ":ProxyHandler-aidl-sources",
Aaron Huangc4081b22020-01-13 15:03:35 +0800360 ":net-utils-framework-common-srcs",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900361
atrostff948d82019-10-10 19:27:31 +0100362 // AIDL from frameworks/base/native/
363 ":platform-compat-native-aidl",
364
Jiyong Park5366ea22019-08-19 15:24:49 +0900365 // AIDL sources from external directories
Janis Danisevskis15212602021-03-17 11:02:19 -0700366 ":android.hardware.security.keymint-V1-java-source",
367 ":android.hardware.security.secureclock-V1-java-source",
368 ":android.security.apc-java-source",
369 ":android.security.authorization-java-source",
370 ":android.security.maintenance-java-source",
371 ":android.security.vpnprofilestore-java-source",
372 ":android.system.keystore2-V1-java-source",
David Zeuthen045b6de2019-10-29 15:15:18 -0400373 ":credstore_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900374 ":dumpstate_aidl",
375 ":framework_native_aidl",
376 ":gatekeeper_aidl",
377 ":gsiservice_aidl",
378 ":incidentcompanion_aidl",
379 ":installd_aidl",
380 ":keystore_aidl",
381 ":libaudioclient_aidl",
382 ":libbinder_aidl",
383 ":libbluetooth-binder-aidl",
384 ":libcamera_client_aidl",
385 ":libcamera_client_framework_aidl",
Steven Moreland8bb6bc22021-03-26 01:32:39 +0000386 ":packagemanager_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900387 ":libupdate_engine_aidl",
Amy Zhangccdbc4d2020-06-08 21:29:59 -0700388 ":resourcemanager_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900389 ":storaged_aidl",
390 ":vold_aidl",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900391
Jiyong Park5366ea22019-08-19 15:24:49 +0900392 // For the generated R.java and Manifest.java
393 ":framework-res{.aapt.srcjar}",
394
395 // etc.
396 ":framework-javastream-protos",
Muhammad Qureshi1de1df42020-01-27 16:36:45 -0800397 ":statslog-framework-java-gen", // FrameworkStatsLog.java
Hayden Gomesc164f6a2020-11-05 16:28:21 -0800398 ":audio_policy_configuration_V7_0",
Jiyong Park5366ea22019-08-19 15:24:49 +0900399 ],
400}
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900401
Jiyong Parkae9972b2019-09-15 20:19:02 +0900402filegroup {
Anton Hanssonb4f35572019-12-02 16:30:22 +0000403 name: "framework-updatable-sources",
404 srcs: [
Remi NGUYEN VANc15d99e2021-01-28 13:37:03 +0900405 ":framework-connectivity-sources",
Jeff Sharkey40182832019-12-18 14:06:48 -0700406 ":framework-mediaprovider-sources",
Hai Zhang82a62272020-01-14 21:56:34 -0800407 ":framework-permission-sources",
Anton Hansson87743c62020-01-08 09:48:18 +0000408 ":framework-sdkextensions-sources",
Anton Hansson221fe902020-03-07 11:40:10 +0000409 ":framework-statsd-sources",
markchien6d06f6d2019-12-16 20:15:20 +0800410 ":framework-tethering-srcs",
Anton Hansson221fe902020-03-07 11:40:10 +0000411 ":framework-wifi-updatable-sources",
Yan Yanf8b973c2021-02-03 16:07:30 -0800412 ":ike-srcs",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000413 ":updatable-media-srcs",
Anton Hansson7a9bc4e2020-08-18 12:52:44 +0100414 ],
415 visibility: ["//visibility:private"],
Anton Hanssonb4f35572019-12-02 16:30:22 +0000416}
417
Anton Hansson5f208a22020-03-07 11:40:10 +0000418java_library {
419 name: "framework-updatable-stubs-module_libs_api",
420 static_libs: [
Yan Yanf8b973c2021-02-03 16:07:30 -0800421 "android.net.ipsec.ike.stubs.module_lib",
Paul Duffinabebc6a2020-05-31 11:35:50 +0100422 "framework-media.stubs.module_lib",
423 "framework-mediaprovider.stubs.module_lib",
424 "framework-permission.stubs.module_lib",
Paul Duffin3bde2d52020-06-02 11:41:13 +0100425 "framework-sdkextensions.stubs.module_lib",
Paul Duffinabebc6a2020-05-31 11:35:50 +0100426 "framework-statsd.stubs.module_lib",
Paul Duffin01fd6ff2020-06-02 11:41:13 +0100427 "framework-tethering.stubs.module_lib",
Paul Duffinabebc6a2020-05-31 11:35:50 +0100428 "framework-wifi.stubs.module_lib",
Anton Hansson5f208a22020-03-07 11:40:10 +0000429 ],
430 sdk_version: "module_current",
Anton Hansson7a9bc4e2020-08-18 12:52:44 +0100431 visibility: ["//visibility:private"],
432}
433
434java_library {
435 name: "framework-all",
436 installable: false,
437 static_libs: [
Yan Yanf8b973c2021-02-03 16:07:30 -0800438 "android.net.ipsec.ike.impl",
Anton Hansson7a9bc4e2020-08-18 12:52:44 +0100439 "framework-minus-apex",
440 "framework-mediaprovider.impl",
441 "framework-permission.impl",
442 "framework-sdkextensions.impl",
443 "framework-statsd.impl",
444 "framework-tethering.impl",
445 "framework-wifi.impl",
446 "updatable-media",
447 ],
448 apex_available: ["//apex_available:platform"],
449 sdk_version: "core_platform",
450 visibility: [
451 // DO NOT ADD ANY MORE ENTRIES TO THIS LIST
452 "//external/robolectric-shadows:__subpackages__",
453 "//frameworks/layoutlib:__subpackages__",
454 ],
Anton Hansson5f208a22020-03-07 11:40:10 +0000455}
456
Jiyong Park392729f2020-01-17 16:32:53 +0900457// AIDL files under these paths are mixture of public and private ones.
458// They shouldn't be exported across module boundaries.
Artur Satayev005d7352019-08-02 16:42:07 +0100459java_defaults {
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900460 name: "framework-aidl-export-defaults",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800461 aidl: {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900462 export_include_dirs: [
463 "core/java",
464 "drm/java",
465 "graphics/java",
David Zeuthen045b6de2019-10-29 15:15:18 -0400466 "identity/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900467 "keystore/java",
468 "location/java",
469 "lowpan/java",
470 "media/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900471 "media/mca/effect/java",
472 "media/mca/filterfw/java",
473 "media/mca/filterpacks/java",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700474 "mms/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900475 "opengl/java",
476 "rs/java",
477 "sax/java",
478 "telecomm/java",
Anton Hansson5f208a22020-03-07 11:40:10 +0000479
Sungsoo Lim895f4f62020-04-08 11:21:36 +0900480 "apex/media/aidl/stable",
Anton Hansson5f208a22020-03-07 11:40:10 +0000481 // TODO(b/147699819): remove this
482 "telephony/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900483 ],
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900484 },
485}
Colin Crosscf3a0b52017-11-16 00:15:28 -0800486
Jiyong Park5366ea22019-08-19 15:24:49 +0900487// Collection of classes that are generated from non-Java files that are not listed in
488// framework_srcs. These have no or very limited dependency to the framework.
489java_library {
490 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800491 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100492 "apex_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800493 "framework-protos",
Peiyong Linb967a4c2020-07-27 22:16:13 -0700494 "updatable-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800495 "android.hidl.base-V1.0-java",
496 "android.hardware.cas-V1.0-java",
Henry Fang43cab922019-12-27 16:50:20 -0800497 "android.hardware.cas-V1.1-java",
498 "android.hardware.cas-V1.2-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800499 "android.hardware.contexthub-V1.0-java",
Anthony Stange521a9052020-02-07 18:45:47 -0500500 "android.hardware.contexthub-V1.1-java",
Yu-Han Yang9fe06dd2019-11-18 16:23:31 -0800501 "android.hardware.gnss-V1.0-java",
Yu-Han Yangad03c472020-01-14 15:31:01 -0800502 "android.hardware.gnss-V2.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800503 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800504 "android.hardware.radio-V1.0-java",
505 "android.hardware.radio-V1.1-java",
506 "android.hardware.radio-V1.2-java",
507 "android.hardware.radio-V1.3-java",
508 "android.hardware.radio-V1.4-java",
Sarah Chine138c5e2019-11-05 13:30:10 -0800509 "android.hardware.radio-V1.5-java",
Daniel Brightbd26ad22020-09-02 17:10:54 -0700510 "android.hardware.radio-V1.6-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800511 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800512 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700513 "android.hardware.thermal-V1.1-java",
514 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800515 "android.hardware.tv.input-V1.0-java-constants",
shubang7e849b02019-10-18 19:36:25 -0700516 "android.hardware.tv.tuner-V1.0-java-constants",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800517 "android.hardware.usb-V1.0-java-constants",
518 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800519 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800520 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000521 "android.hardware.vibrator-V1.0-java",
522 "android.hardware.vibrator-V1.1-java",
523 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900524 "android.hardware.vibrator-V1.3-java",
Michael Sund5237962020-11-06 03:28:14 +0000525 "android.system.suspend.control.internal-java",
arangelov1ab61492018-11-22 13:56:50 +0000526 "devicepolicyprotosnano",
Inseob Kim617a7222019-07-30 18:23:26 +0900527
528 "com.android.sysprop.apex",
Nikita Ioffe9c4b572552020-02-06 23:17:17 +0000529 "com.android.sysprop.init",
Alexander Mishkovets77f6bc82020-07-14 19:14:10 +0200530 "com.android.sysprop.localization",
Inseob Kim617a7222019-07-30 18:23:26 +0900531 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800532 ],
Jiyong Park5366ea22019-08-19 15:24:49 +0900533 sdk_version: "core_platform",
534 installable: false,
535}
536
Colin Crossbc2dc312018-10-26 22:34:06 -0700537filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800538 name: "framework-jarjar-rules",
David Su130441b2019-12-14 21:37:20 -0800539 srcs: ["framework-jarjar-rules.txt"],
Steven Moreland19e8d462019-03-08 10:44:22 -0800540}
541
542filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700543 name: "libincident_aidl",
544 srcs: [
Mike Ma643de922019-12-17 10:56:17 -0800545 "core/java/android/os/IIncidentDumpCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700546 "core/java/android/os/IIncidentManager.aidl",
547 "core/java/android/os/IIncidentReportStatusListener.aidl",
548 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700549 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700550}
551
552filegroup {
Michael Wrightc390fbe2018-12-12 19:45:09 +0000553 name: "libvibrator_aidl",
554 srcs: [
555 "core/java/android/os/IExternalVibrationController.aidl",
556 "core/java/android/os/IExternalVibratorService.aidl",
557 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700558 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000559}
560
Chris Ye48dbcaa2020-02-10 13:29:01 -0800561filegroup {
562 name: "libpowermanager_aidl",
563 srcs: [
564 "core/java/android/os/Temperature.aidl",
565 "core/java/android/os/CoolingDevice.aidl",
566 "core/java/android/os/IThermalEventListener.aidl",
567 "core/java/android/os/IThermalStatusListener.aidl",
568 "core/java/android/os/IThermalService.aidl",
569 ],
570 path: "core/java",
571}
572
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100573java_library {
Jiyong Parkc893b462019-10-28 15:33:08 +0900574 name: "framework-minus-apex",
Anton Hansson3e206722020-09-07 14:41:30 +0100575 defaults: ["framework-aidl-export-defaults"],
576 srcs: [
577 ":framework-non-updatable-sources",
Remi NGUYEN VANc15d99e2021-01-28 13:37:03 +0900578 ":framework-connectivity-sources",
Anton Hansson3e206722020-09-07 14:41:30 +0100579 "core/java/**/*.logtags",
580 ],
581 // See comment on framework-atb-backward-compatibility module below
582 exclude_srcs: ["core/java/android/content/pm/AndroidTestBaseUpdater.java"],
583 aidl: {
584 generate_get_transaction_name: true,
585 },
586 dxflags: [
587 "--core-library",
588 "--multi-dex",
589 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900590 installable: true,
Anton Hansson3e206722020-09-07 14:41:30 +0100591 jarjar_rules: ":framework-jarjar-rules",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100592 javac_shard_size: 150,
Anton Hansson3e206722020-09-07 14:41:30 +0100593 plugins: [
594 "view-inspector-annotation-processor",
595 "staledataclass-annotation-processor",
596 ],
atrostb9c34502019-08-05 12:22:18 +0100597 required: [
598 "framework-platform-compat-config",
Anton Hansson3e206722020-09-07 14:41:30 +0100599 // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly.
600 "gps_debug.conf",
Victor Changa4fae272020-10-30 12:14:34 +0000601 "icu4j-platform-compat-config",
Anton Hansson3e206722020-09-07 14:41:30 +0100602 "protolog.conf.json.gz",
atrost86895aa2019-08-19 16:51:15 +0100603 "services-platform-compat-config",
Ivan Chiang3cb1cbd2020-02-18 10:50:10 +0800604 "documents-ui-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100605 ],
Anton Hansson3e206722020-09-07 14:41:30 +0100606 libs: [
607 "app-compat-annotations",
608 "ext",
609 "framework-updatable-stubs-module_libs_api",
610 "unsupportedappusage",
611 ],
612 sdk_version: "core_platform",
Tobias Thierer17d0c592019-11-22 16:33:18 +0000613 static_libs: [
Daulet Zhanguzin59444d52021-01-25 19:43:53 +0000614 "bouncycastle-repackaged-unbundled",
Anton Hansson3e206722020-09-07 14:41:30 +0100615 "framework-internal-utils",
Tobias Thierer82968532019-11-29 19:39:45 +0000616 // If MimeMap ever becomes its own APEX, then this dependency would need to be removed
617 // in favor of an API stubs dependency in java_library "framework" below.
Tobias Thierer17d0c592019-11-22 16:33:18 +0000618 "mimemap",
Chiachang Wangd5726c12020-11-02 16:51:24 +0800619 "modules-utils-os",
Tobias Thierer17d0c592019-11-22 16:33:18 +0000620 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900621 // For backwards compatibility.
622 stem: "framework",
Jiyong Park79242c22019-12-09 14:45:07 +0900623 apex_available: ["//apex_available:platform"],
markchien8cf2a552020-02-14 11:55:48 +0800624 visibility: [
Jiyong Park212d2e82020-01-03 21:07:38 +0900625 "//frameworks/base",
Remi NGUYEN VANc15d99e2021-01-28 13:37:03 +0900626 // TODO: remove when framework-connectivity can build against API
627 "//frameworks/base/packages/Connectivity/framework",
markchien8cf2a552020-02-14 11:55:48 +0800628 // TODO(b/147128803) remove the below lines
Jiyong Park212d2e82020-01-03 21:07:38 +0900629 "//frameworks/base/apex/blobstore/framework",
630 "//frameworks/base/apex/jobscheduler/framework",
markchien8cf2a552020-02-14 11:55:48 +0800631 "//frameworks/base/packages/Tethering/tests/unit",
Baligh Uddinff8ff122020-10-29 02:11:55 +0000632 "//packages/modules/Connectivity/Tethering/tests/unit",
markchien8cf2a552020-02-14 11:55:48 +0800633 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900634}
635
636// This "framework" module is NOT installed to the device. It's
637// "framework-minus-apex" that gets installed to the device. Note that
638// the filename is still framework.jar (via the stem property) for
639// compatibility reason. The purpose of this module is to provide
640// framework APIs (both public and private) for bundled apps.
641// "framework-minus-apex" can't be used for the purpose because 1)
642// many apps have already hardcoded the name "framework" and
643// 2) it lacks API symbols from updatable modules - as it's clear from
644// its suffix "-minus-apex".
645java_library {
646 name: "framework",
647 defaults: ["framework-aidl-export-defaults"],
648 installable: false, // this lib is a build-only library
649 static_libs: [
Malcolm Chenc7991802020-03-16 15:28:35 -0700650 "app-compat-annotations",
Jiyong Parkc893b462019-10-28 15:33:08 +0900651 "framework-minus-apex",
Anton Hansson5f208a22020-03-07 11:40:10 +0000652 "framework-updatable-stubs-module_libs_api",
Jiyong Parkc893b462019-10-28 15:33:08 +0900653 ],
654 sdk_version: "core_platform",
Jiyong Park79242c22019-12-09 14:45:07 +0900655 apex_available: ["//apex_available:platform"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100656}
657
atrostb9c34502019-08-05 12:22:18 +0100658platform_compat_config {
659 name: "framework-platform-compat-config",
Artur Satayev1503d312020-03-25 15:36:55 +0000660 src: ":framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100661}
662
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000663// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000664// android.test.base library has been removed and which provides support for
665// maintaining backwards compatibility for APKs that target pre-P and depend on
666// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
667// specified on the build command line.
668java_library {
669 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000670 installable: true,
atrost1a945502019-11-04 17:03:54 +0000671 libs: ["app-compat-annotations"],
Paul Duffina3b69212018-01-25 09:58:32 +0000672 srcs: [
673 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
674 ],
675}
676
Colin Crosscf3a0b52017-11-16 00:15:28 -0800677genrule {
Muhammad Qureshi1de1df42020-01-27 16:36:45 -0800678 name: "statslog-framework-java-gen",
679 tools: ["stats-log-api-gen"],
680 cmd: "$(location stats-log-api-gen) --java $(out) --module framework" +
Paul Duffinc1309182021-03-19 15:14:58 +0000681 " --javaPackage com.android.internal.util --javaClass FrameworkStatsLog --worksource",
Muhammad Qureshi1de1df42020-01-27 16:36:45 -0800682 out: ["com/android/internal/util/FrameworkStatsLog.java"],
683}
684
Hyunyoung Songa28623b2020-02-06 22:56:21 -0800685java_library {
686 name: "uieventloggerlib",
687 srcs: [
688 "core/java/com/android/internal/logging/UiEvent.java",
689 "core/java/com/android/internal/logging/UiEventLogger.java",
690 "core/java/com/android/internal/logging/UiEventLoggerImpl.java",
691 "core/java/com/android/internal/logging/InstanceId.java",
692 "core/java/com/android/internal/logging/InstanceIdSequence.java",
693 ":statslog-framework-java-gen",
694 ],
695}
696
Colin Crosscf3a0b52017-11-16 00:15:28 -0800697gensrcs {
698 name: "framework-javastream-protos",
699 depfile: true,
700
701 tools: [
702 "aprotoc",
703 "protoc-gen-javastream",
704 "soong_zip",
705 ],
706
Anton Hanssond82b2f72019-11-18 13:34:56 +0000707 cmd: "mkdir -p $(genDir)/$(in) " +
708 "&& $(location aprotoc) " +
709 " --plugin=$(location protoc-gen-javastream) " +
710 " --dependency_out=$(depfile) " +
711 " --javastream_out=$(genDir)/$(in) " +
712 " -Iexternal/protobuf/src " +
713 " -I . " +
714 " $(in) " +
715 "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)",
716
Yi Jin437aa6e2018-01-10 11:34:26 -0800717 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800718 ":ipconnectivity-proto-src",
Jeffrey Huang17df4032020-11-25 13:38:36 -0800719 ":libstats_atom_enum_protos",
Josh Gao1c8dfd42021-01-29 13:40:30 -0800720 ":libtombstone_proto-src",
Yi Jin437aa6e2018-01-10 11:34:26 -0800721 "core/proto/**/*.proto",
722 "libs/incident/**/*.proto",
723 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800724 output_extension: "srcjar",
725}
726
Mike Maa47ad722020-01-28 22:04:20 -0800727gensrcs {
728 name: "framework-cppstream-protos",
729 depfile: true,
730
731 tools: [
732 "aprotoc",
733 "protoc-gen-cppstream",
734 ],
735
736 cmd: "mkdir -p $(genDir) " +
737 "&& $(location aprotoc) " +
738 " --plugin=$(location protoc-gen-cppstream) " +
739 " --dependency_out=$(depfile) " +
740 " --cppstream_out=$(genDir) " +
741 " -Iexternal/protobuf/src " +
742 " -I . " +
743 " $(in)",
744
745 srcs: [
746 ":ipconnectivity-proto-src",
Jeffrey Huang17df4032020-11-25 13:38:36 -0800747 ":libstats_atom_enum_protos",
Mike Maa47ad722020-01-28 22:04:20 -0800748 "core/proto/**/*.proto",
749 "libs/incident/**/*.proto",
750 ],
751
752 output_extension: "proto.h",
753}
754
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900755filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900756 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900757 srcs: [
David Su369c9202020-01-09 18:09:56 -0800758 "core/java/android/annotation/CallbackExecutor.java",
David Su511a8142020-01-09 14:02:21 -0800759 "core/java/android/annotation/CheckResult.java",
David Su77517342020-02-18 18:10:07 -0800760 "core/java/android/annotation/CurrentTimeMillisLong.java",
Roshan Piuseb7edd52020-02-21 07:37:30 -0800761 "core/java/android/annotation/Hide.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900762 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900763 "core/java/android/annotation/IntRange.java",
lesld41a2992020-02-20 17:30:58 +0800764 "core/java/android/annotation/LongDef.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700765 "core/java/android/annotation/NonNull.java",
766 "core/java/android/annotation/Nullable.java",
Remi NGUYEN VAN2d14a4b2020-01-31 15:05:22 +0900767 "core/java/android/annotation/RequiresPermission.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700768 "core/java/android/annotation/SdkConstant.java",
David Su369c9202020-01-09 18:09:56 -0800769 "core/java/android/annotation/StringDef.java",
Anton Hanssonb52bd1c2019-12-06 17:07:28 +0000770 "core/java/android/annotation/SystemApi.java",
David Su369c9202020-01-09 18:09:56 -0800771 "core/java/android/annotation/SystemService.java",
Remi NGUYEN VAN2d14a4b2020-01-31 15:05:22 +0900772 "core/java/android/annotation/TestApi.java",
Jeff Sharkeyf5eebf92020-03-06 14:41:56 -0700773 "core/java/android/annotation/WorkerThread.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900774 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900775 "core/java/com/android/internal/annotations/VisibleForTesting.java",
David Su511a8142020-01-09 14:02:21 -0800776 "core/java/com/android/internal/annotations/Immutable.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100777 ],
Chalard Jean95213512019-01-30 21:04:58 +0900778}
779
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000780java_library {
781 name: "framework-annotations-lib",
Paul Duffinc1309182021-03-19 15:14:58 +0000782 srcs: [":framework-annotations"],
Anton Hansson0a3b7ad2019-12-19 10:17:46 +0000783 sdk_version: "core_current",
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000784}
785
Chalard Jean95213512019-01-30 21:04:58 +0900786filegroup {
evitayane22e47f2019-12-30 16:05:38 -0800787 name: "framework-ike-shared-srcs",
Baligh Uddinb7ec5bb2020-05-27 19:22:36 +0000788 visibility: ["//packages/modules/IPsec"],
evitayane22e47f2019-12-30 16:05:38 -0800789 srcs: [
evitayanbddbfb02020-01-07 21:21:52 -0800790 "core/java/android/annotation/StringDef.java",
evitayane22e47f2019-12-30 16:05:38 -0800791 "core/java/android/net/annotations/PolicyDirection.java",
evitayane9cc4942020-03-03 17:14:47 -0800792 "core/java/com/android/internal/util/HexDump.java",
evitayan0efc7402019-12-20 17:55:57 -0800793 "core/java/com/android/internal/util/IState.java",
794 "core/java/com/android/internal/util/State.java",
795 "core/java/com/android/internal/util/StateMachine.java",
Yan Yana3e954f2020-11-09 00:09:39 -0800796 "services/core/java/com/android/server/vcn/util/PersistableBundleUtils.java",
evitayan996aa2a2019-12-30 11:19:47 -0800797 "telephony/java/android/telephony/Annotation.java",
evitayane22e47f2019-12-30 16:05:38 -0800798 ],
799}
800
801filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900802 name: "framework-networkstack-shared-srcs",
803 srcs: [
804 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900805 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900806 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900807 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900808 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900809 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900810 "core/java/com/android/internal/util/IState.java",
811 "core/java/com/android/internal/util/MessageUtils.java",
812 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900813 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900814 "core/java/com/android/internal/util/State.java",
815 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900816 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900817 "core/java/com/android/internal/util/WakeupMessage.java",
johnson.yeh095b7a02019-12-19 20:30:34 +0800818 "core/java/com/android/internal/util/TokenBucket.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100819 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900820}
821
Roshan Piuseb7edd52020-02-21 07:37:30 -0800822filegroup {
823 name: "framework-services-net-module-wifi-shared-srcs",
824 srcs: [
825 "core/java/android/net/DhcpResults.java",
Roshan Piuseb7edd52020-02-21 07:37:30 -0800826 "core/java/android/util/LocalLog.java",
Roshan Piuseb7edd52020-02-21 07:37:30 -0800827 ],
828}
829
Aaron Huang0353bb92021-01-08 18:32:00 +0800830// keep these files in sync with the package/Tethering/jarjar-rules.txt and
831// package/Connectivity/jarjar-rules.txt for the tethering module and connectivity module.
markchiena6ba54d2019-09-03 15:58:06 +0800832filegroup {
Aaron Huang0353bb92021-01-08 18:32:00 +0800833 name: "framework-connectivity-shared-srcs",
markchiena6ba54d2019-09-03 15:58:06 +0800834 srcs: [
835 "core/java/android/util/LocalLog.java",
Aaron Huang0353bb92021-01-08 18:32:00 +0800836 // This should be android.util.IndentingPrintWriter, but it's not available in all branches.
markchien6d06f6d2019-12-16 20:15:20 +0800837 "core/java/com/android/internal/util/IndentingPrintWriter.java",
838 "core/java/com/android/internal/util/IState.java",
839 "core/java/com/android/internal/util/MessageUtils.java",
markchien6d06f6d2019-12-16 20:15:20 +0800840 "core/java/com/android/internal/util/State.java",
841 "core/java/com/android/internal/util/StateMachine.java",
markchien87d3f7d2020-01-08 20:58:23 +0800842 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Aaron Huang0353bb92021-01-08 18:32:00 +0800843 "core/java/com/android/internal/util/WakeupMessage.java",
markchien6d06f6d2019-12-16 20:15:20 +0800844 ],
845}
846
Colin Crossd8e02252017-10-02 17:14:22 -0700847// Build ext.jar
848// ============================================================
849java_library {
850 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700851 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100852 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700853 static_libs: [
854 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700855 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000856 "rappor",
Colin Crossd8e02252017-10-02 17:14:22 -0700857 ],
858 dxflags: ["--core-library"],
859}
860
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700861// ==== java proto host library ==============================
862java_library_host {
863 name: "platformprotos",
864 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800865 ":ipconnectivity-proto-src",
Jeffrey Huang17df4032020-11-25 13:38:36 -0800866 ":libstats_atom_enum_protos",
Jeffrey Huang5d230a22020-11-24 10:57:06 -0800867 ":libstats_internal_protos",
Baligh Uddin3eab1b092020-12-04 00:40:07 +0000868 ":statsd_internal_protos",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700869 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700870 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700871 "core/proto/**/*.proto",
872 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700873 ],
874 proto: {
Jeffrey Huang5d230a22020-11-24 10:57:06 -0800875 include_dirs: [
876 "external/protobuf/src",
877 "frameworks/proto_logging/stats",
878 ],
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700879 type: "full",
880 },
881 errorprone: {
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100882 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700883 },
884}
885
Colin Cross43214162018-08-20 13:57:24 -0700886// ==== java proto device library (for test only) ==============================
887java_library {
888 name: "platformprotosnano",
889 proto: {
890 type: "nano",
891 output_params: ["store_unknown_fields=true"],
892 include_dirs: ["external/protobuf/src"],
893 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000894 exclude_srcs: [
895 "core/proto/android/privacy.proto",
896 "core/proto/android/section.proto",
897 ],
Anton Hansson0a3b7ad2019-12-19 10:17:46 +0000898 sdk_version: "9",
Colin Cross43214162018-08-20 13:57:24 -0700899 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800900 ":ipconnectivity-proto-src",
Jeffrey Huang17df4032020-11-25 13:38:36 -0800901 ":libstats_atom_enum_protos",
Colin Cross43214162018-08-20 13:57:24 -0700902 "core/proto/**/*.proto",
903 "libs/incident/proto/android/os/**/*.proto",
904 ],
905}
906
907// ==== java proto device library (for test only) ==============================
908java_library {
909 name: "platformprotoslite",
910 proto: {
911 type: "lite",
912 include_dirs: ["external/protobuf/src"],
913 },
914
915 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800916 ":ipconnectivity-proto-src",
Jeffrey Huang17df4032020-11-25 13:38:36 -0800917 ":libstats_atom_enum_protos",
Colin Cross43214162018-08-20 13:57:24 -0700918 "core/proto/**/*.proto",
919 "libs/incident/proto/android/os/**/*.proto",
920 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000921 exclude_srcs: [
922 "core/proto/android/privacy.proto",
923 "core/proto/android/section.proto",
924 ],
Anton Hansson0a3b7ad2019-12-19 10:17:46 +0000925 sdk_version: "core_current",
Colin Cross43214162018-08-20 13:57:24 -0700926 // Protos have lots of MissingOverride and similar.
927 errorprone: {
928 javacflags: ["-XepDisableAllChecks"],
929 },
930}
931
Colin Crossaa0d4352017-05-02 14:14:56 -0700932// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000933cc_defaults {
934 name: "libplatformprotos-defaults",
935
Colin Crossaa0d4352017-05-02 14:14:56 -0700936 proto: {
937 export_proto_headers: true,
Jeffrey Huang17df4032020-11-25 13:38:36 -0800938 include_dirs: [
939 "external/protobuf/src",
940 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700941 },
942
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700943 cflags: [
944 "-Wall",
945 "-Werror",
946 "-Wno-unused-parameter",
947 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800948
949 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800950 ":ipconnectivity-proto-src",
Jeffrey Huang17df4032020-11-25 13:38:36 -0800951 ":libstats_atom_enum_protos",
Joe Onorato62c220b2017-11-18 20:32:56 -0800952 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800953 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000954}
955
956cc_library {
957 name: "libplatformprotos",
958 defaults: ["libplatformprotos-defaults"],
959 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800960
Colin Crossaa0d4352017-05-02 14:14:56 -0700961 target: {
962 host: {
963 proto: {
964 type: "full",
965 },
966 },
967 android: {
968 proto: {
969 type: "lite",
970 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000971 shared_libs: [
972 "libprotobuf-cpp-lite",
973 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700974 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700975 enabled: false,
976 },
977 },
978 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700979}
980
Joe Onorato9bd5db72019-04-03 18:19:43 -0700981// This library is meant for vendor code that needs to output protobuf. It links
982// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
983// binary compatibility.
984cc_library {
985 name: "libplatformprotos-static",
986 defaults: ["libplatformprotos-defaults"],
987 host_supported: false,
988
989 // This is okay because this library is only built as a static library. The C++
990 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
991 // but is not authorized to be used outside of debugging.
992 vendor_available: true,
993
994 target: {
995 android: {
996 proto: {
997 type: "lite",
998 },
999 static_libs: [
1000 "libprotobuf-cpp-lite",
1001 ],
1002 shared: {
1003 enabled: false,
1004 },
1005 },
1006 },
1007}
1008
Joe Onorato99598ee2019-02-11 15:55:13 +00001009// This is the full proto version of libplatformprotos. It may only
1010// be used by test code that is not shipped on the device.
1011cc_library {
1012 name: "libplatformprotos-test",
1013 defaults: ["libplatformprotos-defaults"],
1014 host_supported: false,
1015
1016 target: {
1017 android: {
1018 proto: {
1019 type: "full",
1020 },
1021 shared: {
1022 enabled: false,
1023 },
1024 },
1025 },
1026}
1027
Songchun Fan000b5b52019-12-04 12:17:38 -08001028filegroup {
1029 name: "incremental_aidl",
1030 srcs: [
Alex Buynytskyyf4156792020-04-07 14:26:55 -07001031 "core/java/android/os/incremental/IIncrementalServiceConnector.aidl",
Songchun Fan000b5b52019-12-04 12:17:38 -08001032 "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl",
1033 ],
1034 path: "core/java",
1035}
1036
Songchun Fan0037c3f2019-10-30 15:20:59 -07001037filegroup {
Songchun Fan6dd47b52019-11-29 15:20:18 -08001038 name: "dataloader_aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001039 srcs: [
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001040 "core/java/android/content/pm/DataLoaderParamsParcel.aidl",
Alex Buynytskyy1ecfcec2019-12-17 12:10:41 -08001041 "core/java/android/content/pm/DataLoaderType.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001042 "core/java/android/content/pm/FileSystemControlParcel.aidl",
Songchun Fan6381d612020-02-26 17:59:41 -08001043 "core/java/android/content/pm/IDataLoader.aidl",
1044 "core/java/android/content/pm/IDataLoaderManager.aidl",
1045 "core/java/android/content/pm/InstallationFileParcel.aidl",
1046 "core/java/android/content/pm/InstallationFileLocation.aidl",
Songchun Fan6dd47b52019-11-29 15:20:18 -08001047 "core/java/android/content/pm/IDataLoaderStatusListener.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -08001048 "core/java/android/content/pm/IPackageInstallerSessionFileSystemConnector.aidl",
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001049 ],
1050 path: "core/java",
1051}
1052
1053filegroup {
1054 name: "incremental_manager_aidl",
1055 srcs: [
Alex Buynytskyy716588d2020-02-04 13:42:59 -08001056 "core/java/android/os/incremental/IIncrementalService.aidl",
Yurii Zubrytskyi4a25dfb2020-01-10 11:53:24 -08001057 "core/java/android/os/incremental/IncrementalNewFileParams.aidl",
Alex Buynytskyy8ef61ae2020-05-08 16:18:52 -07001058 "core/java/android/os/incremental/IStorageHealthListener.aidl",
1059 "core/java/android/os/incremental/StorageHealthCheckParams.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -07001060 ],
1061 path: "core/java",
1062}
1063
Songchun Fan000b5b52019-12-04 12:17:38 -08001064aidl_interface {
1065 name: "libincremental_aidl",
Jiyong Park803dc1c2020-04-13 12:55:24 +09001066 unstable: true,
Songchun Fan000b5b52019-12-04 12:17:38 -08001067 srcs: [
1068 ":incremental_aidl",
1069 ],
1070 backend: {
1071 java: {
1072 sdk_version: "28",
1073 },
1074 cpp: {
1075 enabled: true,
1076 },
1077 ndk: {
1078 enabled: true,
1079 },
1080 },
1081}
Joe Onorato99598ee2019-02-11 15:55:13 +00001082
Songchun Fan6dd47b52019-11-29 15:20:18 -08001083aidl_interface {
1084 name: "libdataloader_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001085 unstable: true,
Yi Jin04625ad2017-10-17 18:29:33 -07001086 srcs: [
Songchun Fan6dd47b52019-11-29 15:20:18 -08001087 ":dataloader_aidl",
Yi Jin04625ad2017-10-17 18:29:33 -07001088 ],
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001089 imports: [
1090 "libincremental_aidl",
1091 ],
Songchun Fan0037c3f2019-10-30 15:20:59 -07001092 backend: {
1093 java: {
1094 sdk_version: "28",
1095 },
1096 cpp: {
1097 enabled: true,
1098 },
1099 ndk: {
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001100 enabled: false,
1101 },
1102 },
1103}
Yi Jin04625ad2017-10-17 18:29:33 -07001104
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001105aidl_interface {
1106 name: "libincremental_manager_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +09001107 unstable: true,
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001108 srcs: [
1109 ":incremental_manager_aidl",
1110 ],
1111 imports: [
1112 "libincremental_aidl",
1113 "libdataloader_aidl",
1114 ],
1115 backend: {
1116 java: {
1117 sdk_version: "28",
1118 },
1119 cpp: {
Songchun Fan0037c3f2019-10-30 15:20:59 -07001120 enabled: true,
1121 },
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001122 ndk: {
1123 enabled: false,
1124 },
Songchun Fan0037c3f2019-10-30 15:20:59 -07001125 },
Yi Jin04625ad2017-10-17 18:29:33 -07001126}
1127
Bram Bonnéccfd51a2021-02-24 15:03:42 +01001128// Build Rust bindings for PermissionController. Needed by keystore2.
1129aidl_interface {
1130 name: "android.os.permissions_aidl",
1131 unstable: true,
1132 local_include_dir: "core/java",
1133 srcs: [
1134 "core/java/android/os/IPermissionController.aidl",
1135 ],
1136 backend: {
1137 rust: {
1138 enabled: true,
1139 },
1140 },
1141}
1142
Colin Crossa2b78a72018-03-29 13:31:04 -07001143// TODO(b/77285514): remove this once the last few hidl interfaces have been
1144// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -07001145java_library {
1146 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +01001147 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -07001148
1149 srcs: [
1150 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001151 "core/java/android/annotation/IntDef.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -08001152 "core/java/android/annotation/IntRange.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001153 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -08001154 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001155 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -08001156 "core/java/android/annotation/TestApi.java",
Ytai Ben-Tsvia907efc2019-11-06 09:53:34 -08001157 "core/java/android/os/HidlMemory.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001158 "core/java/android/os/HwBinder.java",
1159 "core/java/android/os/HwBlob.java",
1160 "core/java/android/os/HwParcel.java",
1161 "core/java/android/os/IHwBinder.java",
1162 "core/java/android/os/IHwInterface.java",
1163 "core/java/android/os/DeadObjectException.java",
1164 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -07001165 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001166 "core/java/android/os/RemoteException.java",
1167 "core/java/android/util/AndroidException.java",
1168 ],
Paul Duffinc1309182021-03-19 15:14:58 +00001169 libs: ["unsupportedappusage"],
Steven Morelandeddafe92017-10-02 16:58:41 -07001170
1171 dxflags: ["--core-library"],
1172 installable: false,
1173}
Nan Zhang2db709d2017-11-08 20:48:46 -08001174
1175python_defaults {
1176 name: "base_default",
1177 version: {
1178 py2: {
Nan Zhang2db709d2017-11-08 20:48:46 -08001179 enabled: false,
1180 embedded_launcher: false,
1181 },
Haibo Huang715857d2020-03-05 11:58:47 -08001182 py3: {
1183 enabled: true,
1184 embedded_launcher: true,
1185 },
Nan Zhang2db709d2017-11-08 20:48:46 -08001186 },
1187}
1188
1189python_binary_host {
1190 name: "fontchain_linter",
1191 defaults: ["base_default"],
1192 main: "tools/fonts/fontchain_linter.py",
1193 srcs: [
1194 "tools/fonts/fontchain_linter.py",
1195 ],
1196 libs: [
1197 "fontTools",
1198 ],
1199}
Nan Zhang172875b2018-02-27 11:24:03 -08001200
Nan Zhangaf251302018-08-30 10:59:51 -07001201filegroup {
Insun Kang06b25ae2018-11-20 10:05:44 +09001202 name: "framework-media-annotation-srcs",
1203 srcs: [
Jeff Sharkey40182832019-12-18 14:06:48 -07001204 ":framework-annotations",
Insun Kang06b25ae2018-11-20 10:05:44 +09001205 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001206 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001207 "core/java/android/annotation/DrawableRes.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001208 "core/java/android/annotation/LongDef.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001209 "core/java/android/annotation/StringDef.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001210 ],
1211}
1212
1213filegroup {
1214 name: "framework-mediaprovider-annotation-sources",
1215 srcs: [
1216 ":framework-annotations",
1217 "core/java/android/annotation/BytesLong.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001218 "core/java/android/annotation/CurrentTimeSecondsLong.java",
1219 "core/java/android/annotation/DurationMillisLong.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001220 ],
1221}
1222
Chen Xuc00cf992019-09-05 22:07:42 -07001223// Avoid including Parcelable classes as we don't want to have two copies of
Malcolm Chen58b59a52020-01-14 19:25:13 -08001224// Parcelable cross the libraries. This is used by telephony-common (frameworks/opt/telephony)
1225// and TeleService app (packages/services/Telephony).
Chen Xuc00cf992019-09-05 22:07:42 -07001226filegroup {
Malcolm Chen58b59a52020-01-14 19:25:13 -08001227 name: "framework-telephony-common-shared-srcs",
Chen Xuc00cf992019-09-05 22:07:42 -07001228 srcs: [
1229 "core/java/android/os/RegistrantList.java",
1230 "core/java/android/os/Registrant.java",
1231 "core/java/android/util/LocalLog.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001232 "core/java/android/util/TimeUtils.java",
1233 "core/java/com/android/internal/os/SomeArgs.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001234 "core/java/com/android/internal/util/AsyncChannel.java",
Meng Wang3043dac2020-01-14 14:04:10 -08001235 "core/java/com/android/internal/util/AsyncService.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001236 "core/java/com/android/internal/util/BitwiseInputStream.java",
Michele68370a82019-10-31 11:48:43 -07001237 "core/java/com/android/internal/util/FastXmlSerializer.java",
1238 "core/java/com/android/internal/util/HexDump.java",
Meng Wang8532de92019-12-02 10:42:20 -08001239 "core/java/com/android/internal/util/IState.java",
Michele68370a82019-10-31 11:48:43 -07001240 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001241 "core/java/com/android/internal/util/Preconditions.java",
1242 "core/java/com/android/internal/util/State.java",
1243 "core/java/com/android/internal/util/StateMachine.java",
Michele68370a82019-10-31 11:48:43 -07001244 "core/java/com/android/internal/util/UserIcons.java",
Chen Xuc00cf992019-09-05 22:07:42 -07001245 ],
1246}
Jiyong Park7fb4b182019-12-20 14:35:43 +09001247
Chen Xu4fea79c2019-10-08 18:39:03 -07001248// Avoid including Parcelable classes as we don't want to have two copies of
1249// Parcelable cross the process.
1250filegroup {
1251 name: "framework-cellbroadcast-shared-srcs",
1252 srcs: [
Jordan Liu15a72742019-11-20 13:55:18 -08001253 "core/java/android/os/HandlerExecutor.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001254 "core/java/android/util/LocalLog.java",
Jordan Liu15a72742019-11-20 13:55:18 -08001255 "core/java/com/android/internal/util/IState.java",
1256 "core/java/com/android/internal/util/Preconditions.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001257 "core/java/com/android/internal/util/State.java",
1258 "core/java/com/android/internal/util/StateMachine.java",
1259 ],
atrostce84de02019-10-08 16:16:47 +01001260}
Roshan Pius09de13e2019-10-16 13:16:04 -07001261
1262filegroup {
Jayachandran Ceeffa012019-10-23 18:06:33 -07001263 name: "framework-ims-common-shared-srcs",
1264 srcs: [
Jayachandran Ceeffa012019-10-23 18:06:33 -07001265 "core/java/android/os/RegistrantList.java",
1266 "core/java/android/os/Registrant.java",
1267 "core/java/com/android/internal/os/SomeArgs.java",
1268 "core/java/com/android/internal/util/Preconditions.java",
1269 ],
1270}
1271
David Su511a8142020-01-09 14:02:21 -08001272// utility classes statically linked into framework-wifi and dynamically linked
1273// into wifi-service
1274java_library {
1275 name: "framework-wifi-util-lib",
Anton Hansson5a088e02020-03-31 18:09:01 +01001276 sdk_version: "module_current",
David Su511a8142020-01-09 14:02:21 -08001277 srcs: [
1278 "core/java/android/content/pm/BaseParceledListSlice.java",
1279 "core/java/android/content/pm/ParceledListSlice.java",
David Su369c9202020-01-09 18:09:56 -08001280 "core/java/android/os/HandlerExecutor.java",
David Su511a8142020-01-09 14:02:21 -08001281 "core/java/com/android/internal/util/AsyncChannel.java",
1282 "core/java/com/android/internal/util/AsyncService.java",
1283 "core/java/com/android/internal/util/Protocol.java",
1284 "core/java/com/android/internal/util/Preconditions.java",
David Su369c9202020-01-09 18:09:56 -08001285 "telephony/java/android/telephony/Annotation.java",
David Su298cd362020-01-17 19:02:49 +00001286 ":net-utils-framework-wifi-common-srcs",
David Su511a8142020-01-09 14:02:21 -08001287 ],
1288 libs: [
1289 "framework-annotations-lib",
Remi NGUYEN VANc15d99e2021-01-28 13:37:03 +09001290 "framework-connectivity",
David Su511a8142020-01-09 14:02:21 -08001291 "unsupportedappusage",
David Su511a8142020-01-09 14:02:21 -08001292 ],
David Su57bca312020-04-21 19:49:32 -07001293 visibility: [
1294 "//frameworks/base/wifi",
1295 "//frameworks/base/services/net",
Baligh Uddin6bd6a562020-12-23 22:53:04 +00001296 "//packages/modules/Wifi/framework",
David Su57bca312020-04-21 19:49:32 -07001297 ],
David Su511a8142020-01-09 14:02:21 -08001298}
1299
David Su72f9d632020-02-10 15:58:26 -08001300filegroup {
1301 name: "framework-wifi-util-lib-aidls",
1302 srcs: ["core/java/android/content/pm/ParceledListSlice.aidl"],
1303 path: "core/java",
1304}
1305
David Su511a8142020-01-09 14:02:21 -08001306// utility classes statically linked into wifi-service
Jayachandran Ceeffa012019-10-23 18:06:33 -07001307filegroup {
Roshan Pius62eb61c2019-12-06 13:49:47 -08001308 name: "framework-wifi-service-shared-srcs",
Roshan Pius09de13e2019-10-16 13:16:04 -07001309 srcs: [
Roshan Piusc93cd7a2019-12-09 07:39:41 -08001310 "core/java/android/net/InterfaceConfiguration.java",
Roshan Pius04769a52019-12-04 13:03:47 -08001311 "core/java/android/util/BackupUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001312 "core/java/android/util/Rational.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001313 "core/java/com/android/internal/util/FastXmlSerializer.java",
1314 "core/java/com/android/internal/util/HexDump.java",
1315 "core/java/com/android/internal/util/IState.java",
1316 "core/java/com/android/internal/util/MessageUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001317 "core/java/com/android/internal/util/State.java",
1318 "core/java/com/android/internal/util/StateMachine.java",
1319 "core/java/com/android/internal/util/WakeupMessage.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001320 ],
Baligh Uddin5879a832020-12-24 06:05:52 +00001321 visibility: [
1322 "//frameworks/opt/net/wifi/service",
1323 "//packages/modules/Wifi/service",
1324 ],
Roshan Pius09de13e2019-10-16 13:16:04 -07001325}
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001326
Jiyong Park7fb4b182019-12-20 14:35:43 +09001327// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
1328metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
Jiyong Park7fb4b182019-12-20 14:35:43 +09001329 "--hide-package com.android.server " +
Hayden Gomesc164f6a2020-11-05 16:28:21 -08001330 "--hide-package android.audio.policy.configuration.V7_0 " +
Jiyong Park7fb4b182019-12-20 14:35:43 +09001331 "--error UnhiddenSystemApi " +
1332 "--hide RequiresPermission " +
1333 "--hide CallbackInterface " +
1334 "--hide MissingPermission --hide BroadcastBehavior " +
1335 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
1336 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
Makoto Onuki78216582020-05-26 10:55:53 -07001337 "--error NoSettingsProvider " +
Aurimas Liutikas1f76a5a2019-11-20 17:51:42 -08001338 "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " +
1339 "--api-lint-ignore-prefix android.icu. " +
1340 "--api-lint-ignore-prefix java. " +
1341 "--api-lint-ignore-prefix junit. " +
1342 "--api-lint-ignore-prefix org. "
Jiyong Park7fb4b182019-12-20 14:35:43 +09001343
Anton Hansson77ff72f2021-03-30 10:11:22 +01001344filegroup {
1345 name: "framework-non-updatable-stub-sources",
1346 srcs: [
1347 ":framework-non-updatable-sources",
1348 ":opt-telephony-srcs",
1349 ":opt-net-voip-srcs",
1350 "core/java/**/*.logtags",
1351 "**/package.html",
1352 ],
1353 visibility: ["//visibility:private"],
1354}
1355
Jiyong Park7fb4b182019-12-20 14:35:43 +09001356build = [
1357 "StubLibraries.bp",
1358 "ApiDocs.bp",
1359]