blob: c5d557c044726c110f94b8ddf66b25520d422598 [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
Baligh Uddin3b927562021-05-01 18:28:28 +000070 ":framework-annotations",
Sudheer Shankaf5b36962019-10-04 16:16:13 -070071 ":framework-blobstore-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +090072 ":framework-core-sources",
73 ":framework-drm-sources",
Anton Hanssonfbb283f2021-03-30 12:09:53 +010074 ":framework-graphics-nonupdatable-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +090075 ":framework-jobscheduler-sources", // jobscheduler is not a module for R
Jiyong Park5366ea22019-08-19 15:24:49 +090076 ":framework-keystore-sources",
David Zeuthen045b6de2019-10-29 15:15:18 -040077 ":framework-identity-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +090078 ":framework-location-sources",
79 ":framework-lowpan-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +090080 ":framework-mca-effect-sources",
81 ":framework-mca-filterfw-sources",
82 ":framework-mca-filterpacks-sources",
Jiyong Park48cc3722019-10-21 14:01:06 +090083 ":framework-media-sources",
Amit Mahajan153d31b2019-10-07 17:41:26 -070084 ":framework-mms-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +090085 ":framework-opengl-sources",
86 ":framework-rs-sources",
87 ":framework-sax-sources",
88 ":framework-telecomm-sources",
Amit Mahajanac0fd652019-09-23 17:59:57 -070089 ":framework-telephony-common-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +090090 ":framework-telephony-sources",
Benedict Wong26497362020-08-10 17:54:33 -070091 ":framework-vcn-util-sources",
David Su130441b2019-12-14 21:37:20 -080092 ":framework-wifi-annotations",
David Su6f646ef2019-12-10 13:33:06 -080093 ":framework-wifi-non-updatable-sources",
Jiyong Park5366ea22019-08-19 15:24:49 +090094 ":PacProcessor-aidl-sources",
95 ":ProxyHandler-aidl-sources",
Aaron Huangc4081b22020-01-13 15:03:35 +080096 ":net-utils-framework-common-srcs",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +090097
atrostff948d82019-10-10 19:27:31 +010098 // AIDL from frameworks/base/native/
99 ":platform-compat-native-aidl",
100
Jiyong Park5366ea22019-08-19 15:24:49 +0900101 // AIDL sources from external directories
Janis Danisevskis15212602021-03-17 11:02:19 -0700102 ":android.hardware.security.keymint-V1-java-source",
103 ":android.hardware.security.secureclock-V1-java-source",
104 ":android.security.apc-java-source",
105 ":android.security.authorization-java-source",
106 ":android.security.maintenance-java-source",
107 ":android.security.vpnprofilestore-java-source",
108 ":android.system.keystore2-V1-java-source",
David Zeuthen045b6de2019-10-29 15:15:18 -0400109 ":credstore_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900110 ":dumpstate_aidl",
111 ":framework_native_aidl",
112 ":gatekeeper_aidl",
113 ":gsiservice_aidl",
114 ":incidentcompanion_aidl",
115 ":installd_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900116 ":libaudioclient_aidl",
117 ":libbinder_aidl",
118 ":libbluetooth-binder-aidl",
119 ":libcamera_client_aidl",
120 ":libcamera_client_framework_aidl",
Steven Moreland8bb6bc22021-03-26 01:32:39 +0000121 ":packagemanager_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900122 ":libupdate_engine_aidl",
Amy Zhangccdbc4d2020-06-08 21:29:59 -0700123 ":resourcemanager_aidl",
Jiyong Park5366ea22019-08-19 15:24:49 +0900124 ":storaged_aidl",
125 ":vold_aidl",
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900126
Jiyong Park5366ea22019-08-19 15:24:49 +0900127 // For the generated R.java and Manifest.java
128 ":framework-res{.aapt.srcjar}",
129
130 // etc.
131 ":framework-javastream-protos",
Muhammad Qureshi1de1df42020-01-27 16:36:45 -0800132 ":statslog-framework-java-gen", // FrameworkStatsLog.java
Hayden Gomesc164f6a2020-11-05 16:28:21 -0800133 ":audio_policy_configuration_V7_0",
Jiyong Park5366ea22019-08-19 15:24:49 +0900134 ],
135}
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900136
Anton Hansson5f208a22020-03-07 11:40:10 +0000137java_library {
138 name: "framework-updatable-stubs-module_libs_api",
139 static_libs: [
Yan Yanf8b973c2021-02-03 16:07:30 -0800140 "android.net.ipsec.ike.stubs.module_lib",
Paul Duffinabebc6a2020-05-31 11:35:50 +0100141 "framework-media.stubs.module_lib",
142 "framework-mediaprovider.stubs.module_lib",
143 "framework-permission.stubs.module_lib",
Paul Duffin3bde2d52020-06-02 11:41:13 +0100144 "framework-sdkextensions.stubs.module_lib",
Paul Duffinabebc6a2020-05-31 11:35:50 +0100145 "framework-statsd.stubs.module_lib",
Paul Duffin01fd6ff2020-06-02 11:41:13 +0100146 "framework-tethering.stubs.module_lib",
Paul Duffinabebc6a2020-05-31 11:35:50 +0100147 "framework-wifi.stubs.module_lib",
Anton Hansson5f208a22020-03-07 11:40:10 +0000148 ],
149 sdk_version: "module_current",
Anton Hansson7a9bc4e2020-08-18 12:52:44 +0100150 visibility: ["//visibility:private"],
151}
152
153java_library {
154 name: "framework-all",
155 installable: false,
156 static_libs: [
Yan Yanf8b973c2021-02-03 16:07:30 -0800157 "android.net.ipsec.ike.impl",
Anton Hansson7a9bc4e2020-08-18 12:52:44 +0100158 "framework-minus-apex",
159 "framework-mediaprovider.impl",
160 "framework-permission.impl",
161 "framework-sdkextensions.impl",
162 "framework-statsd.impl",
163 "framework-tethering.impl",
164 "framework-wifi.impl",
165 "updatable-media",
166 ],
167 apex_available: ["//apex_available:platform"],
168 sdk_version: "core_platform",
169 visibility: [
170 // DO NOT ADD ANY MORE ENTRIES TO THIS LIST
171 "//external/robolectric-shadows:__subpackages__",
172 "//frameworks/layoutlib:__subpackages__",
173 ],
Anton Hansson5f208a22020-03-07 11:40:10 +0000174}
175
Jiyong Park392729f2020-01-17 16:32:53 +0900176// AIDL files under these paths are mixture of public and private ones.
177// They shouldn't be exported across module boundaries.
Artur Satayev005d7352019-08-02 16:42:07 +0100178java_defaults {
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900179 name: "framework-aidl-export-defaults",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800180 aidl: {
Jiyong Park7e1339e2019-08-16 21:17:14 +0900181 export_include_dirs: [
182 "core/java",
183 "drm/java",
184 "graphics/java",
David Zeuthen045b6de2019-10-29 15:15:18 -0400185 "identity/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900186 "keystore/java",
187 "location/java",
188 "lowpan/java",
189 "media/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900190 "media/mca/effect/java",
191 "media/mca/filterfw/java",
192 "media/mca/filterpacks/java",
Amit Mahajan153d31b2019-10-07 17:41:26 -0700193 "mms/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900194 "opengl/java",
195 "rs/java",
196 "sax/java",
197 "telecomm/java",
Anton Hansson5f208a22020-03-07 11:40:10 +0000198
Sungsoo Lim895f4f62020-04-08 11:21:36 +0900199 "apex/media/aidl/stable",
Anton Hansson5f208a22020-03-07 11:40:10 +0000200 // TODO(b/147699819): remove this
201 "telephony/java",
Jiyong Park7e1339e2019-08-16 21:17:14 +0900202 ],
Jiyong Park0c6dc7b2019-08-07 22:45:07 +0900203 },
204}
Colin Crosscf3a0b52017-11-16 00:15:28 -0800205
Jiyong Park5366ea22019-08-19 15:24:49 +0900206// Collection of classes that are generated from non-Java files that are not listed in
207// framework_srcs. These have no or very limited dependency to the framework.
208java_library {
209 name: "framework-internal-utils",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800210 static_libs: [
Dario Frenid8bf22e2018-08-31 14:18:04 +0100211 "apex_aidl_interface-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800212 "framework-protos",
Peiyong Linb967a4c2020-07-27 22:16:13 -0700213 "updatable-driver-protos",
Kelvin Zhanga48c18e2021-04-12 17:23:51 -0400214 "ota_metadata_proto_java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800215 "android.hidl.base-V1.0-java",
216 "android.hardware.cas-V1.0-java",
Henry Fang43cab922019-12-27 16:50:20 -0800217 "android.hardware.cas-V1.1-java",
218 "android.hardware.cas-V1.2-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800219 "android.hardware.contexthub-V1.0-java",
Anthony Stange521a9052020-02-07 18:45:47 -0500220 "android.hardware.contexthub-V1.1-java",
Yu-Han Yang9fe06dd2019-11-18 16:23:31 -0800221 "android.hardware.gnss-V1.0-java",
Yu-Han Yangad03c472020-01-14 15:31:01 -0800222 "android.hardware.gnss-V2.1-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800223 "android.hardware.health-V1.0-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800224 "android.hardware.radio-V1.0-java",
225 "android.hardware.radio-V1.1-java",
226 "android.hardware.radio-V1.2-java",
227 "android.hardware.radio-V1.3-java",
228 "android.hardware.radio-V1.4-java",
Sarah Chine138c5e2019-11-05 13:30:10 -0800229 "android.hardware.radio-V1.5-java",
Daniel Brightbd26ad22020-09-02 17:10:54 -0700230 "android.hardware.radio-V1.6-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800231 "android.hardware.thermal-V1.0-java-constants",
Wei Wangfb21bd82019-01-10 14:16:23 -0800232 "android.hardware.thermal-V1.0-java",
Wei Wangbad7c202018-11-01 11:57:39 -0700233 "android.hardware.thermal-V1.1-java",
234 "android.hardware.thermal-V2.0-java",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800235 "android.hardware.tv.input-V1.0-java-constants",
shubang7e849b02019-10-18 19:36:25 -0700236 "android.hardware.tv.tuner-V1.0-java-constants",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800237 "android.hardware.usb-V1.0-java-constants",
238 "android.hardware.usb-V1.1-java-constants",
Badhri Jagan Sridharane966a382018-12-09 14:49:38 -0800239 "android.hardware.usb-V1.2-java-constants",
Steven Morelande0dde652019-01-24 12:03:26 -0800240 "android.hardware.usb.gadget-V1.0-java",
Michael Wrightf268bf52018-02-07 23:23:34 +0000241 "android.hardware.vibrator-V1.0-java",
242 "android.hardware.vibrator-V1.1-java",
243 "android.hardware.vibrator-V1.2-java",
Harpreet "Eli" Sanghaa456f082018-12-14 12:06:10 +0900244 "android.hardware.vibrator-V1.3-java",
Michael Sund5237962020-11-06 03:28:14 +0000245 "android.system.suspend.control.internal-java",
arangelov1ab61492018-11-22 13:56:50 +0000246 "devicepolicyprotosnano",
Inseob Kim617a7222019-07-30 18:23:26 +0900247
248 "com.android.sysprop.apex",
Nikita Ioffe9c4b572552020-02-06 23:17:17 +0000249 "com.android.sysprop.init",
Alexander Mishkovets77f6bc82020-07-14 19:14:10 +0200250 "com.android.sysprop.localization",
Inseob Kim617a7222019-07-30 18:23:26 +0900251 "PlatformProperties",
Colin Crosscf3a0b52017-11-16 00:15:28 -0800252 ],
Jiyong Park5366ea22019-08-19 15:24:49 +0900253 sdk_version: "core_platform",
254 installable: false,
255}
256
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100257java_library {
Jiyong Parkc893b462019-10-28 15:33:08 +0900258 name: "framework-minus-apex",
Anton Hansson3e206722020-09-07 14:41:30 +0100259 defaults: ["framework-aidl-export-defaults"],
260 srcs: [
261 ":framework-non-updatable-sources",
Remi NGUYEN VANc15d99e2021-01-28 13:37:03 +0900262 ":framework-connectivity-sources",
Anton Hansson3e206722020-09-07 14:41:30 +0100263 "core/java/**/*.logtags",
264 ],
Anton Hansson3e206722020-09-07 14:41:30 +0100265 aidl: {
266 generate_get_transaction_name: true,
267 },
268 dxflags: [
269 "--core-library",
270 "--multi-dex",
271 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900272 installable: true,
Anton Hansson1461c6e2021-04-12 18:24:01 +0100273 jarjar_rules: "framework-jarjar-rules.txt",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100274 javac_shard_size: 150,
Anton Hansson3e206722020-09-07 14:41:30 +0100275 plugins: [
276 "view-inspector-annotation-processor",
277 "staledataclass-annotation-processor",
278 ],
atrostb9c34502019-08-05 12:22:18 +0100279 required: [
280 "framework-platform-compat-config",
Anton Hansson3e206722020-09-07 14:41:30 +0100281 // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly.
282 "gps_debug.conf",
Victor Changa4fae272020-10-30 12:14:34 +0000283 "icu4j-platform-compat-config",
Anton Hansson3e206722020-09-07 14:41:30 +0100284 "protolog.conf.json.gz",
atrost86895aa2019-08-19 16:51:15 +0100285 "services-platform-compat-config",
Ivan Chiang3cb1cbd2020-02-18 10:50:10 +0800286 "documents-ui-compat-config",
atrostb9c34502019-08-05 12:22:18 +0100287 ],
Anton Hansson3e206722020-09-07 14:41:30 +0100288 libs: [
289 "app-compat-annotations",
290 "ext",
291 "framework-updatable-stubs-module_libs_api",
292 "unsupportedappusage",
293 ],
294 sdk_version: "core_platform",
Tobias Thierer17d0c592019-11-22 16:33:18 +0000295 static_libs: [
Daulet Zhanguzin59444d52021-01-25 19:43:53 +0000296 "bouncycastle-repackaged-unbundled",
Anton Hansson3e206722020-09-07 14:41:30 +0100297 "framework-internal-utils",
Tobias Thierer82968532019-11-29 19:39:45 +0000298 // If MimeMap ever becomes its own APEX, then this dependency would need to be removed
299 // in favor of an API stubs dependency in java_library "framework" below.
Tobias Thierer17d0c592019-11-22 16:33:18 +0000300 "mimemap",
Chiachang Wangd5726c12020-11-02 16:51:24 +0800301 "modules-utils-os",
Tobias Thierer17d0c592019-11-22 16:33:18 +0000302 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900303 // For backwards compatibility.
304 stem: "framework",
Jiyong Park79242c22019-12-09 14:45:07 +0900305 apex_available: ["//apex_available:platform"],
markchien8cf2a552020-02-14 11:55:48 +0800306 visibility: [
Jiyong Park212d2e82020-01-03 21:07:38 +0900307 "//frameworks/base",
Remi NGUYEN VANc15d99e2021-01-28 13:37:03 +0900308 // TODO: remove when framework-connectivity can build against API
309 "//frameworks/base/packages/Connectivity/framework",
markchien8cf2a552020-02-14 11:55:48 +0800310 // TODO(b/147128803) remove the below lines
Jiyong Park212d2e82020-01-03 21:07:38 +0900311 "//frameworks/base/apex/blobstore/framework",
312 "//frameworks/base/apex/jobscheduler/framework",
markchien8cf2a552020-02-14 11:55:48 +0800313 "//frameworks/base/packages/Tethering/tests/unit",
Baligh Uddinff8ff122020-10-29 02:11:55 +0000314 "//packages/modules/Connectivity/Tethering/tests/unit",
markchien8cf2a552020-02-14 11:55:48 +0800315 ],
Jiyong Parkc893b462019-10-28 15:33:08 +0900316}
317
318// This "framework" module is NOT installed to the device. It's
319// "framework-minus-apex" that gets installed to the device. Note that
320// the filename is still framework.jar (via the stem property) for
321// compatibility reason. The purpose of this module is to provide
322// framework APIs (both public and private) for bundled apps.
323// "framework-minus-apex" can't be used for the purpose because 1)
324// many apps have already hardcoded the name "framework" and
325// 2) it lacks API symbols from updatable modules - as it's clear from
326// its suffix "-minus-apex".
327java_library {
328 name: "framework",
329 defaults: ["framework-aidl-export-defaults"],
330 installable: false, // this lib is a build-only library
331 static_libs: [
Malcolm Chenc7991802020-03-16 15:28:35 -0700332 "app-compat-annotations",
Jiyong Parkc893b462019-10-28 15:33:08 +0900333 "framework-minus-apex",
Anton Hansson5f208a22020-03-07 11:40:10 +0000334 "framework-updatable-stubs-module_libs_api",
Jiyong Parkc893b462019-10-28 15:33:08 +0900335 ],
336 sdk_version: "core_platform",
Jiyong Park79242c22019-12-09 14:45:07 +0900337 apex_available: ["//apex_available:platform"],
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100338}
339
atrostb9c34502019-08-05 12:22:18 +0100340platform_compat_config {
341 name: "framework-platform-compat-config",
Artur Satayev1503d312020-03-25 15:36:55 +0000342 src: ":framework-minus-apex",
Mathew Inwoodbad89e52018-06-28 14:12:10 +0100343}
344
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900345filegroup {
evitayane22e47f2019-12-30 16:05:38 -0800346 name: "framework-ike-shared-srcs",
Baligh Uddinb7ec5bb2020-05-27 19:22:36 +0000347 visibility: ["//packages/modules/IPsec"],
evitayane22e47f2019-12-30 16:05:38 -0800348 srcs: [
349 "core/java/android/net/annotations/PolicyDirection.java",
evitayane9cc4942020-03-03 17:14:47 -0800350 "core/java/com/android/internal/util/HexDump.java",
evitayan0efc7402019-12-20 17:55:57 -0800351 "core/java/com/android/internal/util/IState.java",
352 "core/java/com/android/internal/util/State.java",
353 "core/java/com/android/internal/util/StateMachine.java",
Yan Yana3e954f2020-11-09 00:09:39 -0800354 "services/core/java/com/android/server/vcn/util/PersistableBundleUtils.java",
evitayan996aa2a2019-12-30 11:19:47 -0800355 "telephony/java/android/telephony/Annotation.java",
evitayane22e47f2019-12-30 16:05:38 -0800356 ],
357}
358
359filegroup {
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900360 name: "framework-networkstack-shared-srcs",
361 srcs: [
362 // TODO: remove these annotations as soon as we can use andoid.support.annotations.*
Chalard Jean95213512019-01-30 21:04:58 +0900363 ":framework-annotations",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900364 "core/java/android/net/DhcpResults.java",
Remi NGUYEN VANe88516f2019-01-20 09:35:10 +0900365 "core/java/android/util/LocalLog.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900366 "core/java/com/android/internal/util/HexDump.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900367 "core/java/com/android/internal/util/IndentingPrintWriter.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900368 "core/java/com/android/internal/util/IState.java",
369 "core/java/com/android/internal/util/MessageUtils.java",
370 "core/java/com/android/internal/util/Preconditions.java",
Remi NGUYEN VAN3ba6c0d2019-01-20 13:48:19 +0900371 "core/java/com/android/internal/util/RingBufferIndices.java",
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900372 "core/java/com/android/internal/util/State.java",
373 "core/java/com/android/internal/util/StateMachine.java",
374 "core/java/com/android/internal/util/WakeupMessage.java",
johnson.yeh095b7a02019-12-19 20:30:34 +0800375 "core/java/com/android/internal/util/TokenBucket.java",
Tobias Thiererbc05034a2019-05-23 16:20:12 +0100376 ],
Remi NGUYEN VAN77dd54d2019-01-25 08:54:08 +0900377}
378
Colin Crossd8e02252017-10-02 17:14:22 -0700379// Build ext.jar
380// ============================================================
381java_library {
382 name: "ext",
Colin Crossa12c0f52018-06-27 11:00:11 -0700383 installable: true,
Paul Duffin8fcace42019-06-12 13:47:18 +0100384 sdk_version: "core_platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700385 static_libs: [
386 "libphonenumber-platform",
Colin Crossd8e02252017-10-02 17:14:22 -0700387 "tagsoup",
Ricky Wai0d1bc332017-10-31 14:31:01 +0000388 "rappor",
Colin Crossd8e02252017-10-02 17:14:22 -0700389 ],
390 dxflags: ["--core-library"],
391}
392
David Su511a8142020-01-09 14:02:21 -0800393// utility classes statically linked into framework-wifi and dynamically linked
394// into wifi-service
395java_library {
396 name: "framework-wifi-util-lib",
Anton Hansson5a088e02020-03-31 18:09:01 +0100397 sdk_version: "module_current",
David Su511a8142020-01-09 14:02:21 -0800398 srcs: [
399 "core/java/android/content/pm/BaseParceledListSlice.java",
400 "core/java/android/content/pm/ParceledListSlice.java",
David Su369c9202020-01-09 18:09:56 -0800401 "core/java/android/os/HandlerExecutor.java",
David Su511a8142020-01-09 14:02:21 -0800402 "core/java/com/android/internal/util/AsyncChannel.java",
403 "core/java/com/android/internal/util/AsyncService.java",
404 "core/java/com/android/internal/util/Protocol.java",
405 "core/java/com/android/internal/util/Preconditions.java",
David Su369c9202020-01-09 18:09:56 -0800406 "telephony/java/android/telephony/Annotation.java",
David Su298cd362020-01-17 19:02:49 +0000407 ":net-utils-framework-wifi-common-srcs",
David Su511a8142020-01-09 14:02:21 -0800408 ],
409 libs: [
410 "framework-annotations-lib",
Remi NGUYEN VANc15d99e2021-01-28 13:37:03 +0900411 "framework-connectivity",
David Su511a8142020-01-09 14:02:21 -0800412 "unsupportedappusage",
David Su511a8142020-01-09 14:02:21 -0800413 ],
David Su57bca312020-04-21 19:49:32 -0700414 visibility: [
415 "//frameworks/base/wifi",
416 "//frameworks/base/services/net",
Baligh Uddin6bd6a562020-12-23 22:53:04 +0000417 "//packages/modules/Wifi/framework",
David Su57bca312020-04-21 19:49:32 -0700418 ],
David Su511a8142020-01-09 14:02:21 -0800419}
420
Jiyong Park7fb4b182019-12-20 14:35:43 +0900421// TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp
422metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " +
Jiyong Park7fb4b182019-12-20 14:35:43 +0900423 "--hide-package com.android.server " +
Hayden Gomesc164f6a2020-11-05 16:28:21 -0800424 "--hide-package android.audio.policy.configuration.V7_0 " +
Jiyong Park7fb4b182019-12-20 14:35:43 +0900425 "--error UnhiddenSystemApi " +
426 "--hide RequiresPermission " +
427 "--hide CallbackInterface " +
428 "--hide MissingPermission --hide BroadcastBehavior " +
429 "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " +
430 "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " +
Makoto Onuki78216582020-05-26 10:55:53 -0700431 "--error NoSettingsProvider " +
Aurimas Liutikas1f76a5a2019-11-20 17:51:42 -0800432 "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " +
433 "--api-lint-ignore-prefix android.icu. " +
434 "--api-lint-ignore-prefix java. " +
435 "--api-lint-ignore-prefix junit. " +
436 "--api-lint-ignore-prefix org. "
Jiyong Park7fb4b182019-12-20 14:35:43 +0900437
Anton Hansson76ac4cc2021-05-05 19:22:52 +0100438packages_to_document = [
439 "android",
440 "dalvik",
441 "java",
442 "javax",
443 "junit",
444 "org.apache.http",
445 "org.json",
446 "org.w3c.dom",
447 "org.xml.sax",
448 "org.xmlpull",
449]
450
Anton Hansson77ff72f2021-03-30 10:11:22 +0100451filegroup {
Anton Hanssonc7f5e7d2021-05-05 10:32:31 +0100452 name: "android-non-updatable-stub-sources",
Anton Hansson77ff72f2021-03-30 10:11:22 +0100453 srcs: [
Anton Hanssona08dc692021-03-30 10:31:15 +0100454 ":framework-mime-sources", // mimemap builds separately but has no separate droidstubs.
Anton Hansson77ff72f2021-03-30 10:11:22 +0100455 ":framework-non-updatable-sources",
456 ":opt-telephony-srcs",
457 ":opt-net-voip-srcs",
458 "core/java/**/*.logtags",
459 "**/package.html",
460 ],
461 visibility: ["//visibility:private"],
462}
463
Anton Hanssonc7f5e7d2021-05-05 10:32:31 +0100464// These defaults are used for both the jar stubs and the doc stubs.
465stubs_defaults {
466 name: "android-non-updatable-stubs-defaults",
467 srcs: [":android-non-updatable-stub-sources"],
468 sdk_version: "none",
469 system_modules: "none",
470 java_version: "1.8",
471 arg_files: ["core/res/AndroidManifest.xml"],
472 // TODO(b/147699819): remove below aidl includes.
473 aidl: {
474 local_include_dirs: [
475 "apex/media/aidl/stable",
476 // TODO: move to include-dirs for packages/modules/Connectivity when this moves out of
477 // frameworks/base
478 "packages/Connectivity/framework/aidl-export",
479 "telephony/java",
480 ],
481 },
482 // These are libs from framework-internal-utils that are required (i.e. being referenced)
483 // from framework-non-updatable-sources. Add more here when there's a need.
484 // DO NOT add the entire framework-internal-utils. It might cause unnecessary circular
485 // dependencies gets bigger.
486 libs: [
487 "android.hardware.cas-V1.2-java",
488 "android.hardware.health-V1.0-java-constants",
489 "android.hardware.radio-V1.5-java",
490 "android.hardware.radio-V1.6-java",
491 "android.hardware.thermal-V1.0-java-constants",
492 "android.hardware.thermal-V2.0-java",
493 "android.hardware.tv.input-V1.0-java-constants",
494 "android.hardware.tv.tuner-V1.0-java-constants",
495 "android.hardware.usb-V1.0-java-constants",
496 "android.hardware.usb-V1.1-java-constants",
497 "android.hardware.usb.gadget-V1.0-java",
498 "android.hardware.vibrator-V1.3-java",
499 "framework-protos",
Anton Hansson4e86dca2021-05-07 16:32:10 +0100500 "art.module.public.api",
Anton Hanssonc7f5e7d2021-05-05 10:32:31 +0100501 // There are a few classes from modules used by the core that
502 // need to be resolved by metalava. We use a prebuilt stub of the
503 // full sdk to ensure we can resolve them. If a new class gets added,
504 // the prebuilts/sdk/current needs to be updated.
505 "sdk_system_current_android",
506 // NOTE: The below can be removed once the prebuilt stub contains IKE.
507 "sdk_system_current_android.net.ipsec.ike",
508 ],
Anton Hansson76ac4cc2021-05-05 19:22:52 +0100509 filter_packages: packages_to_document,
Anton Hanssonc7f5e7d2021-05-05 10:32:31 +0100510 high_mem: true, // Lots of sources => high memory use, see b/170701554
511 installable: false,
512 annotations_enabled: true,
513 previous_api: ":android.api.public.latest",
514 merge_annotations_dirs: ["metalava-manual"],
515 defaults_visibility: ["//visibility:private"],
516 visibility: ["//frameworks/base/api"],
517}
518
Jiyong Park7fb4b182019-12-20 14:35:43 +0900519build = [
520 "StubLibraries.bp",
521 "ApiDocs.bp",
Anton Hansson92b6c722021-04-12 18:05:56 +0100522 "ProtoLibraries.bp",
Jiyong Park7fb4b182019-12-20 14:35:43 +0900523]