| 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", | 
| Bob Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 53 |         "SPDX-license-identifier-MIT", | 
 | 54 |         "SPDX-license-identifier-Unicode-DFS", | 
| Bob Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 55 |         "legacy_unencumbered", | 
 | 56 |     ], | 
 | 57 |     license_text: [ | 
 | 58 |         "NOTICE", | 
 | 59 |     ], | 
 | 60 | } | 
 | 61 |  | 
| Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 62 | filegroup { | 
| Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 63 |     name: "framework-non-updatable-sources", | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 64 |     srcs: [ | 
 | 65 |         // Java/AIDL sources under frameworks/base | 
| Chris Wailes | 68f38b2 | 2021-03-31 16:10:29 -0700 | [diff] [blame] | 66 |         ":framework-annotations", | 
| Sudheer Shanka | f5b3696 | 2019-10-04 16:16:13 -0700 | [diff] [blame] | 67 |         ":framework-blobstore-sources", | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 68 |         ":framework-core-sources", | 
 | 69 |         ":framework-drm-sources", | 
| Alec Mouri | ef37c24 | 2020-03-02 21:38:09 +0000 | [diff] [blame] | 70 |         ":framework-graphics-nonupdatable-sources", | 
| Jiyong Park | 48cc372 | 2019-10-21 14:01:06 +0900 | [diff] [blame] | 71 |         ":framework-jobscheduler-sources", // jobscheduler is not a module for R | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 72 |         ":framework-keystore-sources", | 
| David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 73 |         ":framework-identity-sources", | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 74 |         ":framework-mca-effect-sources", | 
 | 75 |         ":framework-mca-filterfw-sources", | 
 | 76 |         ":framework-mca-filterpacks-sources", | 
| Anton Hansson | 3b6477f | 2022-01-17 10:17:15 +0000 | [diff] [blame] | 77 |         ":framework-media-non-updatable-sources", | 
| Amit Mahajan | 6237a6b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 78 |         ":framework-mms-sources", | 
| Rajesh Nyamagoud | 4fe64fb | 2021-09-14 05:34:11 +0000 | [diff] [blame] | 79 |         ":framework-omapi-sources", | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 80 |         ":framework-opengl-sources", | 
 | 81 |         ":framework-rs-sources", | 
 | 82 |         ":framework-sax-sources", | 
 | 83 |         ":framework-telecomm-sources", | 
| Amit Mahajan | d355153 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 84 |         ":framework-telephony-common-sources", | 
| Malcolm Chen | fbc5c36 | 2020-03-16 15:28:35 -0700 | [diff] [blame] | 85 |         ":framework-telephony-sources", | 
| Benedict Wong | 2649736 | 2020-08-10 17:54:33 -0700 | [diff] [blame] | 86 |         ":framework-vcn-util-sources", | 
| David Su | 130441b | 2019-12-14 21:37:20 -0800 | [diff] [blame] | 87 |         ":framework-wifi-annotations", | 
| David Su | 6f646ef | 2019-12-10 13:33:06 -0800 | [diff] [blame] | 88 |         ":framework-wifi-non-updatable-sources", | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 89 |         ":PacProcessor-aidl-sources", | 
 | 90 |         ":ProxyHandler-aidl-sources", | 
| Aaron Huang | c4081b2 | 2020-01-13 15:03:35 +0800 | [diff] [blame] | 91 |         ":net-utils-framework-common-srcs", | 
| Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 92 |  | 
| atrost | 8748835 | 2019-10-10 19:27:31 +0100 | [diff] [blame] | 93 |         // AIDL from frameworks/base/native/ | 
 | 94 |         ":platform-compat-native-aidl", | 
 | 95 |  | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 96 |         // AIDL sources from external directories | 
| Ilya Matyukhin | 10ae7f2 | 2022-10-31 02:06:53 +0000 | [diff] [blame] | 97 |         ":android.hardware.biometrics.common-V3-java-source", | 
 | 98 |         ":android.hardware.biometrics.fingerprint-V3-java-source", | 
| Yu-Han Yang | 97f3b91c | 2022-03-08 14:36:18 -0800 | [diff] [blame] | 99 |         ":android.hardware.gnss-V2-java-source", | 
| Leon Scroggins III | 73e0689 | 2022-01-31 15:47:34 -0500 | [diff] [blame] | 100 |         ":android.hardware.graphics.common-V3-java-source", | 
| Ilya Matyukhin | 10ae7f2 | 2022-10-31 02:06:53 +0000 | [diff] [blame] | 101 |         ":android.hardware.keymaster-V4-java-source", | 
| Sarah Chin | 6e27c2c | 2022-01-13 14:25:25 -0800 | [diff] [blame] | 102 |         ":android.hardware.radio-V3-java-source", | 
 | 103 |         ":android.hardware.radio.data-V3-java-source", | 
 | 104 |         ":android.hardware.radio.network-V3-java-source", | 
 | 105 |         ":android.hardware.radio.voice-V3-java-source", | 
| Eran Messeri | a880730 | 2022-11-29 14:49:39 +0000 | [diff] [blame] | 106 |         ":android.hardware.security.keymint-V3-java-source", | 
| Janis Danisevskis | 2390267 | 2021-03-17 11:02:19 -0700 | [diff] [blame] | 107 |         ":android.hardware.security.secureclock-V1-java-source", | 
| Xiang Wang | d229013 | 2022-12-05 14:57:28 -0800 | [diff] [blame] | 108 |         ":android.hardware.thermal-V1-java-source", | 
| Ray Chin | 868ef62 | 2022-10-26 11:33:38 +0800 | [diff] [blame] | 109 |         ":android.hardware.tv.tuner-V2-java-source", | 
| Janis Danisevskis | 2390267 | 2021-03-17 11:02:19 -0700 | [diff] [blame] | 110 |         ":android.security.apc-java-source", | 
 | 111 |         ":android.security.authorization-java-source", | 
| Janis Danisevskis | 191b206 | 2021-06-14 14:33:10 -0700 | [diff] [blame] | 112 |         ":android.security.legacykeystore-java-source", | 
| Janis Danisevskis | 2390267 | 2021-03-17 11:02:19 -0700 | [diff] [blame] | 113 |         ":android.security.maintenance-java-source", | 
| Tej Singh | 932f870 | 2021-06-14 23:40:22 -0700 | [diff] [blame] | 114 |         ":android.security.metrics-java-source", | 
| Shaquille Johnson | 3144d8c1 | 2022-11-08 12:24:52 +0000 | [diff] [blame] | 115 |         ":android.system.keystore2-V3-java-source", | 
| Venkatarama Avadhani | 3181772 | 2022-11-23 19:57:43 +0530 | [diff] [blame] | 116 |         ":android.hardware.cas-V1-java-source", | 
| David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 117 |         ":credstore_aidl", | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 118 |         ":dumpstate_aidl", | 
 | 119 |         ":framework_native_aidl", | 
 | 120 |         ":gatekeeper_aidl", | 
 | 121 |         ":gsiservice_aidl", | 
| chaviw | 9d438f9 | 2021-05-20 11:18:06 -0500 | [diff] [blame] | 122 |         ":guiconstants_aidl", | 
| Ryan Mitchell | febbc33 | 2021-02-12 09:21:52 -0800 | [diff] [blame] | 123 |         ":idmap2_aidl", | 
| Ryan Mitchell | 6a2ca78 | 2021-01-19 13:51:15 -0800 | [diff] [blame] | 124 |         ":idmap2_core_aidl", | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 125 |         ":incidentcompanion_aidl", | 
| Bernardo Rufino | 64bbd4b | 2020-08-19 14:45:30 +0100 | [diff] [blame] | 126 |         ":inputconstants_aidl", | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 127 |         ":installd_aidl", | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 128 |         ":libaudioclient_aidl", | 
 | 129 |         ":libbinder_aidl", | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 130 |         ":libcamera_client_aidl", | 
 | 131 |         ":libcamera_client_framework_aidl", | 
 | 132 |         ":libupdate_engine_aidl", | 
| Wenhao Wang | 256519a | 2022-01-11 22:29:18 -0800 | [diff] [blame] | 133 |         ":logd_aidl", | 
| Amy Zhang | ccdbc4d | 2020-06-08 21:29:59 -0700 | [diff] [blame] | 134 |         ":resourcemanager_aidl", | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 135 |         ":storaged_aidl", | 
 | 136 |         ":vold_aidl", | 
| Kriti Dang | af97773 | 2021-02-25 18:07:34 +0100 | [diff] [blame] | 137 |         ":deviceproductinfoconstants_aidl", | 
| Jiyong Park | 1cc9566 | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 138 |  | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 139 |         // For the generated R.java and Manifest.java | 
 | 140 |         ":framework-res{.aapt.srcjar}", | 
 | 141 |  | 
 | 142 |         // etc. | 
 | 143 |         ":framework-javastream-protos", | 
| Muhammad Qureshi | 04ec252 | 2020-01-27 16:36:45 -0800 | [diff] [blame] | 144 |         ":statslog-framework-java-gen", // FrameworkStatsLog.java | 
| Hayden Gomes | 24b336f | 2020-11-05 16:28:21 -0800 | [diff] [blame] | 145 |         ":audio_policy_configuration_V7_0", | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 146 |     ], | 
 | 147 | } | 
