blob: 14a2bff8ad13c1fbbe4b72dd85fe709c3f988b19 [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
38// android.test.mock library. Ideally, the library should use public APIs only,
39// but unfortunately its API signature has some references to these private APIs.
40filegroup {
41 name: "framework-core-sources-for-test-mock",
42 srcs: [
43 "core/java/android/app/IApplicationThread.aidl",
44 "core/java/android/app/IServiceConnection.aidl",
45 "core/java/android/content/IContentProvider.java",
46 "core/java/android/content/pm/IPackageDataObserver.aidl",
47 "core/java/android/content/pm/InstantAppInfo.java",
48 "core/java/android/content/pm/KeySet.java",
49 "core/java/android/content/pm/PackageManager.java",
50 "core/java/android/content/pm/VerifierDeviceIdentity.java",
51 "core/java/android/content/res/Resources.java",
52 "core/java/android/os/storage/VolumeInfo.java",
53 "core/java/android/view/DisplayAdjustments.java",
54 ],
55 path: "core/java",
Jiyong Park673e2982020-01-17 16:14:57 +090056 visibility: ["//frameworks/base/test-mock"],
Jiyong Park00ea0b12019-10-31 20:38:47 +090057}
58
Jiyong Parkb3609312019-08-16 21:17:14 +090059filegroup {
60 name: "framework-drm-sources",
61 srcs: [
62 "drm/java/**/*.java",
63 ],
64 path: "drm/java",
65}
Jiyong Park1cc95662019-08-07 22:45:07 +090066
Jiyong Parkb3609312019-08-16 21:17:14 +090067filegroup {
68 name: "framework-graphics-sources",
69 srcs: [
70 "graphics/java/**/*.java",
71 "graphics/java/**/*.aidl",
72 ],
73 path: "graphics/java",
74}
75
76filegroup {
David Zeuthen045b6de2019-10-29 15:15:18 -040077 name: "framework-identity-sources",
78 srcs: [
79 "identity/java/**/*.java",
80 ],
81 path: "identity/java",
82}
83
84filegroup {
Jiyong Parkb3609312019-08-16 21:17:14 +090085 name: "framework-keystore-sources",
86 srcs: [
87 "keystore/java/**/*.java",
88 "keystore/java/**/*.aidl",
89 ],
90 path: "keystore/java",
91}
92
93filegroup {
94 name: "framework-location-sources",
95 srcs: [
96 "location/java/**/*.java",
97 "location/java/**/*.aidl",
98 ],
99 path: "location/java",
100}
101
102filegroup {
103 name: "framework-lowpan-sources",
104 srcs: [
105 "lowpan/java/**/*.java",
106 "lowpan/java/**/*.aidl",
107 ],
108 path: "lowpan/java",
109}
110
111filegroup {
112 name: "framework-media-sources",
113 srcs: [
114 "media/java/**/*.java",
115 "media/java/**/*.aidl",
116 ],
117 path: "media/java",
118}
119
120filegroup {
121 name: "framework-mca-effect-sources",
122 srcs: [
123 "media/mca/effect/java/**/*.java",
124 ],
125 path: "media/mca/effect/java",
126}
127
128filegroup {
129 name: "framework-mca-filterfw-sources",
130 srcs: [
131 "media/mca/filterfw/java/**/*.java",
132 ],
133 path: "media/mca/filterfw/java",
134}
135
136filegroup {
137 name: "framework-mca-filterpacks-sources",
138 srcs: [
139 "media/mca/filterpacks/java/**/*.java",
140 ],
141 path: "media/mca/filterpacks/java",
142}
143
144filegroup {
Tobias Thierer878c77b2019-08-18 15:19:45 +0100145 name: "framework-mime-sources",
146 srcs: [
147 "mime/java/**/*.java",
148 ],
149 path: "mime/java",
150}
151
152filegroup {
Jiyong Parkb3609312019-08-16 21:17:14 +0900153 name: "framework-opengl-sources",
154 srcs: [
155 "opengl/java/**/*.java",
156 ],
157 path: "opengl/java",
158}
159
160filegroup {
161 name: "framework-rs-sources",
162 srcs: [
163 "rs/java/**/*.java",
164 ],
165 path: "rs/java",
166}
167
168filegroup {
169 name: "framework-sax-sources",
170 srcs: [
171 "sax/java/**/*.java",
172 ],
173 path: "sax/java",
174}
175
176filegroup {
177 name: "framework-telecomm-sources",
178 srcs: [
179 "telecomm/java/**/*.java",
180 "telecomm/java/**/*.aidl",
181 ],
182 path: "telecomm/java",
183}
184
185filegroup {
186 name: "framework-telephony-sources",
187 srcs: [
188 "telephony/java/**/*.java",
189 "telephony/java/**/*.aidl",
190 ],
191 path: "telephony/java",
192}
193
Muhammad Qureshied8bca02020-01-24 16:07:49 -0800194genrule {
195 name: "statslog-telephony-common-java-gen",
196 tools: ["stats-log-api-gen"],
197 cmd: "$(location stats-log-api-gen) --java $(out) --module telephony_common"
198 + " --javaPackage com.android.internal.telephony --javaClass TelephonyCommonStatsLog",
199 out: ["com/android/internal/telephony/TelephonyCommonStatsLog.java"],
200}
201
Jiyong Parkb3609312019-08-16 21:17:14 +0900202filegroup {
Amit Mahajand3551532019-09-23 17:59:57 -0700203 name: "framework-telephony-common-sources",
204 srcs: [
205 "telephony/common/**/*.java",
Muhammad Qureshied8bca02020-01-24 16:07:49 -0800206 ":statslog-telephony-common-java-gen",
Amit Mahajand3551532019-09-23 17:59:57 -0700207 ],
Amit Mahajand3551532019-09-23 17:59:57 -0700208}
209
210filegroup {
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700211 name: "framework-mms-sources",
212 srcs: [
213 "mms/java/**/*.java",
214 "mms/java/**/*.aidl",
215 ],
216 path: "mms/java",
217}
218
219filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900220 name: "framework-non-updatable-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900221 srcs: [
222 // Java/AIDL sources under frameworks/base
Sudheer Shankaf5b36962019-10-04 16:16:13 -0700223 ":framework-blobstore-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900224 ":framework-core-sources",
225 ":framework-drm-sources",
226 ":framework-graphics-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +0900227 ":framework-jobscheduler-sources", // jobscheduler is not a module for R
Jiyong Park20426532019-08-19 15:24:49 +0900228 ":framework-keystore-sources",
David Zeuthen045b6de2019-10-29 15:15:18 -0400229 ":framework-identity-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900230 ":framework-location-sources",
231 ":framework-lowpan-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900232 ":framework-mca-effect-sources",
233 ":framework-mca-filterfw-sources",
234 ":framework-mca-filterpacks-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +0900235 ":framework-media-sources",
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700236 ":framework-mms-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900237 ":framework-opengl-sources",
238 ":framework-rs-sources",
239 ":framework-sax-sources",
240 ":framework-telecomm-sources",
Amit Mahajand3551532019-09-23 17:59:57 -0700241 ":framework-telephony-common-sources",
Malcolm Chenc7991802020-03-16 15:28:35 -0700242 ":framework-telephony-sources",
David Su130441b2019-12-14 21:37:20 -0800243 ":framework-wifi-annotations",
David Su6f646ef2019-12-10 13:33:06 -0800244 ":framework-wifi-non-updatable-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900245 ":PacProcessor-aidl-sources",
246 ":ProxyHandler-aidl-sources",
Aaron Huangc4081b22020-01-13 15:03:35 +0800247 ":net-utils-framework-common-srcs",
Jiyong Parkb3609312019-08-16 21:17:14 +0900248
atrost87488352019-10-10 19:27:31 +0100249 // AIDL from frameworks/base/native/
250 ":platform-compat-native-aidl",
251
Jiyong Park20426532019-08-19 15:24:49 +0900252 // AIDL sources from external directories
David Zeuthen045b6de2019-10-29 15:15:18 -0400253 ":credstore_aidl",
Jiyong Park20426532019-08-19 15:24:49 +0900254 ":dumpstate_aidl",
255 ":framework_native_aidl",
256 ":gatekeeper_aidl",
257 ":gsiservice_aidl",
258 ":incidentcompanion_aidl",
259 ":installd_aidl",
260 ":keystore_aidl",
261 ":libaudioclient_aidl",
262 ":libbinder_aidl",
263 ":libbluetooth-binder-aidl",
264 ":libcamera_client_aidl",
265 ":libcamera_client_framework_aidl",
266 ":libupdate_engine_aidl",
Amy Zhangccdbc4d2020-06-08 21:29:59 -0700267 ":resourcemanager_aidl",
Jiyong Park20426532019-08-19 15:24:49 +0900268 ":storaged_aidl",
269 ":vold_aidl",
Jiyong Park1cc95662019-08-07 22:45:07 +0900270
Jiyong Park20426532019-08-19 15:24:49 +0900271 // For the generated R.java and Manifest.java
272 ":framework-res{.aapt.srcjar}",
273
274 // etc.
275 ":framework-javastream-protos",
Muhammad Qureshi04ec2522020-01-27 16:36:45 -0800276 ":statslog-framework-java-gen", // FrameworkStatsLog.java
Jiyong Park20426532019-08-19 15:24:49 +0900277 ],
278}
Jiyong Park1cc95662019-08-07 22:45:07 +0900279
Jiyong Parkae9972b2019-09-15 20:19:02 +0900280filegroup {
Anton Hanssonb4f35572019-12-02 16:30:22 +0000281 name: "framework-updatable-sources",
282 srcs: [
Jeff Sharkey40182832019-12-18 14:06:48 -0700283 ":framework-mediaprovider-sources",
Hai Zhang82a62272020-01-14 21:56:34 -0800284 ":framework-permission-sources",
Anton Hansson221fe902020-03-07 11:40:10 +0000285 ":framework-sdkextensions-sources",
286 ":framework-statsd-sources",
Anton Hansson221fe902020-03-07 11:40:10 +0000287 ":framework-tethering-srcs",
288 ":framework-wifi-updatable-sources",
289 ":updatable-media-srcs",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000290 ]
291}
292
Anton Hansson221fe902020-03-07 11:40:10 +0000293java_library {
294 name: "framework-updatable-stubs-module_libs_api",
295 static_libs: [
Paul Duffinabebc6a2020-05-31 11:35:50 +0100296 "framework-media.stubs.module_lib",
297 "framework-mediaprovider.stubs.module_lib",
298 "framework-permission.stubs.module_lib",
299 "framework-sdkextensions.stubs.module_lib",
300 "framework-statsd.stubs.module_lib",
301 "framework-tethering.stubs.module_lib",
302 "framework-wifi.stubs.module_lib",
Anton Hansson221fe902020-03-07 11:40:10 +0000303 ],
304 sdk_version: "module_current",
305 visibility: [":__pkg__"],
306}
307
Anton Hanssonb4f35572019-12-02 16:30:22 +0000308filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900309 name: "framework-all-sources",
310 srcs: [
Tobias Thiererc0c06082019-11-22 16:33:18 +0000311 ":framework-mime-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900312 ":framework-non-updatable-sources",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000313 ":framework-updatable-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900314 ],
315}
316
Jiyong Park392729f2020-01-17 16:32:53 +0900317// AIDL files under these paths are mixture of public and private ones.
318// They shouldn't be exported across module boundaries.
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100319java_defaults {
Makoto Onuki62242c42019-08-05 12:54:20 -0700320 name: "framework-aidl-export-defaults",
Makoto Onuki62242c42019-08-05 12:54:20 -0700321 aidl: {
Jiyong Parkb3609312019-08-16 21:17:14 +0900322 export_include_dirs: [
323 "core/java",
324 "drm/java",
325 "graphics/java",
David Zeuthen045b6de2019-10-29 15:15:18 -0400326 "identity/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900327 "keystore/java",
328 "location/java",
329 "lowpan/java",
330 "media/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900331 "media/mca/effect/java",
332 "media/mca/filterfw/java",
333 "media/mca/filterpacks/java",
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700334 "mms/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900335 "opengl/java",
336 "rs/java",
337 "sax/java",
338 "telecomm/java",
Anton Hansson221fe902020-03-07 11:40:10 +0000339
Sungsoo Lim895f4f62020-04-08 11:21:36 +0900340 "apex/media/aidl/stable",
Anton Hansson221fe902020-03-07 11:40:10 +0000341 // TODO(b/147699819): remove this
342 "telephony/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900343 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700344 },
345}
346
Jiyong Park20426532019-08-19 15:24:49 +0900347// Collection of classes that are generated from non-Java files that are not listed in
348// framework_srcs. These have no or very limited dependency to the framework.
349java_library {
350 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800351 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100352 "apex_aidl_interface-java",
Kalesh Singh759af322019-06-19 12:17:43 -0700353 "suspend_control_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800354 "framework-protos",
Peiyong Lin9ca1dd82019-01-12 17:44:29 -0800355 "game-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800356 "android.hidl.base-V1.0-java",
357 "android.hardware.cas-V1.0-java",
Henry Fang43cab922019-12-27 16:50:20 -0800358 "android.hardware.cas-V1.1-java",
359 "android.hardware.cas-V1.2-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800360 "android.hardware.contexthub-V1.0-java",
Anthony Stange521a9052020-02-07 18:45:47 -0500361 "android.hardware.contexthub-V1.1-java",
Yu-Han Yang9fe06dd2019-11-18 16:23:31 -0800362 "android.hardware.gnss-V1.0-java",
Yu-Han Yangad03c472020-01-14 15:31:01 -0800363 "android.hardware.gnss-V2.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800364 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800365 "android.hardware.radio-V1.0-java",
366 "android.hardware.radio-V1.1-java",
367 "android.hardware.radio-V1.2-java",
368 "android.hardware.radio-V1.3-java",
369 "android.hardware.radio-V1.4-java",
Sarah Chin21e9c632019-11-05 13:30:10 -0800370 "android.hardware.radio-V1.5-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800371 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800372 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700373 "android.hardware.thermal-V1.1-java",
374 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800375 "android.hardware.tv.input-V1.0-java-constants",
shubang7e849b02019-10-18 19:36:25 -0700376 "android.hardware.tv.tuner-V1.0-java-constants",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800377 "android.hardware.usb-V1.0-java-constants",
378 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800379 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800380 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000381 "android.hardware.vibrator-V1.0-java",
382 "android.hardware.vibrator-V1.1-java",
383 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900384 "android.hardware.vibrator-V1.3-java",
arangelov1ab61492018-11-22 13:56:50 +0000385 "devicepolicyprotosnano",
Inseob Kim4fe9f0f2019-07-30 18:23:26 +0900386
387 "com.android.sysprop.apex",
Nikita Ioffe779d6be2020-02-06 23:17:17 +0000388 "com.android.sysprop.init",
Inseob Kim4fe9f0f2019-07-30 18:23:26 +0900389 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800390 ],
Jiyong Park20426532019-08-19 15:24:49 +0900391 sdk_version: "core_platform",
392 installable: false,
393}
394
395java_defaults {
396 name: "framework-defaults",
397 defaults: ["framework-aidl-export-defaults"],
398 installable: true,
399
Jiyong Park20426532019-08-19 15:24:49 +0900400 aidl: {
401 generate_get_transaction_name: true,
402 },
403
Jiyong Parkae9972b2019-09-15 20:19:02 +0900404 srcs: ["core/java/**/*.logtags"],
405
Jiyong Park20426532019-08-19 15:24:49 +0900406 exclude_srcs: [
407 // See comment on framework-atb-backward-compatibility module below
Winson5e0a1d52020-01-24 12:00:33 -0800408 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
Jiyong Park20426532019-08-19 15:24:49 +0900409 ],
410
411 sdk_version: "core_platform",
412 libs: [
Artur Satayev6aa25ec2019-12-11 16:33:22 +0000413 "app-compat-annotations",
Jiyong Park20426532019-08-19 15:24:49 +0900414 "ext",
Artur Satayev6aa25ec2019-12-11 16:33:22 +0000415 "unsupportedappusage",
Jiyong Park20426532019-08-19 15:24:49 +0900416 ],
417
418 jarjar_rules: ":framework-jarjar-rules",
419
Tobias Thierer878c77b2019-08-18 15:19:45 +0100420 static_libs: [
421 "framework-internal-utils",
Tobias Thierer878c77b2019-08-18 15:19:45 +0100422 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800423
Colin Crosscf3a0b52017-11-16 00:15:28 -0800424 dxflags: [
425 "--core-library",
426 "--multi-dex",
427 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100428
Eugene Susla3b2fe612019-08-06 18:47:14 -0700429 plugins: [
430 "view-inspector-annotation-processor",
431 "staledataclass-annotation-processor",
432 ],
Jiyong Park392729f2020-01-17 16:32:53 +0900433
434 required: [
435 // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly.
436 "gps_debug.conf",
437 "protolog.conf.json.gz",
438 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100439}
440
Colin Crossbc2dc312018-10-26 22:34:06 -0700441filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800442 name: "framework-jarjar-rules",
David Su130441b2019-12-14 21:37:20 -0800443 srcs: ["framework-jarjar-rules.txt"],
Steven Moreland19e8d462019-03-08 10:44:22 -0800444}
445
446filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700447 name: "libincident_aidl",
448 srcs: [
Mike Ma643de922019-12-17 10:56:17 -0800449 "core/java/android/os/IIncidentDumpCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700450 "core/java/android/os/IIncidentManager.aidl",
451 "core/java/android/os/IIncidentReportStatusListener.aidl",
452 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700453 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700454}
455
456filegroup {
Michael Wrightc390fbe2018-12-12 19:45:09 +0000457 name: "libvibrator_aidl",
458 srcs: [
459 "core/java/android/os/IExternalVibrationController.aidl",
460 "core/java/android/os/IExternalVibratorService.aidl",
461 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700462 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000463}
464
Chris Ye48dbcaa2020-02-10 13:29:01 -0800465filegroup {
466 name: "libpowermanager_aidl",
467 srcs: [
468 "core/java/android/os/Temperature.aidl",
469 "core/java/android/os/CoolingDevice.aidl",
470 "core/java/android/os/IThermalEventListener.aidl",
471 "core/java/android/os/IThermalStatusListener.aidl",
472 "core/java/android/os/IThermalService.aidl",
473 ],
474 path: "core/java",
475}
476
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100477java_library {
Makoto Onuki62242c42019-08-05 12:54:20 -0700478 name: "framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100479 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900480 srcs: [":framework-non-updatable-sources"],
Makoto Onuki62242c42019-08-05 12:54:20 -0700481 installable: true,
Jiyong Park911cd4f2019-10-21 14:35:14 +0900482 javac_shard_size: 150,
atrostaec9bc12019-08-16 18:14:09 +0100483 required: [
484 "framework-platform-compat-config",
485 "libcore-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100486 "services-platform-compat-config",
Ivan Chiang3cb1cbd2020-02-18 10:50:10 +0800487 "documents-ui-compat-config",
atrostaec9bc12019-08-16 18:14:09 +0100488 ],
Anton Hansson92d79fd2020-03-20 09:12:52 +0000489 libs: ["framework-updatable-stubs-module_libs_api"],
Tobias Thiererc0c06082019-11-22 16:33:18 +0000490 static_libs: [
Tobias Thierer82968532019-11-29 19:39:45 +0000491 // If MimeMap ever becomes its own APEX, then this dependency would need to be removed
492 // in favor of an API stubs dependency in java_library "framework" below.
Tobias Thiererc0c06082019-11-22 16:33:18 +0000493 "mimemap",
494 ],
Jiyong Park911cd4f2019-10-21 14:35:14 +0900495 // For backwards compatibility.
496 stem: "framework",
Jiyong Park352f9e22019-12-09 14:45:07 +0900497 apex_available: ["//apex_available:platform"],
Jiyong Park212d2e82020-01-03 21:07:38 +0900498 visibility: [
499 "//frameworks/base",
Jiyong Park634819c2020-02-04 21:20:02 +0900500 // TODO(b/147128803) remove the below lines
Jiyong Park212d2e82020-01-03 21:07:38 +0900501 "//frameworks/base/apex/blobstore/framework",
502 "//frameworks/base/apex/jobscheduler/framework",
markchien2c153702020-02-06 19:23:26 +0800503 "//frameworks/base/packages/Tethering/tests/unit",
Jiyong Park212d2e82020-01-03 21:07:38 +0900504 ],
Jiyong Park911cd4f2019-10-21 14:35:14 +0900505}
506
507// This "framework" module is NOT installed to the device. It's
508// "framework-minus-apex" that gets installed to the device. Note that
509// the filename is still framework.jar (via the stem property) for
510// compatibility reason. The purpose of this module is to provide
511// framework APIs (both public and private) for bundled apps.
512// "framework-minus-apex" can't be used for the purpose because 1)
513// many apps have already hardcoded the name "framework" and
514// 2) it lacks API symbols from updatable modules - as it's clear from
515// its suffix "-minus-apex".
516java_library {
517 name: "framework",
518 defaults: ["framework-aidl-export-defaults"],
519 installable: false, // this lib is a build-only library
520 static_libs: [
Malcolm Chenc7991802020-03-16 15:28:35 -0700521 "app-compat-annotations",
Jiyong Park911cd4f2019-10-21 14:35:14 +0900522 "framework-minus-apex",
Anton Hansson221fe902020-03-07 11:40:10 +0000523 "framework-updatable-stubs-module_libs_api",
Jiyong Park911cd4f2019-10-21 14:35:14 +0900524 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700525 sdk_version: "core_platform",
Jiyong Park352f9e22019-12-09 14:45:07 +0900526 apex_available: ["//apex_available:platform"],
Makoto Onuki62242c42019-08-05 12:54:20 -0700527}
528
529java_library {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900530 name: "framework-all",
531 defaults: ["framework-defaults"],
532 srcs: [":framework-all-sources"],
533 installable: false,
David Su369c9202020-01-09 18:09:56 -0800534 static_libs: [
Santiago Seifert5b86f832020-01-27 19:42:27 +0000535 "exoplayer2-extractor",
David Su369c9202020-01-09 18:09:56 -0800536 "android.hardware.wifi-V1.0-java-constants",
evitayan73e07ac2020-06-24 22:19:12 -0700537 // Additional dependencies needed to build the ike API classes.
538 "ike-internals",
Alexander Dorokhine0e8fa4e2020-01-13 20:22:20 -0800539 ],
Jiyong Park352f9e22019-12-09 14:45:07 +0900540 apex_available: ["//apex_available:platform"],
Anton Hanssona1fb6f52020-02-21 11:23:20 +0000541 visibility: [
542 // DO NOT ADD ANY MORE ENTRIES TO THIS LIST
543 "//external/robolectric-shadows:__subpackages__",
Anton Hansson92d79fd2020-03-20 09:12:52 +0000544 "//frameworks/base",
Anton Hanssona1fb6f52020-02-21 11:23:20 +0000545 "//frameworks/layoutlib:__subpackages__",
Anton Hanssona1fb6f52020-02-21 11:23:20 +0000546 ],
Jiyong Park97183492019-11-14 03:07:36 +0000547}
548
atrostb9c34502019-08-05 12:22:18 +0100549platform_compat_config {
550 name: "framework-platform-compat-config",
Artur Satayevf9172bd2020-03-25 15:36:55 +0000551 src: ":framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100552}
553
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000554// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000555// android.test.base library has been removed and which provides support for
556// maintaining backwards compatibility for APKs that target pre-P and depend on
557// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
558// specified on the build command line.
559java_library {
560 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000561 installable: true,
atrost1a945502019-11-04 17:03:54 +0000562 libs: ["app-compat-annotations"],
Paul Duffina3b69212018-01-25 09:58:32 +0000563 srcs: [
Winson5e0a1d52020-01-24 12:00:33 -0800564 "core/java/android/content/pm/AndroidTestBaseUpdater.java",
Paul Duffina3b69212018-01-25 09:58:32 +0000565 ],
566}
567
Colin Crosscf3a0b52017-11-16 00:15:28 -0800568genrule {
Muhammad Qureshi04ec2522020-01-27 16:36:45 -0800569 name: "statslog-framework-java-gen",
570 tools: ["stats-log-api-gen"],
571 cmd: "$(location stats-log-api-gen) --java $(out) --module framework" +
572 " --javaPackage com.android.internal.util --javaClass FrameworkStatsLog --worksource",
573 out: ["com/android/internal/util/FrameworkStatsLog.java"],
574}
575
Hyunyoung Songa28623b2020-02-06 22:56:21 -0800576java_library {
577 name: "uieventloggerlib",
578 srcs: [
579 "core/java/com/android/internal/logging/UiEvent.java",
580 "core/java/com/android/internal/logging/UiEventLogger.java",
581 "core/java/com/android/internal/logging/UiEventLoggerImpl.java",
582 "core/java/com/android/internal/logging/InstanceId.java",
583 "core/java/com/android/internal/logging/InstanceIdSequence.java",
584 ":statslog-framework-java-gen",
585 ],
586}
587
Colin Crosscf3a0b52017-11-16 00:15:28 -0800588gensrcs {
589 name: "framework-javastream-protos",
590 depfile: true,
591
592 tools: [
593 "aprotoc",
594 "protoc-gen-javastream",
595 "soong_zip",
596 ],
597
Anton Hanssond82b2f72019-11-18 13:34:56 +0000598 cmd: "mkdir -p $(genDir)/$(in) " +
599 "&& $(location aprotoc) " +
600 " --plugin=$(location protoc-gen-javastream) " +
601 " --dependency_out=$(depfile) " +
602 " --javastream_out=$(genDir)/$(in) " +
603 " -Iexternal/protobuf/src " +
604 " -I . " +
605 " $(in) " +
606 "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)",
607
Yi Jin437aa6e2018-01-10 11:34:26 -0800608 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800609 ":ipconnectivity-proto-src",
Yi Jin437aa6e2018-01-10 11:34:26 -0800610 "core/proto/**/*.proto",
611 "libs/incident/**/*.proto",
612 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800613 output_extension: "srcjar",
614}
615
Mike Maa47ad722020-01-28 22:04:20 -0800616gensrcs {
617 name: "framework-cppstream-protos",
618 depfile: true,
619
620 tools: [
621 "aprotoc",
622 "protoc-gen-cppstream",
623 ],
624
625 cmd: "mkdir -p $(genDir) " +
626 "&& $(location aprotoc) " +
627 " --plugin=$(location protoc-gen-cppstream) " +
628 " --dependency_out=$(depfile) " +
629 " --cppstream_out=$(genDir) " +
630 " -Iexternal/protobuf/src " +
631 " -I . " +
632 " $(in)",
633
634 srcs: [
635 ":ipconnectivity-proto-src",
636 "core/proto/**/*.proto",
637 "libs/incident/**/*.proto",
638 ],
639
640 output_extension: "proto.h",
641}
642
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900643filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900644 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900645 srcs: [
David Su369c9202020-01-09 18:09:56 -0800646 "core/java/android/annotation/CallbackExecutor.java",
David Su511a8142020-01-09 14:02:21 -0800647 "core/java/android/annotation/CheckResult.java",
David Su77517342020-02-18 18:10:07 -0800648 "core/java/android/annotation/CurrentTimeMillisLong.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800649 "core/java/android/annotation/Hide.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900650 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900651 "core/java/android/annotation/IntRange.java",
lesld41a2992020-02-20 17:30:58 +0800652 "core/java/android/annotation/LongDef.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700653 "core/java/android/annotation/NonNull.java",
654 "core/java/android/annotation/Nullable.java",
655 "core/java/android/annotation/RequiresPermission.java",
656 "core/java/android/annotation/SdkConstant.java",
David Su369c9202020-01-09 18:09:56 -0800657 "core/java/android/annotation/StringDef.java",
Anton Hanssondc1e99b2019-12-06 17:07:28 +0000658 "core/java/android/annotation/SystemApi.java",
David Su369c9202020-01-09 18:09:56 -0800659 "core/java/android/annotation/SystemService.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700660 "core/java/android/annotation/TestApi.java",
Jeff Sharkeyf5eebf92020-03-06 14:41:56 -0700661 "core/java/android/annotation/WorkerThread.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900662 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900663 "core/java/com/android/internal/annotations/VisibleForTesting.java",
David Su511a8142020-01-09 14:02:21 -0800664 "core/java/com/android/internal/annotations/Immutable.java",
Tobias Thiererbc050342019-05-23 16:20:12 +0100665 ],
Chalard Jean95213512019-01-30 21:04:58 +0900666}
667
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000668java_library {
669 name: "framework-annotations-lib",
670 srcs: [ ":framework-annotations" ],
Anton Hansson791551a2019-12-19 10:17:46 +0000671 sdk_version: "core_current",
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000672}
673
Chalard Jean95213512019-01-30 21:04:58 +0900674filegroup {
evitayane22e47f2019-12-30 16:05:38 -0800675 name: "framework-ike-shared-srcs",
Baligh Uddinf1613ef2020-05-27 23:31:13 +0000676 visibility: ["//packages/modules/IPsec"],
evitayane22e47f2019-12-30 16:05:38 -0800677 srcs: [
evitayanbddbfb02020-01-07 21:21:52 -0800678 "core/java/android/annotation/StringDef.java",
evitayane22e47f2019-12-30 16:05:38 -0800679 "core/java/android/net/annotations/PolicyDirection.java",
Automerger Merge Worker0ad9c812020-03-24 18:55:38 +0000680 "core/java/com/android/internal/util/HexDump.java",
evitayan0efc7402019-12-20 17:55:57 -0800681 "core/java/com/android/internal/util/IState.java",
682 "core/java/com/android/internal/util/State.java",
683 "core/java/com/android/internal/util/StateMachine.java",
evitayan996aa2a2019-12-30 11:19:47 -0800684 "telephony/java/android/telephony/Annotation.java",
evitayane22e47f2019-12-30 16:05:38 -0800685 ],
686}
687
688filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900689 name: "framework-networkstack-shared-srcs",
690 srcs: [
691 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900692 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900693 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900694 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900695 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900696 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900697 "core/java/com/android/internal/util/IState.java",
698 "core/java/com/android/internal/util/MessageUtils.java",
699 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900700 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900701 "core/java/com/android/internal/util/State.java",
702 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900703 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900704 "core/java/com/android/internal/util/WakeupMessage.java",
johnson.yeh095b7a02019-12-19 20:30:34 +0800705 "core/java/com/android/internal/util/TokenBucket.java",
Tobias Thiererbc050342019-05-23 16:20:12 +0100706 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900707}
708
Roshan Piusb6361f92020-02-21 07:37:30 -0800709filegroup {
710 name: "framework-services-net-module-wifi-shared-srcs",
711 srcs: [
712 "core/java/android/net/DhcpResults.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800713 "core/java/android/net/util/IpUtils.java",
714 "core/java/android/util/LocalLog.java",
Roshan Piusb6361f92020-02-21 07:37:30 -0800715 ],
716}
717
markchienae8aa642019-12-16 20:15:20 +0800718// keep these files in sync with the package/Tethering/jarjar-rules.txt for the tethering module.
markchiena6ba54d2019-09-03 15:58:06 +0800719filegroup {
720 name: "framework-tethering-shared-srcs",
721 srcs: [
722 "core/java/android/util/LocalLog.java",
markchienae8aa642019-12-16 20:15:20 +0800723 "core/java/com/android/internal/util/IndentingPrintWriter.java",
724 "core/java/com/android/internal/util/IState.java",
725 "core/java/com/android/internal/util/MessageUtils.java",
markchienae8aa642019-12-16 20:15:20 +0800726 "core/java/com/android/internal/util/State.java",
727 "core/java/com/android/internal/util/StateMachine.java",
markchien87d3f7d2020-01-08 20:58:23 +0800728 "core/java/com/android/internal/util/TrafficStatsConstants.java",
markchienae8aa642019-12-16 20:15:20 +0800729 ],
730}
731
Colin Crossd8e02252017-10-02 17:14:22 -0700732// Build ext.jar
733// ============================================================
734java_library {
735 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700736 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100737 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700738 static_libs: [
739 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700740 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000741 "rappor",
Colin Crossd8e02252017-10-02 17:14:22 -0700742 ],
743 dxflags: ["--core-library"],
744}
745
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700746// ==== java proto host library ==============================
747java_library_host {
748 name: "platformprotos",
749 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800750 ":ipconnectivity-proto-src",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700751 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700752 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700753 "core/proto/**/*.proto",
754 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700755 ],
756 proto: {
757 include_dirs: ["external/protobuf/src"],
758 type: "full",
759 },
760 errorprone: {
Tobias Thiererbc050342019-05-23 16:20:12 +0100761 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700762 },
763}
764
Colin Cross43214162018-08-20 13:57:24 -0700765// ==== java proto device library (for test only) ==============================
766java_library {
767 name: "platformprotosnano",
768 proto: {
769 type: "nano",
770 output_params: ["store_unknown_fields=true"],
771 include_dirs: ["external/protobuf/src"],
772 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000773 exclude_srcs: [
774 "core/proto/android/privacy.proto",
775 "core/proto/android/section.proto",
776 ],
Anton Hansson791551a2019-12-19 10:17:46 +0000777 sdk_version: "9",
Colin Cross43214162018-08-20 13:57:24 -0700778 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800779 ":ipconnectivity-proto-src",
Colin Cross43214162018-08-20 13:57:24 -0700780 "core/proto/**/*.proto",
781 "libs/incident/proto/android/os/**/*.proto",
782 ],
783}
784
785// ==== java proto device library (for test only) ==============================
786java_library {
787 name: "platformprotoslite",
788 proto: {
789 type: "lite",
790 include_dirs: ["external/protobuf/src"],
791 },
792
793 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800794 ":ipconnectivity-proto-src",
Colin Cross43214162018-08-20 13:57:24 -0700795 "core/proto/**/*.proto",
796 "libs/incident/proto/android/os/**/*.proto",
797 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000798 exclude_srcs: [
799 "core/proto/android/privacy.proto",
800 "core/proto/android/section.proto",
801 ],
Anton Hansson791551a2019-12-19 10:17:46 +0000802 sdk_version: "core_current",
Colin Cross43214162018-08-20 13:57:24 -0700803 // Protos have lots of MissingOverride and similar.
804 errorprone: {
805 javacflags: ["-XepDisableAllChecks"],
806 },
807}
808
Colin Crossaa0d4352017-05-02 14:14:56 -0700809// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000810cc_defaults {
811 name: "libplatformprotos-defaults",
812
Colin Crossaa0d4352017-05-02 14:14:56 -0700813 proto: {
814 export_proto_headers: true,
815 include_dirs: ["external/protobuf/src"],
816 },
817
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700818 cflags: [
819 "-Wall",
820 "-Werror",
821 "-Wno-unused-parameter",
822 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800823
824 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800825 ":ipconnectivity-proto-src",
Joe Onorato62c220b2017-11-18 20:32:56 -0800826 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800827 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000828}
829
830cc_library {
831 name: "libplatformprotos",
832 defaults: ["libplatformprotos-defaults"],
833 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800834
Colin Crossaa0d4352017-05-02 14:14:56 -0700835 target: {
836 host: {
837 proto: {
838 type: "full",
839 },
840 },
841 android: {
842 proto: {
843 type: "lite",
844 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000845 shared_libs: [
846 "libprotobuf-cpp-lite",
847 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700848 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700849 enabled: false,
850 },
851 },
852 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700853}
854
Joe Onorato9bd5db72019-04-03 18:19:43 -0700855// This library is meant for vendor code that needs to output protobuf. It links
856// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
857// binary compatibility.
858cc_library {
859 name: "libplatformprotos-static",
860 defaults: ["libplatformprotos-defaults"],
861 host_supported: false,
862
863 // This is okay because this library is only built as a static library. The C++
864 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
865 // but is not authorized to be used outside of debugging.
866 vendor_available: true,
867
868 target: {
869 android: {
870 proto: {
871 type: "lite",
872 },
873 static_libs: [
874 "libprotobuf-cpp-lite",
875 ],
876 shared: {
877 enabled: false,
878 },
879 },
880 },
881}
882
883
Joe Onorato99598ee2019-02-11 15:55:13 +0000884// This is the full proto version of libplatformprotos. It may only
885// be used by test code that is not shipped on the device.
886cc_library {
887 name: "libplatformprotos-test",
888 defaults: ["libplatformprotos-defaults"],
889 host_supported: false,
890
891 target: {
892 android: {
893 proto: {
894 type: "full",
895 },
896 shared: {
897 enabled: false,
898 },
899 },
900 },
901}
902
Songchun Fan0037c3f2019-10-30 15:20:59 -0700903filegroup {
904 name: "incremental_aidl",
905 srcs: [
Alex Buynytskyyf4156792020-04-07 14:26:55 -0700906 "core/java/android/os/incremental/IIncrementalServiceConnector.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -0700907 "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -0700908 ],
909 path: "core/java",
910}
911
912filegroup {
Songchun Fan6dd47b52019-11-29 15:20:18 -0800913 name: "dataloader_aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -0700914 srcs: [
Alex Buynytskyyea14d192019-12-13 15:42:18 -0800915 "core/java/android/content/pm/DataLoaderParamsParcel.aidl",
Alex Buynytskyy1ecfcec2019-12-17 12:10:41 -0800916 "core/java/android/content/pm/DataLoaderType.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -0800917 "core/java/android/content/pm/FileSystemControlParcel.aidl",
Songchun Fan6381d612020-02-26 17:59:41 -0800918 "core/java/android/content/pm/IDataLoader.aidl",
919 "core/java/android/content/pm/IDataLoaderManager.aidl",
920 "core/java/android/content/pm/InstallationFileParcel.aidl",
921 "core/java/android/content/pm/InstallationFileLocation.aidl",
Songchun Fan6dd47b52019-11-29 15:20:18 -0800922 "core/java/android/content/pm/IDataLoaderStatusListener.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -0800923 "core/java/android/content/pm/IPackageInstallerSessionFileSystemConnector.aidl",
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -0800924 ],
925 path: "core/java",
926}
927
928filegroup {
929 name: "incremental_manager_aidl",
930 srcs: [
Alex Buynytskyy716588d2020-02-04 13:42:59 -0800931 "core/java/android/os/incremental/IIncrementalService.aidl",
Yurii Zubrytskyi4a25dfb2020-01-10 11:53:24 -0800932 "core/java/android/os/incremental/IncrementalNewFileParams.aidl",
Alex Buynytskyy8ef61ae2020-05-08 16:18:52 -0700933 "core/java/android/os/incremental/IStorageHealthListener.aidl",
934 "core/java/android/os/incremental/StorageHealthCheckParams.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -0700935 ],
936 path: "core/java",
937}
938
939aidl_interface {
940 name: "libincremental_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +0900941 unstable: true,
Songchun Fan0037c3f2019-10-30 15:20:59 -0700942 srcs: [
943 ":incremental_aidl",
Songchun Fan6dd47b52019-11-29 15:20:18 -0800944 ],
Songchun Fan6dd47b52019-11-29 15:20:18 -0800945 backend: {
946 java: {
947 sdk_version: "28",
948 },
949 cpp: {
950 enabled: true,
951 },
952 ndk: {
953 enabled: true,
954 },
955 },
956}
957
958aidl_interface {
959 name: "libdataloader_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +0900960 unstable: true,
Songchun Fan6dd47b52019-11-29 15:20:18 -0800961 srcs: [
962 ":dataloader_aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -0700963 ],
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -0800964 imports: [
965 "libincremental_aidl",
966 ],
Songchun Fan0037c3f2019-10-30 15:20:59 -0700967 backend: {
968 java: {
969 sdk_version: "28",
970 },
971 cpp: {
972 enabled: true,
973 },
974 ndk: {
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -0800975 enabled: false,
976 },
977 },
978}
979
980aidl_interface {
981 name: "libincremental_manager_aidl",
Jiyong Parkdb589dd2020-04-13 12:55:24 +0900982 unstable: true,
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -0800983 srcs: [
984 ":incremental_manager_aidl",
985 ],
986 imports: [
987 "libincremental_aidl",
988 "libdataloader_aidl",
989 ],
990 backend: {
991 java: {
992 sdk_version: "28",
993 },
994 cpp: {
Songchun Fan0037c3f2019-10-30 15:20:59 -0700995 enabled: true,
996 },
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -0800997 ndk: {
998 enabled: false,
999 },
Songchun Fan0037c3f2019-10-30 15:20:59 -07001000 },
Songchun Fan0037c3f2019-10-30 15:20:59 -07001001}
Joe Onorato99598ee2019-02-11 15:55:13 +00001002
Colin Crossa2b78a72018-03-29 13:31:04 -07001003// TODO(b/77285514): remove this once the last few hidl interfaces have been
1004// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -07001005java_library {
1006 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +01001007 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -07001008
1009 srcs: [
1010 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001011 "core/java/android/annotation/IntDef.java",
Ytai Ben-Tsvi4659e182019-11-06 09:53:34 -08001012 "core/java/android/annotation/IntRange.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001013 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -08001014 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001015 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -08001016 "core/java/android/annotation/TestApi.java",
Ytai Ben-Tsvi4659e182019-11-06 09:53:34 -08001017 "core/java/android/os/HidlMemory.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001018 "core/java/android/os/HwBinder.java",
1019 "core/java/android/os/HwBlob.java",
1020 "core/java/android/os/HwParcel.java",
1021 "core/java/android/os/IHwBinder.java",
1022 "core/java/android/os/IHwInterface.java",
1023 "core/java/android/os/DeadObjectException.java",
1024 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -07001025 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001026 "core/java/android/os/RemoteException.java",
1027 "core/java/android/util/AndroidException.java",
1028 ],
Artur Satayevafdb23a2019-12-10 17:47:53 +00001029 libs: [ "unsupportedappusage" ],
Steven Morelandeddafe92017-10-02 16:58:41 -07001030
1031 dxflags: ["--core-library"],
1032 installable: false,
1033}
Nan Zhang2db709d2017-11-08 20:48:46 -08001034
1035python_defaults {
1036 name: "base_default",
1037 version: {
1038 py2: {
1039 enabled: true,
1040 embedded_launcher: true,
1041 },
1042 py3: {
1043 enabled: false,
1044 embedded_launcher: false,
1045 },
1046 },
1047}
1048
1049python_binary_host {
1050 name: "fontchain_linter",
1051 defaults: ["base_default"],
1052 main: "tools/fonts/fontchain_linter.py",
1053 srcs: [
1054 "tools/fonts/fontchain_linter.py",
1055 ],
1056 libs: [
1057 "fontTools",
1058 ],
1059}
Nan Zhang172875b2018-02-27 11:24:03 -08001060
Nan Zhangaf251302018-08-30 10:59:51 -07001061filegroup {
Insun Kang06b25ae2018-11-20 10:05:44 +09001062 name: "framework-media-annotation-srcs",
1063 srcs: [
Jeff Sharkey40182832019-12-18 14:06:48 -07001064 ":framework-annotations",
Insun Kang06b25ae2018-11-20 10:05:44 +09001065 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001066 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001067 "core/java/android/annotation/DrawableRes.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001068 "core/java/android/annotation/LongDef.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001069 "core/java/android/annotation/StringDef.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001070 ],
1071}
1072
1073filegroup {
1074 name: "framework-mediaprovider-annotation-sources",
1075 srcs: [
1076 ":framework-annotations",
1077 "core/java/android/annotation/BytesLong.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001078 "core/java/android/annotation/CurrentTimeSecondsLong.java",
1079 "core/java/android/annotation/DurationMillisLong.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001080 ],
1081}
1082
Andrei Onea7a2985c2019-02-18 15:28:35 +00001083// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1084// annotations to private apis
1085aidl_mapping {
1086 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001087 srcs: [":framework-all-sources"],
Tobias Thiererbc050342019-05-23 16:20:12 +01001088 output: "framework-aidl-mappings.txt",
Kyunglyul Hyund51666d2019-04-11 04:08:40 +00001089}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001090
Chen Xu192bf1f2019-09-05 22:07:42 -07001091// Avoid including Parcelable classes as we don't want to have two copies of
Malcolm Chen58b59a52020-01-14 19:25:13 -08001092// Parcelable cross the libraries. This is used by telephony-common (frameworks/opt/telephony)
1093// and TeleService app (packages/services/Telephony).
Chen Xu192bf1f2019-09-05 22:07:42 -07001094filegroup {
Malcolm Chen58b59a52020-01-14 19:25:13 -08001095 name: "framework-telephony-common-shared-srcs",
Chen Xu192bf1f2019-09-05 22:07:42 -07001096 srcs: [
Hall Liuaa4398e2019-12-24 14:13:25 -08001097 "core/java/android/os/BasicShellCommandHandler.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001098 "core/java/android/os/RegistrantList.java",
1099 "core/java/android/os/Registrant.java",
1100 "core/java/android/util/LocalLog.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001101 "core/java/android/util/TimeUtils.java",
1102 "core/java/com/android/internal/os/SomeArgs.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001103 "core/java/com/android/internal/util/AsyncChannel.java",
Meng Wang3043dac2020-01-14 14:04:10 -08001104 "core/java/com/android/internal/util/AsyncService.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001105 "core/java/com/android/internal/util/BitwiseInputStream.java",
Michelebadc0212019-10-31 11:48:43 -07001106 "core/java/com/android/internal/util/FastXmlSerializer.java",
1107 "core/java/com/android/internal/util/HexDump.java",
Meng Wang64fffb92019-12-02 10:42:20 -08001108 "core/java/com/android/internal/util/IState.java",
Michelebadc0212019-10-31 11:48:43 -07001109 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001110 "core/java/com/android/internal/util/Preconditions.java",
1111 "core/java/com/android/internal/util/State.java",
1112 "core/java/com/android/internal/util/StateMachine.java",
Michelebadc0212019-10-31 11:48:43 -07001113 "core/java/com/android/internal/util/UserIcons.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001114 ],
1115}
1116
Chen Xu4fea79c2019-10-08 18:39:03 -07001117// Avoid including Parcelable classes as we don't want to have two copies of
Malcolm Chen58b59a52020-01-14 19:25:13 -08001118// Parcelable cross the process. This is used by framework-telephony (frameworks/base/telephony).
1119filegroup {
1120 name: "framework-telephony-shared-srcs",
1121 srcs: [
1122 "core/java/android/util/RecurrenceRule.java",
1123 "core/java/com/android/internal/os/SomeArgs.java",
1124 "core/java/com/android/internal/util/BitwiseInputStream.java",
1125 "core/java/com/android/internal/util/BitwiseOutputStream.java",
Hall Liu29b1874f2020-04-07 18:23:09 -07001126 "core/java/com/android/internal/util/FunctionalUtils.java",
Malcolm Chen58b59a52020-01-14 19:25:13 -08001127 "core/java/com/android/internal/util/HexDump.java",
1128 "core/java/com/android/internal/util/IndentingPrintWriter.java",
1129 "core/java/com/android/internal/util/Preconditions.java",
1130 ],
1131}
1132
1133// Avoid including Parcelable classes as we don't want to have two copies of
Chen Xu4fea79c2019-10-08 18:39:03 -07001134// Parcelable cross the process.
1135filegroup {
1136 name: "framework-cellbroadcast-shared-srcs",
1137 srcs: [
Jordan Liu15a72742019-11-20 13:55:18 -08001138 "core/java/android/os/HandlerExecutor.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001139 "core/java/android/util/LocalLog.java",
Jordan Liu15a72742019-11-20 13:55:18 -08001140 "core/java/com/android/internal/util/IState.java",
1141 "core/java/com/android/internal/util/Preconditions.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001142 "core/java/com/android/internal/util/State.java",
1143 "core/java/com/android/internal/util/StateMachine.java",
1144 ],
atrostce84de02019-10-08 16:16:47 +01001145}
Roshan Pius09de13e2019-10-16 13:16:04 -07001146
1147filegroup {
Jayachandran Ceeffa012019-10-23 18:06:33 -07001148 name: "framework-ims-common-shared-srcs",
1149 srcs: [
Jayachandran Ceeffa012019-10-23 18:06:33 -07001150 "core/java/android/os/RegistrantList.java",
1151 "core/java/android/os/Registrant.java",
1152 "core/java/com/android/internal/os/SomeArgs.java",
1153 "core/java/com/android/internal/util/Preconditions.java",
1154 ],
1155}
1156
David Su511a8142020-01-09 14:02:21 -08001157// utility classes statically linked into framework-wifi and dynamically linked
1158// into wifi-service
1159java_library {
1160 name: "framework-wifi-util-lib",
Anton Hansson5a088e02020-03-31 18:09:01 +01001161 sdk_version: "module_current",
David Su511a8142020-01-09 14:02:21 -08001162 srcs: [
1163 "core/java/android/content/pm/BaseParceledListSlice.java",
1164 "core/java/android/content/pm/ParceledListSlice.java",
David Su369c9202020-01-09 18:09:56 -08001165 "core/java/android/os/HandlerExecutor.java",
David Su511a8142020-01-09 14:02:21 -08001166 "core/java/com/android/internal/util/AsyncChannel.java",
1167 "core/java/com/android/internal/util/AsyncService.java",
1168 "core/java/com/android/internal/util/Protocol.java",
1169 "core/java/com/android/internal/util/Preconditions.java",
David Su369c9202020-01-09 18:09:56 -08001170 "telephony/java/android/telephony/Annotation.java",
David Su298cd362020-01-17 19:02:49 +00001171 ":net-utils-framework-wifi-common-srcs",
David Su511a8142020-01-09 14:02:21 -08001172 ],
1173 libs: [
1174 "framework-annotations-lib",
1175 "unsupportedappusage",
David Su511a8142020-01-09 14:02:21 -08001176 ],
David Su57bca312020-04-21 19:49:32 -07001177 visibility: [
1178 "//frameworks/base/wifi",
1179 "//frameworks/base/services/net",
1180 ],
David Su511a8142020-01-09 14:02:21 -08001181}
1182
David Su72f9d632020-02-10 15:58:26 -08001183filegroup {
1184 name: "framework-wifi-util-lib-aidls",
1185 srcs: ["core/java/android/content/pm/ParceledListSlice.aidl"],
1186 path: "core/java",
1187}
1188
David Su511a8142020-01-09 14:02:21 -08001189// utility classes statically linked into wifi-service
Jayachandran Ceeffa012019-10-23 18:06:33 -07001190filegroup {
Roshan Pius62eb61c2019-12-06 13:49:47 -08001191 name: "framework-wifi-service-shared-srcs",
Roshan Pius09de13e2019-10-16 13:16:04 -07001192 srcs: [
Roshan Piusc93cd7a2019-12-09 07:39:41 -08001193 "core/java/android/net/InterfaceConfiguration.java",
Roshan Pius3032c892020-01-08 11:10:15 -08001194 "core/java/android/os/BasicShellCommandHandler.java",
Roshan Pius04769a52019-12-04 13:03:47 -08001195 "core/java/android/util/BackupUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001196 "core/java/android/util/Rational.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001197 "core/java/com/android/internal/util/FastXmlSerializer.java",
1198 "core/java/com/android/internal/util/HexDump.java",
1199 "core/java/com/android/internal/util/IState.java",
1200 "core/java/com/android/internal/util/MessageUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001201 "core/java/com/android/internal/util/State.java",
1202 "core/java/com/android/internal/util/StateMachine.java",
1203 "core/java/com/android/internal/util/WakeupMessage.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001204 ],
David Su298cd362020-01-17 19:02:49 +00001205 visibility: ["//frameworks/opt/net/wifi/service"],
Roshan Pius09de13e2019-10-16 13:16:04 -07001206}
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001207
1208// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
1209metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
1210 "--ignore-classes-on-classpath " +
1211 "--hide-package com.android.server " +
1212 "--error UnhiddenSystemApi " +
1213 "--hide RequiresPermission " +
1214 "--hide CallbackInterface " +
1215 "--hide MissingPermission --hide BroadcastBehavior " +
1216 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
1217 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
Aurimas Liutikas1f76a5a2019-11-20 17:51:42 -08001218 "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " +
1219 "--api-lint-ignore-prefix android.icu. " +
1220 "--api-lint-ignore-prefix java. " +
1221 "--api-lint-ignore-prefix junit. " +
1222 "--api-lint-ignore-prefix org. "
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001223
1224build = [
1225 "StubLibraries.bp",
1226 "ApiDocs.bp",
Baligh Uddinf1613ef2020-05-27 23:31:13 +00001227]