Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 1 | // 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 Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 15 | // 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 Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 28 | package { |
| 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 |
| 46 | license { |
| 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 Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 66 | filegroup { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 67 | name: "framework-non-updatable-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 68 | srcs: [ |
| 69 | // Java/AIDL sources under frameworks/base |
Chris Wailes | c6360da | 2021-03-31 16:10:29 -0700 | [diff] [blame] | 70 | ":framework-annotations", |
Sudheer Shanka | f5b3696 | 2019-10-04 16:16:13 -0700 | [diff] [blame] | 71 | ":framework-blobstore-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 72 | ":framework-core-sources", |
| 73 | ":framework-drm-sources", |
Alec Mouri | ef37c24 | 2020-03-02 21:38:09 +0000 | [diff] [blame] | 74 | ":framework-graphics-nonupdatable-sources", |
Jiyong Park | 48cc372 | 2019-10-21 14:01:06 +0900 | [diff] [blame] | 75 | ":framework-jobscheduler-sources", // jobscheduler is not a module for R |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 76 | ":framework-keystore-sources", |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 77 | ":framework-identity-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 78 | ":framework-location-sources", |
| 79 | ":framework-lowpan-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 80 | ":framework-mca-effect-sources", |
| 81 | ":framework-mca-filterfw-sources", |
| 82 | ":framework-mca-filterpacks-sources", |
Jiyong Park | 48cc372 | 2019-10-21 14:01:06 +0900 | [diff] [blame] | 83 | ":framework-media-sources", |
Amit Mahajan | 6237a6b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 84 | ":framework-mms-sources", |
Rajesh Nyamagoud | 4fe64fb | 2021-09-14 05:34:11 +0000 | [diff] [blame^] | 85 | ":framework-omapi-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 86 | ":framework-opengl-sources", |
| 87 | ":framework-rs-sources", |
| 88 | ":framework-sax-sources", |
| 89 | ":framework-telecomm-sources", |
Amit Mahajan | d355153 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 90 | ":framework-telephony-common-sources", |
Malcolm Chen | fbc5c36 | 2020-03-16 15:28:35 -0700 | [diff] [blame] | 91 | ":framework-telephony-sources", |
Benedict Wong | 2649736 | 2020-08-10 17:54:33 -0700 | [diff] [blame] | 92 | ":framework-vcn-util-sources", |
David Su | 130441b | 2019-12-14 21:37:20 -0800 | [diff] [blame] | 93 | ":framework-wifi-annotations", |
David Su | 6f646ef | 2019-12-10 13:33:06 -0800 | [diff] [blame] | 94 | ":framework-wifi-non-updatable-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 95 | ":PacProcessor-aidl-sources", |
| 96 | ":ProxyHandler-aidl-sources", |
Aaron Huang | c4081b2 | 2020-01-13 15:03:35 +0800 | [diff] [blame] | 97 | ":net-utils-framework-common-srcs", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 98 | |
atrost | 8748835 | 2019-10-10 19:27:31 +0100 | [diff] [blame] | 99 | // AIDL from frameworks/base/native/ |
| 100 | ":platform-compat-native-aidl", |
| 101 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 102 | // AIDL sources from external directories |
Janis Danisevskis | 2390267 | 2021-03-17 11:02:19 -0700 | [diff] [blame] | 103 | ":android.hardware.security.keymint-V1-java-source", |
| 104 | ":android.hardware.security.secureclock-V1-java-source", |
| 105 | ":android.security.apc-java-source", |
| 106 | ":android.security.authorization-java-source", |
Janis Danisevskis | 191b206 | 2021-06-14 14:33:10 -0700 | [diff] [blame] | 107 | ":android.security.legacykeystore-java-source", |
Janis Danisevskis | 2390267 | 2021-03-17 11:02:19 -0700 | [diff] [blame] | 108 | ":android.security.maintenance-java-source", |
Tej Singh | 932f870 | 2021-06-14 23:40:22 -0700 | [diff] [blame] | 109 | ":android.security.metrics-java-source", |
Janis Danisevskis | 2390267 | 2021-03-17 11:02:19 -0700 | [diff] [blame] | 110 | ":android.system.keystore2-V1-java-source", |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 111 | ":credstore_aidl", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 112 | ":dumpstate_aidl", |
| 113 | ":framework_native_aidl", |
| 114 | ":gatekeeper_aidl", |
| 115 | ":gsiservice_aidl", |
Ryan Mitchell | febbc33 | 2021-02-12 09:21:52 -0800 | [diff] [blame] | 116 | ":idmap2_aidl", |
Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 117 | ":idmap2_core_aidl", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 118 | ":incidentcompanion_aidl", |
Bernardo Rufino | 64bbd4b | 2020-08-19 14:45:30 +0100 | [diff] [blame] | 119 | ":inputconstants_aidl", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 120 | ":installd_aidl", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 121 | ":libaudioclient_aidl", |
| 122 | ":libbinder_aidl", |
| 123 | ":libbluetooth-binder-aidl", |
| 124 | ":libcamera_client_aidl", |
| 125 | ":libcamera_client_framework_aidl", |
| 126 | ":libupdate_engine_aidl", |
Amy Zhang | ccdbc4d | 2020-06-08 21:29:59 -0700 | [diff] [blame] | 127 | ":resourcemanager_aidl", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 128 | ":storaged_aidl", |
| 129 | ":vold_aidl", |
Kriti Dang | af97773 | 2021-02-25 18:07:34 +0100 | [diff] [blame] | 130 | ":deviceproductinfoconstants_aidl", |
Jiyong Park | 1cc9566 | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 131 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 132 | // For the generated R.java and Manifest.java |
| 133 | ":framework-res{.aapt.srcjar}", |
| 134 | |
| 135 | // etc. |
| 136 | ":framework-javastream-protos", |
Muhammad Qureshi | 04ec252 | 2020-01-27 16:36:45 -0800 | [diff] [blame] | 137 | ":statslog-framework-java-gen", // FrameworkStatsLog.java |
Hayden Gomes | 24b336f | 2020-11-05 16:28:21 -0800 | [diff] [blame] | 138 | ":audio_policy_configuration_V7_0", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 139 | ], |
| 140 | } |
Jiyong Park | 1cc9566 | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 141 | |
Anton Hansson | e996d43 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 142 | java_library { |
| 143 | name: "framework-updatable-stubs-module_libs_api", |
| 144 | static_libs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 145 | "android.net.ipsec.ike.stubs.module_lib", |
Anton Hansson | 25a0a2b | 2020-10-08 13:43:48 +0100 | [diff] [blame] | 146 | "framework-appsearch.stubs.module_lib", |
Remi NGUYEN VAN | 7b6b006 | 2021-03-19 10:15:06 +0000 | [diff] [blame] | 147 | "framework-connectivity.stubs.module_lib", |
Paul Duffin | 4e00662 | 2020-05-31 16:55:13 +0100 | [diff] [blame] | 148 | "framework-graphics.stubs.module_lib", |
Paul Duffin | 8b864fb | 2020-05-31 11:35:50 +0100 | [diff] [blame] | 149 | "framework-media.stubs.module_lib", |
| 150 | "framework-mediaprovider.stubs.module_lib", |
| 151 | "framework-permission.stubs.module_lib", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 152 | "framework-permission-s.stubs.module_lib", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 153 | "framework-scheduling.stubs.module_lib", |
Paul Duffin | 8b864fb | 2020-05-31 11:35:50 +0100 | [diff] [blame] | 154 | "framework-sdkextensions.stubs.module_lib", |
| 155 | "framework-statsd.stubs.module_lib", |
| 156 | "framework-tethering.stubs.module_lib", |
| 157 | "framework-wifi.stubs.module_lib", |
Anton Hansson | e996d43 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 158 | ], |
| 159 | sdk_version: "module_current", |
Anton Hansson | 2d6c427 | 2020-08-18 12:52:44 +0100 | [diff] [blame] | 160 | visibility: ["//visibility:private"], |
| 161 | } |
| 162 | |
| 163 | java_library { |
| 164 | name: "framework-all", |
| 165 | installable: false, |
| 166 | static_libs: [ |
Yan Yan | 1357a42 | 2021-02-03 16:07:30 -0800 | [diff] [blame] | 167 | "android.net.ipsec.ike.impl", |
Anton Hansson | 2d6c427 | 2020-08-18 12:52:44 +0100 | [diff] [blame] | 168 | "framework-minus-apex", |
Anton Hansson | 25a0a2b | 2020-10-08 13:43:48 +0100 | [diff] [blame] | 169 | "framework-appsearch.impl", |
Remi NGUYEN VAN | 7b6b006 | 2021-03-19 10:15:06 +0000 | [diff] [blame] | 170 | "framework-connectivity.impl", |
Anton Hansson | 2d6c427 | 2020-08-18 12:52:44 +0100 | [diff] [blame] | 171 | "framework-graphics.impl", |
| 172 | "framework-mediaprovider.impl", |
| 173 | "framework-permission.impl", |
Hai Zhang | 591e121 | 2021-01-21 12:48:43 -0800 | [diff] [blame] | 174 | "framework-permission-s.impl", |
Gavin Corkery | 338545d | 2021-02-15 20:22:58 +0000 | [diff] [blame] | 175 | "framework-scheduling.impl", |
Anton Hansson | 2d6c427 | 2020-08-18 12:52:44 +0100 | [diff] [blame] | 176 | "framework-sdkextensions.impl", |
| 177 | "framework-statsd.impl", |
| 178 | "framework-tethering.impl", |
| 179 | "framework-wifi.impl", |
| 180 | "updatable-media", |
| 181 | ], |
| 182 | apex_available: ["//apex_available:platform"], |
| 183 | sdk_version: "core_platform", |
| 184 | visibility: [ |
| 185 | // DO NOT ADD ANY MORE ENTRIES TO THIS LIST |
| 186 | "//external/robolectric-shadows:__subpackages__", |
| 187 | "//frameworks/layoutlib:__subpackages__", |
| 188 | ], |
Anton Hansson | e996d43 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 189 | } |
| 190 | |
Jiyong Park | 392729f | 2020-01-17 16:32:53 +0900 | [diff] [blame] | 191 | // AIDL files under these paths are mixture of public and private ones. |
| 192 | // They shouldn't be exported across module boundaries. |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 193 | java_defaults { |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 194 | name: "framework-aidl-export-defaults", |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 195 | aidl: { |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 196 | export_include_dirs: [ |
| 197 | "core/java", |
| 198 | "drm/java", |
| 199 | "graphics/java", |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 200 | "identity/java", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 201 | "keystore/java", |
| 202 | "location/java", |
| 203 | "lowpan/java", |
| 204 | "media/java", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 205 | "media/mca/effect/java", |
| 206 | "media/mca/filterfw/java", |
| 207 | "media/mca/filterpacks/java", |
Amit Mahajan | 6237a6b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 208 | "mms/java", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 209 | "opengl/java", |
| 210 | "rs/java", |
| 211 | "sax/java", |
| 212 | "telecomm/java", |
Anton Hansson | e996d43 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 213 | |
Sungsoo Lim | 895f4f6 | 2020-04-08 11:21:36 +0900 | [diff] [blame] | 214 | "apex/media/aidl/stable", |
Anton Hansson | e996d43 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 215 | // TODO(b/147699819): remove this |
| 216 | "telephony/java", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 217 | ], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 218 | }, |
| 219 | } |
| 220 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 221 | // Collection of classes that are generated from non-Java files that are not listed in |
| 222 | // framework_srcs. These have no or very limited dependency to the framework. |
| 223 | java_library { |
| 224 | name: "framework-internal-utils", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 225 | static_libs: [ |
Dario Freni | d8bf22e | 2018-08-31 14:18:04 +0100 | [diff] [blame] | 226 | "apex_aidl_interface-java", |
Samiul Islam | bdbf40e | 2021-08-26 11:41:37 +0100 | [diff] [blame] | 227 | "packagemanager_aidl-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 228 | "framework-protos", |
Peiyong Lin | b967a4c | 2020-07-27 22:16:13 -0700 | [diff] [blame] | 229 | "updatable-driver-protos", |
Kelvin Zhang | a48c18e | 2021-04-12 17:23:51 -0400 | [diff] [blame] | 230 | "ota_metadata_proto_java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 231 | "android.hidl.base-V1.0-java", |
| 232 | "android.hardware.cas-V1.0-java", |
Henry Fang | 43cab92 | 2019-12-27 16:50:20 -0800 | [diff] [blame] | 233 | "android.hardware.cas-V1.1-java", |
| 234 | "android.hardware.cas-V1.2-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 235 | "android.hardware.contexthub-V1.0-java", |
Anthony Stange | 521a905 | 2020-02-07 18:45:47 -0500 | [diff] [blame] | 236 | "android.hardware.contexthub-V1.1-java", |
Arthur Ishiguro | 8368e94 | 2020-10-14 13:39:09 -0700 | [diff] [blame] | 237 | "android.hardware.contexthub-V1.2-java", |
Yu-Han Yang | 9fe06dd | 2019-11-18 16:23:31 -0800 | [diff] [blame] | 238 | "android.hardware.gnss-V1.0-java", |
Yu-Han Yang | ad03c47 | 2020-01-14 15:31:01 -0800 | [diff] [blame] | 239 | "android.hardware.gnss-V2.1-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 240 | "android.hardware.health-V1.0-java-constants", |
Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 241 | "android.hardware.radio-V1.0-java", |
| 242 | "android.hardware.radio-V1.1-java", |
| 243 | "android.hardware.radio-V1.2-java", |
| 244 | "android.hardware.radio-V1.3-java", |
| 245 | "android.hardware.radio-V1.4-java", |
Sarah Chin | 21e9c63 | 2019-11-05 13:30:10 -0800 | [diff] [blame] | 246 | "android.hardware.radio-V1.5-java", |
Daniel Bright | 8b4502e | 2020-09-02 17:10:54 -0700 | [diff] [blame] | 247 | "android.hardware.radio-V1.6-java", |
Sarah Chin | 80b8c7f | 2021-09-29 12:13:27 -0700 | [diff] [blame] | 248 | "android.hardware.radio.data-V1-java", |
| 249 | "android.hardware.radio.messaging-V1-java", |
| 250 | "android.hardware.radio.modem-V1-java", |
| 251 | "android.hardware.radio.network-V1-java", |
| 252 | "android.hardware.radio.sim-V1-java", |
| 253 | "android.hardware.radio.voice-V1-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 254 | "android.hardware.thermal-V1.0-java-constants", |
Wei Wang | fb21bd8 | 2019-01-10 14:16:23 -0800 | [diff] [blame] | 255 | "android.hardware.thermal-V1.0-java", |
Wei Wang | bad7c20 | 2018-11-01 11:57:39 -0700 | [diff] [blame] | 256 | "android.hardware.thermal-V1.1-java", |
| 257 | "android.hardware.thermal-V2.0-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 258 | "android.hardware.tv.input-V1.0-java-constants", |
shubang | 7e849b0 | 2019-10-18 19:36:25 -0700 | [diff] [blame] | 259 | "android.hardware.tv.tuner-V1.0-java-constants", |
Amy Zhang | b13e304 | 2020-07-27 14:50:10 -0700 | [diff] [blame] | 260 | "android.hardware.tv.tuner-V1.1-java-constants", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 261 | "android.hardware.usb-V1.0-java-constants", |
| 262 | "android.hardware.usb-V1.1-java-constants", |
Badhri Jagan Sridharan | e966a38 | 2018-12-09 14:49:38 -0800 | [diff] [blame] | 263 | "android.hardware.usb-V1.2-java-constants", |
Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 264 | "android.hardware.usb.gadget-V1.0-java", |
raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 265 | "android.hardware.usb.gadget-V1.1-java", |
| 266 | "android.hardware.usb.gadget-V1.2-java", |
Michael Wright | f268bf5 | 2018-02-07 23:23:34 +0000 | [diff] [blame] | 267 | "android.hardware.vibrator-V1.0-java", |
| 268 | "android.hardware.vibrator-V1.1-java", |
| 269 | "android.hardware.vibrator-V1.2-java", |
Harpreet "Eli" Sangha | a456f08 | 2018-12-14 12:06:10 +0900 | [diff] [blame] | 270 | "android.hardware.vibrator-V1.3-java", |
Lais Andrade | b847d63 | 2021-02-23 10:35:27 +0000 | [diff] [blame] | 271 | "android.hardware.vibrator-V2-java", |
Rajesh Nyamagoud | 4fe64fb | 2021-09-14 05:34:11 +0000 | [diff] [blame^] | 272 | "android.se.omapi-V1-java", |
Michael Sun | d523796 | 2020-11-06 03:28:14 +0000 | [diff] [blame] | 273 | "android.system.suspend.control.internal-java", |
arangelov | 1ab6149 | 2018-11-22 13:56:50 +0000 | [diff] [blame] | 274 | "devicepolicyprotosnano", |
Inseob Kim | 4fe9f0f | 2019-07-30 18:23:26 +0900 | [diff] [blame] | 275 | |
| 276 | "com.android.sysprop.apex", |
Nikita Ioffe | 779d6be | 2020-02-06 23:17:17 +0000 | [diff] [blame] | 277 | "com.android.sysprop.init", |
Alexander Mishkovets | 77f6bc8 | 2020-07-14 19:14:10 +0200 | [diff] [blame] | 278 | "com.android.sysprop.localization", |
Inseob Kim | 4fe9f0f | 2019-07-30 18:23:26 +0900 | [diff] [blame] | 279 | "PlatformProperties", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 280 | ], |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 281 | sdk_version: "core_platform", |
| 282 | installable: false, |
| 283 | } |
| 284 | |
Anton Hansson | 524bf24 | 2021-05-25 12:48:58 +0100 | [diff] [blame] | 285 | // NOTE: This filegroup is exposed for vendor libraries to depend on and is referenced in |
| 286 | // documentation. Do not remove without consulting the treble/hidl teams. |
Anton Hansson | dffc59c | 2021-05-25 11:43:36 +0000 | [diff] [blame] | 287 | filegroup { |
| 288 | name: "framework-jarjar-rules", |
| 289 | srcs: ["framework-jarjar-rules.txt"], |
Anton Hansson | 524bf24 | 2021-05-25 12:48:58 +0100 | [diff] [blame] | 290 | visibility: ["//visibility:public"], |
Anton Hansson | dffc59c | 2021-05-25 11:43:36 +0000 | [diff] [blame] | 291 | } |
| 292 | |
Ioana Stefan | 2f5c545 | 2020-10-15 15:00:24 +0200 | [diff] [blame] | 293 | java_defaults { |
| 294 | name: "framework-minus-apex-defaults", |
Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 295 | defaults: ["framework-aidl-export-defaults"], |
| 296 | srcs: [ |
| 297 | ":framework-non-updatable-sources", |
| 298 | "core/java/**/*.logtags", |
| 299 | ], |
Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 300 | aidl: { |
| 301 | generate_get_transaction_name: true, |
Remi NGUYEN VAN | 7b6b006 | 2021-03-19 10:15:06 +0000 | [diff] [blame] | 302 | local_include_dirs: [ |
| 303 | "media/aidl", |
Remi NGUYEN VAN | 7b6b006 | 2021-03-19 10:15:06 +0000 | [diff] [blame] | 304 | ], |
Baligh Uddin | d65474f | 2021-05-22 13:11:37 +0000 | [diff] [blame] | 305 | include_dirs: [ |
| 306 | "frameworks/av/aidl", |
Jeff Sharkey | 75d4f93 | 2021-07-26 15:41:01 -0600 | [diff] [blame] | 307 | "frameworks/native/libs/permission/aidl", |
Baligh Uddin | d65474f | 2021-05-22 13:11:37 +0000 | [diff] [blame] | 308 | "packages/modules/Connectivity/framework/aidl-export", |
| 309 | ], |
Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 310 | }, |
| 311 | dxflags: [ |
| 312 | "--core-library", |
| 313 | "--multi-dex", |
| 314 | ], |
Anton Hansson | dffc59c | 2021-05-25 11:43:36 +0000 | [diff] [blame] | 315 | jarjar_rules: ":framework-jarjar-rules", |
Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 316 | javac_shard_size: 150, |
Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 317 | plugins: [ |
| 318 | "view-inspector-annotation-processor", |
| 319 | "staledataclass-annotation-processor", |
| 320 | "error_prone_android_framework", |
| 321 | ], |
atrost | aec9bc1 | 2019-08-16 18:14:09 +0100 | [diff] [blame] | 322 | required: [ |
| 323 | "framework-platform-compat-config", |
Michal Olech | aa5bf3a | 2021-02-24 16:17:08 +0100 | [diff] [blame] | 324 | // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly. |
Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 325 | "gps_debug.conf", |
Victor Chang | a4fae27 | 2020-10-30 12:14:34 +0000 | [diff] [blame] | 326 | "icu4j-platform-compat-config", |
Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 327 | "protolog.conf.json.gz", |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 328 | "services-platform-compat-config", |
Rambo Wang | 05e55c9 | 2021-06-25 11:41:43 -0700 | [diff] [blame] | 329 | "TeleService-platform-compat-config", |
Ivan Chiang | 3cb1cbd | 2020-02-18 10:50:10 +0800 | [diff] [blame] | 330 | "documents-ui-compat-config", |
Varun Shah | f952e66c1 | 2020-06-25 11:30:13 -0700 | [diff] [blame] | 331 | "calendar-provider-compat-config", |
atrost | aec9bc1 | 2019-08-16 18:14:09 +0100 | [diff] [blame] | 332 | ], |
Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 333 | libs: [ |
| 334 | "app-compat-annotations", |
| 335 | "ext", |
| 336 | "framework-updatable-stubs-module_libs_api", |
| 337 | "unsupportedappusage", |
| 338 | ], |
| 339 | sdk_version: "core_platform", |
Tobias Thierer | c0c0608 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 340 | static_libs: [ |
Daulet Zhanguzin | 59444d5 | 2021-01-25 19:43:53 +0000 | [diff] [blame] | 341 | "bouncycastle-repackaged-unbundled", |
Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 342 | "framework-internal-utils", |
Tobias Thierer | 8296853 | 2019-11-29 19:39:45 +0000 | [diff] [blame] | 343 | // If MimeMap ever becomes its own APEX, then this dependency would need to be removed |
| 344 | // in favor of an API stubs dependency in java_library "framework" below. |
Tobias Thierer | c0c0608 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 345 | "mimemap", |
Ytai Ben-Tsvi | c3cd3cd | 2020-10-30 12:34:51 -0700 | [diff] [blame] | 346 | "av-types-aidl-java", |
Amy Zhang | 39a3fa4 | 2020-12-21 16:56:03 -0800 | [diff] [blame] | 347 | "tv_tuner_resource_manager_aidl_interface-java", |
Ytai Ben-Tsvi | da7c21e | 2020-09-16 13:04:31 -0700 | [diff] [blame] | 348 | "soundtrigger_middleware-aidl-java", |
Alexander Dorokhine | c0bf81a | 2021-05-12 11:34:51 -0700 | [diff] [blame] | 349 | "modules-utils-preconditions", |
Chiachang Wang | 6a55527 | 2020-11-02 16:51:24 +0800 | [diff] [blame] | 350 | "modules-utils-os", |
Svet Ganov | 4bf102a | 2021-04-22 20:09:49 +0000 | [diff] [blame] | 351 | "framework-permission-aidl-java", |
Tobias Thierer | c0c0608 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 352 | ], |
Ioana Stefan | 2f5c545 | 2020-10-15 15:00:24 +0200 | [diff] [blame] | 353 | } |
| 354 | |
| 355 | java_library { |
| 356 | name: "framework-minus-apex", |
| 357 | defaults: ["framework-minus-apex-defaults"], |
| 358 | installable: true, |
Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 359 | // For backwards compatibility. |
| 360 | stem: "framework", |
Jiyong Park | 352f9e2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 361 | apex_available: ["//apex_available:platform"], |
Jiyong Park | 212d2e8 | 2020-01-03 21:07:38 +0900 | [diff] [blame] | 362 | visibility: [ |
| 363 | "//frameworks/base", |
Jiyong Park | 634819c | 2020-02-04 21:20:02 +0900 | [diff] [blame] | 364 | // TODO(b/147128803) remove the below lines |
Jiyong Park | 212d2e8 | 2020-01-03 21:07:38 +0900 | [diff] [blame] | 365 | "//frameworks/base/apex/appsearch/framework", |
| 366 | "//frameworks/base/apex/blobstore/framework", |
| 367 | "//frameworks/base/apex/jobscheduler/framework", |
markchien | 2c15370 | 2020-02-06 19:23:26 +0800 | [diff] [blame] | 368 | "//frameworks/base/packages/Tethering/tests/unit", |
Baligh Uddin | ff8ff12 | 2020-10-29 02:11:55 +0000 | [diff] [blame] | 369 | "//packages/modules/Connectivity/Tethering/tests/unit", |
Jiyong Park | 212d2e8 | 2020-01-03 21:07:38 +0900 | [diff] [blame] | 370 | ], |
Jeff Sharkey | 6c8ffbc | 2020-10-02 11:52:05 -0600 | [diff] [blame] | 371 | errorprone: { |
| 372 | javacflags: [ |
Jeff Sharkey | 7cdc3bf | 2020-10-06 14:55:37 -0600 | [diff] [blame] | 373 | "-Xep:AndroidFrameworkBinderIdentity:ERROR", |
Jeff Sharkey | 6c8ffbc | 2020-10-02 11:52:05 -0600 | [diff] [blame] | 374 | "-Xep:AndroidFrameworkCompatChange:ERROR", |
Jeff Sharkey | 9af4aea | 2020-10-02 12:00:59 -0600 | [diff] [blame] | 375 | "-Xep:AndroidFrameworkUid:ERROR", |
Jeff Sharkey | 6c8ffbc | 2020-10-02 11:52:05 -0600 | [diff] [blame] | 376 | ], |
| 377 | }, |
Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 378 | } |
| 379 | |
Ioana Stefan | 2f5c545 | 2020-10-15 15:00:24 +0200 | [diff] [blame] | 380 | java_library { |
| 381 | name: "framework-minus-apex-intdefs", |
| 382 | defaults: ["framework-minus-apex-defaults"], |
| 383 | plugins: ["intdef-annotation-processor"], |
| 384 | } |
| 385 | |
Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 386 | // This "framework" module is NOT installed to the device. It's |
| 387 | // "framework-minus-apex" that gets installed to the device. Note that |
| 388 | // the filename is still framework.jar (via the stem property) for |
| 389 | // compatibility reason. The purpose of this module is to provide |
| 390 | // framework APIs (both public and private) for bundled apps. |
| 391 | // "framework-minus-apex" can't be used for the purpose because 1) |
| 392 | // many apps have already hardcoded the name "framework" and |
| 393 | // 2) it lacks API symbols from updatable modules - as it's clear from |
| 394 | // its suffix "-minus-apex". |
| 395 | java_library { |
| 396 | name: "framework", |
| 397 | defaults: ["framework-aidl-export-defaults"], |
| 398 | installable: false, // this lib is a build-only library |
| 399 | static_libs: [ |
Malcolm Chen | fbc5c36 | 2020-03-16 15:28:35 -0700 | [diff] [blame] | 400 | "app-compat-annotations", |
Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 401 | "framework-minus-apex", |
Anton Hansson | 25a0a2b | 2020-10-08 13:43:48 +0100 | [diff] [blame] | 402 | "framework-appsearch.impl", // TODO(b/146218515): should be removed |
Anton Hansson | e996d43 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 403 | "framework-updatable-stubs-module_libs_api", |
Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 404 | ], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 405 | sdk_version: "core_platform", |
Jiyong Park | 352f9e2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 406 | apex_available: ["//apex_available:platform"], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 407 | } |
| 408 | |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 409 | platform_compat_config { |
Songchun Fan | d4574b5 | 2021-03-02 20:05:57 +0000 | [diff] [blame] | 410 | name: "framework-platform-compat-config", |
| 411 | src: ":framework-minus-apex", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 412 | } |
| 413 | |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 414 | filegroup { |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 415 | name: "framework-ike-shared-srcs", |
Baligh Uddin | b7ec5bb | 2020-05-27 19:22:36 +0000 | [diff] [blame] | 416 | visibility: ["//packages/modules/IPsec"], |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 417 | srcs: [ |
| 418 | "core/java/android/net/annotations/PolicyDirection.java", |
evitayan | e9cc494 | 2020-03-03 17:14:47 -0800 | [diff] [blame] | 419 | "core/java/com/android/internal/util/HexDump.java", |
Yan Yan | e7a360f | 2021-06-10 18:45:39 -0700 | [diff] [blame] | 420 | "core/java/com/android/internal/util/WakeupMessage.java", |
Yan Yan | a3e954f | 2020-11-09 00:09:39 -0800 | [diff] [blame] | 421 | "services/core/java/com/android/server/vcn/util/PersistableBundleUtils.java", |
evitayan | 996aa2a | 2019-12-30 11:19:47 -0800 | [diff] [blame] | 422 | "telephony/java/android/telephony/Annotation.java", |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 423 | ], |
| 424 | } |
| 425 | |
| 426 | filegroup { |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 427 | name: "framework-networkstack-shared-srcs", |
| 428 | srcs: [ |
| 429 | // TODO: remove these annotations as soon as we can use andoid.support.annotations.* |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 430 | ":framework-annotations", |
Alexander Dorokhine | c0bf81a | 2021-05-12 11:34:51 -0700 | [diff] [blame] | 431 | ":modules-utils-preconditions-srcs", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 432 | "core/java/android/net/DhcpResults.java", |
Dmitri Plotnikov | f800b70 | 2020-05-15 13:49:20 -0700 | [diff] [blame] | 433 | "core/java/android/util/IndentingPrintWriter.java", |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 434 | "core/java/android/util/LocalLog.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 435 | "core/java/com/android/internal/util/HexDump.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 436 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 437 | "core/java/com/android/internal/util/IState.java", |
| 438 | "core/java/com/android/internal/util/MessageUtils.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 439 | "core/java/com/android/internal/util/RingBufferIndices.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 440 | "core/java/com/android/internal/util/State.java", |
| 441 | "core/java/com/android/internal/util/StateMachine.java", |
| 442 | "core/java/com/android/internal/util/WakeupMessage.java", |
johnson.yeh | 095b7a0 | 2019-12-19 20:30:34 +0800 | [diff] [blame] | 443 | "core/java/com/android/internal/util/TokenBucket.java", |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 444 | ], |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 445 | } |
| 446 | |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 447 | // Build ext.jar |
| 448 | // ============================================================ |
| 449 | java_library { |
| 450 | name: "ext", |
Colin Cross | a12c0f5 | 2018-06-27 11:00:11 -0700 | [diff] [blame] | 451 | installable: true, |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 452 | sdk_version: "core_platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 453 | static_libs: [ |
| 454 | "libphonenumber-platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 455 | "tagsoup", |
Ricky Wai | 0d1bc33 | 2017-10-31 14:31:01 +0000 | [diff] [blame] | 456 | "rappor", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 457 | ], |
| 458 | dxflags: ["--core-library"], |
| 459 | } |
| 460 | |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 461 | // utility classes statically linked into framework-wifi and dynamically linked |
| 462 | // into wifi-service |
| 463 | java_library { |
| 464 | name: "framework-wifi-util-lib", |
David Su | fd626db | 2020-11-09 14:31:45 -0800 | [diff] [blame] | 465 | sdk_version: "module_current", |
| 466 | min_sdk_version: "30", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 467 | srcs: [ |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 468 | "core/java/com/android/internal/util/AsyncChannel.java", |
| 469 | "core/java/com/android/internal/util/AsyncService.java", |
| 470 | "core/java/com/android/internal/util/Protocol.java", |
David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 471 | "telephony/java/android/telephony/Annotation.java", |
David Su | 298cd36 | 2020-01-17 19:02:49 +0000 | [diff] [blame] | 472 | ":net-utils-framework-wifi-common-srcs", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 473 | ], |
| 474 | libs: [ |
| 475 | "framework-annotations-lib", |
Remi NGUYEN VAN | f311497 | 2021-03-24 22:59:50 +0900 | [diff] [blame] | 476 | "framework-connectivity.stubs.module_lib", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 477 | "unsupportedappusage", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 478 | ], |
David Su | 57bca31 | 2020-04-21 19:49:32 -0700 | [diff] [blame] | 479 | visibility: [ |
| 480 | "//frameworks/base/wifi", |
| 481 | "//frameworks/base/services/net", |
Baligh Uddin | 09fdba4 | 2020-12-23 22:42:10 +0000 | [diff] [blame] | 482 | "//packages/modules/Wifi/framework", |
David Su | 57bca31 | 2020-04-21 19:49:32 -0700 | [diff] [blame] | 483 | ], |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 484 | } |
| 485 | |
Jiyong Park | 0d7e86d | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 486 | // TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp |
| 487 | metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " + |
Jiyong Park | 0d7e86d | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 488 | "--hide-package com.android.server " + |
Hayden Gomes | 24b336f | 2020-11-05 16:28:21 -0800 | [diff] [blame] | 489 | "--hide-package android.audio.policy.configuration.V7_0 " + |
Jiyong Park | 0d7e86d | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 490 | "--error UnhiddenSystemApi " + |
| 491 | "--hide RequiresPermission " + |
| 492 | "--hide CallbackInterface " + |
| 493 | "--hide MissingPermission --hide BroadcastBehavior " + |
| 494 | "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " + |
| 495 | "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " + |
Makoto Onuki | 451da1c | 2020-05-26 10:55:53 -0700 | [diff] [blame] | 496 | "--error NoSettingsProvider " + |
Aurimas Liutikas | 1f76a5a | 2019-11-20 17:51:42 -0800 | [diff] [blame] | 497 | "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " + |
| 498 | "--api-lint-ignore-prefix android.icu. " + |
| 499 | "--api-lint-ignore-prefix java. " + |
| 500 | "--api-lint-ignore-prefix junit. " + |
| 501 | "--api-lint-ignore-prefix org. " |
Jiyong Park | 0d7e86d | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 502 | |
Anton Hansson | 76ac4cc | 2021-05-05 19:22:52 +0100 | [diff] [blame] | 503 | packages_to_document = [ |
| 504 | "android", |
| 505 | "dalvik", |
| 506 | "java", |
| 507 | "javax", |
| 508 | "junit", |
| 509 | "org.apache.http", |
| 510 | "org.json", |
| 511 | "org.w3c.dom", |
| 512 | "org.xml.sax", |
| 513 | "org.xmlpull", |
| 514 | ] |
| 515 | |
Anton Hansson | 77ff72f | 2021-03-30 10:11:22 +0100 | [diff] [blame] | 516 | filegroup { |
Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 517 | name: "android-non-updatable-stub-sources", |
Anton Hansson | 77ff72f | 2021-03-30 10:11:22 +0100 | [diff] [blame] | 518 | srcs: [ |
Anton Hansson | a08dc69 | 2021-03-30 10:31:15 +0100 | [diff] [blame] | 519 | ":framework-mime-sources", // mimemap builds separately but has no separate droidstubs. |
Anton Hansson | 77ff72f | 2021-03-30 10:11:22 +0100 | [diff] [blame] | 520 | ":framework-non-updatable-sources", |
| 521 | ":opt-telephony-srcs", |
| 522 | ":opt-net-voip-srcs", |
| 523 | "core/java/**/*.logtags", |
| 524 | "**/package.html", |
| 525 | ], |
| 526 | visibility: ["//visibility:private"], |
| 527 | } |
| 528 | |
Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 529 | // These defaults are used for both the jar stubs and the doc stubs. |
| 530 | stubs_defaults { |
| 531 | name: "android-non-updatable-stubs-defaults", |
| 532 | srcs: [":android-non-updatable-stub-sources"], |
| 533 | sdk_version: "none", |
| 534 | system_modules: "none", |
| 535 | java_version: "1.8", |
| 536 | arg_files: ["core/res/AndroidManifest.xml"], |
| 537 | // TODO(b/147699819): remove below aidl includes. |
| 538 | aidl: { |
| 539 | local_include_dirs: [ |
| 540 | "apex/media/aidl/stable", |
| 541 | "media/aidl", |
Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 542 | "telephony/java", |
| 543 | ], |
Baligh Uddin | d65474f | 2021-05-22 13:11:37 +0000 | [diff] [blame] | 544 | include_dirs: [ |
| 545 | "frameworks/av/aidl", |
Jeff Sharkey | 75d4f93 | 2021-07-26 15:41:01 -0600 | [diff] [blame] | 546 | "frameworks/native/libs/permission/aidl", |
Baligh Uddin | d65474f | 2021-05-22 13:11:37 +0000 | [diff] [blame] | 547 | "packages/modules/Connectivity/framework/aidl-export", |
| 548 | ], |
Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 549 | }, |
| 550 | // These are libs from framework-internal-utils that are required (i.e. being referenced) |
| 551 | // from framework-non-updatable-sources. Add more here when there's a need. |
| 552 | // DO NOT add the entire framework-internal-utils. It might cause unnecessary circular |
| 553 | // dependencies gets bigger. |
| 554 | libs: [ |
| 555 | "android.hardware.cas-V1.2-java", |
| 556 | "android.hardware.health-V1.0-java-constants", |
| 557 | "android.hardware.radio-V1.5-java", |
| 558 | "android.hardware.radio-V1.6-java", |
| 559 | "android.hardware.thermal-V1.0-java-constants", |
| 560 | "android.hardware.thermal-V2.0-java", |
| 561 | "android.hardware.tv.input-V1.0-java-constants", |
| 562 | "android.hardware.tv.tuner-V1.0-java-constants", |
| 563 | "android.hardware.tv.tuner-V1.1-java-constants", |
| 564 | "android.hardware.usb-V1.0-java-constants", |
| 565 | "android.hardware.usb-V1.1-java-constants", |
| 566 | "android.hardware.usb.gadget-V1.0-java", |
| 567 | "android.hardware.vibrator-V1.3-java", |
| 568 | "framework-protos", |
Anton Hansson | 4e86dca | 2021-05-07 16:32:10 +0100 | [diff] [blame] | 569 | "art.module.public.api", |
Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 570 | // There are a few classes from modules used by the core that |
| 571 | // need to be resolved by metalava. We use a prebuilt stub of the |
| 572 | // full sdk to ensure we can resolve them. If a new class gets added, |
| 573 | // the prebuilts/sdk/current needs to be updated. |
| 574 | "sdk_system_current_android", |
| 575 | // NOTE: The below can be removed once the prebuilt stub contains IKE. |
| 576 | "sdk_system_current_android.net.ipsec.ike", |
| 577 | ], |
Anton Hansson | 76ac4cc | 2021-05-05 19:22:52 +0100 | [diff] [blame] | 578 | filter_packages: packages_to_document, |
Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 579 | high_mem: true, // Lots of sources => high memory use, see b/170701554 |
| 580 | installable: false, |
| 581 | annotations_enabled: true, |
| 582 | previous_api: ":android.api.public.latest", |
| 583 | merge_annotations_dirs: ["metalava-manual"], |
| 584 | defaults_visibility: ["//visibility:private"], |
| 585 | visibility: ["//frameworks/base/api"], |
| 586 | } |
| 587 | |
Jiyong Park | 0d7e86d | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 588 | build = [ |
| 589 | "StubLibraries.bp", |
| 590 | "ApiDocs.bp", |
Anton Hansson | 31fb58b | 2021-04-12 18:03:12 +0100 | [diff] [blame] | 591 | "ProtoLibraries.bp", |
Harry Zhang | d61699e | 2021-06-01 16:48:25 -0700 | [diff] [blame] | 592 | "TestProtoLibraries.bp", |
Jiyong Park | 0d7e86d | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 593 | ] |