| Jiyong Park | 1cc9566 | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 148 |  | 
| Neha Pattan | 2edfc48 | 2022-03-02 17:37:23 +0000 | [diff] [blame] | 149 | java_library { | 
| Anton Hansson | 2d6c427 | 2020-08-18 12:52:44 +0100 | [diff] [blame] | 150 |     name: "framework-all", | 
 | 151 |     installable: false, | 
 | 152 |     static_libs: [ | 
| Anton Hansson | 23274ee | 2022-01-28 11:31:50 +0000 | [diff] [blame] | 153 |         "all-framework-module-impl", | 
| Anton Hansson | 2d6c427 | 2020-08-18 12:52:44 +0100 | [diff] [blame] | 154 |         "framework-minus-apex", | 
| Anton Hansson | 2d6c427 | 2020-08-18 12:52:44 +0100 | [diff] [blame] | 155 |     ], | 
 | 156 |     apex_available: ["//apex_available:platform"], | 
 | 157 |     sdk_version: "core_platform", | 
 | 158 |     visibility: [ | 
 | 159 |         // DO NOT ADD ANY MORE ENTRIES TO THIS LIST | 
 | 160 |         "//external/robolectric-shadows:__subpackages__", | 
| Rex Hoffman | 3561be7 | 2022-08-25 22:20:38 +0000 | [diff] [blame] | 161 |         //This will eventually replace the item above, and serves the | 
 | 162 |         //same purpose. | 
 | 163 |         "//external/robolectric:__subpackages__", | 
| Anton Hansson | 2d6c427 | 2020-08-18 12:52:44 +0100 | [diff] [blame] | 164 |         "//frameworks/layoutlib:__subpackages__", | 
| Makoto Onuki | 8558e9a | 2023-08-31 10:48:38 -0700 | [diff] [blame] | 165 |  | 
 | 166 |         // This is for the same purpose as robolectric -- to build "framework.jar" for host-side | 
 | 167 |         // testing. | 
 | 168 |         // TODO: Once Ravenwood is stable, move the host side jar targets to this directory, | 
 | 169 |         // and remove this line. | 
 | 170 |         "//frameworks/base/tools/hoststubgen:__subpackages__", | 
| Anton Hansson | 2d6c427 | 2020-08-18 12:52:44 +0100 | [diff] [blame] | 171 |     ], | 
| Anton Hansson | e996d43 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 172 | } | 
 | 173 |  | 
| Jiyong Park | 392729f | 2020-01-17 16:32:53 +0900 | [diff] [blame] | 174 | // AIDL files under these paths are mixture of public and private ones. | 
 | 175 | // They shouldn't be exported across module boundaries. | 
| Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 176 | java_defaults { | 
| Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 177 |     name: "framework-aidl-export-defaults", | 
| Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 178 |     aidl: { | 
| Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 179 |         export_include_dirs: [ | 
 | 180 |             "core/java", | 
 | 181 |             "drm/java", | 
 | 182 |             "graphics/java", | 
| David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 183 |             "identity/java", | 
| Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 184 |             "keystore/java", | 
| Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 185 |             "media/java", | 
| Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 186 |             "media/mca/effect/java", | 
 | 187 |             "media/mca/filterfw/java", | 
 | 188 |             "media/mca/filterpacks/java", | 
| Amit Mahajan | 6237a6b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 189 |             "mms/java", | 
| Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 190 |             "opengl/java", | 
 | 191 |             "rs/java", | 
 | 192 |             "sax/java", | 
 | 193 |             "telecomm/java", | 
| Anton Hansson | e996d43 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 194 |  | 
| Anton Hansson | e996d43 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 195 |             // TODO(b/147699819): remove this | 
 | 196 |             "telephony/java", | 
| Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 197 |         ], | 
| Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 198 |     }, | 
 | 199 | } | 
 | 200 |  | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 201 | // Collection of classes that are generated from non-Java files that are not listed in | 
 | 202 | // framework_srcs. These have no or very limited dependency to the framework. | 
 | 203 | java_library { | 
 | 204 |     name: "framework-internal-utils", | 
| Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 205 |     static_libs: [ | 
| Dario Freni | d8bf22e | 2018-08-31 14:18:04 +0100 | [diff] [blame] | 206 |         "apex_aidl_interface-java", | 
| Samiul Islam | e456127 | 2021-08-26 11:41:37 +0100 | [diff] [blame] | 207 |         "packagemanager_aidl-java", | 
| Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 208 |         "framework-protos", | 
| Peiyong Lin | b967a4c | 2020-07-27 22:16:13 -0700 | [diff] [blame] | 209 |         "updatable-driver-protos", | 
| Kelvin Zhang | a48c18e | 2021-04-12 17:23:51 -0400 | [diff] [blame] | 210 |         "ota_metadata_proto_java", | 
| Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 211 |         "android.hidl.base-V1.0-java", | 
| Venkatarama Avadhani | 3181772 | 2022-11-23 19:57:43 +0530 | [diff] [blame] | 212 |         "android.hardware.cas-V1-java", // AIDL | 
| Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 213 |         "android.hardware.cas-V1.0-java", | 
| Henry Fang | 43cab92 | 2019-12-27 16:50:20 -0800 | [diff] [blame] | 214 |         "android.hardware.cas-V1.1-java", | 
 | 215 |         "android.hardware.cas-V1.2-java", | 
| Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 216 |         "android.hardware.contexthub-V1.0-java", | 
| Anthony Stange | 521a905 | 2020-02-07 18:45:47 -0500 | [diff] [blame] | 217 |         "android.hardware.contexthub-V1.1-java", | 
| Arthur Ishiguro | 8368e94 | 2020-10-14 13:39:09 -0700 | [diff] [blame] | 218 |         "android.hardware.contexthub-V1.2-java", | 
| Lei Ju | ed22ec8 | 2023-06-28 14:43:06 -0700 | [diff] [blame] | 219 |         "android.hardware.contexthub-V3-java", | 
| Yu-Han Yang | 9fe06dd | 2019-11-18 16:23:31 -0800 | [diff] [blame] | 220 |         "android.hardware.gnss-V1.0-java", | 
| Yu-Han Yang | ad03c47 | 2020-01-14 15:31:01 -0800 | [diff] [blame] | 221 |         "android.hardware.gnss-V2.1-java", | 
| Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 222 |         "android.hardware.health-V1.0-java-constants", | 
| Daniel Bright | 8b4502e | 2020-09-02 17:10:54 -0700 | [diff] [blame] | 223 |         "android.hardware.radio-V1.6-java", | 
| Steven Moreland | 6a30cb3 | 2023-04-11 22:27:08 +0000 | [diff] [blame] | 224 |         "android.hardware.radio.data-V3-java", | 
 | 225 |         "android.hardware.radio.ims-V2-java", | 
 | 226 |         "android.hardware.radio.messaging-V3-java", | 
 | 227 |         "android.hardware.radio.modem-V3-java", | 
 | 228 |         "android.hardware.radio.network-V3-java", | 
| Thomas Nguyen | 5e4d559 | 2022-12-07 09:55:33 -0800 | [diff] [blame] | 229 |         "android.hardware.radio.satellite-V1-java", | 
| Steven Moreland | 6a30cb3 | 2023-04-11 22:27:08 +0000 | [diff] [blame] | 230 |         "android.hardware.radio.sim-V3-java", | 
 | 231 |         "android.hardware.radio.voice-V3-java", | 
| Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 232 |         "android.hardware.thermal-V1.0-java-constants", | 
| Wei Wang | fb21bd8 | 2019-01-10 14:16:23 -0800 | [diff] [blame] | 233 |         "android.hardware.thermal-V1.0-java", | 
| Wei Wang | bad7c20 | 2018-11-01 11:57:39 -0700 | [diff] [blame] | 234 |         "android.hardware.thermal-V1.1-java", | 
 | 235 |         "android.hardware.thermal-V2.0-java", | 
| Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 236 |         "android.hardware.tv.input-V1.0-java-constants", | 
 | 237 |         "android.hardware.usb-V1.0-java-constants", | 
 | 238 |         "android.hardware.usb-V1.1-java-constants", | 
| Badhri Jagan Sridharan | e966a38 | 2018-12-09 14:49:38 -0800 | [diff] [blame] | 239 |         "android.hardware.usb-V1.2-java-constants", | 
| Avichal Rakesh | 022652f | 2023-01-19 19:15:33 -0800 | [diff] [blame] | 240 |         "android.hardware.usb.gadget-V1-java", | 
| Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 241 |         "android.hardware.usb.gadget-V1.0-java", | 
| raychi | 88254a2 | 2020-09-30 19:04:08 +0800 | [diff] [blame] | 242 |         "android.hardware.usb.gadget-V1.1-java", | 
 | 243 |         "android.hardware.usb.gadget-V1.2-java", | 
| Michael Wright | f268bf5 | 2018-02-07 23:23:34 +0000 | [diff] [blame] | 244 |         "android.hardware.vibrator-V1.0-java", | 
 | 245 |         "android.hardware.vibrator-V1.1-java", | 
 | 246 |         "android.hardware.vibrator-V1.2-java", | 
| Harpreet "Eli" Sangha | a456f08 | 2018-12-14 12:06:10 +0900 | [diff] [blame] | 247 |         "android.hardware.vibrator-V1.3-java", | 
| Lais Andrade | b847d63 | 2021-02-23 10:35:27 +0000 | [diff] [blame] | 248 |         "android.hardware.vibrator-V2-java", | 
| Rajesh Nyamagoud | 4fe64fb | 2021-09-14 05:34:11 +0000 | [diff] [blame] | 249 |         "android.se.omapi-V1-java", | 
| Michael Sun | d523796 | 2020-11-06 03:28:14 +0000 | [diff] [blame] | 250 |         "android.system.suspend.control.internal-java", | 
| arangelov | 1ab6149 | 2018-11-22 13:56:50 +0000 | [diff] [blame] | 251 |         "devicepolicyprotosnano", | 
| Inseob Kim | 4fe9f0f | 2019-07-30 18:23:26 +0900 | [diff] [blame] | 252 |  | 
| Nikita Ioffe | 779d6be | 2020-02-06 23:17:17 +0000 | [diff] [blame] | 253 |         "com.android.sysprop.init", | 
| Alexander Mishkovets | 77f6bc8 | 2020-07-14 19:14:10 +0200 | [diff] [blame] | 254 |         "com.android.sysprop.localization", | 
| Inseob Kim | 4fe9f0f | 2019-07-30 18:23:26 +0900 | [diff] [blame] | 255 |         "PlatformProperties", | 
| Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 256 |     ], | 
| Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 257 |     sdk_version: "core_platform", | 
 | 258 |     installable: false, | 
 | 259 | } | 
 | 260 |  | 
