blob: 084c9f51d12e0d7675c38f66714b3dac0e6df4b5 [file] [log] [blame]
Dan Albert2a8d9c22016-09-23 15:55:49 -07001// Copyright (C) 2016 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Colin Crosscf3a0b52017-11-16 00:15:28 -080015// Build the master framework library.
16
17// READ ME: ########################################################
18//
19// When updating this list of aidl files, consider if that aidl is
20// part of the SDK API. If it is, also add it to the list in Android.mk
21// that is preprocessed and distributed with the SDK. This list should
22// not contain any aidl files for parcelables, but the one below should
23// if you intend for 3rd parties to be able to send those objects
24// across process boundaries.
25//
26// READ ME: ########################################################
27
Bob Badour051ef782021-02-12 17:07:05 -080028package {
29 default_applicable_licenses: ["frameworks_base_license"],
30}
31
32// Added automatically by a large-scale-change that took the approach of
33// 'apply every license found to every target'. While this makes sure we respect
34// every license restriction, it may not be entirely correct.
35//
36// e.g. GPL in an MIT project might only apply to the contrib/ directory.
37//
38// Please consider splitting the single license below into multiple licenses,
39// taking care not to lose any license_kind information, and overriding the
40// default license using the 'licenses: [...]' property on targets as needed.
41//
42// For unused files, consider creating a 'fileGroup' with "//visibility:private"
43// to attach the license to, and including a comment whether the files may be
44// used in the current project.
45// See: http://go/android-license-faq
46license {
47 name: "frameworks_base_license",
48 visibility: [":__subpackages__"],
49 license_kinds: [
50 "SPDX-license-identifier-Apache-2.0",
51 "SPDX-license-identifier-BSD",
52 "SPDX-license-identifier-CC-BY",
53 "SPDX-license-identifier-CPL-1.0",
54 "SPDX-license-identifier-GPL",
55 "SPDX-license-identifier-GPL-2.0",
56 "SPDX-license-identifier-MIT",
57 "SPDX-license-identifier-Unicode-DFS",
58 "SPDX-license-identifier-W3C",
59 "legacy_unencumbered",
60 ],
61 license_text: [
62 "NOTICE",
63 ],
64}
65
Artur Satayev005d7352019-08-02 16:42:07 +010066filegroup {
Jiyong Parkae9972b2019-09-15 20:19:02 +090067 name: "framework-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +090068 srcs: [
69 // Java/AIDL sources under frameworks/base
Sudheer Shankaf5b36962019-10-04 16:16:13 -070070 ":framework-blobstore-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +090071 ":framework-core-sources",
72 ":framework-drm-sources",
Anton Hanssonfbb283f2021-03-30 12:09:53 +010073 ":framework-graphics-nonupdatable-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +090074 ":framework-jobscheduler-sources", // jobscheduler is not a module for R
Jiyong Park5366ea22019-08-19 15:24:49 +090075 ":framework-keystore-sources",
David Zeuthen045b6de2019-10-29 15:15:18 -040076 ":framework-identity-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +090077 ":framework-location-sources",
78 ":framework-lowpan-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +090079 ":framework-mca-effect-sources",
80 ":framework-mca-filterfw-sources",
81 ":framework-mca-filterpacks-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +090082 ":framework-media-sources",
Amit Mahajan153d31b2019-10-07 17:41:26 -070083 ":framework-mms-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +090084 ":framework-opengl-sources",
85 ":framework-rs-sources",
86 ":framework-sax-sources",
87 ":framework-telecomm-sources",
Amit Mahajanac0fd652019-09-23 17:59:57 -070088 ":framework-telephony-common-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +090089 ":framework-telephony-sources",
Benedict Wong26497362020-08-10 17:54:33 -070090 ":framework-vcn-util-sources",
David Su130441b2019-12-14 21:37:20 -080091 ":framework-wifi-annotations",
David Su6f646ef2019-12-10 13:33:06 -080092 ":framework-wifi-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +090093 ":PacProcessor-aidl-sources",
94 ":ProxyHandler-aidl-sources",
Aaron Huangc4081b22020-01-13 15:03:35 +080095 ":net-utils-framework-common-srcs",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +090096
atrostff948d82019-10-10 19:27:31 +010097 // AIDL from frameworks/base/native/
98 ":platform-compat-native-aidl",
99
Jiyong Park5366ea22019-08-19 15:24:49 +0900100 // AIDL sources from external directories
Janis Danisevskis15212602021-03-17 11:02:19 -0700101 ":android.hardware.security.keymint-V1-java-source",
102 ":android.hardware.security.secureclock-V1-java-source",
103 ":android.security.apc-java-source",
104 ":android.security.authorization-java-source",
105 ":android.security.maintenance-java-source",
106 ":android.security.vpnprofilestore-java-source",
107 ":android.system.keystore2-V1-java-source",
David Zeuthen045b6de2019-10-29 15:15:18 -0400108 ":credstore_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900109 ":dumpstate_aidl",
110 ":framework_native_aidl",
111 ":gatekeeper_aidl",
112 ":gsiservice_aidl",
113 ":incidentcompanion_aidl",
114 ":installd_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900115 ":libaudioclient_aidl",
116 ":libbinder_aidl",
117 ":libbluetooth-binder-aidl",
118 ":libcamera_client_aidl",
119 ":libcamera_client_framework_aidl",
Steven Moreland8bb6bc22021-03-26 01:32:39 +0000120 ":packagemanager_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900121 ":libupdate_engine_aidl",
Amy Zhangccdbc4d2020-06-08 21:29:59 -0700122 ":resourcemanager_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900123 ":storaged_aidl",
124 ":vold_aidl",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900125
Jiyong Park5366ea22019-08-19 15:24:49 +0900126 // For the generated R.java and Manifest.java
127 ":framework-res{.aapt.srcjar}",
128
129 // etc.
130 ":framework-javastream-protos",
Muhammad Qureshi1de1df42020-01-27 16:36:45 -0800131 ":statslog-framework-java-gen", // FrameworkStatsLog.java
Hayden Gomesc164f6a2020-11-05 16:28:21 -0800132 ":audio_policy_configuration_V7_0",
Jiyong Park5366ea22019-08-19 15:24:49 +0900133 ],
134}
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900135
Anton Hansson5f208a22020-03-07 11:40:10 +0000136java_library {
137 name: "framework-updatable-stubs-module_libs_api",
138 static_libs: [
Yan Yanf8b973c2021-02-03 16:07:30 -0800139 "android.net.ipsec.ike.stubs.module_lib",
Paul Duffinabebc6a2020-05-31 11:35:50 +0100140 "framework-media.stubs.module_lib",
141 "framework-mediaprovider.stubs.module_lib",
142 "framework-permission.stubs.module_lib",
Paul Duffin3bde2d52020-06-02 11:41:13 +0100143 "framework-sdkextensions.stubs.module_lib",
Paul Duffinabebc6a2020-05-31 11:35:50 +0100144 "framework-statsd.stubs.module_lib",
Paul Duffin01fd6ff2020-06-02 11:41:13 +0100145 "framework-tethering.stubs.module_lib",
Paul Duffinabebc6a2020-05-31 11:35:50 +0100146 "framework-wifi.stubs.module_lib",
Anton Hansson5f208a22020-03-07 11:40:10 +0000147 ],
148 sdk_version: "module_current",
Anton Hansson7a9bc4e2020-08-18 12:52:44 +0100149 visibility: ["//visibility:private"],
150}
151
152java_library {
153 name: "framework-all",
154 installable: false,
155 static_libs: [
Yan Yanf8b973c2021-02-03 16:07:30 -0800156 "android.net.ipsec.ike.impl",
Anton Hansson7a9bc4e2020-08-18 12:52:44 +0100157 "framework-minus-apex",
158 "framework-mediaprovider.impl",
159 "framework-permission.impl",
160 "framework-sdkextensions.impl",
161 "framework-statsd.impl",
162 "framework-tethering.impl",
163 "framework-wifi.impl",
164 "updatable-media",
165 ],
166 apex_available: ["//apex_available:platform"],
167 sdk_version: "core_platform",
168 visibility: [
169 // DO NOT ADD ANY MORE ENTRIES TO THIS LIST
170 "//external/robolectric-shadows:__subpackages__",
171 "//frameworks/layoutlib:__subpackages__",
172 ],
Anton Hansson5f208a22020-03-07 11:40:10 +0000173}
174
Jiyong Park392729f2020-01-17 16:32:53 +0900175// AIDL files under these paths are mixture of public and private ones.
176// They shouldn't be exported across module boundaries.
Artur Satayev005d7352019-08-02 16:42:07 +0100177java_defaults {
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900178 name: "framework-aidl-export-defaults",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800179 aidl: {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900180 export_include_dirs: [
181 "core/java",
182 "drm/java",
183 "graphics/java",
David Zeuthen045b6de2019-10-29 15:15:18 -0400184 "identity/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900185 "keystore/java",
186 "location/java",
187 "lowpan/java",
188 "media/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900189 "media/mca/effect/java",
190 "media/mca/filterfw/java",
191 "media/mca/filterpacks/java",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700192 "mms/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900193 "opengl/java",
194 "rs/java",
195 "sax/java",
196 "telecomm/java",
Anton Hansson5f208a22020-03-07 11:40:10 +0000197
Sungsoo Lim895f4f62020-04-08 11:21:36 +0900198 "apex/media/aidl/stable",
Anton Hansson5f208a22020-03-07 11:40:10 +0000199 // TODO(b/147699819): remove this
200 "telephony/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900201 ],
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900202 },
203}
Colin Crosscf3a0b52017-11-16 00:15:28 -0800204
Jiyong Park5366ea22019-08-19 15:24:49 +0900205// Collection of classes that are generated from non-Java files that are not listed in
206// framework_srcs. These have no or very limited dependency to the framework.
207java_library {
208 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800209 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100210 "apex_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800211 "framework-protos",
Peiyong Linb967a4c2020-07-27 22:16:13 -0700212 "updatable-driver-protos",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800213 "android.hidl.base-V1.0-java",
214 "android.hardware.cas-V1.0-java",
Henry Fang43cab922019-12-27 16:50:20 -0800215 "android.hardware.cas-V1.1-java",
216 "android.hardware.cas-V1.2-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800217 "android.hardware.contexthub-V1.0-java",
Anthony Stange521a9052020-02-07 18:45:47 -0500218 "android.hardware.contexthub-V1.1-java",
Yu-Han Yang9fe06dd2019-11-18 16:23:31 -0800219 "android.hardware.gnss-V1.0-java",
Yu-Han Yangad03c472020-01-14 15:31:01 -0800220 "android.hardware.gnss-V2.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800221 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800222 "android.hardware.radio-V1.0-java",
223 "android.hardware.radio-V1.1-java",
224 "android.hardware.radio-V1.2-java",
225 "android.hardware.radio-V1.3-java",
226 "android.hardware.radio-V1.4-java",
Sarah Chine138c5e2019-11-05 13:30:10 -0800227 "android.hardware.radio-V1.5-java",
Daniel Brightbd26ad22020-09-02 17:10:54 -0700228 "android.hardware.radio-V1.6-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800229 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800230 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700231 "android.hardware.thermal-V1.1-java",
232 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800233 "android.hardware.tv.input-V1.0-java-constants",
shubang7e849b02019-10-18 19:36:25 -0700234 "android.hardware.tv.tuner-V1.0-java-constants",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800235 "android.hardware.usb-V1.0-java-constants",
236 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800237 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800238 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000239 "android.hardware.vibrator-V1.0-java",
240 "android.hardware.vibrator-V1.1-java",
241 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900242 "android.hardware.vibrator-V1.3-java",
Michael Sund5237962020-11-06 03:28:14 +0000243 "android.system.suspend.control.internal-java",
arangelov1ab61492018-11-22 13:56:50 +0000244 "devicepolicyprotosnano",
Inseob Kim617a7222019-07-30 18:23:26 +0900245
246 "com.android.sysprop.apex",
Nikita Ioffe9c4b572552020-02-06 23:17:17 +0000247 "com.android.sysprop.init",
Alexander Mishkovets77f6bc82020-07-14 19:14:10 +0200248 "com.android.sysprop.localization",
Inseob Kim617a7222019-07-30 18:23:26 +0900249 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800250 ],
Jiyong Park5366ea22019-08-19 15:24:49 +0900251 sdk_version: "core_platform",
252 installable: false,
253}
254
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100255java_library {
Jiyong Parkc893b462019-10-28 15:33:08 +0900256 name: "framework-minus-apex",
Anton Hansson3e206722020-09-07 14:41:30 +0100257 defaults: ["framework-aidl-export-defaults"],
258 srcs: [
259 ":framework-non-updatable-sources",
Remi NGUYEN VANc15d99e2021-01-28 13:37:03 +0900260 ":framework-connectivity-sources",
Anton Hansson3e206722020-09-07 14:41:30 +0100261 "core/java/**/*.logtags",
262 ],
Anton Hansson3e206722020-09-07 14:41:30 +0100263 aidl: {
264 generate_get_transaction_name: true,
265 },
266 dxflags: [
267 "--core-library",
268 "--multi-dex",
269 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900270 installable: true,
Anton Hansson1461c6e2021-04-12 18:24:01 +0100271 jarjar_rules: "framework-jarjar-rules.txt",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100272 javac_shard_size: 150,
Anton Hansson3e206722020-09-07 14:41:30 +0100273 plugins: [
274 "view-inspector-annotation-processor",
275 "staledataclass-annotation-processor",
276 ],
atrostb9c34502019-08-05 12:22:18 +0100277 required: [
278 "framework-platform-compat-config",
Anton Hansson3e206722020-09-07 14:41:30 +0100279 // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly.
280 "gps_debug.conf",
Victor Changa4fae272020-10-30 12:14:34 +0000281 "icu4j-platform-compat-config",
Anton Hansson3e206722020-09-07 14:41:30 +0100282 "protolog.conf.json.gz",
atrost86895aa2019-08-19 16:51:15 +0100283 "services-platform-compat-config",
Ivan Chiang3cb1cbd2020-02-18 10:50:10 +0800284 "documents-ui-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100285 ],
Anton Hansson3e206722020-09-07 14:41:30 +0100286 libs: [
287 "app-compat-annotations",
288 "ext",
289 "framework-updatable-stubs-module_libs_api",
290 "unsupportedappusage",
291 ],
292 sdk_version: "core_platform",
Tobias Thierer17d0c592019-11-22 16:33:18 +0000293 static_libs: [
Daulet Zhanguzin59444d52021-01-25 19:43:53 +0000294 "bouncycastle-repackaged-unbundled",
Anton Hansson3e206722020-09-07 14:41:30 +0100295 "framework-internal-utils",
Tobias Thierer82968532019-11-29 19:39:45 +0000296 // If MimeMap ever becomes its own APEX, then this dependency would need to be removed
297 // in favor of an API stubs dependency in java_library "framework" below.
Tobias Thierer17d0c592019-11-22 16:33:18 +0000298 "mimemap",
Chiachang Wangd5726c12020-11-02 16:51:24 +0800299 "modules-utils-os",
Tobias Thierer17d0c592019-11-22 16:33:18 +0000300 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900301 // For backwards compatibility.
302 stem: "framework",
Jiyong Park79242c22019-12-09 14:45:07 +0900303 apex_available: ["//apex_available:platform"],
markchien8cf2a552020-02-14 11:55:48 +0800304 visibility: [
Jiyong Park212d2e82020-01-03 21:07:38 +0900305 "//frameworks/base",
Remi NGUYEN VANc15d99e2021-01-28 13:37:03 +0900306 // TODO: remove when framework-connectivity can build against API
307 "//frameworks/base/packages/Connectivity/framework",
markchien8cf2a552020-02-14 11:55:48 +0800308 // TODO(b/147128803) remove the below lines
Jiyong Park212d2e82020-01-03 21:07:38 +0900309 "//frameworks/base/apex/blobstore/framework",
310 "//frameworks/base/apex/jobscheduler/framework",
markchien8cf2a552020-02-14 11:55:48 +0800311 "//frameworks/base/packages/Tethering/tests/unit",
Baligh Uddinff8ff122020-10-29 02:11:55 +0000312 "//packages/modules/Connectivity/Tethering/tests/unit",
markchien8cf2a552020-02-14 11:55:48 +0800313 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900314}
315
316// This "framework" module is NOT installed to the device. It's
317// "framework-minus-apex" that gets installed to the device. Note that
318// the filename is still framework.jar (via the stem property) for
319// compatibility reason. The purpose of this module is to provide
320// framework APIs (both public and private) for bundled apps.
321// "framework-minus-apex" can't be used for the purpose because 1)
322// many apps have already hardcoded the name "framework" and
323// 2) it lacks API symbols from updatable modules - as it's clear from
324// its suffix "-minus-apex".
325java_library {
326 name: "framework",
327 defaults: ["framework-aidl-export-defaults"],
328 installable: false, // this lib is a build-only library
329 static_libs: [
Malcolm Chenc7991802020-03-16 15:28:35 -0700330 "app-compat-annotations",
Jiyong Parkc893b462019-10-28 15:33:08 +0900331 "framework-minus-apex",
Anton Hansson5f208a22020-03-07 11:40:10 +0000332 "framework-updatable-stubs-module_libs_api",
Jiyong Parkc893b462019-10-28 15:33:08 +0900333 ],
334 sdk_version: "core_platform",
Jiyong Park79242c22019-12-09 14:45:07 +0900335 apex_available: ["//apex_available:platform"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100336}
337
atrostb9c34502019-08-05 12:22:18 +0100338platform_compat_config {
339 name: "framework-platform-compat-config",
Artur Satayev1503d312020-03-25 15:36:55 +0000340 src: ":framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100341}
342
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900343filegroup {
Chalard Jean95213512019-01-30 21:04:58 +0900344 name: "framework-annotations",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900345 srcs: [
Anton Hanssonf5c65462021-03-30 13:39:22 +0100346 "core/java/android/annotation/AnyThread.java",
347 "core/java/android/annotation/AppIdInt.java",
348 "core/java/android/annotation/BytesLong.java",
David Su369c9202020-01-09 18:09:56 -0800349 "core/java/android/annotation/CallbackExecutor.java",
Anton Hanssonf5c65462021-03-30 13:39:22 +0100350 "core/java/android/annotation/CallSuper.java",
David Su511a8142020-01-09 14:02:21 -0800351 "core/java/android/annotation/CheckResult.java",
David Su77517342020-02-18 18:10:07 -0800352 "core/java/android/annotation/CurrentTimeMillisLong.java",
Anton Hanssonf5c65462021-03-30 13:39:22 +0100353 "core/java/android/annotation/CurrentTimeSecondsLong.java",
354 "core/java/android/annotation/DrawableRes.java",
355 "core/java/android/annotation/DurationMillisLong.java",
Roshan Piuseb7edd52020-02-21 07:37:30 -0800356 "core/java/android/annotation/Hide.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900357 "core/java/android/annotation/IntDef.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900358 "core/java/android/annotation/IntRange.java",
lesld41a2992020-02-20 17:30:58 +0800359 "core/java/android/annotation/LongDef.java",
Anton Hanssonf5c65462021-03-30 13:39:22 +0100360 "core/java/android/annotation/MainThread.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700361 "core/java/android/annotation/NonNull.java",
362 "core/java/android/annotation/Nullable.java",
Remi NGUYEN VAN2d14a4b2020-01-31 15:05:22 +0900363 "core/java/android/annotation/RequiresPermission.java",
Jeff Sharkey40182832019-12-18 14:06:48 -0700364 "core/java/android/annotation/SdkConstant.java",
David Su369c9202020-01-09 18:09:56 -0800365 "core/java/android/annotation/StringDef.java",
Anton Hanssonb52bd1c2019-12-06 17:07:28 +0000366 "core/java/android/annotation/SystemApi.java",
David Su369c9202020-01-09 18:09:56 -0800367 "core/java/android/annotation/SystemService.java",
Remi NGUYEN VAN2d14a4b2020-01-31 15:05:22 +0900368 "core/java/android/annotation/TestApi.java",
Anton Hanssonf5c65462021-03-30 13:39:22 +0100369 "core/java/android/annotation/UserIdInt.java",
Jeff Sharkeyf5eebf92020-03-06 14:41:56 -0700370 "core/java/android/annotation/WorkerThread.java",
Remi NGUYEN VAN231b52b2019-01-29 15:38:52 +0900371 "core/java/com/android/internal/annotations/GuardedBy.java",
David Su511a8142020-01-09 14:02:21 -0800372 "core/java/com/android/internal/annotations/Immutable.java",
Anton Hanssonf5c65462021-03-30 13:39:22 +0100373 "core/java/com/android/internal/annotations/VisibleForTesting.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100374 ],
Chalard Jean95213512019-01-30 21:04:58 +0900375}
376
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000377java_library {
378 name: "framework-annotations-lib",
Paul Duffinc1309182021-03-19 15:14:58 +0000379 srcs: [":framework-annotations"],
Anton Hansson0a3b7ad2019-12-19 10:17:46 +0000380 sdk_version: "core_current",
Anton Hansson4ec07fa2019-11-08 15:18:04 +0000381}
382
Chalard Jean95213512019-01-30 21:04:58 +0900383filegroup {
evitayane22e47f2019-12-30 16:05:38 -0800384 name: "framework-ike-shared-srcs",
Baligh Uddinb7ec5bb2020-05-27 19:22:36 +0000385 visibility: ["//packages/modules/IPsec"],
evitayane22e47f2019-12-30 16:05:38 -0800386 srcs: [
387 "core/java/android/net/annotations/PolicyDirection.java",
evitayane9cc4942020-03-03 17:14:47 -0800388 "core/java/com/android/internal/util/HexDump.java",
evitayan0efc7402019-12-20 17:55:57 -0800389 "core/java/com/android/internal/util/IState.java",
390 "core/java/com/android/internal/util/State.java",
391 "core/java/com/android/internal/util/StateMachine.java",
Yan Yana3e954f2020-11-09 00:09:39 -0800392 "services/core/java/com/android/server/vcn/util/PersistableBundleUtils.java",
evitayan996aa2a2019-12-30 11:19:47 -0800393 "telephony/java/android/telephony/Annotation.java",
evitayane22e47f2019-12-30 16:05:38 -0800394 ],
395}
396
397filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900398 name: "framework-networkstack-shared-srcs",
399 srcs: [
400 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900401 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900402 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900403 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900404 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900405 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900406 "core/java/com/android/internal/util/IState.java",
407 "core/java/com/android/internal/util/MessageUtils.java",
408 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900409 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900410 "core/java/com/android/internal/util/State.java",
411 "core/java/com/android/internal/util/StateMachine.java",
412 "core/java/com/android/internal/util/WakeupMessage.java",
johnson.yeh095b7a02019-12-19 20:30:34 +0800413 "core/java/com/android/internal/util/TokenBucket.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100414 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900415}
416
Colin Crossd8e02252017-10-02 17:14:22 -0700417// Build ext.jar
418// ============================================================
419java_library {
420 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700421 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100422 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700423 static_libs: [
424 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700425 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000426 "rappor",
Colin Crossd8e02252017-10-02 17:14:22 -0700427 ],
428 dxflags: ["--core-library"],
429}
430
David Su511a8142020-01-09 14:02:21 -0800431// utility classes statically linked into framework-wifi and dynamically linked
432// into wifi-service
433java_library {
434 name: "framework-wifi-util-lib",
Anton Hansson5a088e02020-03-31 18:09:01 +0100435 sdk_version: "module_current",
David Su511a8142020-01-09 14:02:21 -0800436 srcs: [
437 "core/java/android/content/pm/BaseParceledListSlice.java",
438 "core/java/android/content/pm/ParceledListSlice.java",
David Su369c9202020-01-09 18:09:56 -0800439 "core/java/android/os/HandlerExecutor.java",
David Su511a8142020-01-09 14:02:21 -0800440 "core/java/com/android/internal/util/AsyncChannel.java",
441 "core/java/com/android/internal/util/AsyncService.java",
442 "core/java/com/android/internal/util/Protocol.java",
443 "core/java/com/android/internal/util/Preconditions.java",
David Su369c9202020-01-09 18:09:56 -0800444 "telephony/java/android/telephony/Annotation.java",
David Su298cd362020-01-17 19:02:49 +0000445 ":net-utils-framework-wifi-common-srcs",
David Su511a8142020-01-09 14:02:21 -0800446 ],
447 libs: [
448 "framework-annotations-lib",
Remi NGUYEN VANc15d99e2021-01-28 13:37:03 +0900449 "framework-connectivity",
David Su511a8142020-01-09 14:02:21 -0800450 "unsupportedappusage",
David Su511a8142020-01-09 14:02:21 -0800451 ],
David Su57bca312020-04-21 19:49:32 -0700452 visibility: [
453 "//frameworks/base/wifi",
454 "//frameworks/base/services/net",
Baligh Uddin6bd6a562020-12-23 22:53:04 +0000455 "//packages/modules/Wifi/framework",
David Su57bca312020-04-21 19:49:32 -0700456 ],
David Su511a8142020-01-09 14:02:21 -0800457}
458
Jiyong Park7fb4b182019-12-20 14:35:43 +0900459// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
460metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
Jiyong Park7fb4b182019-12-20 14:35:43 +0900461 "--hide-package com.android.server " +
Hayden Gomesc164f6a2020-11-05 16:28:21 -0800462 "--hide-package android.audio.policy.configuration.V7_0 " +
Jiyong Park7fb4b182019-12-20 14:35:43 +0900463 "--error UnhiddenSystemApi " +
464 "--hide RequiresPermission " +
465 "--hide CallbackInterface " +
466 "--hide MissingPermission --hide BroadcastBehavior " +
467 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
468 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
Makoto Onuki78216582020-05-26 10:55:53 -0700469 "--error NoSettingsProvider " +
Aurimas Liutikas1f76a5a2019-11-20 17:51:42 -0800470 "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " +
471 "--api-lint-ignore-prefix android.icu. " +
472 "--api-lint-ignore-prefix java. " +
473 "--api-lint-ignore-prefix junit. " +
474 "--api-lint-ignore-prefix org. "
Jiyong Park7fb4b182019-12-20 14:35:43 +0900475
Anton Hansson77ff72f2021-03-30 10:11:22 +0100476filegroup {
477 name: "framework-non-updatable-stub-sources",
478 srcs: [
Anton Hanssona08dc692021-03-30 10:31:15 +0100479 ":framework-mime-sources", // mimemap builds separately but has no separate droidstubs.
Anton Hansson77ff72f2021-03-30 10:11:22 +0100480 ":framework-non-updatable-sources",
481 ":opt-telephony-srcs",
482 ":opt-net-voip-srcs",
483 "core/java/**/*.logtags",
484 "**/package.html",
485 ],
486 visibility: ["//visibility:private"],
487}
488
Jiyong Park7fb4b182019-12-20 14:35:43 +0900489build = [
490 "StubLibraries.bp",
491 "ApiDocs.bp",
Anton Hansson92b6c722021-04-12 18:05:56 +0100492 "ProtoLibraries.bp",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900493]