blob: dbef611f82fe865af3a93446ba7ccb6becdca234 [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",
David Su130441b2019-12-14 21:37:20 -0800242 ":framework-wifi-annotations",
David Su6f646ef2019-12-10 13:33:06 -0800243 ":framework-wifi-non-updatable-sources",
Jiyong Park20426532019-08-19 15:24:49 +0900244 ":PacProcessor-aidl-sources",
245 ":ProxyHandler-aidl-sources",
Aaron Huangc4081b22020-01-13 15:03:35 +0800246 ":net-utils-framework-common-srcs",
Jiyong Parkb3609312019-08-16 21:17:14 +0900247
atrost87488352019-10-10 19:27:31 +0100248 // AIDL from frameworks/base/native/
249 ":platform-compat-native-aidl",
250
Jiyong Park20426532019-08-19 15:24:49 +0900251 // AIDL sources from external directories
David Zeuthen045b6de2019-10-29 15:15:18 -0400252 ":credstore_aidl",
Jiyong Park20426532019-08-19 15:24:49 +0900253 ":dumpstate_aidl",
254 ":framework_native_aidl",
255 ":gatekeeper_aidl",
256 ":gsiservice_aidl",
257 ":incidentcompanion_aidl",
258 ":installd_aidl",
259 ":keystore_aidl",
260 ":libaudioclient_aidl",
261 ":libbinder_aidl",
262 ":libbluetooth-binder-aidl",
263 ":libcamera_client_aidl",
264 ":libcamera_client_framework_aidl",
265 ":libupdate_engine_aidl",
Ruchir Rastogicd9dd942019-11-27 15:26:03 -0800266 // TODO: this needs to be removed when statsd-framework.jar is separated out
Jeffrey Huang8c1ae5a2019-12-12 10:56:24 -0800267 ":statsd_java_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 ":framework-statslog-gen", // StatsLogInternal.java
277 ":statslog-framework-java-gen", // FrameworkStatsLog.java
Chen Xu546ce5e2020-01-10 08:38:31 -0800278
279 // telephony annotations
280 ":framework-telephony-annotations",
Jiyong Park20426532019-08-19 15:24:49 +0900281 ],
282}
Jiyong Park1cc95662019-08-07 22:45:07 +0900283
Jiyong Parkae9972b2019-09-15 20:19:02 +0900284filegroup {
Anton Hanssonb4f35572019-12-02 16:30:22 +0000285 name: "framework-updatable-sources",
286 srcs: [
Alexander Dorokhine04a05a82019-12-17 10:41:21 -0800287 ":framework-appsearch-sources",
Anton Hansson5b972692020-01-08 09:48:18 +0000288 ":framework-sdkextensions-sources",
Muhammad Qureshi237c7742019-12-12 11:03:55 -0800289 ":framework-statsd-sources",
markchienae8aa642019-12-16 20:15:20 +0800290 ":framework-tethering-srcs",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000291 ":updatable-media-srcs",
Jeff Sharkey40182832019-12-18 14:06:48 -0700292 ":framework-mediaprovider-sources",
Hai Zhang82a62272020-01-14 21:56:34 -0800293 ":framework-permission-sources",
David Su754fcc22019-09-04 14:31:58 -0700294 ":framework-wifi-updatable-sources",
Chen Xu546ce5e2020-01-10 08:38:31 -0800295 ":framework-telephony-sources",
Benedict Wong589b6ff2019-11-20 22:52:48 -0800296 ":ike-srcs",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000297 ]
298}
299
300filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900301 name: "framework-all-sources",
302 srcs: [
Tobias Thiererc0c06082019-11-22 16:33:18 +0000303 ":framework-mime-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900304 ":framework-non-updatable-sources",
Anton Hanssonb4f35572019-12-02 16:30:22 +0000305 ":framework-updatable-sources",
Jiyong Parkae9972b2019-09-15 20:19:02 +0900306 ],
307}
308
Jiyong Park392729f2020-01-17 16:32:53 +0900309// AIDL files under these paths are mixture of public and private ones.
310// They shouldn't be exported across module boundaries.
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100311java_defaults {
Makoto Onuki62242c42019-08-05 12:54:20 -0700312 name: "framework-aidl-export-defaults",
Makoto Onuki62242c42019-08-05 12:54:20 -0700313 aidl: {
Jiyong Parkb3609312019-08-16 21:17:14 +0900314 export_include_dirs: [
Dongwon Kangdd652692020-01-03 13:54:21 -0800315 "apex/media/framework/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900316 "core/java",
317 "drm/java",
318 "graphics/java",
David Zeuthen045b6de2019-10-29 15:15:18 -0400319 "identity/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900320 "keystore/java",
321 "location/java",
322 "lowpan/java",
323 "media/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900324 "media/mca/effect/java",
325 "media/mca/filterfw/java",
326 "media/mca/filterpacks/java",
Amit Mahajan6237a6b2019-10-07 17:41:26 -0700327 "mms/java",
Jiyong Parkb3609312019-08-16 21:17:14 +0900328 "opengl/java",
329 "rs/java",
330 "sax/java",
331 "telecomm/java",
David Su6dcd7682020-01-21 11:23:00 -0800332 "wifi/aidl-export",
Jiyong Parkb3609312019-08-16 21:17:14 +0900333 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700334 },
335}
336
Jiyong Park20426532019-08-19 15:24:49 +0900337// Collection of classes that are generated from non-Java files that are not listed in
338// framework_srcs. These have no or very limited dependency to the framework.
339java_library {
340 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800341 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100342 "apex_aidl_interface-java",
Kalesh Singh759af322019-06-19 12:17:43 -0700343 "suspend_control_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800344 "framework-protos",
Peiyong Lin9ca1dd82019-01-12 17:44:29 -0800345 "game-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800346 "android.hidl.base-V1.0-java",
347 "android.hardware.cas-V1.0-java",
Henry Fang43cab922019-12-27 16:50:20 -0800348 "android.hardware.cas-V1.1-java",
349 "android.hardware.cas-V1.2-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800350 "android.hardware.contexthub-V1.0-java",
Yu-Han Yang9fe06dd2019-11-18 16:23:31 -0800351 "android.hardware.gnss-V1.0-java",
Yu-Han Yangad03c472020-01-14 15:31:01 -0800352 "android.hardware.gnss-V2.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800353 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800354 "android.hardware.radio-V1.0-java",
355 "android.hardware.radio-V1.1-java",
356 "android.hardware.radio-V1.2-java",
357 "android.hardware.radio-V1.3-java",
358 "android.hardware.radio-V1.4-java",
Sarah Chin21e9c632019-11-05 13:30:10 -0800359 "android.hardware.radio-V1.5-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800360 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800361 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700362 "android.hardware.thermal-V1.1-java",
363 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800364 "android.hardware.tv.input-V1.0-java-constants",
shubang7e849b02019-10-18 19:36:25 -0700365 "android.hardware.tv.tuner-V1.0-java-constants",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800366 "android.hardware.usb-V1.0-java-constants",
367 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800368 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800369 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000370 "android.hardware.vibrator-V1.0-java",
371 "android.hardware.vibrator-V1.1-java",
372 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900373 "android.hardware.vibrator-V1.3-java",
arangelov1ab61492018-11-22 13:56:50 +0000374 "devicepolicyprotosnano",
Inseob Kim4fe9f0f2019-07-30 18:23:26 +0900375
376 "com.android.sysprop.apex",
377 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800378 ],
Jiyong Park20426532019-08-19 15:24:49 +0900379 sdk_version: "core_platform",
380 installable: false,
381}
382
383java_defaults {
384 name: "framework-defaults",
385 defaults: ["framework-aidl-export-defaults"],
386 installable: true,
387
Jiyong Park20426532019-08-19 15:24:49 +0900388 aidl: {
389 generate_get_transaction_name: true,
390 },
391
Jiyong Parkae9972b2019-09-15 20:19:02 +0900392 srcs: ["core/java/**/*.logtags"],
393
Jiyong Park20426532019-08-19 15:24:49 +0900394 exclude_srcs: [
395 // See comment on framework-atb-backward-compatibility module below
Winson14ff7172019-10-23 10:42:27 -0700396 "core/java/android/content/pm/parsing/library/AndroidTestBaseUpdater.java",
Jiyong Park20426532019-08-19 15:24:49 +0900397 ],
398
399 sdk_version: "core_platform",
400 libs: [
Artur Satayev6aa25ec2019-12-11 16:33:22 +0000401 "app-compat-annotations",
Jiyong Park20426532019-08-19 15:24:49 +0900402 "ext",
Artur Satayev6aa25ec2019-12-11 16:33:22 +0000403 "unsupportedappusage",
Anton Hansson12a07672020-02-03 15:19:59 +0000404 "framework-media-stubs-systemapi",
Jeff Sharkey40182832019-12-18 14:06:48 -0700405 "framework_mediaprovider_stubs",
markchienae8aa642019-12-16 20:15:20 +0800406 "framework-tethering",
Chen Xu546ce5e2020-01-10 08:38:31 -0800407 "framework-telephony-stubs",
Jiyong Park20426532019-08-19 15:24:49 +0900408 ],
409
410 jarjar_rules: ":framework-jarjar-rules",
411
Tobias Thierer878c77b2019-08-18 15:19:45 +0100412 static_libs: [
413 "framework-internal-utils",
Tobias Thierer878c77b2019-08-18 15:19:45 +0100414 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800415
Colin Crosscf3a0b52017-11-16 00:15:28 -0800416 dxflags: [
417 "--core-library",
418 "--multi-dex",
419 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100420
Eugene Susla3b2fe612019-08-06 18:47:14 -0700421 plugins: [
422 "view-inspector-annotation-processor",
423 "staledataclass-annotation-processor",
424 ],
Jiyong Park392729f2020-01-17 16:32:53 +0900425
426 required: [
427 // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly.
428 "gps_debug.conf",
429 "protolog.conf.json.gz",
430 ],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100431}
432
Colin Crossbc2dc312018-10-26 22:34:06 -0700433filegroup {
Steven Moreland19e8d462019-03-08 10:44:22 -0800434 name: "framework-jarjar-rules",
David Su130441b2019-12-14 21:37:20 -0800435 srcs: ["framework-jarjar-rules.txt"],
Steven Moreland19e8d462019-03-08 10:44:22 -0800436}
437
438filegroup {
Colin Crossbc2dc312018-10-26 22:34:06 -0700439 name: "libincident_aidl",
440 srcs: [
Mike Ma643de922019-12-17 10:56:17 -0800441 "core/java/android/os/IIncidentDumpCallback.aidl",
Colin Crossbc2dc312018-10-26 22:34:06 -0700442 "core/java/android/os/IIncidentManager.aidl",
443 "core/java/android/os/IIncidentReportStatusListener.aidl",
444 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700445 path: "core/java",
Colin Crossbc2dc312018-10-26 22:34:06 -0700446}
447
448filegroup {
Stan Iliev637ba5e2019-08-16 13:43:08 -0400449 name: "graphicsstats_proto",
450 srcs: [
451 "libs/hwui/protos/graphicsstats.proto",
452 ],
453}
454
455filegroup {
Michael Wrightc390fbe2018-12-12 19:45:09 +0000456 name: "libvibrator_aidl",
457 srcs: [
458 "core/java/android/os/IExternalVibrationController.aidl",
459 "core/java/android/os/IExternalVibratorService.aidl",
460 ],
Dan Willemsen4a498502019-06-05 15:51:24 -0700461 path: "core/java",
Michael Wrightc390fbe2018-12-12 19:45:09 +0000462}
463
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100464java_library {
Makoto Onuki62242c42019-08-05 12:54:20 -0700465 name: "framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100466 defaults: ["framework-defaults"],
Jiyong Parkae9972b2019-09-15 20:19:02 +0900467 srcs: [":framework-non-updatable-sources"],
Muhammad Qureshi237c7742019-12-12 11:03:55 -0800468 libs: [
Alexander Dorokhine04a05a82019-12-17 10:41:21 -0800469 "framework-appsearch-stubs",
Anton Hanssonb2f709d2020-01-09 10:25:23 +0000470 "framework-sdkextensions-stubs-systemapi",
471 "framework-statsd", // TODO(b/146167933): Use framework-statsd-stubs
Anton Hansson20a93502020-02-03 19:07:21 +0000472 "framework-permission-stubs-systemapi",
David Su754fcc22019-09-04 14:31:58 -0700473 "framework-wifi-stubs",
Benedict Wong589b6ff2019-11-20 22:52:48 -0800474 "ike-stubs",
Muhammad Qureshi237c7742019-12-12 11:03:55 -0800475 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700476 installable: true,
Jiyong Park911cd4f2019-10-21 14:35:14 +0900477 javac_shard_size: 150,
atrostaec9bc12019-08-16 18:14:09 +0100478 required: [
479 "framework-platform-compat-config",
480 "libcore-platform-compat-config",
atrost86895aa2019-08-19 16:51:15 +0100481 "services-platform-compat-config",
atrost8bea6472019-10-10 19:33:22 +0100482 "media-provider-platform-compat-config",
atrostaec9bc12019-08-16 18:14:09 +0100483 ],
Tobias Thiererc0c06082019-11-22 16:33:18 +0000484 static_libs: [
Tobias Thierer82968532019-11-29 19:39:45 +0000485 // If MimeMap ever becomes its own APEX, then this dependency would need to be removed
486 // in favor of an API stubs dependency in java_library "framework" below.
Tobias Thiererc0c06082019-11-22 16:33:18 +0000487 "mimemap",
488 ],
Jiyong Park911cd4f2019-10-21 14:35:14 +0900489 // For backwards compatibility.
490 stem: "framework",
Jiyong Park352f9e22019-12-09 14:45:07 +0900491 apex_available: ["//apex_available:platform"],
Jiyong Park212d2e82020-01-03 21:07:38 +0900492 visibility: [
493 "//frameworks/base",
494 // TODO(b/144149403) remove the below lines
495 "//frameworks/base/apex/appsearch/framework",
496 "//frameworks/base/apex/blobstore/framework",
497 "//frameworks/base/apex/jobscheduler/framework",
Hai Zhang82a62272020-01-14 21:56:34 -0800498 "//frameworks/base/apex/permission/framework",
Jiyong Park212d2e82020-01-03 21:07:38 +0900499 "//frameworks/base/apex/statsd/service",
Chen Xu546ce5e2020-01-10 08:38:31 -0800500 "//frameworks/base/telephony",
Jiyong Park212d2e82020-01-03 21:07:38 +0900501 "//frameworks/opt/net/wifi/service",
502 ],
Jiyong Park911cd4f2019-10-21 14:35:14 +0900503}
504
505// This "framework" module is NOT installed to the device. It's
506// "framework-minus-apex" that gets installed to the device. Note that
507// the filename is still framework.jar (via the stem property) for
508// compatibility reason. The purpose of this module is to provide
509// framework APIs (both public and private) for bundled apps.
510// "framework-minus-apex" can't be used for the purpose because 1)
511// many apps have already hardcoded the name "framework" and
512// 2) it lacks API symbols from updatable modules - as it's clear from
513// its suffix "-minus-apex".
514java_library {
515 name: "framework",
516 defaults: ["framework-aidl-export-defaults"],
517 installable: false, // this lib is a build-only library
518 static_libs: [
519 "framework-minus-apex",
Anton Hansson12a07672020-02-03 15:19:59 +0000520 "framework-media-stubs-systemapi",
Jeff Sharkey40182832019-12-18 14:06:48 -0700521 "framework_mediaprovider_stubs",
Alexander Dorokhine3e2051a2020-01-14 01:25:54 +0000522 "framework-appsearch", // TODO(b/146218515): should be framework-appsearch-stubs
Anton Hansson20a93502020-02-03 19:07:21 +0000523 "framework-permission-stubs-systemapi",
Anton Hansson5b972692020-01-08 09:48:18 +0000524 "framework-sdkextensions-stubs-systemapi",
Muhammad Qureshi237c7742019-12-12 11:03:55 -0800525 // TODO(b/146167933): Use framework-statsd-stubs instead.
526 "framework-statsd",
David Su298cd362020-01-17 19:02:49 +0000527 "framework-wifi-stubs",
Benedict Wong589b6ff2019-11-20 22:52:48 -0800528 "ike-stubs",
Jiyong Parkc81df3f2020-01-06 13:30:59 +0900529 // TODO(b/147200698): should be the stub of framework-tethering
530 "framework-tethering",
Chen Xu546ce5e2020-01-10 08:38:31 -0800531 // TODO (b/147688669) should be framework-telephony-stubs
532 "framework-telephony",
533 // TODO(jiyong): add stubs for APEXes here
Jiyong Park911cd4f2019-10-21 14:35:14 +0900534 ],
Makoto Onuki62242c42019-08-05 12:54:20 -0700535 sdk_version: "core_platform",
Jiyong Park352f9e22019-12-09 14:45:07 +0900536 apex_available: ["//apex_available:platform"],
Makoto Onuki62242c42019-08-05 12:54:20 -0700537}
538
539java_library {
Jiyong Parkae9972b2019-09-15 20:19:02 +0900540 name: "framework-all",
541 defaults: ["framework-defaults"],
542 srcs: [":framework-all-sources"],
543 installable: false,
David Su369c9202020-01-09 18:09:56 -0800544 static_libs: [
Santiago Seifert5b86f832020-01-27 19:42:27 +0000545 "exoplayer2-extractor",
David Su369c9202020-01-09 18:09:56 -0800546 "android.hardware.wifi-V1.0-java-constants",
Alexander Dorokhine0e8fa4e2020-01-13 20:22:20 -0800547 ],
548 libs: ["icing-java-proto-lite"],
Jiyong Park352f9e22019-12-09 14:45:07 +0900549 apex_available: ["//apex_available:platform"],
Jiyong Park97183492019-11-14 03:07:36 +0000550}
551
552java_library {
553 name: "framework-annotation-proc",
Jiyong Park963ee172020-02-01 17:16:58 +0900554 srcs: [
555 ":framework-all-sources",
556 "core/java/**/*.logtags",
557 ],
558 sdk_version: "core_platform",
Artur Satayev6aa25ec2019-12-11 16:33:22 +0000559 libs: [
560 "app-compat-annotations",
Jiyong Park963ee172020-02-01 17:16:58 +0900561 "ext",
562 "icing-java-proto-lite",
Artur Satayev6aa25ec2019-12-11 16:33:22 +0000563 "unsupportedappusage",
564 ],
Jiyong Park963ee172020-02-01 17:16:58 +0900565
Jiyong Park97183492019-11-14 03:07:36 +0000566 installable: false,
atrostb9c34502019-08-05 12:22:18 +0100567 plugins: [
568 "unsupportedappusage-annotation-processor",
569 "compat-changeid-annotation-processor",
570 ],
Santiago Seifert5466a7d2019-11-11 19:27:04 +0000571 static_libs: [
Jiyong Park963ee172020-02-01 17:16:58 +0900572 "framework-internal-utils",
Santiago Seifert5b86f832020-01-27 19:42:27 +0000573 "exoplayer2-extractor",
David Su298cd362020-01-17 19:02:49 +0000574 "android.hardware.wifi-V1.0-java-constants",
Santiago Seifert5466a7d2019-11-11 19:27:04 +0000575 ]
atrostb9c34502019-08-05 12:22:18 +0100576}
577
578platform_compat_config {
579 name: "framework-platform-compat-config",
Jiyong Park97183492019-11-14 03:07:36 +0000580 src: ":framework-annotation-proc",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100581}
582
Paul Duffin521975802019-06-05 10:35:08 +0100583// A library including just UnsupportedAppUsage.java classes.
584//
585// Provided for target so that libraries can use it without depending on
586// the whole of framework or the core platform API.
587//
588// Built for host so that the annotation processor can also use this annotation.
589java_library {
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100590 name: "unsupportedappusage-annotation",
Paul Duffin521975802019-06-05 10:35:08 +0100591 host_supported: true,
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100592 srcs: [
593 "core/java/android/annotation/IntDef.java",
Paul Duffinc1308012019-10-10 16:33:42 +0100594 ],
595 static_libs: [
596 "art.module.api.annotations",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100597 ],
Paul Duffin521975802019-06-05 10:35:08 +0100598
599 sdk_version: "core_current",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800600}
601
Paul Duffinbeee5dc2018-01-23 13:39:00 +0000602// A temporary build target that is conditionally included on the bootclasspath if
Paul Duffina3b69212018-01-25 09:58:32 +0000603// android.test.base library has been removed and which provides support for
604// maintaining backwards compatibility for APKs that target pre-P and depend on
605// android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is
606// specified on the build command line.
607java_library {
608 name: "framework-atb-backward-compatibility",
Paul Duffinfab87542019-02-15 11:39:12 +0000609 installable: true,
atrost1a945502019-11-04 17:03:54 +0000610 libs: ["app-compat-annotations"],
Paul Duffina3b69212018-01-25 09:58:32 +0000611 srcs: [
Winson14ff7172019-10-23 10:42:27 -0700612 "core/java/android/content/pm/parsing/library/AndroidTestBaseUpdater.java",
Paul Duffina3b69212018-01-25 09:58:32 +0000613 ],
614}
615
Colin Crosscf3a0b52017-11-16 00:15:28 -0800616genrule {
617 name: "framework-statslog-gen",
618 tools: ["stats-log-api-gen"],
Muhammad Qureshiad944252020-01-10 14:03:13 -0800619 cmd: "$(location stats-log-api-gen) --java $(out) --worksource",
David Chen0a368b22017-12-06 16:28:16 -0800620 out: ["android/util/StatsLogInternal.java"],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800621}
622
Muhammad Qureshi04ec2522020-01-27 16:36:45 -0800623genrule {
624 name: "statslog-framework-java-gen",
625 tools: ["stats-log-api-gen"],
626 cmd: "$(location stats-log-api-gen) --java $(out) --module framework" +
627 " --javaPackage com.android.internal.util --javaClass FrameworkStatsLog --worksource",
628 out: ["com/android/internal/util/FrameworkStatsLog.java"],
629}
630
Colin Crosscf3a0b52017-11-16 00:15:28 -0800631gensrcs {
632 name: "framework-javastream-protos",
633 depfile: true,
634
635 tools: [
636 "aprotoc",
637 "protoc-gen-javastream",
638 "soong_zip",
639 ],
640
Anton Hanssond82b2f72019-11-18 13:34:56 +0000641 cmd: "mkdir -p $(genDir)/$(in) " +
642 "&& $(location aprotoc) " +
643 " --plugin=$(location protoc-gen-javastream) " +
644 " --dependency_out=$(depfile) " +
645 " --javastream_out=$(genDir)/$(in) " +
646 " -Iexternal/protobuf/src " +
647 " -I . " +
648 " $(in) " +
649 "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)",
650
Yi Jin437aa6e2018-01-10 11:34:26 -0800651 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800652 ":ipconnectivity-proto-src",
Yi Jin437aa6e2018-01-10 11:34:26 -0800653 "core/proto/**/*.proto",
654 "libs/incident/**/*.proto",
655 ],
Colin Crosscf3a0b52017-11-16 00:15:28 -0800656 output_extension: "srcjar",
657}
658
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900659filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900660 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900661 srcs: [
David Su369c9202020-01-09 18:09:56 -0800662 "core/java/android/annotation/CallbackExecutor.java",
David Su511a8142020-01-09 14:02:21 -0800663 "core/java/android/annotation/CheckResult.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900664 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900665 "core/java/android/annotation/IntRange.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700666 "core/java/android/annotation/NonNull.java",
667 "core/java/android/annotation/Nullable.java",
668 "core/java/android/annotation/RequiresPermission.java",
669 "core/java/android/annotation/SdkConstant.java",
David Su369c9202020-01-09 18:09:56 -0800670 "core/java/android/annotation/StringDef.java",
Anton Hanssondc1e99b2019-12-06 17:07:28 +0000671 "core/java/android/annotation/SystemApi.java",
David Su369c9202020-01-09 18:09:56 -0800672 "core/java/android/annotation/SystemService.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700673 "core/java/android/annotation/TestApi.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900674 "core/java/com/android/internal/annotations/GuardedBy.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900675 "core/java/com/android/internal/annotations/VisibleForTesting.java",
David Su511a8142020-01-09 14:02:21 -0800676 "core/java/com/android/internal/annotations/Immutable.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100677 ],
Chalard Jean95213512019-01-30 21:04:58 +0900678}
679
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000680java_library {
681 name: "framework-annotations-lib",
682 srcs: [ ":framework-annotations" ],
Anton Hansson791551a2019-12-19 10:17:46 +0000683 sdk_version: "core_current",
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000684}
685
Chalard Jean95213512019-01-30 21:04:58 +0900686filegroup {
evitayane22e47f2019-12-30 16:05:38 -0800687 name: "framework-ike-shared-srcs",
688 visibility: ["//frameworks/opt/net/ike"],
689 srcs: [
evitayanbddbfb02020-01-07 21:21:52 -0800690 "core/java/android/annotation/StringDef.java",
evitayane22e47f2019-12-30 16:05:38 -0800691 "core/java/android/net/annotations/PolicyDirection.java",
evitayan0efc7402019-12-20 17:55:57 -0800692 "core/java/com/android/internal/util/IState.java",
693 "core/java/com/android/internal/util/State.java",
694 "core/java/com/android/internal/util/StateMachine.java",
evitayan996aa2a2019-12-30 11:19:47 -0800695 "telephony/java/android/telephony/Annotation.java",
evitayane22e47f2019-12-30 16:05:38 -0800696 ],
697}
698
699filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900700 name: "framework-networkstack-shared-srcs",
701 srcs: [
702 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900703 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900704 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900705 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900706 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900707 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900708 "core/java/com/android/internal/util/IState.java",
709 "core/java/com/android/internal/util/MessageUtils.java",
710 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900711 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900712 "core/java/com/android/internal/util/State.java",
713 "core/java/com/android/internal/util/StateMachine.java",
Chalard Jean6a76b7e2019-04-09 11:16:56 +0900714 "core/java/com/android/internal/util/TrafficStatsConstants.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900715 "core/java/com/android/internal/util/WakeupMessage.java",
johnson.yeh095b7a02019-12-19 20:30:34 +0800716 "core/java/com/android/internal/util/TokenBucket.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900717 "core/java/android/net/shared/*.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100718 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900719}
720
markchienae8aa642019-12-16 20:15:20 +0800721// keep these files in sync with the package/Tethering/jarjar-rules.txt for the tethering module.
markchiena6ba54d2019-09-03 15:58:06 +0800722filegroup {
723 name: "framework-tethering-shared-srcs",
724 srcs: [
725 "core/java/android/util/LocalLog.java",
markchienae8aa642019-12-16 20:15:20 +0800726 "core/java/com/android/internal/util/IndentingPrintWriter.java",
727 "core/java/com/android/internal/util/IState.java",
728 "core/java/com/android/internal/util/MessageUtils.java",
729 "core/java/com/android/internal/util/Preconditions.java",
730 "core/java/com/android/internal/util/State.java",
731 "core/java/com/android/internal/util/StateMachine.java",
markchien87d3f7d2020-01-08 20:58:23 +0800732 "core/java/com/android/internal/util/TrafficStatsConstants.java",
markchien986750b2019-12-06 15:24:53 +0800733 "core/java/android/net/shared/Inet4AddressUtils.java",
markchienae8aa642019-12-16 20:15:20 +0800734 ],
735}
736
737filegroup {
738 name: "framework-tethering-annotations",
739 srcs: [
740 "core/java/android/annotation/NonNull.java",
markchien40898ca2020-01-21 13:11:06 +0800741 "core/java/android/annotation/Nullable.java",
742 "core/java/android/annotation/RequiresPermission.java",
markchienae8aa642019-12-16 20:15:20 +0800743 "core/java/android/annotation/SystemApi.java",
markchien40898ca2020-01-21 13:11:06 +0800744 "core/java/android/annotation/TestApi.java",
Remi NGUYEN VAN24b7b6a2020-01-27 17:26:14 +0900745 "core/java/com/android/internal/annotations/GuardedBy.java",
markchiena6ba54d2019-09-03 15:58:06 +0800746 ],
747}
Colin Crossd8e02252017-10-02 17:14:22 -0700748// Build ext.jar
749// ============================================================
750java_library {
751 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700752 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100753 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700754 static_libs: [
755 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700756 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000757 "rappor",
Tony Mak64c4cb22018-09-25 13:38:28 +0100758 "libtextclassifier-java",
759 ],
760 required: [
761 "libtextclassifier",
Colin Crossd8e02252017-10-02 17:14:22 -0700762 ],
763 dxflags: ["--core-library"],
764}
765
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700766// ==== java proto host library ==============================
767java_library_host {
768 name: "platformprotos",
769 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800770 ":ipconnectivity-proto-src",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700771 "cmds/am/proto/instrumentation_data.proto",
Howard Ro0546d542018-08-30 16:23:44 -0700772 "cmds/statsd/src/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700773 "core/proto/**/*.proto",
774 "libs/incident/proto/**/*.proto",
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700775 ],
776 proto: {
777 include_dirs: ["external/protobuf/src"],
778 type: "full",
779 },
780 errorprone: {
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100781 javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520
Andreas Gampeaf27bf662018-05-17 10:49:26 -0700782 },
783}
784
Colin Cross43214162018-08-20 13:57:24 -0700785// ==== java proto device library (for test only) ==============================
786java_library {
787 name: "platformprotosnano",
788 proto: {
789 type: "nano",
790 output_params: ["store_unknown_fields=true"],
791 include_dirs: ["external/protobuf/src"],
792 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000793 exclude_srcs: [
794 "core/proto/android/privacy.proto",
795 "core/proto/android/section.proto",
796 ],
Anton Hansson791551a2019-12-19 10:17:46 +0000797 sdk_version: "9",
Colin Cross43214162018-08-20 13:57:24 -0700798 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800799 ":ipconnectivity-proto-src",
Colin Cross43214162018-08-20 13:57:24 -0700800 "core/proto/**/*.proto",
801 "libs/incident/proto/android/os/**/*.proto",
802 ],
803}
804
805// ==== java proto device library (for test only) ==============================
806java_library {
807 name: "platformprotoslite",
808 proto: {
809 type: "lite",
810 include_dirs: ["external/protobuf/src"],
811 },
812
813 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800814 ":ipconnectivity-proto-src",
Colin Cross43214162018-08-20 13:57:24 -0700815 "core/proto/**/*.proto",
816 "libs/incident/proto/android/os/**/*.proto",
817 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000818 exclude_srcs: [
819 "core/proto/android/privacy.proto",
820 "core/proto/android/section.proto",
821 ],
Anton Hansson791551a2019-12-19 10:17:46 +0000822 sdk_version: "core_current",
Colin Cross43214162018-08-20 13:57:24 -0700823 // Protos have lots of MissingOverride and similar.
824 errorprone: {
825 javacflags: ["-XepDisableAllChecks"],
826 },
827}
828
Colin Crossaa0d4352017-05-02 14:14:56 -0700829// ==== c++ proto device library ==============================
Joe Onorato99598ee2019-02-11 15:55:13 +0000830cc_defaults {
831 name: "libplatformprotos-defaults",
832
Colin Crossaa0d4352017-05-02 14:14:56 -0700833 proto: {
834 export_proto_headers: true,
835 include_dirs: ["external/protobuf/src"],
836 },
837
Chih-Hung Hsiehc7edf072017-10-03 09:57:55 -0700838 cflags: [
839 "-Wall",
840 "-Werror",
841 "-Wno-unused-parameter",
842 ],
Joe Onorato62c220b2017-11-18 20:32:56 -0800843
844 srcs: [
Mike Mad2672bd2020-01-15 15:57:20 -0800845 ":ipconnectivity-proto-src",
Joe Onorato62c220b2017-11-18 20:32:56 -0800846 "core/proto/**/*.proto",
Joe Onorato62c220b2017-11-18 20:32:56 -0800847 ],
Joe Onorato99598ee2019-02-11 15:55:13 +0000848}
849
850cc_library {
851 name: "libplatformprotos",
852 defaults: ["libplatformprotos-defaults"],
853 host_supported: true,
Joe Onorato62c220b2017-11-18 20:32:56 -0800854
Colin Crossaa0d4352017-05-02 14:14:56 -0700855 target: {
856 host: {
857 proto: {
858 type: "full",
859 },
860 },
861 android: {
862 proto: {
863 type: "lite",
864 },
Joe Onorato99598ee2019-02-11 15:55:13 +0000865 shared_libs: [
866 "libprotobuf-cpp-lite",
867 ],
Colin Crossaa0d4352017-05-02 14:14:56 -0700868 shared: {
Colin Crossaa0d4352017-05-02 14:14:56 -0700869 enabled: false,
870 },
871 },
872 },
Colin Crossaa0d4352017-05-02 14:14:56 -0700873}
874
Joe Onorato9bd5db72019-04-03 18:19:43 -0700875// This library is meant for vendor code that needs to output protobuf. It links
876// against the static version of libprotobuf-cpp-lite, for which we can not guarantee
877// binary compatibility.
878cc_library {
879 name: "libplatformprotos-static",
880 defaults: ["libplatformprotos-defaults"],
881 host_supported: false,
882
883 // This is okay because this library is only built as a static library. The C++
884 // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council,
885 // but is not authorized to be used outside of debugging.
886 vendor_available: true,
887
888 target: {
889 android: {
890 proto: {
891 type: "lite",
892 },
893 static_libs: [
894 "libprotobuf-cpp-lite",
895 ],
896 shared: {
897 enabled: false,
898 },
899 },
900 },
901}
902
903
Joe Onorato99598ee2019-02-11 15:55:13 +0000904// This is the full proto version of libplatformprotos. It may only
905// be used by test code that is not shipped on the device.
906cc_library {
907 name: "libplatformprotos-test",
908 defaults: ["libplatformprotos-defaults"],
909 host_supported: false,
910
911 target: {
912 android: {
913 proto: {
914 type: "full",
915 },
916 shared: {
917 enabled: false,
918 },
919 },
920 },
921}
922
Songchun Fan0037c3f2019-10-30 15:20:59 -0700923filegroup {
924 name: "incremental_aidl",
925 srcs: [
Songchun Fan0037c3f2019-10-30 15:20:59 -0700926 "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -0700927 ],
928 path: "core/java",
929}
930
931filegroup {
Songchun Fan6dd47b52019-11-29 15:20:18 -0800932 name: "dataloader_aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -0700933 srcs: [
Alex Buynytskyyea14d192019-12-13 15:42:18 -0800934 "core/java/android/content/pm/DataLoaderParamsParcel.aidl",
Alex Buynytskyy1ecfcec2019-12-17 12:10:41 -0800935 "core/java/android/content/pm/DataLoaderType.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -0800936 "core/java/android/content/pm/FileSystemControlParcel.aidl",
Songchun Fan6dd47b52019-11-29 15:20:18 -0800937 "core/java/android/content/pm/IDataLoaderStatusListener.aidl",
Alex Buynytskyyea14d192019-12-13 15:42:18 -0800938 "core/java/android/content/pm/IPackageInstallerSessionFileSystemConnector.aidl",
939 "core/java/android/content/pm/NamedParcelFileDescriptor.aidl",
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -0800940 ],
941 path: "core/java",
942}
943
944filegroup {
945 name: "incremental_manager_aidl",
946 srcs: [
947 "core/java/android/os/incremental/IIncrementalManager.aidl",
Alex Buynytskyy716588d2020-02-04 13:42:59 -0800948 "core/java/android/os/incremental/IIncrementalService.aidl",
Yurii Zubrytskyi4a25dfb2020-01-10 11:53:24 -0800949 "core/java/android/os/incremental/IncrementalNewFileParams.aidl",
950 "core/java/android/os/incremental/IncrementalSignature.aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -0700951 ],
952 path: "core/java",
953}
954
955aidl_interface {
956 name: "libincremental_aidl",
957 srcs: [
958 ":incremental_aidl",
Songchun Fan6dd47b52019-11-29 15:20:18 -0800959 ],
Songchun Fan6dd47b52019-11-29 15:20:18 -0800960 backend: {
961 java: {
962 sdk_version: "28",
963 },
964 cpp: {
965 enabled: true,
966 },
967 ndk: {
968 enabled: true,
969 },
970 },
971}
972
973aidl_interface {
974 name: "libdataloader_aidl",
975 srcs: [
976 ":dataloader_aidl",
Songchun Fan0037c3f2019-10-30 15:20:59 -0700977 ],
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -0800978 imports: [
979 "libincremental_aidl",
980 ],
Songchun Fan0037c3f2019-10-30 15:20:59 -0700981 backend: {
982 java: {
983 sdk_version: "28",
984 },
985 cpp: {
986 enabled: true,
987 },
988 ndk: {
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -0800989 enabled: false,
990 },
991 },
992}
993
994aidl_interface {
995 name: "libincremental_manager_aidl",
996 srcs: [
997 ":incremental_manager_aidl",
998 ],
999 imports: [
1000 "libincremental_aidl",
1001 "libdataloader_aidl",
1002 ],
1003 backend: {
1004 java: {
1005 sdk_version: "28",
1006 },
1007 cpp: {
Songchun Fan0037c3f2019-10-30 15:20:59 -07001008 enabled: true,
1009 },
Alex Buynytskyy5b0c7fa2019-12-17 21:48:16 -08001010 ndk: {
1011 enabled: false,
1012 },
Songchun Fan0037c3f2019-10-30 15:20:59 -07001013 },
Songchun Fan0037c3f2019-10-30 15:20:59 -07001014}
Joe Onorato99598ee2019-02-11 15:55:13 +00001015
Yi Jin04625ad2017-10-17 18:29:33 -07001016gensrcs {
1017 name: "gen-platform-proto-constants",
1018 depfile: true,
1019
1020 tools: [
1021 "aprotoc",
1022 "protoc-gen-cppstream",
1023 ],
1024
1025 srcs: [
Kweku Adamseadd1232018-02-05 16:45:13 -08001026 "core/proto/android/os/backtrace.proto",
Kweku Adams59e6fd72017-12-27 15:48:14 -08001027 "core/proto/android/os/batterytype.proto",
Yi Jin0eb22342017-11-06 17:17:27 -08001028 "core/proto/android/os/cpufreq.proto",
Yi Jine2f7f792017-11-01 17:08:27 -07001029 "core/proto/android/os/cpuinfo.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -07001030 "core/proto/android/os/data.proto",
Yi Jin04625ad2017-10-17 18:29:33 -07001031 "core/proto/android/os/kernelwake.proto",
1032 "core/proto/android/os/pagetypeinfo.proto",
1033 "core/proto/android/os/procrank.proto",
Kweku Adamsf5cc5752017-12-20 17:59:17 -08001034 "core/proto/android/os/ps.proto",
Yi Jin0dfa7522017-11-06 17:43:47 -08001035 "core/proto/android/os/system_properties.proto",
Yi Jin3c034c92017-12-22 17:36:47 -08001036 "core/proto/android/util/event_log_tags.proto",
Colin Crossbc2dc312018-10-26 22:34:06 -07001037 "core/proto/android/util/log.proto",
Yi Jin04625ad2017-10-17 18:29:33 -07001038 ],
1039
1040 // Append protoc-gen-cppstream tool's PATH otherwise aprotoc can't find the plugin tool
Yi Jin3c034c92017-12-22 17:36:47 -08001041 cmd: "mkdir -p $(genDir) " +
1042 "&& $(location aprotoc) " +
1043 " --plugin=$(location protoc-gen-cppstream) " +
1044 " --dependency_out=$(depfile) " +
1045 " --cppstream_out=$(genDir) " +
1046 " -Iexternal/protobuf/src " +
1047 " -I . " +
1048 " $(in)",
Yi Jin04625ad2017-10-17 18:29:33 -07001049
Logan Chien71ddfea2018-02-27 16:43:50 +08001050 output_extension: "proto.h",
Yi Jin04625ad2017-10-17 18:29:33 -07001051}
1052
Joe Onorato99598ee2019-02-11 15:55:13 +00001053
Dan Albert2a8d9c22016-09-23 15:55:49 -07001054subdirs = [
Yi Jin0a3406f2017-06-22 19:23:11 -07001055 "cmds/*",
Jeff Sharkey0c686e72017-10-23 16:04:31 -06001056 "core/*",
Colin Cross4f8d9e62016-12-01 15:55:00 -08001057 "libs/*",
Colin Cross76de4f62017-05-15 18:10:40 -07001058 "media/*",
Colin Cross747e7c12017-10-24 16:21:22 -07001059 "proto",
Fabien Sanglard19160202017-01-12 14:24:31 -05001060 "tools/*",
Dan Albert2a8d9c22016-09-23 15:55:49 -07001061 "native/android",
Dan Albert7ce8df32016-09-23 16:43:49 -07001062 "native/graphics/jni",
Dan Albert2a8d9c22016-09-23 15:55:49 -07001063]
Svetoslav Ganov74c99832016-12-05 20:07:20 -08001064
1065optional_subdirs = [
1066 "core/tests/utiltests/jni",
1067]
Steven Morelandeddafe92017-10-02 16:58:41 -07001068
Colin Crossa2b78a72018-03-29 13:31:04 -07001069// TODO(b/77285514): remove this once the last few hidl interfaces have been
1070// updated to use hwbinder.stubs.
Steven Morelandeddafe92017-10-02 16:58:41 -07001071java_library {
1072 name: "hwbinder",
Paul Duffin8fcace42019-06-12 13:47:18 +01001073 sdk_version: "core_platform",
Steven Morelandeddafe92017-10-02 16:58:41 -07001074
1075 srcs: [
1076 "core/java/android/os/HidlSupport.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001077 "core/java/android/annotation/IntDef.java",
Ytai Ben-Tsvi4659e182019-11-06 09:53:34 -08001078 "core/java/android/annotation/IntRange.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001079 "core/java/android/annotation/NonNull.java",
Steven Moreland0ff061a2019-03-04 17:56:30 -08001080 "core/java/android/annotation/Nullable.java",
Steven Morelande8e63aa2018-01-10 15:45:36 -08001081 "core/java/android/annotation/SystemApi.java",
Steven Morelandcbba4c72019-01-11 10:19:51 -08001082 "core/java/android/annotation/TestApi.java",
Ytai Ben-Tsvi4659e182019-11-06 09:53:34 -08001083 "core/java/android/os/HidlMemory.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001084 "core/java/android/os/HwBinder.java",
1085 "core/java/android/os/HwBlob.java",
1086 "core/java/android/os/HwParcel.java",
1087 "core/java/android/os/IHwBinder.java",
1088 "core/java/android/os/IHwInterface.java",
1089 "core/java/android/os/DeadObjectException.java",
1090 "core/java/android/os/DeadSystemException.java",
Nirav Atre9850dd92018-07-24 17:03:44 -07001091 "core/java/android/os/NativeHandle.java",
Steven Morelandeddafe92017-10-02 16:58:41 -07001092 "core/java/android/os/RemoteException.java",
1093 "core/java/android/util/AndroidException.java",
1094 ],
Artur Satayevafdb23a2019-12-10 17:47:53 +00001095 libs: [ "unsupportedappusage" ],
Steven Morelandeddafe92017-10-02 16:58:41 -07001096
1097 dxflags: ["--core-library"],
1098 installable: false,
1099}
Nan Zhang2db709d2017-11-08 20:48:46 -08001100
1101python_defaults {
1102 name: "base_default",
1103 version: {
1104 py2: {
1105 enabled: true,
1106 embedded_launcher: true,
1107 },
1108 py3: {
1109 enabled: false,
1110 embedded_launcher: false,
1111 },
1112 },
1113}
1114
1115python_binary_host {
1116 name: "fontchain_linter",
1117 defaults: ["base_default"],
1118 main: "tools/fonts/fontchain_linter.py",
1119 srcs: [
1120 "tools/fonts/fontchain_linter.py",
1121 ],
1122 libs: [
1123 "fontTools",
1124 ],
1125}
Nan Zhang172875b2018-02-27 11:24:03 -08001126
Nan Zhangaf251302018-08-30 10:59:51 -07001127filegroup {
1128 name: "framework-annotation-nonnull-srcs",
1129 srcs: [
1130 "core/java/android/annotation/NonNull.java",
1131 ],
1132}
Insun Kang06b25ae2018-11-20 10:05:44 +09001133
1134filegroup {
1135 name: "framework-media-annotation-srcs",
1136 srcs: [
Jeff Sharkey40182832019-12-18 14:06:48 -07001137 ":framework-annotations",
Insun Kang06b25ae2018-11-20 10:05:44 +09001138 "core/java/android/annotation/CallbackExecutor.java",
Insun Kangf86a56c2019-01-22 17:16:07 +09001139 "core/java/android/annotation/CallSuper.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001140 "core/java/android/annotation/DrawableRes.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001141 "core/java/android/annotation/LongDef.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001142 "core/java/android/annotation/StringDef.java",
Jeff Sharkey40182832019-12-18 14:06:48 -07001143 ],
1144}
1145
1146filegroup {
1147 name: "framework-mediaprovider-annotation-sources",
1148 srcs: [
1149 ":framework-annotations",
1150 "core/java/android/annotation/BytesLong.java",
1151 "core/java/android/annotation/CurrentTimeMillisLong.java",
1152 "core/java/android/annotation/CurrentTimeSecondsLong.java",
1153 "core/java/android/annotation/DurationMillisLong.java",
Insun Kang06b25ae2018-11-20 10:05:44 +09001154 ],
1155}
1156
Andrei Onea7a2985c2019-02-18 15:28:35 +00001157// Creates an index of AIDL methods; used for adding UnsupportedAppUsage
1158// annotations to private apis
1159aidl_mapping {
1160 name: "framework-aidl-mappings",
Jiyong Parkae9972b2019-09-15 20:19:02 +09001161 srcs: [":framework-all-sources"],
Tobias Thiererbc05034a2019-05-23 16:20:12 +01001162 output: "framework-aidl-mappings.txt",
Kyunglyul Hyund51666d2019-04-11 04:08:40 +00001163}
Anna Trostanetski97088e92019-06-26 14:47:58 +01001164
1165genrule {
1166 name: "framework-annotation-proc-index",
Jiyong Park97183492019-11-14 03:07:36 +00001167 srcs: [":framework-annotation-proc"],
Anna Trostanetski97088e92019-06-26 14:47:58 +01001168 cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)",
1169 out: ["unsupportedappusage_index.csv"],
1170 dist: {
1171 targets: ["droidcore"],
1172 },
1173}
Chen Xu192bf1f2019-09-05 22:07:42 -07001174
1175// Avoid including Parcelable classes as we don't want to have two copies of
Malcolm Chen58b59a52020-01-14 19:25:13 -08001176// Parcelable cross the libraries. This is used by telephony-common (frameworks/opt/telephony)
1177// and TeleService app (packages/services/Telephony).
Chen Xu192bf1f2019-09-05 22:07:42 -07001178filegroup {
Malcolm Chen58b59a52020-01-14 19:25:13 -08001179 name: "framework-telephony-common-shared-srcs",
Chen Xu192bf1f2019-09-05 22:07:42 -07001180 srcs: [
Hall Liuaa4398e2019-12-24 14:13:25 -08001181 "core/java/android/os/BasicShellCommandHandler.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001182 "core/java/android/os/RegistrantList.java",
1183 "core/java/android/os/Registrant.java",
1184 "core/java/android/util/LocalLog.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001185 "core/java/android/util/TimeUtils.java",
1186 "core/java/com/android/internal/os/SomeArgs.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001187 "core/java/com/android/internal/util/AsyncChannel.java",
Meng Wang3043dac2020-01-14 14:04:10 -08001188 "core/java/com/android/internal/util/AsyncService.java",
Meng Wang9c2a8e02019-12-13 16:45:34 -08001189 "core/java/com/android/internal/util/BitwiseInputStream.java",
Michelebadc0212019-10-31 11:48:43 -07001190 "core/java/com/android/internal/util/FastXmlSerializer.java",
1191 "core/java/com/android/internal/util/HexDump.java",
Meng Wang64fffb92019-12-02 10:42:20 -08001192 "core/java/com/android/internal/util/IState.java",
Michelebadc0212019-10-31 11:48:43 -07001193 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001194 "core/java/com/android/internal/util/Preconditions.java",
1195 "core/java/com/android/internal/util/State.java",
1196 "core/java/com/android/internal/util/StateMachine.java",
Michelebadc0212019-10-31 11:48:43 -07001197 "core/java/com/android/internal/util/UserIcons.java",
Chen Xu192bf1f2019-09-05 22:07:42 -07001198 ],
1199}
1200
Chen Xu4fea79c2019-10-08 18:39:03 -07001201// Avoid including Parcelable classes as we don't want to have two copies of
Malcolm Chen58b59a52020-01-14 19:25:13 -08001202// Parcelable cross the process. This is used by framework-telephony (frameworks/base/telephony).
1203filegroup {
1204 name: "framework-telephony-shared-srcs",
1205 srcs: [
1206 "core/java/android/util/RecurrenceRule.java",
1207 "core/java/com/android/internal/os/SomeArgs.java",
1208 "core/java/com/android/internal/util/BitwiseInputStream.java",
1209 "core/java/com/android/internal/util/BitwiseOutputStream.java",
1210 "core/java/com/android/internal/util/HexDump.java",
1211 "core/java/com/android/internal/util/IndentingPrintWriter.java",
1212 "core/java/com/android/internal/util/Preconditions.java",
1213 ],
1214}
1215
1216// Avoid including Parcelable classes as we don't want to have two copies of
Chen Xu4fea79c2019-10-08 18:39:03 -07001217// Parcelable cross the process.
1218filegroup {
1219 name: "framework-cellbroadcast-shared-srcs",
1220 srcs: [
Jordan Liu15a72742019-11-20 13:55:18 -08001221 "core/java/android/os/HandlerExecutor.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001222 "core/java/android/util/LocalLog.java",
Jordan Liu15a72742019-11-20 13:55:18 -08001223 "core/java/com/android/internal/util/IState.java",
1224 "core/java/com/android/internal/util/Preconditions.java",
Chen Xu4fea79c2019-10-08 18:39:03 -07001225 "core/java/com/android/internal/util/State.java",
1226 "core/java/com/android/internal/util/StateMachine.java",
1227 ],
atrostce84de02019-10-08 16:16:47 +01001228}
Roshan Pius09de13e2019-10-16 13:16:04 -07001229
1230filegroup {
Jayachandran Ceeffa012019-10-23 18:06:33 -07001231 name: "framework-ims-common-shared-srcs",
1232 srcs: [
Jayachandran Ceeffa012019-10-23 18:06:33 -07001233 "core/java/android/os/RegistrantList.java",
1234 "core/java/android/os/Registrant.java",
1235 "core/java/com/android/internal/os/SomeArgs.java",
1236 "core/java/com/android/internal/util/Preconditions.java",
1237 ],
1238}
1239
David Su511a8142020-01-09 14:02:21 -08001240// utility classes statically linked into framework-wifi and dynamically linked
1241// into wifi-service
1242java_library {
1243 name: "framework-wifi-util-lib",
1244 sdk_version: "core_current",
1245 srcs: [
1246 "core/java/android/content/pm/BaseParceledListSlice.java",
1247 "core/java/android/content/pm/ParceledListSlice.java",
David Su369c9202020-01-09 18:09:56 -08001248 "core/java/android/net/shared/Inet4AddressUtils.java",
1249 "core/java/android/os/HandlerExecutor.java",
David Su511a8142020-01-09 14:02:21 -08001250 "core/java/com/android/internal/util/AsyncChannel.java",
1251 "core/java/com/android/internal/util/AsyncService.java",
1252 "core/java/com/android/internal/util/Protocol.java",
1253 "core/java/com/android/internal/util/Preconditions.java",
David Su369c9202020-01-09 18:09:56 -08001254 "telephony/java/android/telephony/Annotation.java",
David Su298cd362020-01-17 19:02:49 +00001255 ":net-utils-framework-wifi-common-srcs",
David Su511a8142020-01-09 14:02:21 -08001256 ],
1257 libs: [
1258 "framework-annotations-lib",
1259 "unsupportedappusage",
1260 "android_system_stubs_current",
1261 ],
1262 visibility: ["//frameworks/base/wifi"],
1263}
1264
1265// utility classes statically linked into wifi-service
Jayachandran Ceeffa012019-10-23 18:06:33 -07001266filegroup {
Roshan Pius62eb61c2019-12-06 13:49:47 -08001267 name: "framework-wifi-service-shared-srcs",
Roshan Pius09de13e2019-10-16 13:16:04 -07001268 srcs: [
Roshan Piusc93cd7a2019-12-09 07:39:41 -08001269 "core/java/android/net/InterfaceConfiguration.java",
Roshan Pius3032c892020-01-08 11:10:15 -08001270 "core/java/android/os/BasicShellCommandHandler.java",
Roshan Pius04769a52019-12-04 13:03:47 -08001271 "core/java/android/util/BackupUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001272 "core/java/android/util/LocalLog.java",
1273 "core/java/android/util/Rational.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001274 "core/java/com/android/internal/util/FastXmlSerializer.java",
1275 "core/java/com/android/internal/util/HexDump.java",
1276 "core/java/com/android/internal/util/IState.java",
1277 "core/java/com/android/internal/util/MessageUtils.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001278 "core/java/com/android/internal/util/State.java",
1279 "core/java/com/android/internal/util/StateMachine.java",
1280 "core/java/com/android/internal/util/WakeupMessage.java",
Roshan Pius09de13e2019-10-16 13:16:04 -07001281 ],
David Su298cd362020-01-17 19:02:49 +00001282 visibility: ["//frameworks/opt/net/wifi/service"],
Roshan Pius09de13e2019-10-16 13:16:04 -07001283}
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001284
1285// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
1286metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
1287 "--ignore-classes-on-classpath " +
1288 "--hide-package com.android.server " +
1289 "--error UnhiddenSystemApi " +
1290 "--hide RequiresPermission " +
1291 "--hide CallbackInterface " +
1292 "--hide MissingPermission --hide BroadcastBehavior " +
1293 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
1294 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
Aurimas Liutikas1f76a5a2019-11-20 17:51:42 -08001295 "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " +
1296 "--api-lint-ignore-prefix android.icu. " +
1297 "--api-lint-ignore-prefix java. " +
1298 "--api-lint-ignore-prefix junit. " +
1299 "--api-lint-ignore-prefix org. "
Jiyong Park0d7e86d2019-12-20 14:35:43 +09001300
1301build = [
1302 "StubLibraries.bp",
1303 "ApiDocs.bp",
1304]
Chen Xu546ce5e2020-01-10 08:38:31 -08001305
1306// TODO(b/147699819): move to frameworks/base/telephony/ folder
1307droidstubs {
1308 name: "framework-telephony-stubs-srcs",
1309 srcs: [
1310 ":framework-telephony-sources",
1311 ":framework_native_aidl",
1312 ":framework-javastream-protos",
1313 ],
1314 aidl: {
1315 local_include_dirs: [
1316 "core/java",
1317 "telecomm/java"
1318 ],
1319 },
1320 libs: [
1321 "framework-annotations-lib",
1322 "android.hardware.radio-V1.5-java",
1323 ],
1324 defaults: ["framework-module-stubs-defaults-systemapi"],
1325 filter_packages: ["android.telephony"],
1326 sdk_version: "system_current",
1327}
1328
1329java_library {
1330 name: "framework-telephony-stubs",
1331 srcs: [":framework-telephony-stubs-srcs"],
1332 // TODO(b/147699819): move public aidls to a separate folder and potentially remove
1333 // below aidl exports.
1334 aidl: {
1335 export_include_dirs: ["telephony/java"],
1336 },
David Suc976e862020-01-16 20:50:11 -08001337 sdk_version: "core_current",
1338 libs: ["android_system_stubs_current"],
Chen Xu546ce5e2020-01-10 08:38:31 -08001339}
1340
1341java_library {
1342 name: "framework-telephony",
1343 srcs: [
1344 ":framework-telephony-sources",
Malcolm Chen58b59a52020-01-14 19:25:13 -08001345 ":framework-telephony-shared-srcs",
Chen Xu546ce5e2020-01-10 08:38:31 -08001346 ],
1347 // TODO: change to framework-system-stub to build against system APIs.
1348 libs: [
1349 "framework-minus-apex",
1350 "unsupportedappusage",
Dheeraj Shetty81a4f4e2020-01-15 16:30:18 -08001351 "ike-stubs",
Chen Xu546ce5e2020-01-10 08:38:31 -08001352 ],
1353 static_libs: [
1354 "libphonenumber-platform",
1355 "app-compat-annotations",
1356 ],
1357 sdk_version: "core_platform",
1358 aidl: {
1359 export_include_dirs: ["telephony/java"],
1360 include_dirs: [
1361 "frameworks/native/aidl/binder",
1362 "frameworks/native/aidl/gui",
1363 ]
1364 },
Malcolm Chen58b59a52020-01-14 19:25:13 -08001365 jarjar_rules: ":framework-telephony-jarjar-rules",
Chen Xu546ce5e2020-01-10 08:38:31 -08001366 dxflags: [
1367 "--core-library",
1368 "--multi-dex",
1369 ],
1370 // This is to break the dependency from boot jars.
1371 dex_preopt: {
1372 enabled: false,
1373 },
1374 installable: true,
1375}
1376
1377filegroup {
1378 // TODO (b/147690217): move to frameworks/base/telephony/common.
1379 name: "framework-telephony-annotations",
1380 srcs: ["telephony/java/android/telephony/Annotation.java"],
1381}
1382
1383filegroup {
Malcolm Chen58b59a52020-01-14 19:25:13 -08001384 name: "framework-telephony-jarjar-rules",
Chen Xu546ce5e2020-01-10 08:38:31 -08001385 srcs: ["telephony/framework-telephony-jarjar-rules.txt"],
1386}