| Anton Hansson | 524bf24 | 2021-05-25 12:48:58 +0100 | [diff] [blame] | 261 | // NOTE: This filegroup is exposed for vendor libraries to depend on and is referenced in | 
 | 262 | // documentation. Do not remove without consulting the treble/hidl teams. | 
| Anton Hansson | dffc59c | 2021-05-25 11:43:36 +0000 | [diff] [blame] | 263 | filegroup { | 
 | 264 |     name: "framework-jarjar-rules", | 
 | 265 |     srcs: ["framework-jarjar-rules.txt"], | 
| Anton Hansson | 524bf24 | 2021-05-25 12:48:58 +0100 | [diff] [blame] | 266 |     visibility: ["//visibility:public"], | 
| Anton Hansson | dffc59c | 2021-05-25 11:43:36 +0000 | [diff] [blame] | 267 | } | 
 | 268 |  | 
| Ioana Stefan | 2f5c545 | 2020-10-15 15:00:24 +0200 | [diff] [blame] | 269 | java_defaults { | 
 | 270 |     name: "framework-minus-apex-defaults", | 
| Lorena Torres-Huerta | 6088f4b | 2022-08-12 23:08:13 +0000 | [diff] [blame] | 271 |     defaults: [ | 
 | 272 |         "framework-aidl-export-defaults", | 
 | 273 |         "latest_android_hardware_soundtrigger3_java_static", | 
| Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 274 |         "framework-minus-apex-aconfig-libraries", | 
| Lorena Torres-Huerta | 6088f4b | 2022-08-12 23:08:13 +0000 | [diff] [blame] | 275 |     ], | 
| Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 276 |     srcs: [ | 
 | 277 |         ":framework-non-updatable-sources", | 
 | 278 |         "core/java/**/*.logtags", | 
| Daniel Norman | 66ebced | 2021-09-21 13:47:36 -0700 | [diff] [blame] | 279 |         ":apex-info-list", | 
| Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 280 |     ], | 
| Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 281 |     aidl: { | 
 | 282 |         generate_get_transaction_name: true, | 
| Thiébaud Weksteen | 7e1864a | 2022-02-28 15:26:27 +1100 | [diff] [blame] | 283 |         enforce_permissions: true, | 
 | 284 |         enforce_permissions_exceptions: [ | 
 | 285 |             // Do not add entries to this list. | 
 | 286 |             ":framework-annotations", | 
 | 287 |             ":framework-blobstore-sources", | 
| Thiébaud Weksteen | 7e1864a | 2022-02-28 15:26:27 +1100 | [diff] [blame] | 288 |             ":framework-core-sources", | 
 | 289 |             ":framework-drm-sources", | 
 | 290 |             ":framework-graphics-nonupdatable-sources", | 
 | 291 |             ":framework-jobscheduler-sources", | 
 | 292 |             ":framework-keystore-sources", | 
 | 293 |             ":framework-identity-sources", | 
| Thiébaud Weksteen | 7e1864a | 2022-02-28 15:26:27 +1100 | [diff] [blame] | 294 |             ":framework-mca-effect-sources", | 
 | 295 |             ":framework-mca-filterfw-sources", | 
 | 296 |             ":framework-mca-filterpacks-sources", | 
 | 297 |             ":framework-media-non-updatable-sources", | 
 | 298 |             ":framework-mms-sources", | 
 | 299 |             ":framework-omapi-sources", | 
 | 300 |             ":framework-opengl-sources", | 
 | 301 |             ":framework-rs-sources", | 
 | 302 |             ":framework-sax-sources", | 
 | 303 |             ":framework-telecomm-sources", | 
 | 304 |             ":framework-telephony-common-sources", | 
 | 305 |             ":framework-telephony-sources", | 
 | 306 |             ":framework-vcn-util-sources", | 
 | 307 |             ":framework-wifi-annotations", | 
 | 308 |             ":framework-wifi-non-updatable-sources", | 
 | 309 |             ":PacProcessor-aidl-sources", | 
 | 310 |             ":ProxyHandler-aidl-sources", | 
 | 311 |             ":net-utils-framework-common-srcs", | 
 | 312 |             ":platform-compat-native-aidl", | 
 | 313 |             ":credstore_aidl", | 
 | 314 |             ":dumpstate_aidl", | 
 | 315 |             ":framework_native_aidl", | 
 | 316 |             ":gatekeeper_aidl", | 
 | 317 |             ":gsiservice_aidl", | 
 | 318 |             ":idmap2_aidl", | 
 | 319 |             ":idmap2_core_aidl", | 
 | 320 |             ":incidentcompanion_aidl", | 
 | 321 |             ":inputconstants_aidl", | 
 | 322 |             ":installd_aidl", | 
 | 323 |             ":libaudioclient_aidl", | 
 | 324 |             ":libbinder_aidl", | 
 | 325 |             ":libbluetooth-binder-aidl", | 
 | 326 |             ":libcamera_client_aidl", | 
 | 327 |             ":libcamera_client_framework_aidl", | 
 | 328 |             ":libupdate_engine_aidl", | 
 | 329 |             ":logd_aidl", | 
 | 330 |             ":resourcemanager_aidl", | 
 | 331 |             ":storaged_aidl", | 
 | 332 |             ":vold_aidl", | 
 | 333 |             ":deviceproductinfoconstants_aidl", | 
 | 334 |         ], | 
| Remi NGUYEN VAN | 7b6b006 | 2021-03-19 10:15:06 +0000 | [diff] [blame] | 335 |         local_include_dirs: [ | 
 | 336 |             "media/aidl", | 
| Remi NGUYEN VAN | 7b6b006 | 2021-03-19 10:15:06 +0000 | [diff] [blame] | 337 |         ], | 
| Baligh Uddin | f33ffa1 | 2021-05-17 04:07:33 +0000 | [diff] [blame] | 338 |         include_dirs: [ | 
 | 339 |             "frameworks/av/aidl", | 
| Jeff Sharkey | 75d4f93 | 2021-07-26 15:41:01 -0600 | [diff] [blame] | 340 |             "frameworks/native/libs/permission/aidl", | 
| William Escande | c01e552 | 2022-02-25 12:32:42 +0100 | [diff] [blame] | 341 |             "packages/modules/Bluetooth/framework/aidl-export", | 
| Baligh Uddin | f33ffa1 | 2021-05-17 04:07:33 +0000 | [diff] [blame] | 342 |             "packages/modules/Connectivity/framework/aidl-export", | 
| Baligh Uddin | b8b46fd | 2022-02-11 14:20:10 +0000 | [diff] [blame] | 343 |             "packages/modules/Media/apex/aidl/stable", | 
| Ilya Matyukhin | 10ae7f2 | 2022-10-31 02:06:53 +0000 | [diff] [blame] | 344 |             "hardware/interfaces/biometrics/common/aidl", | 
 | 345 |             "hardware/interfaces/biometrics/fingerprint/aidl", | 
| Leon Scroggins III | 73e0689 | 2022-01-31 15:47:34 -0500 | [diff] [blame] | 346 |             "hardware/interfaces/graphics/common/aidl", | 
| Ilya Matyukhin | 10ae7f2 | 2022-10-31 02:06:53 +0000 | [diff] [blame] | 347 |             "hardware/interfaces/keymaster/aidl", | 
| Atneya Nair | d278c73 | 2023-03-09 21:58:25 -0800 | [diff] [blame] | 348 |             "system/hardware/interfaces/media/aidl", | 
| Baligh Uddin | f33ffa1 | 2021-05-17 04:07:33 +0000 | [diff] [blame] | 349 |         ], | 
| Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 350 |     }, | 
 | 351 |     dxflags: [ | 
 | 352 |         "--core-library", | 
 | 353 |         "--multi-dex", | 
 | 354 |     ], | 
| Anton Hansson | dffc59c | 2021-05-25 11:43:36 +0000 | [diff] [blame] | 355 |     jarjar_rules: ":framework-jarjar-rules", | 
| Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 356 |     javac_shard_size: 150, | 
| Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 357 |     plugins: [ | 
 | 358 |         "view-inspector-annotation-processor", | 
 | 359 |         "staledataclass-annotation-processor", | 
 | 360 |         "error_prone_android_framework", | 
 | 361 |     ], | 
| Sorin Basca | 73cb9bd | 2022-09-27 18:02:06 +0100 | [diff] [blame] | 362 |     // Exports needed for staledataclass-annotation-processor, see b/139342589. | 
 | 363 |     javacflags: [ | 
 | 364 |         "-J--add-modules=jdk.compiler", | 
 | 365 |         "-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED", | 
 | 366 |         "-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED", | 
 | 367 |         "-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED", | 
 | 368 |         "-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED", | 
 | 369 |     ], | 
| atrost | aec9bc1 | 2019-08-16 18:14:09 +0100 | [diff] [blame] | 370 |     required: [ | 
| Marin Shalamanov | 1104725 | 2021-11-22 17:35:30 +0100 | [diff] [blame] | 371 |         // TODO(b/120066492): remove default_television.xml when the build system | 
 | 372 |         // propagates "required" properly. | 
 | 373 |         "default_television.xml", | 
| Marin Shalamanov | 1104725 | 2021-11-22 17:35:30 +0100 | [diff] [blame] | 374 |         // TODO(b/120066492): remove gps_debug and protolog.conf.json when the build | 
 | 375 |         // system propagates "required" properly. | 
| Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 376 |         "gps_debug.conf", | 
| Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 377 |         "protolog.conf.json.gz", | 
| Mark White | 338107b | 2023-06-26 13:31:01 +0000 | [diff] [blame] | 378 |         // any install dependencies should go into framework-minus-apex-install-dependencies | 
 | 379 |         // rather than here to avoid bloating incremental build time | 
| atrost | aec9bc1 | 2019-08-16 18:14:09 +0100 | [diff] [blame] | 380 |     ], | 
| Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 381 |     libs: [ | 
| Jooyung Han | 41528cd | 2022-06-24 14:56:23 +0900 | [diff] [blame] | 382 |         "androidx.annotation_annotation", | 
| Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 383 |         "app-compat-annotations", | 
 | 384 |         "ext", | 
 | 385 |         "framework-updatable-stubs-module_libs_api", | 
 | 386 |         "unsupportedappusage", | 
 | 387 |     ], | 
 | 388 |     sdk_version: "core_platform", | 
| Tobias Thierer | c0c0608 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 389 |     static_libs: [ | 
| Hongguang | 956e635 | 2021-07-20 17:45:28 -0700 | [diff] [blame] | 390 |         "android.hardware.common.fmq-V1-java", | 
| Daulet Zhanguzin | 59444d5 | 2021-01-25 19:43:53 +0000 | [diff] [blame] | 391 |         "bouncycastle-repackaged-unbundled", | 
| dshivangi | 59279cd | 2023-09-05 11:05:51 +0000 | [diff] [blame] | 392 |         "com.android.sysprop.foldlockbehavior", | 
| Anton Hansson | 5954c6d | 2020-08-19 14:37:54 +0100 | [diff] [blame] | 393 |         "framework-internal-utils", | 
| Tobias Thierer | 8296853 | 2019-11-29 19:39:45 +0000 | [diff] [blame] | 394 |         // If MimeMap ever becomes its own APEX, then this dependency would need to be removed | 
 | 395 |         // in favor of an API stubs dependency in java_library "framework" below. | 
| Tobias Thierer | c0c0608 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 396 |         "mimemap", | 
| Ytai Ben-Tsvi | c3cd3cd | 2020-10-30 12:34:51 -0700 | [diff] [blame] | 397 |         "av-types-aidl-java", | 
| Amy Zhang | 39a3fa4 | 2020-12-21 16:56:03 -0800 | [diff] [blame] | 398 |         "tv_tuner_resource_manager_aidl_interface-java", | 
| Ytai Ben-Tsvi | da7c21e | 2020-09-16 13:04:31 -0700 | [diff] [blame] | 399 |         "soundtrigger_middleware-aidl-java", | 
| Hai Zhang | f0960b3 | 2022-10-21 03:10:19 -0700 | [diff] [blame] | 400 |         "modules-utils-binary-xml", | 
| Pedro Loureiro | 99d04522 | 2022-03-17 12:41:31 +0000 | [diff] [blame] | 401 |         "modules-utils-build", | 
| Alexander Dorokhine | c0bf81a | 2021-05-12 11:34:51 -0700 | [diff] [blame] | 402 |         "modules-utils-preconditions", | 
| William Escande | ee59c1e | 2021-11-16 16:01:35 +0100 | [diff] [blame] | 403 |         "modules-utils-statemachine", | 
| William Escande | 33a1463 | 2021-12-16 16:07:55 +0100 | [diff] [blame] | 404 |         "modules-utils-synchronous-result-receiver", | 
| Chiachang Wang | 6a55527 | 2020-11-02 16:51:24 +0800 | [diff] [blame] | 405 |         "modules-utils-os", | 
| Corina | 6116503 | 2022-02-10 18:35:43 +0000 | [diff] [blame] | 406 |         "modules-utils-uieventlogger-interface", | 
| Svet Ganov | 4bf102a | 2021-04-22 20:09:49 +0000 | [diff] [blame] | 407 |         "framework-permission-aidl-java", | 
| Eric Laurent | 8500f6c | 2021-07-24 08:47:17 +0200 | [diff] [blame] | 408 |         "spatializer-aidl-java", | 
| Atneya Nair | eeab0a7 | 2022-12-15 09:32:51 -0800 | [diff] [blame] | 409 |         "audiopolicy-aidl-java", | 
| Vlad Popa | fc1021b | 2022-11-04 17:47:43 +0100 | [diff] [blame] | 410 |         "sounddose-aidl-java", | 
| Vova Sharaienko | 171ea51 | 2023-03-21 19:43:58 +0000 | [diff] [blame] | 411 |         "modules-utils-expresslog", | 
| Makoto Onuki | 8558e9a | 2023-08-31 10:48:38 -0700 | [diff] [blame] | 412 |         "hoststubgen-annotations", | 
| Tobias Thierer | c0c0608 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 413 |     ], | 
| Ioana Stefan | 2f5c545 | 2020-10-15 15:00:24 +0200 | [diff] [blame] | 414 | } | 
 | 415 |  | 
| Mark White | 9ee1866 | 2023-08-07 11:18:09 +0000 | [diff] [blame] | 416 | // Separated so framework-minus-apex-defaults can be used without the libs dependency | 
 | 417 | java_defaults { | 
 | 418 |     name: "framework-minus-apex-with-libs-defaults", | 
| Ioana Stefan | 2f5c545 | 2020-10-15 15:00:24 +0200 | [diff] [blame] | 419 |     defaults: ["framework-minus-apex-defaults"], | 
| Mark White | 9ee1866 | 2023-08-07 11:18:09 +0000 | [diff] [blame] | 420 |     libs: [ | 
 | 421 |         "framework-virtualization.stubs.module_lib", | 
 | 422 |         "framework-location.impl", | 
| Jiyong Park | 212d2e8 | 2020-01-03 21:07:38 +0900 | [diff] [blame] | 423 |     ], | 
| Mark White | 9ee1866 | 2023-08-07 11:18:09 +0000 | [diff] [blame] | 424 | } | 
 | 425 |  | 
 | 426 | java_defaults { | 
 | 427 |     name: "framework-non-updatable-lint-defaults", | 
| Bernardo Rufino | 2b7e591 | 2021-11-29 10:22:15 +0000 | [diff] [blame] | 428 |     lint: { | 
 | 429 |         extra_check_modules: ["AndroidFrameworkLintChecker"], | 
| Rhed Jao | 25a44805e | 2022-03-25 10:55:00 +0800 | [diff] [blame] | 430 |         disabled_checks: ["ApiMightLeakAppVisibility"], | 
| Azhara Assanova | 020ccc4 | 2021-07-01 17:00:06 +0000 | [diff] [blame] | 431 |         error_checks: [ | 
 | 432 |             "ClearIdentityCallNotFollowedByTryFinally", | 
 | 433 |             "NestedClearCallingIdentityCalls", | 
 | 434 |             "NonFinalTokenOfOriginalCallingIdentity", | 
 | 435 |             "RestoreIdentityCallNotInFinallyBlock", | 
 | 436 |             "ResultOfClearIdentityCallNotStoredInVariable", | 
 | 437 |             "UnusedTokenOfOriginalCallingIdentity", | 
 | 438 |             "UseOfCallerAwareMethodsWithClearedIdentity", | 
 | 439 |         ], | 
| Bernardo Rufino | 2b7e591 | 2021-11-29 10:22:15 +0000 | [diff] [blame] | 440 |     }, | 
| Mark White | 9ee1866 | 2023-08-07 11:18:09 +0000 | [diff] [blame] | 441 | } | 
 | 442 |  | 
 | 443 | // we are unfortunately building the turbine jar twice, but more efficient and less complex | 
 | 444 | // than generating a similar set of stubs with metalava | 
 | 445 | java_library { | 
 | 446 |     name: "framework-minus-apex-headers", | 
 | 447 |     defaults: ["framework-minus-apex-defaults"], | 
 | 448 |     installable: false, | 
 | 449 |     // For backwards compatibility. | 
 | 450 |     stem: "framework", | 
 | 451 |     apex_available: ["//apex_available:platform"], | 
 | 452 |     visibility: [ | 
 | 453 |         "//frameworks/base/location", | 
 | 454 |     ], | 
 | 455 |     compile_dex: false, | 
 | 456 |     headers_only: true, | 
 | 457 | } | 
 | 458 |  | 
 | 459 | java_library { | 
 | 460 |     name: "framework-minus-apex", | 
 | 461 |     defaults: [ | 
 | 462 |         "framework-minus-apex-with-libs-defaults", | 
 | 463 |         "framework-non-updatable-lint-defaults", | 
 | 464 |     ], | 
 | 465 |     installable: true, | 
 | 466 |     // For backwards compatibility. | 
 | 467 |     stem: "framework", | 
 | 468 |     apex_available: ["//apex_available:platform"], | 
 | 469 |     visibility: [ | 
 | 470 |         "//frameworks/base", | 
 | 471 |         "//frameworks/base/location", | 
 | 472 |         // TODO(b/147128803) remove the below lines | 
 | 473 |         "//frameworks/base/apex/blobstore/framework", | 
 | 474 |         "//frameworks/base/apex/jobscheduler/framework", | 
 | 475 |         "//frameworks/base/packages/Tethering/tests/unit", | 
 | 476 |         "//packages/modules/Connectivity/Tethering/tests/unit", | 
 | 477 |     ], | 
| Jeff Sharkey | 6c8ffbc | 2020-10-02 11:52:05 -0600 | [diff] [blame] | 478 |     errorprone: { | 
 | 479 |         javacflags: [ | 
 | 480 |             "-Xep:AndroidFrameworkCompatChange:ERROR", | 
| Jeff Sharkey | 9af4aea | 2020-10-02 12:00:59 -0600 | [diff] [blame] | 481 |             "-Xep:AndroidFrameworkUid:ERROR", | 
| Jeff Sharkey | 6c8ffbc | 2020-10-02 11:52:05 -0600 | [diff] [blame] | 482 |         ], | 
 | 483 |     }, | 
| Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 484 | } | 
 | 485 |  | 
| Ioana Stefan | 2f5c545 | 2020-10-15 15:00:24 +0200 | [diff] [blame] | 486 | java_library { | 
 | 487 |     name: "framework-minus-apex-intdefs", | 
| Mark White | 9ee1866 | 2023-08-07 11:18:09 +0000 | [diff] [blame] | 488 |     defaults: ["framework-minus-apex-with-libs-defaults"], | 
| Ioana Stefan | 2f5c545 | 2020-10-15 15:00:24 +0200 | [diff] [blame] | 489 |     plugins: ["intdef-annotation-processor"], | 
| Cole Faust | 584140c | 2022-08-15 15:03:05 -0700 | [diff] [blame] | 490 |  | 
 | 491 |     // Errorprone and android lint will already run on framework-minus-apex, don't rerun them on | 
 | 492 |     // the intdefs version in order to speed up the build. | 
 | 493 |     errorprone: { | 
 | 494 |         enabled: false, | 
 | 495 |     }, | 
 | 496 |     lint: { | 
 | 497 |         enabled: false, | 
 | 498 |     }, | 
| Ioana Stefan | 2f5c545 | 2020-10-15 15:00:24 +0200 | [diff] [blame] | 499 | } | 
 | 500 |  | 
| Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 501 | // This "framework" module is NOT installed to the device. It's | 
 | 502 | // "framework-minus-apex" that gets installed to the device. Note that | 
 | 503 | // the filename is still framework.jar (via the stem property) for | 
 | 504 | // compatibility reason. The purpose of this module is to provide | 
 | 505 | // framework APIs (both public and private) for bundled apps. | 
 | 506 | // "framework-minus-apex" can't be used for the purpose because 1) | 
 | 507 | // many apps have already hardcoded the name "framework" and | 
 | 508 | // 2) it lacks API symbols from updatable modules - as it's clear from | 
 | 509 | // its suffix "-minus-apex". | 
 | 510 | java_library { | 
 | 511 |     name: "framework", | 
 | 512 |     defaults: ["framework-aidl-export-defaults"], | 
 | 513 |     installable: false, // this lib is a build-only library | 
 | 514 |     static_libs: [ | 
| Malcolm Chen | fbc5c36 | 2020-03-16 15:28:35 -0700 | [diff] [blame] | 515 |         "app-compat-annotations", | 
| Mark White | 9ee1866 | 2023-08-07 11:18:09 +0000 | [diff] [blame] | 516 |         "framework-location.impl", | 
| Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 517 |         "framework-minus-apex", | 
| Anton Hansson | e996d43 | 2020-03-07 11:40:10 +0000 | [diff] [blame] | 518 |         "framework-updatable-stubs-module_libs_api", | 
| Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 519 |     ], | 
| Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 520 |     sdk_version: "core_platform", | 
| Jiyong Park | 352f9e2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 521 |     apex_available: ["//apex_available:platform"], | 
| Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 522 | } | 
 | 523 |  | 
| Mark White | 338107b | 2023-06-26 13:31:01 +0000 | [diff] [blame] | 524 | java_library { | 
 | 525 |     name: "framework-minus-apex-install-dependencies", | 
 | 526 |     required: [ | 
 | 527 |         "framework-minus-apex", | 
 | 528 |         "framework-platform-compat-config", | 
| Mark White | 88599af | 2023-09-29 01:16:07 +0000 | [diff] [blame] | 529 |         "framework-location-compat-config", | 
| Mark White | 338107b | 2023-06-26 13:31:01 +0000 | [diff] [blame] | 530 |         "services-platform-compat-config", | 
 | 531 |         "icu4j-platform-compat-config", | 
 | 532 |         "TeleService-platform-compat-config", | 
 | 533 |         "documents-ui-compat-config", | 
 | 534 |         "calendar-provider-compat-config", | 
 | 535 |         "contacts-provider-platform-compat-config", | 
 | 536 |     ], | 
 | 537 | } | 
 | 538 |  | 
| atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 539 | platform_compat_config { | 
| Songchun Fan | d4574b5 | 2021-03-02 20:05:57 +0000 | [diff] [blame] | 540 |     name: "framework-platform-compat-config", | 
 | 541 |     src: ":framework-minus-apex", | 
| Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 542 | } | 
 | 543 |  | 
| Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 544 | filegroup { | 
| evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 545 |     name: "framework-ike-shared-srcs", | 
| Baligh Uddin | b7ec5bb | 2020-05-27 19:22:36 +0000 | [diff] [blame] | 546 |     visibility: ["//packages/modules/IPsec"], | 
| evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 547 |     srcs: [ | 
| evitayan | e9cc494 | 2020-03-03 17:14:47 -0800 | [diff] [blame] | 548 |         "core/java/com/android/internal/util/HexDump.java", | 
| Yan Yan | e7a360f | 2021-06-10 18:45:39 -0700 | [diff] [blame] | 549 |         "core/java/com/android/internal/util/WakeupMessage.java", | 
| Yan Yan | a3e954f | 2020-11-09 00:09:39 -0800 | [diff] [blame] | 550 |         "services/core/java/com/android/server/vcn/util/PersistableBundleUtils.java", | 
| evitayan | 996aa2a | 2019-12-30 11:19:47 -0800 | [diff] [blame] | 551 |         "telephony/java/android/telephony/Annotation.java", | 
| evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 552 |     ], | 
 | 553 | } | 
 | 554 |  | 
 | 555 | filegroup { | 
| Fabien Sanglard | 3878a77 | 2023-02-07 20:57:24 +0000 | [diff] [blame] | 556 |     name: "framework-android-os-unit-testable-src", | 
 | 557 |     srcs: [ | 
 | 558 |         "core/java/android/os/DdmSyncState.java", | 
 | 559 |     ], | 
 | 560 | } | 
 | 561 |  | 
 | 562 | filegroup { | 
| Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 563 |     name: "framework-networkstack-shared-srcs", | 
 | 564 |     srcs: [ | 
 | 565 |         // 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] | 566 |         ":framework-annotations", | 
| Alexander Dorokhine | c0bf81a | 2021-05-12 11:34:51 -0700 | [diff] [blame] | 567 |         ":modules-utils-preconditions-srcs", | 
| Dmitri Plotnikov | f800b70 | 2020-05-15 13:49:20 -0700 | [diff] [blame] | 568 |         "core/java/android/util/IndentingPrintWriter.java", | 
| Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 569 |         "core/java/android/util/LocalLog.java", | 
| Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 570 |         "core/java/com/android/internal/util/HexDump.java", | 
| Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 571 |         "core/java/com/android/internal/util/IndentingPrintWriter.java", | 
| Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 572 |         "core/java/com/android/internal/util/MessageUtils.java", | 
| Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 573 |         "core/java/com/android/internal/util/RingBufferIndices.java", | 
| Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 574 |         "core/java/com/android/internal/util/WakeupMessage.java", | 
| johnson.yeh | 095b7a0 | 2019-12-19 20:30:34 +0800 | [diff] [blame] | 575 |         "core/java/com/android/internal/util/TokenBucket.java", | 
| Tobias Thierer | bc05034 | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 576 |     ], | 
| Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 577 | } | 
 | 578 |  | 
| Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 579 | // Build ext.jar | 
 | 580 | // ============================================================ | 
 | 581 | java_library { | 
 | 582 |     name: "ext", | 
| Colin Cross | a12c0f5 | 2018-06-27 11:00:11 -0700 | [diff] [blame] | 583 |     installable: true, | 
| Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 584 |     sdk_version: "core_platform", | 
| Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 585 |     static_libs: [ | 
 | 586 |         "libphonenumber-platform", | 
| Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 587 |         "tagsoup", | 
| Ricky Wai | 0d1bc33 | 2017-10-31 14:31:01 +0000 | [diff] [blame] | 588 |         "rappor", | 
| Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 589 |     ], | 
 | 590 |     dxflags: ["--core-library"], | 
 | 591 | } | 
 | 592 |  | 
| David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 593 | // utility classes statically linked into framework-wifi and dynamically linked | 
 | 594 | // into wifi-service | 
 | 595 | java_library { | 
 | 596 |     name: "framework-wifi-util-lib", | 
| David Su | fd626db | 2020-11-09 14:31:45 -0800 | [diff] [blame] | 597 |     sdk_version: "module_current", | 
 | 598 |     min_sdk_version: "30", | 
| David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 599 |     srcs: [ | 
| David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 600 |         "core/java/com/android/internal/util/AsyncChannel.java", | 
 | 601 |         "core/java/com/android/internal/util/AsyncService.java", | 
 | 602 |         "core/java/com/android/internal/util/Protocol.java", | 
| David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 603 |         "telephony/java/android/telephony/Annotation.java", | 
| David Su | 298cd36 | 2020-01-17 19:02:49 +0000 | [diff] [blame] | 604 |         ":net-utils-framework-wifi-common-srcs", | 
| David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 605 |     ], | 
 | 606 |     libs: [ | 
 | 607 |         "framework-annotations-lib", | 
| Remi NGUYEN VAN | f311497 | 2021-03-24 22:59:50 +0900 | [diff] [blame] | 608 |         "framework-connectivity.stubs.module_lib", | 
| David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 609 |         "unsupportedappusage", | 
| David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 610 |     ], | 
| David Su | 57bca31 | 2020-04-21 19:49:32 -0700 | [diff] [blame] | 611 |     visibility: [ | 
 | 612 |         "//frameworks/base/wifi", | 
 | 613 |         "//frameworks/base/services/net", | 
| Baligh Uddin | 09fdba4 | 2020-12-23 22:42:10 +0000 | [diff] [blame] | 614 |         "//packages/modules/Wifi/framework", | 
| David Su | 57bca31 | 2020-04-21 19:49:32 -0700 | [diff] [blame] | 615 |     ], | 
| David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 616 | } | 
 | 617 |  | 
| Jiyong Park | 0d7e86d | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 618 | // TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp | 
| Anton Hansson | f67ce74 | 2022-02-18 19:26:20 +0000 | [diff] [blame] | 619 | metalava_framework_docs_args = "" + | 
| Aurimas Liutikas | 1f76a5a | 2019-11-20 17:51:42 -0800 | [diff] [blame] | 620 |     "--api-lint-ignore-prefix android.icu. " + | 
 | 621 |     "--api-lint-ignore-prefix java. " + | 
 | 622 |     "--api-lint-ignore-prefix junit. " + | 
| Anton Hansson | f67ce74 | 2022-02-18 19:26:20 +0000 | [diff] [blame] | 623 |     "--api-lint-ignore-prefix org. " + | 
 | 624 |     "--error NoSettingsProvider " + | 
 | 625 |     "--error UnhiddenSystemApi " + | 
| Adrian Roos | 7da1d25 | 2023-09-20 10:03:31 +0000 | [diff] [blame] | 626 |     "--error UnflaggedApi " + | 
| Anton Hansson | f67ce74 | 2022-02-18 19:26:20 +0000 | [diff] [blame] | 627 |     "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " + | 
 | 628 |     "--hide BroadcastBehavior " + | 
 | 629 |     "--hide CallbackInterface " + | 
 | 630 |     "--hide DeprecationMismatch " + | 
 | 631 |     "--hide HiddenSuperclass " + | 
 | 632 |     "--hide HiddenTypeParameter " + | 
 | 633 |     "--hide MissingPermission " + | 
 | 634 |     "--hide-package android.audio.policy.configuration.V7_0 " + | 
 | 635 |     "--hide-package com.android.server " + | 
 | 636 |     "--hide RequiresPermission " + | 
 | 637 |     "--hide SdkConstant " + | 
 | 638 |     "--hide Todo " + | 
| Anton Hansson | f67ce74 | 2022-02-18 19:26:20 +0000 | [diff] [blame] | 639 |     "--hide UnavailableSymbol " + | 
| Anton Hansson | 22d44af | 2023-03-03 16:10:03 +0000 | [diff] [blame] | 640 |     "--manifest $(location :frameworks-base-core-AndroidManifest.xml) " | 
| Jiyong Park | 0d7e86d | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 641 |  | 
| Anton Hansson | 76ac4cc | 2021-05-05 19:22:52 +0100 | [diff] [blame] | 642 | packages_to_document = [ | 
 | 643 |     "android", | 
 | 644 |     "dalvik", | 
 | 645 |     "java", | 
 | 646 |     "javax", | 
 | 647 |     "junit", | 
 | 648 |     "org.apache.http", | 
 | 649 |     "org.json", | 
 | 650 |     "org.w3c.dom", | 
 | 651 |     "org.xml.sax", | 
 | 652 |     "org.xmlpull", | 
 | 653 | ] | 
 | 654 |  | 
| Anton Hansson | 77ff72f | 2021-03-30 10:11:22 +0100 | [diff] [blame] | 655 | filegroup { | 
| Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 656 |     name: "android-non-updatable-stub-sources", | 
| Anton Hansson | 77ff72f | 2021-03-30 10:11:22 +0100 | [diff] [blame] | 657 |     srcs: [ | 
| Anton Hansson | a08dc69 | 2021-03-30 10:31:15 +0100 | [diff] [blame] | 658 |         ":framework-mime-sources", // mimemap builds separately but has no separate droidstubs. | 
| Anton Hansson | 77ff72f | 2021-03-30 10:11:22 +0100 | [diff] [blame] | 659 |         ":framework-non-updatable-sources", | 
 | 660 |         ":opt-telephony-srcs", | 
 | 661 |         ":opt-net-voip-srcs", | 
 | 662 |         "core/java/**/*.logtags", | 
 | 663 |         "**/package.html", | 
 | 664 |     ], | 
| Anton Hansson | ca6e67a | 2023-03-03 17:55:09 +0000 | [diff] [blame] | 665 |     visibility: ["//frameworks/base/api"], | 
| Anton Hansson | 77ff72f | 2021-03-30 10:11:22 +0100 | [diff] [blame] | 666 | } | 
 | 667 |  | 
| Anton Hansson | 9dce832 | 2022-01-24 14:14:33 +0000 | [diff] [blame] | 668 | // Defaults for all stubs that include the non-updatable framework. These defaults do not include | 
 | 669 | // module symbols, so will not compile correctly on their own. Users must add module APIs to the | 
 | 670 | // classpath (or sources) somehow. | 
| Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 671 | stubs_defaults { | 
 | 672 |     name: "android-non-updatable-stubs-defaults", | 
 | 673 |     srcs: [":android-non-updatable-stub-sources"], | 
 | 674 |     sdk_version: "none", | 
 | 675 |     system_modules: "none", | 
 | 676 |     java_version: "1.8", | 
| Anton Hansson | 22d44af | 2023-03-03 16:10:03 +0000 | [diff] [blame] | 677 |     arg_files: [":frameworks-base-core-AndroidManifest.xml"], | 
| Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 678 |     aidl: { | 
| Baligh Uddin | f33ffa1 | 2021-05-17 04:07:33 +0000 | [diff] [blame] | 679 |         include_dirs: [ | 
 | 680 |             "frameworks/av/aidl", | 
| Anton Hansson | ca6e67a | 2023-03-03 17:55:09 +0000 | [diff] [blame] | 681 |             "frameworks/base/media/aidl", | 
 | 682 |             "frameworks/base/telephony/java", | 
| Jeff Sharkey | 75d4f93 | 2021-07-26 15:41:01 -0600 | [diff] [blame] | 683 |             "frameworks/native/libs/permission/aidl", | 
| William Escande | c01e552 | 2022-02-25 12:32:42 +0100 | [diff] [blame] | 684 |             "packages/modules/Bluetooth/framework/aidl-export", | 
| Junyu Lai | 5bf2712 | 2022-01-12 09:33:53 +0000 | [diff] [blame] | 685 |             "packages/modules/Connectivity/framework/aidl-export", | 
| Roopa Sattiraju | 293ed88 | 2022-02-03 09:07:17 -0800 | [diff] [blame] | 686 |             "packages/modules/Media/apex/aidl/stable", | 
| Ilya Matyukhin | 10ae7f2 | 2022-10-31 02:06:53 +0000 | [diff] [blame] | 687 |             "hardware/interfaces/biometrics/common/aidl", | 
 | 688 |             "hardware/interfaces/biometrics/fingerprint/aidl", | 
| Leon Scroggins III | 73e0689 | 2022-01-31 15:47:34 -0500 | [diff] [blame] | 689 |             "hardware/interfaces/graphics/common/aidl", | 
| Ilya Matyukhin | 10ae7f2 | 2022-10-31 02:06:53 +0000 | [diff] [blame] | 690 |             "hardware/interfaces/keymaster/aidl", | 
| Atneya Nair | d278c73 | 2023-03-09 21:58:25 -0800 | [diff] [blame] | 691 |             "system/hardware/interfaces/media/aidl", | 
| Baligh Uddin | f33ffa1 | 2021-05-17 04:07:33 +0000 | [diff] [blame] | 692 |         ], | 
| Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 693 |     }, | 
 | 694 |     // These are libs from framework-internal-utils that are required (i.e. being referenced) | 
 | 695 |     // from framework-non-updatable-sources. Add more here when there's a need. | 
 | 696 |     // DO NOT add the entire framework-internal-utils. It might cause unnecessary circular | 
 | 697 |     // dependencies gets bigger. | 
 | 698 |     libs: [ | 
 | 699 |         "android.hardware.cas-V1.2-java", | 
 | 700 |         "android.hardware.health-V1.0-java-constants", | 
| Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 701 |         "android.hardware.thermal-V1.0-java-constants", | 
 | 702 |         "android.hardware.thermal-V2.0-java", | 
 | 703 |         "android.hardware.tv.input-V1.0-java-constants", | 
| Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 704 |         "android.hardware.usb-V1.0-java-constants", | 
 | 705 |         "android.hardware.usb-V1.1-java-constants", | 
 | 706 |         "android.hardware.usb.gadget-V1.0-java", | 
 | 707 |         "android.hardware.vibrator-V1.3-java", | 
 | 708 |         "framework-protos", | 
| Anton Hansson | 9dce832 | 2022-01-24 14:14:33 +0000 | [diff] [blame] | 709 |     ], | 
 | 710 |     filter_packages: packages_to_document, | 
 | 711 |     high_mem: true, // Lots of sources => high memory use, see b/170701554 | 
 | 712 |     installable: false, | 
 | 713 |     annotations_enabled: true, | 
 | 714 |     previous_api: ":android.api.public.latest", | 
 | 715 |     merge_annotations_dirs: ["metalava-manual"], | 
| Anton Hansson | ca6e67a | 2023-03-03 17:55:09 +0000 | [diff] [blame] | 716 |     defaults_visibility: ["//frameworks/base/api"], | 
| Anton Hansson | 9dce832 | 2022-01-24 14:14:33 +0000 | [diff] [blame] | 717 |     visibility: ["//frameworks/base/api"], | 
 | 718 | } | 
 | 719 |  | 
 | 720 | // Defaults with module APIs in the classpath (mostly from prebuilts). | 
 | 721 | // Suitable for compiling android-non-updatable. | 
 | 722 | stubs_defaults { | 
 | 723 |     name: "module-classpath-stubs-defaults", | 
 | 724 |     aidl: { | 
| Anton Hansson | 9dce832 | 2022-01-24 14:14:33 +0000 | [diff] [blame] | 725 |         include_dirs: [ | 
| William Escande | c01e552 | 2022-02-25 12:32:42 +0100 | [diff] [blame] | 726 |             "packages/modules/Bluetooth/framework/aidl-export", | 
| Anton Hansson | 9dce832 | 2022-01-24 14:14:33 +0000 | [diff] [blame] | 727 |             "packages/modules/Connectivity/framework/aidl-export", | 
| Baligh Uddin | b8b46fd | 2022-02-11 14:20:10 +0000 | [diff] [blame] | 728 |             "packages/modules/Media/apex/aidl/stable", | 
| Anton Hansson | 9dce832 | 2022-01-24 14:14:33 +0000 | [diff] [blame] | 729 |         ], | 
 | 730 |     }, | 
 | 731 |     libs: [ | 
| Anton Hansson | 4e86dca | 2021-05-07 16:32:10 +0100 | [diff] [blame] | 732 |         "art.module.public.api", | 
| markchien | cd813a3 | 2021-11-11 00:42:55 +0800 | [diff] [blame] | 733 |         "sdk_module-lib_current_framework-tethering", | 
| paulhu | e074dd2e | 2022-02-08 21:23:06 +0800 | [diff] [blame] | 734 |         "sdk_module-lib_current_framework-connectivity-t", | 
| Roopa Sattiraju | 8e30577 | 2022-01-20 10:05:19 -0800 | [diff] [blame] | 735 |         "sdk_public_current_framework-bluetooth", | 
| Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 736 |         // There are a few classes from modules used by the core that | 
 | 737 |         // need to be resolved by metalava. We use a prebuilt stub of the | 
 | 738 |         // full sdk to ensure we can resolve them. If a new class gets added, | 
 | 739 |         // the prebuilts/sdk/current needs to be updated. | 
 | 740 |         "sdk_system_current_android", | 
 | 741 |         // NOTE: The below can be removed once the prebuilt stub contains IKE. | 
 | 742 |         "sdk_system_current_android.net.ipsec.ike", | 
 | 743 |     ], | 
| Anton Hansson | 867f94c | 2021-05-05 10:32:31 +0100 | [diff] [blame] | 744 | } | 
 | 745 |  | 
| Mark White | 9ee1866 | 2023-08-07 11:18:09 +0000 | [diff] [blame] | 746 | // Defaults for the java_sdk_libraries of unbundled jars from framework. | 
 | 747 | // java_sdk_libraries using these defaults should also add themselves to the | 
 | 748 | // non_updatable_modules list in frameworks/base/api/api.go | 
 | 749 | java_defaults { | 
 | 750 |     name: "framework-non-updatable-unbundled-defaults", | 
 | 751 |     defaults: ["framework-non-updatable-lint-defaults"], | 
 | 752 |  | 
 | 753 |     sdk_version: "core_platform", | 
 | 754 |  | 
 | 755 |     // Api scope settings | 
 | 756 |     public: { | 
 | 757 |         enabled: true, | 
 | 758 |         sdk_version: "module_current", | 
 | 759 |         libs: ["android_module_lib_stubs_current"], | 
 | 760 |     }, | 
 | 761 |     system: { | 
 | 762 |         enabled: true, | 
 | 763 |         sdk_version: "module_current", | 
 | 764 |         libs: ["android_module_lib_stubs_current"], | 
 | 765 |     }, | 
 | 766 |     module_lib: { | 
 | 767 |         enabled: true, | 
 | 768 |         sdk_version: "module_current", | 
 | 769 |         libs: ["android_module_lib_stubs_current"], | 
 | 770 |     }, | 
 | 771 |     test: { | 
 | 772 |         enabled: true, | 
 | 773 |         sdk_version: "test_frameworks_core_current", | 
 | 774 |         libs: ["android_test_frameworks_core_stubs_current"], | 
 | 775 |     }, | 
 | 776 |  | 
 | 777 |     stub_only_libs: [ | 
 | 778 |         "framework-protos", | 
 | 779 |     ], | 
 | 780 |     impl_only_libs: [ | 
 | 781 |         "framework-minus-apex-headers", // full access to framework-minus-apex including hidden API | 
 | 782 |         "framework-annotations-lib", | 
 | 783 |     ], | 
 | 784 |     visibility: ["//visibility:public"], | 
 | 785 |     stubs_library_visibility: ["//visibility:public"], | 
 | 786 |     stubs_source_visibility: ["//visibility:private"], | 
 | 787 |     impl_library_visibility: [ | 
 | 788 |         ":__pkg__", | 
 | 789 |         "//frameworks/base", | 
 | 790 |         "//frameworks/base/api", // For framework-all | 
 | 791 |     ], | 
 | 792 |     defaults_visibility: [ | 
 | 793 |         "//frameworks/base/location", | 
 | 794 |     ], | 
 | 795 |     plugins: [ | 
 | 796 |         "error_prone_android_framework", | 
 | 797 |     ], | 
 | 798 |     errorprone: { | 
 | 799 |         javacflags: [ | 
 | 800 |             "-Xep:AndroidFrameworkCompatChange:ERROR", | 
 | 801 |             "-Xep:AndroidFrameworkUid:ERROR", | 
 | 802 |         ], | 
 | 803 |     }, | 
 | 804 |  | 
 | 805 |     // Include manual annotations in API txt files | 
 | 806 |     merge_annotations_dirs: ["metalava-manual"], | 
 | 807 |  | 
 | 808 |     // Use the source of annotations that affect metalava doc generation, since | 
 | 809 |     // the relevant generation instructions are themselves in javadoc, which is | 
 | 810 |     // not present in class files. | 
 | 811 |     api_srcs: [":framework-metalava-annotations"], | 
 | 812 |  | 
 | 813 |     // Framework modules are not generally shared libraries, i.e. they are not | 
 | 814 |     // intended, and must not be allowed, to be used in a <uses-library> manifest | 
 | 815 |     // entry. | 
 | 816 |     shared_library: false, | 
 | 817 |  | 
 | 818 |     // Prevent dependencies that do not specify an sdk_version from accessing the | 
 | 819 |     // implementation library by default and force them to use stubs instead. | 
 | 820 |     default_to_stubs: true, | 
 | 821 |  | 
 | 822 |     // Subdirectory for the artifacts that are copied to the dist directory | 
 | 823 |     dist_group: "android", | 
 | 824 |  | 
 | 825 |     droiddoc_options: [ | 
 | 826 |         "--error UnhiddenSystemApi " + | 
 | 827 |             "--hide CallbackInterface " + | 
 | 828 |             "--hide HiddenTypedefConstant " + | 
 | 829 |             "--hide RequiresPermission " + | 
 | 830 |             "--enhance-documentation " + | 
 | 831 |             "--hide-package com.android.server ", | 
 | 832 |     ], | 
 | 833 |  | 
 | 834 |     annotations_enabled: true, | 
 | 835 | } | 
 | 836 |  | 
| Jiyong Park | 0d7e86d | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 837 | build = [ | 
| Joe Onorato | cd77947 | 2023-08-19 19:49:52 -0700 | [diff] [blame] | 838 |     "AconfigFlags.bp", | 
| Anton Hansson | 31fb58b | 2021-04-12 18:03:12 +0100 | [diff] [blame] | 839 |     "ProtoLibraries.bp", | 
| Harry Zhang | d61699e | 2021-06-01 16:48:25 -0700 | [diff] [blame] | 840 |     "TestProtoLibraries.bp", | 
| Jiyong Park | 0d7e86d | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 841 | ] |