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 | |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 28 | filegroup { |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 29 | name: "framework-core-sources", |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 30 | srcs: [ |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 31 | "core/java/**/*.java", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 32 | "core/java/**/*.aidl", |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 33 | ], |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 34 | path: "core/java", |
Artur Satayev | 3cc3fa4 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 35 | } |
| 36 | |
Jiyong Park | 00ea0b1 | 2019-10-31 20:38:47 +0900 | [diff] [blame] | 37 | // These are subset of framework-core-sources that are needed by the |
| 38 | // android.test.mock library. Ideally, the library should use public APIs only, |
| 39 | // but unfortunately its API signature has some references to these private APIs. |
| 40 | filegroup { |
| 41 | name: "framework-core-sources-for-test-mock", |
| 42 | srcs: [ |
| 43 | "core/java/android/app/IApplicationThread.aidl", |
| 44 | "core/java/android/app/IServiceConnection.aidl", |
| 45 | "core/java/android/content/IContentProvider.java", |
| 46 | "core/java/android/content/pm/IPackageDataObserver.aidl", |
| 47 | "core/java/android/content/pm/InstantAppInfo.java", |
| 48 | "core/java/android/content/pm/KeySet.java", |
| 49 | "core/java/android/content/pm/PackageManager.java", |
| 50 | "core/java/android/content/pm/VerifierDeviceIdentity.java", |
| 51 | "core/java/android/content/res/Resources.java", |
| 52 | "core/java/android/os/storage/VolumeInfo.java", |
| 53 | "core/java/android/view/DisplayAdjustments.java", |
| 54 | ], |
| 55 | path: "core/java", |
Jiyong Park | 673e298 | 2020-01-17 16:14:57 +0900 | [diff] [blame] | 56 | visibility: ["//frameworks/base/test-mock"], |
Jiyong Park | 00ea0b1 | 2019-10-31 20:38:47 +0900 | [diff] [blame] | 57 | } |
| 58 | |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 59 | filegroup { |
| 60 | name: "framework-drm-sources", |
| 61 | srcs: [ |
| 62 | "drm/java/**/*.java", |
| 63 | ], |
| 64 | path: "drm/java", |
| 65 | } |
Jiyong Park | 1cc9566 | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 66 | |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 67 | filegroup { |
| 68 | name: "framework-graphics-sources", |
| 69 | srcs: [ |
| 70 | "graphics/java/**/*.java", |
| 71 | "graphics/java/**/*.aidl", |
| 72 | ], |
| 73 | path: "graphics/java", |
| 74 | } |
| 75 | |
| 76 | filegroup { |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 77 | name: "framework-identity-sources", |
| 78 | srcs: [ |
| 79 | "identity/java/**/*.java", |
| 80 | ], |
| 81 | path: "identity/java", |
| 82 | } |
| 83 | |
| 84 | filegroup { |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 85 | name: "framework-keystore-sources", |
| 86 | srcs: [ |
| 87 | "keystore/java/**/*.java", |
| 88 | "keystore/java/**/*.aidl", |
| 89 | ], |
| 90 | path: "keystore/java", |
| 91 | } |
| 92 | |
| 93 | filegroup { |
| 94 | name: "framework-location-sources", |
| 95 | srcs: [ |
| 96 | "location/java/**/*.java", |
| 97 | "location/java/**/*.aidl", |
| 98 | ], |
| 99 | path: "location/java", |
| 100 | } |
| 101 | |
| 102 | filegroup { |
| 103 | name: "framework-lowpan-sources", |
| 104 | srcs: [ |
| 105 | "lowpan/java/**/*.java", |
| 106 | "lowpan/java/**/*.aidl", |
| 107 | ], |
| 108 | path: "lowpan/java", |
| 109 | } |
| 110 | |
| 111 | filegroup { |
| 112 | name: "framework-media-sources", |
| 113 | srcs: [ |
| 114 | "media/java/**/*.java", |
| 115 | "media/java/**/*.aidl", |
| 116 | ], |
| 117 | path: "media/java", |
| 118 | } |
| 119 | |
| 120 | filegroup { |
| 121 | name: "framework-mca-effect-sources", |
| 122 | srcs: [ |
| 123 | "media/mca/effect/java/**/*.java", |
| 124 | ], |
| 125 | path: "media/mca/effect/java", |
| 126 | } |
| 127 | |
| 128 | filegroup { |
| 129 | name: "framework-mca-filterfw-sources", |
| 130 | srcs: [ |
| 131 | "media/mca/filterfw/java/**/*.java", |
| 132 | ], |
| 133 | path: "media/mca/filterfw/java", |
| 134 | } |
| 135 | |
| 136 | filegroup { |
| 137 | name: "framework-mca-filterpacks-sources", |
| 138 | srcs: [ |
| 139 | "media/mca/filterpacks/java/**/*.java", |
| 140 | ], |
| 141 | path: "media/mca/filterpacks/java", |
| 142 | } |
| 143 | |
| 144 | filegroup { |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 145 | name: "framework-mime-sources", |
| 146 | srcs: [ |
| 147 | "mime/java/**/*.java", |
| 148 | ], |
| 149 | path: "mime/java", |
| 150 | } |
| 151 | |
| 152 | filegroup { |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 153 | name: "framework-opengl-sources", |
| 154 | srcs: [ |
| 155 | "opengl/java/**/*.java", |
| 156 | ], |
| 157 | path: "opengl/java", |
| 158 | } |
| 159 | |
| 160 | filegroup { |
| 161 | name: "framework-rs-sources", |
| 162 | srcs: [ |
| 163 | "rs/java/**/*.java", |
| 164 | ], |
| 165 | path: "rs/java", |
| 166 | } |
| 167 | |
| 168 | filegroup { |
| 169 | name: "framework-sax-sources", |
| 170 | srcs: [ |
| 171 | "sax/java/**/*.java", |
| 172 | ], |
| 173 | path: "sax/java", |
| 174 | } |
| 175 | |
| 176 | filegroup { |
| 177 | name: "framework-telecomm-sources", |
| 178 | srcs: [ |
| 179 | "telecomm/java/**/*.java", |
| 180 | "telecomm/java/**/*.aidl", |
| 181 | ], |
| 182 | path: "telecomm/java", |
| 183 | } |
| 184 | |
| 185 | filegroup { |
| 186 | name: "framework-telephony-sources", |
| 187 | srcs: [ |
| 188 | "telephony/java/**/*.java", |
| 189 | "telephony/java/**/*.aidl", |
| 190 | ], |
| 191 | path: "telephony/java", |
| 192 | } |
| 193 | |
| 194 | filegroup { |
Amit Mahajan | d355153 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 195 | name: "framework-telephony-common-sources", |
| 196 | srcs: [ |
| 197 | "telephony/common/**/*.java", |
| 198 | ], |
| 199 | path: "telephony/common", |
| 200 | } |
| 201 | |
| 202 | filegroup { |
Amit Mahajan | 6237a6b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 203 | name: "framework-mms-sources", |
| 204 | srcs: [ |
| 205 | "mms/java/**/*.java", |
| 206 | "mms/java/**/*.aidl", |
| 207 | ], |
| 208 | path: "mms/java", |
| 209 | } |
| 210 | |
| 211 | filegroup { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 212 | name: "framework-non-updatable-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 213 | srcs: [ |
| 214 | // Java/AIDL sources under frameworks/base |
Sudheer Shanka | f5b3696 | 2019-10-04 16:16:13 -0700 | [diff] [blame] | 215 | ":framework-blobstore-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 216 | ":framework-core-sources", |
| 217 | ":framework-drm-sources", |
| 218 | ":framework-graphics-sources", |
Jiyong Park | 48cc372 | 2019-10-21 14:01:06 +0900 | [diff] [blame] | 219 | ":framework-jobscheduler-sources", // jobscheduler is not a module for R |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 220 | ":framework-keystore-sources", |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 221 | ":framework-identity-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 222 | ":framework-location-sources", |
| 223 | ":framework-lowpan-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 224 | ":framework-mca-effect-sources", |
| 225 | ":framework-mca-filterfw-sources", |
| 226 | ":framework-mca-filterpacks-sources", |
Jiyong Park | 48cc372 | 2019-10-21 14:01:06 +0900 | [diff] [blame] | 227 | ":framework-media-sources", |
Amit Mahajan | 6237a6b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 228 | ":framework-mms-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 229 | ":framework-opengl-sources", |
| 230 | ":framework-rs-sources", |
| 231 | ":framework-sax-sources", |
| 232 | ":framework-telecomm-sources", |
Amit Mahajan | d355153 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 233 | ":framework-telephony-common-sources", |
David Su | 130441b | 2019-12-14 21:37:20 -0800 | [diff] [blame] | 234 | ":framework-wifi-annotations", |
David Su | 6f646ef | 2019-12-10 13:33:06 -0800 | [diff] [blame] | 235 | ":framework-wifi-non-updatable-sources", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 236 | ":PacProcessor-aidl-sources", |
| 237 | ":ProxyHandler-aidl-sources", |
Aaron Huang | c4081b2 | 2020-01-13 15:03:35 +0800 | [diff] [blame] | 238 | ":net-utils-framework-common-srcs", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 239 | |
atrost | 8748835 | 2019-10-10 19:27:31 +0100 | [diff] [blame] | 240 | // AIDL from frameworks/base/native/ |
| 241 | ":platform-compat-native-aidl", |
| 242 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 243 | // AIDL sources from external directories |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 244 | ":credstore_aidl", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 245 | ":dumpstate_aidl", |
| 246 | ":framework_native_aidl", |
| 247 | ":gatekeeper_aidl", |
| 248 | ":gsiservice_aidl", |
| 249 | ":incidentcompanion_aidl", |
| 250 | ":installd_aidl", |
| 251 | ":keystore_aidl", |
| 252 | ":libaudioclient_aidl", |
| 253 | ":libbinder_aidl", |
| 254 | ":libbluetooth-binder-aidl", |
| 255 | ":libcamera_client_aidl", |
| 256 | ":libcamera_client_framework_aidl", |
| 257 | ":libupdate_engine_aidl", |
Ruchir Rastogi | cd9dd94 | 2019-11-27 15:26:03 -0800 | [diff] [blame] | 258 | // TODO: this needs to be removed when statsd-framework.jar is separated out |
Jeffrey Huang | 8c1ae5a | 2019-12-12 10:56:24 -0800 | [diff] [blame] | 259 | ":statsd_java_aidl", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 260 | ":storaged_aidl", |
| 261 | ":vold_aidl", |
Jiyong Park | 1cc9566 | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 262 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 263 | // For the generated R.java and Manifest.java |
| 264 | ":framework-res{.aapt.srcjar}", |
| 265 | |
| 266 | // etc. |
| 267 | ":framework-javastream-protos", |
| 268 | ":framework-statslog-gen", |
Chen Xu | 546ce5e | 2020-01-10 08:38:31 -0800 | [diff] [blame] | 269 | |
| 270 | // telephony annotations |
| 271 | ":framework-telephony-annotations", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 272 | ], |
| 273 | } |
Jiyong Park | 1cc9566 | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 274 | |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 275 | filegroup { |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 276 | name: "framework-updatable-sources", |
| 277 | srcs: [ |
Alexander Dorokhine | 04a05a8 | 2019-12-17 10:41:21 -0800 | [diff] [blame] | 278 | ":framework-appsearch-sources", |
Anton Hansson | 5b97269 | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 279 | ":framework-sdkextensions-sources", |
Muhammad Qureshi | 237c774 | 2019-12-12 11:03:55 -0800 | [diff] [blame] | 280 | ":framework-statsd-sources", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 281 | ":framework-tethering-srcs", |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 282 | ":updatable-media-srcs", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 283 | ":framework-mediaprovider-sources", |
Hai Zhang | 82a6227 | 2020-01-14 21:56:34 -0800 | [diff] [blame] | 284 | ":framework-permission-sources", |
David Su | 754fcc2 | 2019-09-04 14:31:58 -0700 | [diff] [blame] | 285 | ":framework-wifi-updatable-sources", |
Chen Xu | 546ce5e | 2020-01-10 08:38:31 -0800 | [diff] [blame] | 286 | ":framework-telephony-sources", |
Benedict Wong | 589b6ff | 2019-11-20 22:52:48 -0800 | [diff] [blame] | 287 | ":ike-srcs", |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 288 | ] |
| 289 | } |
| 290 | |
| 291 | filegroup { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 292 | name: "framework-all-sources", |
| 293 | srcs: [ |
Tobias Thierer | c0c0608 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 294 | ":framework-mime-sources", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 295 | ":framework-non-updatable-sources", |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 296 | ":framework-updatable-sources", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 297 | ], |
| 298 | } |
| 299 | |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 300 | java_defaults { |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 301 | name: "framework-aidl-export-defaults", |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 302 | aidl: { |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 303 | export_include_dirs: [ |
Dongwon Kang | dd65269 | 2020-01-03 13:54:21 -0800 | [diff] [blame] | 304 | "apex/media/framework/java", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 305 | "core/java", |
| 306 | "drm/java", |
| 307 | "graphics/java", |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 308 | "identity/java", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 309 | "keystore/java", |
| 310 | "location/java", |
| 311 | "lowpan/java", |
| 312 | "media/java", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 313 | "media/mca/effect/java", |
| 314 | "media/mca/filterfw/java", |
| 315 | "media/mca/filterpacks/java", |
Amit Mahajan | 6237a6b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 316 | "mms/java", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 317 | "opengl/java", |
| 318 | "rs/java", |
| 319 | "sax/java", |
| 320 | "telecomm/java", |
David Su | 6dcd768 | 2020-01-21 11:23:00 -0800 | [diff] [blame] | 321 | "wifi/aidl-export", |
Jiyong Park | b360931 | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 322 | ], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 323 | }, |
Adam Pardyl | 5020703 | 2019-09-09 14:37:27 +0200 | [diff] [blame] | 324 | |
| 325 | required: [ |
Adam Pardyl | 0f1b3d4 | 2019-08-19 15:24:11 +0200 | [diff] [blame] | 326 | // TODO: remove gps_debug and protolog.conf.json when the build system propagates "required" properly. |
Adam Pardyl | 5020703 | 2019-09-09 14:37:27 +0200 | [diff] [blame] | 327 | "gps_debug.conf", |
Adam Pardyl | 0f1b3d4 | 2019-08-19 15:24:11 +0200 | [diff] [blame] | 328 | "protolog.conf.json.gz", |
Adam Pardyl | 5020703 | 2019-09-09 14:37:27 +0200 | [diff] [blame] | 329 | ], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 330 | } |
| 331 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 332 | // Collection of classes that are generated from non-Java files that are not listed in |
| 333 | // framework_srcs. These have no or very limited dependency to the framework. |
| 334 | java_library { |
| 335 | name: "framework-internal-utils", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 336 | static_libs: [ |
Dario Freni | d8bf22e | 2018-08-31 14:18:04 +0100 | [diff] [blame] | 337 | "apex_aidl_interface-java", |
Kalesh Singh | 759af32 | 2019-06-19 12:17:43 -0700 | [diff] [blame] | 338 | "suspend_control_aidl_interface-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 339 | "framework-protos", |
Peiyong Lin | 9ca1dd8 | 2019-01-12 17:44:29 -0800 | [diff] [blame] | 340 | "game-driver-protos", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 341 | "android.hidl.base-V1.0-java", |
| 342 | "android.hardware.cas-V1.0-java", |
Henry Fang | 43cab92 | 2019-12-27 16:50:20 -0800 | [diff] [blame] | 343 | "android.hardware.cas-V1.1-java", |
| 344 | "android.hardware.cas-V1.2-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 345 | "android.hardware.contexthub-V1.0-java", |
Yu-Han Yang | 9fe06dd | 2019-11-18 16:23:31 -0800 | [diff] [blame] | 346 | "android.hardware.gnss-V1.0-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 347 | "android.hardware.health-V1.0-java-constants", |
Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 348 | "android.hardware.radio-V1.0-java", |
| 349 | "android.hardware.radio-V1.1-java", |
| 350 | "android.hardware.radio-V1.2-java", |
| 351 | "android.hardware.radio-V1.3-java", |
| 352 | "android.hardware.radio-V1.4-java", |
Sarah Chin | 21e9c63 | 2019-11-05 13:30:10 -0800 | [diff] [blame] | 353 | "android.hardware.radio-V1.5-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 354 | "android.hardware.thermal-V1.0-java-constants", |
Wei Wang | fb21bd8 | 2019-01-10 14:16:23 -0800 | [diff] [blame] | 355 | "android.hardware.thermal-V1.0-java", |
Wei Wang | bad7c20 | 2018-11-01 11:57:39 -0700 | [diff] [blame] | 356 | "android.hardware.thermal-V1.1-java", |
| 357 | "android.hardware.thermal-V2.0-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 358 | "android.hardware.tv.input-V1.0-java-constants", |
shubang | 7e849b0 | 2019-10-18 19:36:25 -0700 | [diff] [blame] | 359 | "android.hardware.tv.tuner-V1.0-java-constants", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 360 | "android.hardware.usb-V1.0-java-constants", |
| 361 | "android.hardware.usb-V1.1-java-constants", |
Badhri Jagan Sridharan | e966a38 | 2018-12-09 14:49:38 -0800 | [diff] [blame] | 362 | "android.hardware.usb-V1.2-java-constants", |
Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 363 | "android.hardware.usb.gadget-V1.0-java", |
Michael Wright | f268bf5 | 2018-02-07 23:23:34 +0000 | [diff] [blame] | 364 | "android.hardware.vibrator-V1.0-java", |
| 365 | "android.hardware.vibrator-V1.1-java", |
| 366 | "android.hardware.vibrator-V1.2-java", |
Harpreet "Eli" Sangha | a456f08 | 2018-12-14 12:06:10 +0900 | [diff] [blame] | 367 | "android.hardware.vibrator-V1.3-java", |
arangelov | 1ab6149 | 2018-11-22 13:56:50 +0000 | [diff] [blame] | 368 | "devicepolicyprotosnano", |
Inseob Kim | 4fe9f0f | 2019-07-30 18:23:26 +0900 | [diff] [blame] | 369 | |
| 370 | "com.android.sysprop.apex", |
| 371 | "PlatformProperties", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 372 | ], |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 373 | sdk_version: "core_platform", |
| 374 | installable: false, |
| 375 | } |
| 376 | |
| 377 | java_defaults { |
| 378 | name: "framework-defaults", |
| 379 | defaults: ["framework-aidl-export-defaults"], |
| 380 | installable: true, |
| 381 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 382 | aidl: { |
| 383 | generate_get_transaction_name: true, |
| 384 | }, |
| 385 | |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 386 | srcs: ["core/java/**/*.logtags"], |
| 387 | |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 388 | exclude_srcs: [ |
| 389 | // See comment on framework-atb-backward-compatibility module below |
Winson | 14ff717 | 2019-10-23 10:42:27 -0700 | [diff] [blame] | 390 | "core/java/android/content/pm/parsing/library/AndroidTestBaseUpdater.java", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 391 | ], |
| 392 | |
| 393 | sdk_version: "core_platform", |
| 394 | libs: [ |
Artur Satayev | 6aa25ec | 2019-12-11 16:33:22 +0000 | [diff] [blame] | 395 | "app-compat-annotations", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 396 | "ext", |
Artur Satayev | 6aa25ec | 2019-12-11 16:33:22 +0000 | [diff] [blame] | 397 | "unsupportedappusage", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 398 | "updatable_media_stubs", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 399 | "framework_mediaprovider_stubs", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 400 | "framework-tethering", |
Chen Xu | 546ce5e | 2020-01-10 08:38:31 -0800 | [diff] [blame] | 401 | "framework-telephony-stubs", |
Jiyong Park | 2042653 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 402 | ], |
| 403 | |
| 404 | jarjar_rules: ":framework-jarjar-rules", |
| 405 | |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 406 | static_libs: [ |
| 407 | "framework-internal-utils", |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 408 | ], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 409 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 410 | dxflags: [ |
| 411 | "--core-library", |
| 412 | "--multi-dex", |
| 413 | ], |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 414 | |
Eugene Susla | 3b2fe61 | 2019-08-06 18:47:14 -0700 | [diff] [blame] | 415 | plugins: [ |
| 416 | "view-inspector-annotation-processor", |
| 417 | "staledataclass-annotation-processor", |
| 418 | ], |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 419 | } |
| 420 | |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 421 | filegroup { |
Steven Moreland | 19e8d46 | 2019-03-08 10:44:22 -0800 | [diff] [blame] | 422 | name: "framework-jarjar-rules", |
David Su | 130441b | 2019-12-14 21:37:20 -0800 | [diff] [blame] | 423 | srcs: ["framework-jarjar-rules.txt"], |
Steven Moreland | 19e8d46 | 2019-03-08 10:44:22 -0800 | [diff] [blame] | 424 | } |
| 425 | |
| 426 | filegroup { |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 427 | name: "libincident_aidl", |
| 428 | srcs: [ |
Mike Ma | 643de92 | 2019-12-17 10:56:17 -0800 | [diff] [blame] | 429 | "core/java/android/os/IIncidentDumpCallback.aidl", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 430 | "core/java/android/os/IIncidentManager.aidl", |
| 431 | "core/java/android/os/IIncidentReportStatusListener.aidl", |
| 432 | ], |
Dan Willemsen | 4a49850 | 2019-06-05 15:51:24 -0700 | [diff] [blame] | 433 | path: "core/java", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 434 | } |
| 435 | |
| 436 | filegroup { |
Stan Iliev | 637ba5e | 2019-08-16 13:43:08 -0400 | [diff] [blame] | 437 | name: "graphicsstats_proto", |
| 438 | srcs: [ |
| 439 | "libs/hwui/protos/graphicsstats.proto", |
| 440 | ], |
| 441 | } |
| 442 | |
| 443 | filegroup { |
Michael Wright | c390fbe | 2018-12-12 19:45:09 +0000 | [diff] [blame] | 444 | name: "libvibrator_aidl", |
| 445 | srcs: [ |
| 446 | "core/java/android/os/IExternalVibrationController.aidl", |
| 447 | "core/java/android/os/IExternalVibratorService.aidl", |
| 448 | ], |
Dan Willemsen | 4a49850 | 2019-06-05 15:51:24 -0700 | [diff] [blame] | 449 | path: "core/java", |
Michael Wright | c390fbe | 2018-12-12 19:45:09 +0000 | [diff] [blame] | 450 | } |
| 451 | |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 452 | java_library { |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 453 | name: "framework-minus-apex", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 454 | defaults: ["framework-defaults"], |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 455 | srcs: [":framework-non-updatable-sources"], |
Muhammad Qureshi | 237c774 | 2019-12-12 11:03:55 -0800 | [diff] [blame] | 456 | libs: [ |
Alexander Dorokhine | 04a05a8 | 2019-12-17 10:41:21 -0800 | [diff] [blame] | 457 | "framework-appsearch-stubs", |
Anton Hansson | b2f709d | 2020-01-09 10:25:23 +0000 | [diff] [blame] | 458 | "framework-sdkextensions-stubs-systemapi", |
| 459 | "framework-statsd", // TODO(b/146167933): Use framework-statsd-stubs |
Hai Zhang | 82a6227 | 2020-01-14 21:56:34 -0800 | [diff] [blame] | 460 | "framework-permission-stubs", |
David Su | 754fcc2 | 2019-09-04 14:31:58 -0700 | [diff] [blame] | 461 | "framework-wifi-stubs", |
Benedict Wong | 589b6ff | 2019-11-20 22:52:48 -0800 | [diff] [blame] | 462 | "ike-stubs", |
Muhammad Qureshi | 237c774 | 2019-12-12 11:03:55 -0800 | [diff] [blame] | 463 | ], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 464 | installable: true, |
Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 465 | javac_shard_size: 150, |
atrost | aec9bc1 | 2019-08-16 18:14:09 +0100 | [diff] [blame] | 466 | required: [ |
| 467 | "framework-platform-compat-config", |
| 468 | "libcore-platform-compat-config", |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 469 | "services-platform-compat-config", |
atrost | 8bea647 | 2019-10-10 19:33:22 +0100 | [diff] [blame] | 470 | "media-provider-platform-compat-config", |
atrost | aec9bc1 | 2019-08-16 18:14:09 +0100 | [diff] [blame] | 471 | ], |
Tobias Thierer | c0c0608 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 472 | static_libs: [ |
Tobias Thierer | 8296853 | 2019-11-29 19:39:45 +0000 | [diff] [blame] | 473 | // If MimeMap ever becomes its own APEX, then this dependency would need to be removed |
| 474 | // in favor of an API stubs dependency in java_library "framework" below. |
Tobias Thierer | c0c0608 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 475 | "mimemap", |
| 476 | ], |
Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 477 | // For backwards compatibility. |
| 478 | stem: "framework", |
Jiyong Park | 352f9e2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 479 | apex_available: ["//apex_available:platform"], |
Jiyong Park | 212d2e8 | 2020-01-03 21:07:38 +0900 | [diff] [blame] | 480 | visibility: [ |
| 481 | "//frameworks/base", |
| 482 | // TODO(b/144149403) remove the below lines |
| 483 | "//frameworks/base/apex/appsearch/framework", |
| 484 | "//frameworks/base/apex/blobstore/framework", |
| 485 | "//frameworks/base/apex/jobscheduler/framework", |
Hai Zhang | 82a6227 | 2020-01-14 21:56:34 -0800 | [diff] [blame] | 486 | "//frameworks/base/apex/permission/framework", |
Jiyong Park | 212d2e8 | 2020-01-03 21:07:38 +0900 | [diff] [blame] | 487 | "//frameworks/base/apex/statsd/service", |
Chen Xu | 546ce5e | 2020-01-10 08:38:31 -0800 | [diff] [blame] | 488 | "//frameworks/base/telephony", |
Jiyong Park | 212d2e8 | 2020-01-03 21:07:38 +0900 | [diff] [blame] | 489 | "//frameworks/opt/net/wifi/service", |
| 490 | ], |
Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 491 | } |
| 492 | |
| 493 | // This "framework" module is NOT installed to the device. It's |
| 494 | // "framework-minus-apex" that gets installed to the device. Note that |
| 495 | // the filename is still framework.jar (via the stem property) for |
| 496 | // compatibility reason. The purpose of this module is to provide |
| 497 | // framework APIs (both public and private) for bundled apps. |
| 498 | // "framework-minus-apex" can't be used for the purpose because 1) |
| 499 | // many apps have already hardcoded the name "framework" and |
| 500 | // 2) it lacks API symbols from updatable modules - as it's clear from |
| 501 | // its suffix "-minus-apex". |
| 502 | java_library { |
| 503 | name: "framework", |
| 504 | defaults: ["framework-aidl-export-defaults"], |
| 505 | installable: false, // this lib is a build-only library |
| 506 | static_libs: [ |
| 507 | "framework-minus-apex", |
Jiyong Park | 9272134 | 2019-12-18 17:26:38 +0900 | [diff] [blame] | 508 | "updatable_media_stubs", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 509 | "framework_mediaprovider_stubs", |
Alexander Dorokhine | 3e2051a | 2020-01-14 01:25:54 +0000 | [diff] [blame] | 510 | "framework-appsearch", // TODO(b/146218515): should be framework-appsearch-stubs |
Hai Zhang | 82a6227 | 2020-01-14 21:56:34 -0800 | [diff] [blame] | 511 | "framework-permission-stubs", |
Anton Hansson | 5b97269 | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 512 | "framework-sdkextensions-stubs-systemapi", |
Muhammad Qureshi | 237c774 | 2019-12-12 11:03:55 -0800 | [diff] [blame] | 513 | // TODO(b/146167933): Use framework-statsd-stubs instead. |
| 514 | "framework-statsd", |
David Su | 298cd36 | 2020-01-17 19:02:49 +0000 | [diff] [blame] | 515 | "framework-wifi-stubs", |
Benedict Wong | 589b6ff | 2019-11-20 22:52:48 -0800 | [diff] [blame] | 516 | "ike-stubs", |
Jiyong Park | c81df3f | 2020-01-06 13:30:59 +0900 | [diff] [blame] | 517 | // TODO(b/147200698): should be the stub of framework-tethering |
| 518 | "framework-tethering", |
Chen Xu | 546ce5e | 2020-01-10 08:38:31 -0800 | [diff] [blame] | 519 | // TODO (b/147688669) should be framework-telephony-stubs |
| 520 | "framework-telephony", |
| 521 | // TODO(jiyong): add stubs for APEXes here |
Jiyong Park | 911cd4f | 2019-10-21 14:35:14 +0900 | [diff] [blame] | 522 | ], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 523 | sdk_version: "core_platform", |
Jiyong Park | 352f9e2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 524 | apex_available: ["//apex_available:platform"], |
Makoto Onuki | 62242c4 | 2019-08-05 12:54:20 -0700 | [diff] [blame] | 525 | } |
| 526 | |
| 527 | java_library { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 528 | name: "framework-all", |
| 529 | defaults: ["framework-defaults"], |
| 530 | srcs: [":framework-all-sources"], |
| 531 | installable: false, |
David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 532 | static_libs: [ |
| 533 | "exoplayer2-core", |
| 534 | "android.hardware.wifi-V1.0-java-constants", |
Alexander Dorokhine | 0e8fa4e | 2020-01-13 20:22:20 -0800 | [diff] [blame] | 535 | ], |
| 536 | libs: ["icing-java-proto-lite"], |
Jiyong Park | 352f9e2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 537 | apex_available: ["//apex_available:platform"], |
Jiyong Park | 9718349 | 2019-11-14 03:07:36 +0000 | [diff] [blame] | 538 | } |
| 539 | |
| 540 | java_library { |
| 541 | name: "framework-annotation-proc", |
| 542 | defaults: ["framework-aidl-export-defaults"], |
| 543 | srcs: [":framework-all-sources"], |
Artur Satayev | 6aa25ec | 2019-12-11 16:33:22 +0000 | [diff] [blame] | 544 | libs: [ |
| 545 | "app-compat-annotations", |
| 546 | "unsupportedappusage", |
| 547 | ], |
Jiyong Park | 9718349 | 2019-11-14 03:07:36 +0000 | [diff] [blame] | 548 | installable: false, |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 549 | plugins: [ |
| 550 | "unsupportedappusage-annotation-processor", |
| 551 | "compat-changeid-annotation-processor", |
| 552 | ], |
Santiago Seifert | 5466a7d | 2019-11-11 19:27:04 +0000 | [diff] [blame] | 553 | static_libs: [ |
David Su | 298cd36 | 2020-01-17 19:02:49 +0000 | [diff] [blame] | 554 | "exoplayer2-core", |
| 555 | "android.hardware.wifi-V1.0-java-constants", |
Santiago Seifert | 5466a7d | 2019-11-11 19:27:04 +0000 | [diff] [blame] | 556 | ] |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 557 | } |
| 558 | |
| 559 | platform_compat_config { |
| 560 | name: "framework-platform-compat-config", |
Jiyong Park | 9718349 | 2019-11-14 03:07:36 +0000 | [diff] [blame] | 561 | src: ":framework-annotation-proc", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 562 | } |
| 563 | |
Paul Duffin | 52197580 | 2019-06-05 10:35:08 +0100 | [diff] [blame] | 564 | // A library including just UnsupportedAppUsage.java classes. |
| 565 | // |
| 566 | // Provided for target so that libraries can use it without depending on |
| 567 | // the whole of framework or the core platform API. |
| 568 | // |
| 569 | // Built for host so that the annotation processor can also use this annotation. |
| 570 | java_library { |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 571 | name: "unsupportedappusage-annotation", |
Paul Duffin | 52197580 | 2019-06-05 10:35:08 +0100 | [diff] [blame] | 572 | host_supported: true, |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 573 | srcs: [ |
| 574 | "core/java/android/annotation/IntDef.java", |
| 575 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Paul Duffin | c130801 | 2019-10-10 16:33:42 +0100 | [diff] [blame] | 576 | ], |
| 577 | static_libs: [ |
| 578 | "art.module.api.annotations", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 579 | ], |
Paul Duffin | 52197580 | 2019-06-05 10:35:08 +0100 | [diff] [blame] | 580 | |
| 581 | sdk_version: "core_current", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 582 | } |
| 583 | |
Paul Duffin | beee5dc | 2018-01-23 13:39:00 +0000 | [diff] [blame] | 584 | // A temporary build target that is conditionally included on the bootclasspath if |
Paul Duffin | a3b6921 | 2018-01-25 09:58:32 +0000 | [diff] [blame] | 585 | // android.test.base library has been removed and which provides support for |
| 586 | // maintaining backwards compatibility for APKs that target pre-P and depend on |
| 587 | // android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is |
| 588 | // specified on the build command line. |
| 589 | java_library { |
| 590 | name: "framework-atb-backward-compatibility", |
Paul Duffin | fab8754 | 2019-02-15 11:39:12 +0000 | [diff] [blame] | 591 | installable: true, |
atrost | 1a94550 | 2019-11-04 17:03:54 +0000 | [diff] [blame] | 592 | libs: ["app-compat-annotations"], |
Paul Duffin | a3b6921 | 2018-01-25 09:58:32 +0000 | [diff] [blame] | 593 | srcs: [ |
Winson | 14ff717 | 2019-10-23 10:42:27 -0700 | [diff] [blame] | 594 | "core/java/android/content/pm/parsing/library/AndroidTestBaseUpdater.java", |
Paul Duffin | a3b6921 | 2018-01-25 09:58:32 +0000 | [diff] [blame] | 595 | ], |
| 596 | } |
| 597 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 598 | genrule { |
| 599 | name: "framework-statslog-gen", |
| 600 | tools: ["stats-log-api-gen"], |
Muhammad Qureshi | ad94425 | 2020-01-10 14:03:13 -0800 | [diff] [blame] | 601 | cmd: "$(location stats-log-api-gen) --java $(out) --worksource", |
David Chen | 0a368b2 | 2017-12-06 16:28:16 -0800 | [diff] [blame] | 602 | out: ["android/util/StatsLogInternal.java"], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 603 | } |
| 604 | |
| 605 | gensrcs { |
| 606 | name: "framework-javastream-protos", |
| 607 | depfile: true, |
| 608 | |
| 609 | tools: [ |
| 610 | "aprotoc", |
| 611 | "protoc-gen-javastream", |
| 612 | "soong_zip", |
| 613 | ], |
| 614 | |
Anton Hansson | d82b2f7 | 2019-11-18 13:34:56 +0000 | [diff] [blame] | 615 | cmd: "mkdir -p $(genDir)/$(in) " + |
| 616 | "&& $(location aprotoc) " + |
| 617 | " --plugin=$(location protoc-gen-javastream) " + |
| 618 | " --dependency_out=$(depfile) " + |
| 619 | " --javastream_out=$(genDir)/$(in) " + |
| 620 | " -Iexternal/protobuf/src " + |
| 621 | " -I . " + |
| 622 | " $(in) " + |
| 623 | "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)", |
| 624 | |
Yi Jin | 437aa6e | 2018-01-10 11:34:26 -0800 | [diff] [blame] | 625 | srcs: [ |
Mike Ma | d2672bd | 2020-01-15 15:57:20 -0800 | [diff] [blame] | 626 | ":ipconnectivity-proto-src", |
Yi Jin | 437aa6e | 2018-01-10 11:34:26 -0800 | [diff] [blame] | 627 | "core/proto/**/*.proto", |
| 628 | "libs/incident/**/*.proto", |
| 629 | ], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 630 | output_extension: "srcjar", |
| 631 | } |
| 632 | |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 633 | filegroup { |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 634 | name: "framework-annotations", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 635 | srcs: [ |
David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 636 | "core/java/android/annotation/CallbackExecutor.java", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 637 | "core/java/android/annotation/CheckResult.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 638 | "core/java/android/annotation/IntDef.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 639 | "core/java/android/annotation/IntRange.java", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 640 | "core/java/android/annotation/NonNull.java", |
| 641 | "core/java/android/annotation/Nullable.java", |
| 642 | "core/java/android/annotation/RequiresPermission.java", |
| 643 | "core/java/android/annotation/SdkConstant.java", |
David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 644 | "core/java/android/annotation/StringDef.java", |
Anton Hansson | dc1e99b | 2019-12-06 17:07:28 +0000 | [diff] [blame] | 645 | "core/java/android/annotation/SystemApi.java", |
David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 646 | "core/java/android/annotation/SystemService.java", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 647 | "core/java/android/annotation/TestApi.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 648 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Remi NGUYEN VAN | 231b52b | 2019-01-29 15:38:52 +0900 | [diff] [blame] | 649 | "core/java/com/android/internal/annotations/GuardedBy.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 650 | "core/java/com/android/internal/annotations/VisibleForTesting.java", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 651 | "core/java/com/android/internal/annotations/Immutable.java", |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 652 | ], |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 653 | } |
| 654 | |
Anton Hansson | 4ec07fa | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 655 | java_library { |
| 656 | name: "framework-annotations-lib", |
| 657 | srcs: [ ":framework-annotations" ], |
Anton Hansson | 791551a | 2019-12-19 10:17:46 +0000 | [diff] [blame] | 658 | sdk_version: "core_current", |
Anton Hansson | 4ec07fa | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 659 | } |
| 660 | |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 661 | filegroup { |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 662 | name: "framework-ike-shared-srcs", |
| 663 | visibility: ["//frameworks/opt/net/ike"], |
| 664 | srcs: [ |
evitayan | bddbfb0 | 2020-01-07 21:21:52 -0800 | [diff] [blame] | 665 | "core/java/android/annotation/StringDef.java", |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 666 | "core/java/android/net/annotations/PolicyDirection.java", |
evitayan | 0efc740 | 2019-12-20 17:55:57 -0800 | [diff] [blame] | 667 | "core/java/com/android/internal/util/IState.java", |
| 668 | "core/java/com/android/internal/util/State.java", |
| 669 | "core/java/com/android/internal/util/StateMachine.java", |
evitayan | 996aa2a | 2019-12-30 11:19:47 -0800 | [diff] [blame] | 670 | "telephony/java/android/telephony/Annotation.java", |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 671 | ], |
| 672 | } |
| 673 | |
| 674 | filegroup { |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 675 | name: "framework-networkstack-shared-srcs", |
| 676 | srcs: [ |
| 677 | // 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] | 678 | ":framework-annotations", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 679 | "core/java/android/net/DhcpResults.java", |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 680 | "core/java/android/util/LocalLog.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 681 | "core/java/com/android/internal/util/HexDump.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 682 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 683 | "core/java/com/android/internal/util/IState.java", |
| 684 | "core/java/com/android/internal/util/MessageUtils.java", |
| 685 | "core/java/com/android/internal/util/Preconditions.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 686 | "core/java/com/android/internal/util/RingBufferIndices.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 687 | "core/java/com/android/internal/util/State.java", |
| 688 | "core/java/com/android/internal/util/StateMachine.java", |
Chalard Jean | 6a76b7e | 2019-04-09 11:16:56 +0900 | [diff] [blame] | 689 | "core/java/com/android/internal/util/TrafficStatsConstants.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 690 | "core/java/com/android/internal/util/WakeupMessage.java", |
johnson.yeh | 095b7a0 | 2019-12-19 20:30:34 +0800 | [diff] [blame] | 691 | "core/java/com/android/internal/util/TokenBucket.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 692 | "core/java/android/net/shared/*.java", |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 693 | ], |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 694 | } |
| 695 | |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 696 | // keep these files in sync with the package/Tethering/jarjar-rules.txt for the tethering module. |
markchien | a6ba54d | 2019-09-03 15:58:06 +0800 | [diff] [blame] | 697 | filegroup { |
| 698 | name: "framework-tethering-shared-srcs", |
| 699 | srcs: [ |
| 700 | "core/java/android/util/LocalLog.java", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 701 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
| 702 | "core/java/com/android/internal/util/IState.java", |
| 703 | "core/java/com/android/internal/util/MessageUtils.java", |
| 704 | "core/java/com/android/internal/util/Preconditions.java", |
| 705 | "core/java/com/android/internal/util/State.java", |
| 706 | "core/java/com/android/internal/util/StateMachine.java", |
markchien | 87d3f7d | 2020-01-08 20:58:23 +0800 | [diff] [blame] | 707 | "core/java/com/android/internal/util/TrafficStatsConstants.java", |
markchien | 986750b | 2019-12-06 15:24:53 +0800 | [diff] [blame] | 708 | "core/java/android/net/shared/Inet4AddressUtils.java", |
markchien | ae8aa64 | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 709 | ], |
| 710 | } |
| 711 | |
| 712 | filegroup { |
| 713 | name: "framework-tethering-annotations", |
| 714 | srcs: [ |
| 715 | "core/java/android/annotation/NonNull.java", |
| 716 | "core/java/android/annotation/SystemApi.java", |
markchien | a6ba54d | 2019-09-03 15:58:06 +0800 | [diff] [blame] | 717 | ], |
| 718 | } |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 719 | // Build ext.jar |
| 720 | // ============================================================ |
| 721 | java_library { |
| 722 | name: "ext", |
Colin Cross | a12c0f5 | 2018-06-27 11:00:11 -0700 | [diff] [blame] | 723 | installable: true, |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 724 | sdk_version: "core_platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 725 | static_libs: [ |
| 726 | "libphonenumber-platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 727 | "tagsoup", |
Ricky Wai | 0d1bc33 | 2017-10-31 14:31:01 +0000 | [diff] [blame] | 728 | "rappor", |
Tony Mak | 64c4cb2 | 2018-09-25 13:38:28 +0100 | [diff] [blame] | 729 | "libtextclassifier-java", |
| 730 | ], |
| 731 | required: [ |
| 732 | "libtextclassifier", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 733 | ], |
| 734 | dxflags: ["--core-library"], |
| 735 | } |
| 736 | |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 737 | // ==== java proto host library ============================== |
| 738 | java_library_host { |
| 739 | name: "platformprotos", |
| 740 | srcs: [ |
Mike Ma | d2672bd | 2020-01-15 15:57:20 -0800 | [diff] [blame] | 741 | ":ipconnectivity-proto-src", |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 742 | "cmds/am/proto/instrumentation_data.proto", |
Howard Ro | 0546d54 | 2018-08-30 16:23:44 -0700 | [diff] [blame] | 743 | "cmds/statsd/src/**/*.proto", |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 744 | "core/proto/**/*.proto", |
| 745 | "libs/incident/proto/**/*.proto", |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 746 | ], |
| 747 | proto: { |
| 748 | include_dirs: ["external/protobuf/src"], |
| 749 | type: "full", |
| 750 | }, |
| 751 | errorprone: { |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 752 | javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520 |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 753 | }, |
| 754 | } |
| 755 | |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 756 | // ==== java proto device library (for test only) ============================== |
| 757 | java_library { |
| 758 | name: "platformprotosnano", |
| 759 | proto: { |
| 760 | type: "nano", |
| 761 | output_params: ["store_unknown_fields=true"], |
| 762 | include_dirs: ["external/protobuf/src"], |
| 763 | }, |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 764 | exclude_srcs: [ |
| 765 | "core/proto/android/privacy.proto", |
| 766 | "core/proto/android/section.proto", |
| 767 | ], |
Anton Hansson | 791551a | 2019-12-19 10:17:46 +0000 | [diff] [blame] | 768 | sdk_version: "9", |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 769 | srcs: [ |
Mike Ma | d2672bd | 2020-01-15 15:57:20 -0800 | [diff] [blame] | 770 | ":ipconnectivity-proto-src", |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 771 | "core/proto/**/*.proto", |
| 772 | "libs/incident/proto/android/os/**/*.proto", |
| 773 | ], |
| 774 | } |
| 775 | |
| 776 | // ==== java proto device library (for test only) ============================== |
| 777 | java_library { |
| 778 | name: "platformprotoslite", |
| 779 | proto: { |
| 780 | type: "lite", |
| 781 | include_dirs: ["external/protobuf/src"], |
| 782 | }, |
| 783 | |
| 784 | srcs: [ |
Mike Ma | d2672bd | 2020-01-15 15:57:20 -0800 | [diff] [blame] | 785 | ":ipconnectivity-proto-src", |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 786 | "core/proto/**/*.proto", |
| 787 | "libs/incident/proto/android/os/**/*.proto", |
| 788 | ], |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 789 | exclude_srcs: [ |
| 790 | "core/proto/android/privacy.proto", |
| 791 | "core/proto/android/section.proto", |
| 792 | ], |
Anton Hansson | 791551a | 2019-12-19 10:17:46 +0000 | [diff] [blame] | 793 | sdk_version: "core_current", |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 794 | // Protos have lots of MissingOverride and similar. |
| 795 | errorprone: { |
| 796 | javacflags: ["-XepDisableAllChecks"], |
| 797 | }, |
| 798 | } |
| 799 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 800 | // ==== c++ proto device library ============================== |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 801 | cc_defaults { |
| 802 | name: "libplatformprotos-defaults", |
| 803 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 804 | proto: { |
| 805 | export_proto_headers: true, |
| 806 | include_dirs: ["external/protobuf/src"], |
| 807 | }, |
| 808 | |
Chih-Hung Hsieh | c7edf07 | 2017-10-03 09:57:55 -0700 | [diff] [blame] | 809 | cflags: [ |
| 810 | "-Wall", |
| 811 | "-Werror", |
| 812 | "-Wno-unused-parameter", |
| 813 | ], |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 814 | |
| 815 | srcs: [ |
Mike Ma | d2672bd | 2020-01-15 15:57:20 -0800 | [diff] [blame] | 816 | ":ipconnectivity-proto-src", |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 817 | "core/proto/**/*.proto", |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 818 | ], |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 819 | } |
| 820 | |
| 821 | cc_library { |
| 822 | name: "libplatformprotos", |
| 823 | defaults: ["libplatformprotos-defaults"], |
| 824 | host_supported: true, |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 825 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 826 | target: { |
| 827 | host: { |
| 828 | proto: { |
| 829 | type: "full", |
| 830 | }, |
| 831 | }, |
| 832 | android: { |
| 833 | proto: { |
| 834 | type: "lite", |
| 835 | }, |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 836 | shared_libs: [ |
| 837 | "libprotobuf-cpp-lite", |
| 838 | ], |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 839 | shared: { |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 840 | enabled: false, |
| 841 | }, |
| 842 | }, |
| 843 | }, |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 844 | } |
| 845 | |
Joe Onorato | 9bd5db7 | 2019-04-03 18:19:43 -0700 | [diff] [blame] | 846 | // This library is meant for vendor code that needs to output protobuf. It links |
| 847 | // against the static version of libprotobuf-cpp-lite, for which we can not guarantee |
| 848 | // binary compatibility. |
| 849 | cc_library { |
| 850 | name: "libplatformprotos-static", |
| 851 | defaults: ["libplatformprotos-defaults"], |
| 852 | host_supported: false, |
| 853 | |
| 854 | // This is okay because this library is only built as a static library. The C++ |
| 855 | // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council, |
| 856 | // but is not authorized to be used outside of debugging. |
| 857 | vendor_available: true, |
| 858 | |
| 859 | target: { |
| 860 | android: { |
| 861 | proto: { |
| 862 | type: "lite", |
| 863 | }, |
| 864 | static_libs: [ |
| 865 | "libprotobuf-cpp-lite", |
| 866 | ], |
| 867 | shared: { |
| 868 | enabled: false, |
| 869 | }, |
| 870 | }, |
| 871 | }, |
| 872 | } |
| 873 | |
| 874 | |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 875 | // This is the full proto version of libplatformprotos. It may only |
| 876 | // be used by test code that is not shipped on the device. |
| 877 | cc_library { |
| 878 | name: "libplatformprotos-test", |
| 879 | defaults: ["libplatformprotos-defaults"], |
| 880 | host_supported: false, |
| 881 | |
| 882 | target: { |
| 883 | android: { |
| 884 | proto: { |
| 885 | type: "full", |
| 886 | }, |
| 887 | shared: { |
| 888 | enabled: false, |
| 889 | }, |
| 890 | }, |
| 891 | }, |
| 892 | } |
| 893 | |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 894 | filegroup { |
| 895 | name: "incremental_aidl", |
| 896 | srcs: [ |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 897 | "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl", |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 898 | ], |
| 899 | path: "core/java", |
| 900 | } |
| 901 | |
| 902 | filegroup { |
Songchun Fan | 6dd47b5 | 2019-11-29 15:20:18 -0800 | [diff] [blame] | 903 | name: "dataloader_aidl", |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 904 | srcs: [ |
Alex Buynytskyy | ea14d19 | 2019-12-13 15:42:18 -0800 | [diff] [blame] | 905 | "core/java/android/content/pm/DataLoaderParamsParcel.aidl", |
Alex Buynytskyy | 1ecfcec | 2019-12-17 12:10:41 -0800 | [diff] [blame] | 906 | "core/java/android/content/pm/DataLoaderType.aidl", |
Alex Buynytskyy | ea14d19 | 2019-12-13 15:42:18 -0800 | [diff] [blame] | 907 | "core/java/android/content/pm/FileSystemControlParcel.aidl", |
Songchun Fan | 6dd47b5 | 2019-11-29 15:20:18 -0800 | [diff] [blame] | 908 | "core/java/android/content/pm/IDataLoaderStatusListener.aidl", |
Alex Buynytskyy | ea14d19 | 2019-12-13 15:42:18 -0800 | [diff] [blame] | 909 | "core/java/android/content/pm/IPackageInstallerSessionFileSystemConnector.aidl", |
| 910 | "core/java/android/content/pm/NamedParcelFileDescriptor.aidl", |
Alex Buynytskyy | 5b0c7fa | 2019-12-17 21:48:16 -0800 | [diff] [blame] | 911 | ], |
| 912 | path: "core/java", |
| 913 | } |
| 914 | |
| 915 | filegroup { |
| 916 | name: "incremental_manager_aidl", |
| 917 | srcs: [ |
| 918 | "core/java/android/os/incremental/IIncrementalManager.aidl", |
| 919 | "core/java/android/os/incremental/IIncrementalManagerNative.aidl", |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 920 | ], |
| 921 | path: "core/java", |
| 922 | } |
| 923 | |
| 924 | aidl_interface { |
| 925 | name: "libincremental_aidl", |
| 926 | srcs: [ |
| 927 | ":incremental_aidl", |
Songchun Fan | 6dd47b5 | 2019-11-29 15:20:18 -0800 | [diff] [blame] | 928 | ], |
Songchun Fan | 6dd47b5 | 2019-11-29 15:20:18 -0800 | [diff] [blame] | 929 | backend: { |
| 930 | java: { |
| 931 | sdk_version: "28", |
| 932 | }, |
| 933 | cpp: { |
| 934 | enabled: true, |
| 935 | }, |
| 936 | ndk: { |
| 937 | enabled: true, |
| 938 | }, |
| 939 | }, |
| 940 | } |
| 941 | |
| 942 | aidl_interface { |
| 943 | name: "libdataloader_aidl", |
| 944 | srcs: [ |
| 945 | ":dataloader_aidl", |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 946 | ], |
Alex Buynytskyy | 5b0c7fa | 2019-12-17 21:48:16 -0800 | [diff] [blame] | 947 | imports: [ |
| 948 | "libincremental_aidl", |
| 949 | ], |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 950 | backend: { |
| 951 | java: { |
| 952 | sdk_version: "28", |
| 953 | }, |
| 954 | cpp: { |
| 955 | enabled: true, |
| 956 | }, |
| 957 | ndk: { |
Alex Buynytskyy | 5b0c7fa | 2019-12-17 21:48:16 -0800 | [diff] [blame] | 958 | enabled: false, |
| 959 | }, |
| 960 | }, |
| 961 | } |
| 962 | |
| 963 | aidl_interface { |
| 964 | name: "libincremental_manager_aidl", |
| 965 | srcs: [ |
| 966 | ":incremental_manager_aidl", |
| 967 | ], |
| 968 | imports: [ |
| 969 | "libincremental_aidl", |
| 970 | "libdataloader_aidl", |
| 971 | ], |
| 972 | backend: { |
| 973 | java: { |
| 974 | sdk_version: "28", |
| 975 | }, |
| 976 | cpp: { |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 977 | enabled: true, |
| 978 | }, |
Alex Buynytskyy | 5b0c7fa | 2019-12-17 21:48:16 -0800 | [diff] [blame] | 979 | ndk: { |
| 980 | enabled: false, |
| 981 | }, |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 982 | }, |
Songchun Fan | 0037c3f | 2019-10-30 15:20:59 -0700 | [diff] [blame] | 983 | } |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 984 | |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 985 | gensrcs { |
| 986 | name: "gen-platform-proto-constants", |
| 987 | depfile: true, |
| 988 | |
| 989 | tools: [ |
| 990 | "aprotoc", |
| 991 | "protoc-gen-cppstream", |
| 992 | ], |
| 993 | |
| 994 | srcs: [ |
Kweku Adams | eadd123 | 2018-02-05 16:45:13 -0800 | [diff] [blame] | 995 | "core/proto/android/os/backtrace.proto", |
Kweku Adams | 59e6fd7 | 2017-12-27 15:48:14 -0800 | [diff] [blame] | 996 | "core/proto/android/os/batterytype.proto", |
Yi Jin | 0eb2234 | 2017-11-06 17:17:27 -0800 | [diff] [blame] | 997 | "core/proto/android/os/cpufreq.proto", |
Yi Jin | e2f7f79 | 2017-11-01 17:08:27 -0700 | [diff] [blame] | 998 | "core/proto/android/os/cpuinfo.proto", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 999 | "core/proto/android/os/data.proto", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 1000 | "core/proto/android/os/kernelwake.proto", |
| 1001 | "core/proto/android/os/pagetypeinfo.proto", |
| 1002 | "core/proto/android/os/procrank.proto", |
Kweku Adams | f5cc575 | 2017-12-20 17:59:17 -0800 | [diff] [blame] | 1003 | "core/proto/android/os/ps.proto", |
Yi Jin | 0dfa752 | 2017-11-06 17:43:47 -0800 | [diff] [blame] | 1004 | "core/proto/android/os/system_properties.proto", |
Yi Jin | 3c034c9 | 2017-12-22 17:36:47 -0800 | [diff] [blame] | 1005 | "core/proto/android/util/event_log_tags.proto", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 1006 | "core/proto/android/util/log.proto", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 1007 | ], |
| 1008 | |
| 1009 | // Append protoc-gen-cppstream tool's PATH otherwise aprotoc can't find the plugin tool |
Yi Jin | 3c034c9 | 2017-12-22 17:36:47 -0800 | [diff] [blame] | 1010 | cmd: "mkdir -p $(genDir) " + |
| 1011 | "&& $(location aprotoc) " + |
| 1012 | " --plugin=$(location protoc-gen-cppstream) " + |
| 1013 | " --dependency_out=$(depfile) " + |
| 1014 | " --cppstream_out=$(genDir) " + |
| 1015 | " -Iexternal/protobuf/src " + |
| 1016 | " -I . " + |
| 1017 | " $(in)", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 1018 | |
Logan Chien | 71ddfea | 2018-02-27 16:43:50 +0800 | [diff] [blame] | 1019 | output_extension: "proto.h", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 1020 | } |
| 1021 | |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 1022 | |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 1023 | subdirs = [ |
Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 1024 | "cmds/*", |
Jeff Sharkey | 0c686e7 | 2017-10-23 16:04:31 -0600 | [diff] [blame] | 1025 | "core/*", |
Colin Cross | 4f8d9e6 | 2016-12-01 15:55:00 -0800 | [diff] [blame] | 1026 | "libs/*", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 1027 | "media/*", |
Colin Cross | 747e7c1 | 2017-10-24 16:21:22 -0700 | [diff] [blame] | 1028 | "proto", |
Fabien Sanglard | 1916020 | 2017-01-12 14:24:31 -0500 | [diff] [blame] | 1029 | "tools/*", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 1030 | "native/android", |
Dan Albert | 7ce8df3 | 2016-09-23 16:43:49 -0700 | [diff] [blame] | 1031 | "native/graphics/jni", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 1032 | ] |
Svetoslav Ganov | 74c9983 | 2016-12-05 20:07:20 -0800 | [diff] [blame] | 1033 | |
| 1034 | optional_subdirs = [ |
| 1035 | "core/tests/utiltests/jni", |
| 1036 | ] |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 1037 | |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 1038 | // TODO(b/77285514): remove this once the last few hidl interfaces have been |
| 1039 | // updated to use hwbinder.stubs. |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 1040 | java_library { |
| 1041 | name: "hwbinder", |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 1042 | sdk_version: "core_platform", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 1043 | |
| 1044 | srcs: [ |
| 1045 | "core/java/android/os/HidlSupport.java", |
Steven Moreland | e8e63aa | 2018-01-10 15:45:36 -0800 | [diff] [blame] | 1046 | "core/java/android/annotation/IntDef.java", |
Ytai Ben-Tsvi | 4659e18 | 2019-11-06 09:53:34 -0800 | [diff] [blame] | 1047 | "core/java/android/annotation/IntRange.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 1048 | "core/java/android/annotation/NonNull.java", |
Steven Moreland | 0ff061a | 2019-03-04 17:56:30 -0800 | [diff] [blame] | 1049 | "core/java/android/annotation/Nullable.java", |
Steven Moreland | e8e63aa | 2018-01-10 15:45:36 -0800 | [diff] [blame] | 1050 | "core/java/android/annotation/SystemApi.java", |
Steven Moreland | cbba4c7 | 2019-01-11 10:19:51 -0800 | [diff] [blame] | 1051 | "core/java/android/annotation/TestApi.java", |
Andrei Onea | 24ec321 | 2019-03-15 17:35:05 +0000 | [diff] [blame] | 1052 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Ytai Ben-Tsvi | 4659e18 | 2019-11-06 09:53:34 -0800 | [diff] [blame] | 1053 | "core/java/android/os/HidlMemory.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 1054 | "core/java/android/os/HwBinder.java", |
| 1055 | "core/java/android/os/HwBlob.java", |
| 1056 | "core/java/android/os/HwParcel.java", |
| 1057 | "core/java/android/os/IHwBinder.java", |
| 1058 | "core/java/android/os/IHwInterface.java", |
| 1059 | "core/java/android/os/DeadObjectException.java", |
| 1060 | "core/java/android/os/DeadSystemException.java", |
Nirav Atre | 9850dd9 | 2018-07-24 17:03:44 -0700 | [diff] [blame] | 1061 | "core/java/android/os/NativeHandle.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 1062 | "core/java/android/os/RemoteException.java", |
| 1063 | "core/java/android/util/AndroidException.java", |
| 1064 | ], |
Artur Satayev | afdb23a | 2019-12-10 17:47:53 +0000 | [diff] [blame] | 1065 | libs: [ "unsupportedappusage" ], |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 1066 | |
| 1067 | dxflags: ["--core-library"], |
| 1068 | installable: false, |
| 1069 | } |
Nan Zhang | 2db709d | 2017-11-08 20:48:46 -0800 | [diff] [blame] | 1070 | |
| 1071 | python_defaults { |
| 1072 | name: "base_default", |
| 1073 | version: { |
| 1074 | py2: { |
| 1075 | enabled: true, |
| 1076 | embedded_launcher: true, |
| 1077 | }, |
| 1078 | py3: { |
| 1079 | enabled: false, |
| 1080 | embedded_launcher: false, |
| 1081 | }, |
| 1082 | }, |
| 1083 | } |
| 1084 | |
| 1085 | python_binary_host { |
| 1086 | name: "fontchain_linter", |
| 1087 | defaults: ["base_default"], |
| 1088 | main: "tools/fonts/fontchain_linter.py", |
| 1089 | srcs: [ |
| 1090 | "tools/fonts/fontchain_linter.py", |
| 1091 | ], |
| 1092 | libs: [ |
| 1093 | "fontTools", |
| 1094 | ], |
| 1095 | } |
Nan Zhang | 172875b | 2018-02-27 11:24:03 -0800 | [diff] [blame] | 1096 | |
Nan Zhang | af25130 | 2018-08-30 10:59:51 -0700 | [diff] [blame] | 1097 | filegroup { |
| 1098 | name: "framework-annotation-nonnull-srcs", |
| 1099 | srcs: [ |
| 1100 | "core/java/android/annotation/NonNull.java", |
| 1101 | ], |
| 1102 | } |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1103 | |
| 1104 | filegroup { |
| 1105 | name: "framework-media-annotation-srcs", |
| 1106 | srcs: [ |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 1107 | ":framework-annotations", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1108 | "core/java/android/annotation/CallbackExecutor.java", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 1109 | "core/java/android/annotation/CallSuper.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1110 | "core/java/android/annotation/DrawableRes.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1111 | "core/java/android/annotation/LongDef.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1112 | "core/java/android/annotation/StringDef.java", |
Jeff Sharkey | 4018283 | 2019-12-18 14:06:48 -0700 | [diff] [blame] | 1113 | ], |
| 1114 | } |
| 1115 | |
| 1116 | filegroup { |
| 1117 | name: "framework-mediaprovider-annotation-sources", |
| 1118 | srcs: [ |
| 1119 | ":framework-annotations", |
| 1120 | "core/java/android/annotation/BytesLong.java", |
| 1121 | "core/java/android/annotation/CurrentTimeMillisLong.java", |
| 1122 | "core/java/android/annotation/CurrentTimeSecondsLong.java", |
| 1123 | "core/java/android/annotation/DurationMillisLong.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1124 | ], |
| 1125 | } |
| 1126 | |
Andrei Onea | 7a2985c | 2019-02-18 15:28:35 +0000 | [diff] [blame] | 1127 | // Creates an index of AIDL methods; used for adding UnsupportedAppUsage |
| 1128 | // annotations to private apis |
| 1129 | aidl_mapping { |
| 1130 | name: "framework-aidl-mappings", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 1131 | srcs: [":framework-all-sources"], |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1132 | output: "framework-aidl-mappings.txt", |
Kyunglyul Hyun | d51666d | 2019-04-11 04:08:40 +0000 | [diff] [blame] | 1133 | } |
Anna Trostanetski | 97088e9 | 2019-06-26 14:47:58 +0100 | [diff] [blame] | 1134 | |
| 1135 | genrule { |
| 1136 | name: "framework-annotation-proc-index", |
Jiyong Park | 9718349 | 2019-11-14 03:07:36 +0000 | [diff] [blame] | 1137 | srcs: [":framework-annotation-proc"], |
Anna Trostanetski | 97088e9 | 2019-06-26 14:47:58 +0100 | [diff] [blame] | 1138 | cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)", |
| 1139 | out: ["unsupportedappusage_index.csv"], |
| 1140 | dist: { |
| 1141 | targets: ["droidcore"], |
| 1142 | }, |
| 1143 | } |
Chen Xu | 192bf1f | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1144 | |
| 1145 | // Avoid including Parcelable classes as we don't want to have two copies of |
Malcolm Chen | 58b59a5 | 2020-01-14 19:25:13 -0800 | [diff] [blame] | 1146 | // Parcelable cross the libraries. This is used by telephony-common (frameworks/opt/telephony) |
| 1147 | // and TeleService app (packages/services/Telephony). |
Chen Xu | 192bf1f | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1148 | filegroup { |
Malcolm Chen | 58b59a5 | 2020-01-14 19:25:13 -0800 | [diff] [blame] | 1149 | name: "framework-telephony-common-shared-srcs", |
Chen Xu | 192bf1f | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1150 | srcs: [ |
Hall Liu | aa4398e | 2019-12-24 14:13:25 -0800 | [diff] [blame] | 1151 | "core/java/android/os/BasicShellCommandHandler.java", |
Chen Xu | 192bf1f | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1152 | "core/java/android/os/RegistrantList.java", |
| 1153 | "core/java/android/os/Registrant.java", |
| 1154 | "core/java/android/util/LocalLog.java", |
Chen Xu | 192bf1f | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1155 | "core/java/android/util/TimeUtils.java", |
| 1156 | "core/java/com/android/internal/os/SomeArgs.java", |
Meng Wang | 9c2a8e0 | 2019-12-13 16:45:34 -0800 | [diff] [blame] | 1157 | "core/java/com/android/internal/util/AsyncChannel.java", |
Meng Wang | 3043dac | 2020-01-14 14:04:10 -0800 | [diff] [blame] | 1158 | "core/java/com/android/internal/util/AsyncService.java", |
Meng Wang | 9c2a8e0 | 2019-12-13 16:45:34 -0800 | [diff] [blame] | 1159 | "core/java/com/android/internal/util/BitwiseInputStream.java", |
Michele | badc021 | 2019-10-31 11:48:43 -0700 | [diff] [blame] | 1160 | "core/java/com/android/internal/util/FastXmlSerializer.java", |
| 1161 | "core/java/com/android/internal/util/HexDump.java", |
Meng Wang | 64fffb9 | 2019-12-02 10:42:20 -0800 | [diff] [blame] | 1162 | "core/java/com/android/internal/util/IState.java", |
Michele | badc021 | 2019-10-31 11:48:43 -0700 | [diff] [blame] | 1163 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
Chen Xu | 192bf1f | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1164 | "core/java/com/android/internal/util/Preconditions.java", |
| 1165 | "core/java/com/android/internal/util/State.java", |
| 1166 | "core/java/com/android/internal/util/StateMachine.java", |
Michele | badc021 | 2019-10-31 11:48:43 -0700 | [diff] [blame] | 1167 | "core/java/com/android/internal/util/UserIcons.java", |
Chen Xu | 192bf1f | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1168 | ], |
| 1169 | } |
| 1170 | |
Chen Xu | 4fea79c | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1171 | // Avoid including Parcelable classes as we don't want to have two copies of |
Malcolm Chen | 58b59a5 | 2020-01-14 19:25:13 -0800 | [diff] [blame] | 1172 | // Parcelable cross the process. This is used by framework-telephony (frameworks/base/telephony). |
| 1173 | filegroup { |
| 1174 | name: "framework-telephony-shared-srcs", |
| 1175 | srcs: [ |
| 1176 | "core/java/android/util/RecurrenceRule.java", |
| 1177 | "core/java/com/android/internal/os/SomeArgs.java", |
| 1178 | "core/java/com/android/internal/util/BitwiseInputStream.java", |
| 1179 | "core/java/com/android/internal/util/BitwiseOutputStream.java", |
| 1180 | "core/java/com/android/internal/util/HexDump.java", |
| 1181 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
| 1182 | "core/java/com/android/internal/util/Preconditions.java", |
| 1183 | ], |
| 1184 | } |
| 1185 | |
| 1186 | // Avoid including Parcelable classes as we don't want to have two copies of |
Chen Xu | 4fea79c | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1187 | // Parcelable cross the process. |
| 1188 | filegroup { |
| 1189 | name: "framework-cellbroadcast-shared-srcs", |
| 1190 | srcs: [ |
Jordan Liu | 15a7274 | 2019-11-20 13:55:18 -0800 | [diff] [blame] | 1191 | "core/java/android/os/HandlerExecutor.java", |
Chen Xu | 4fea79c | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1192 | "core/java/android/util/LocalLog.java", |
Jordan Liu | 15a7274 | 2019-11-20 13:55:18 -0800 | [diff] [blame] | 1193 | "core/java/com/android/internal/util/IState.java", |
| 1194 | "core/java/com/android/internal/util/Preconditions.java", |
Chen Xu | 4fea79c | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1195 | "core/java/com/android/internal/util/State.java", |
| 1196 | "core/java/com/android/internal/util/StateMachine.java", |
| 1197 | ], |
atrost | ce84de0 | 2019-10-08 16:16:47 +0100 | [diff] [blame] | 1198 | } |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1199 | |
| 1200 | filegroup { |
Jayachandran C | eeffa01 | 2019-10-23 18:06:33 -0700 | [diff] [blame] | 1201 | name: "framework-ims-common-shared-srcs", |
| 1202 | srcs: [ |
Jayachandran C | eeffa01 | 2019-10-23 18:06:33 -0700 | [diff] [blame] | 1203 | "core/java/android/os/RegistrantList.java", |
| 1204 | "core/java/android/os/Registrant.java", |
| 1205 | "core/java/com/android/internal/os/SomeArgs.java", |
| 1206 | "core/java/com/android/internal/util/Preconditions.java", |
| 1207 | ], |
| 1208 | } |
| 1209 | |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 1210 | // utility classes statically linked into framework-wifi and dynamically linked |
| 1211 | // into wifi-service |
| 1212 | java_library { |
| 1213 | name: "framework-wifi-util-lib", |
| 1214 | sdk_version: "core_current", |
| 1215 | srcs: [ |
| 1216 | "core/java/android/content/pm/BaseParceledListSlice.java", |
| 1217 | "core/java/android/content/pm/ParceledListSlice.java", |
David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 1218 | "core/java/android/net/shared/Inet4AddressUtils.java", |
| 1219 | "core/java/android/os/HandlerExecutor.java", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 1220 | "core/java/com/android/internal/util/AsyncChannel.java", |
| 1221 | "core/java/com/android/internal/util/AsyncService.java", |
| 1222 | "core/java/com/android/internal/util/Protocol.java", |
| 1223 | "core/java/com/android/internal/util/Preconditions.java", |
David Su | 369c920 | 2020-01-09 18:09:56 -0800 | [diff] [blame] | 1224 | "telephony/java/android/telephony/Annotation.java", |
David Su | 298cd36 | 2020-01-17 19:02:49 +0000 | [diff] [blame] | 1225 | ":net-utils-framework-wifi-common-srcs", |
David Su | 511a814 | 2020-01-09 14:02:21 -0800 | [diff] [blame] | 1226 | ], |
| 1227 | libs: [ |
| 1228 | "framework-annotations-lib", |
| 1229 | "unsupportedappusage", |
| 1230 | "android_system_stubs_current", |
| 1231 | ], |
| 1232 | visibility: ["//frameworks/base/wifi"], |
| 1233 | } |
| 1234 | |
| 1235 | // utility classes statically linked into wifi-service |
Jayachandran C | eeffa01 | 2019-10-23 18:06:33 -0700 | [diff] [blame] | 1236 | filegroup { |
Roshan Pius | 62eb61c | 2019-12-06 13:49:47 -0800 | [diff] [blame] | 1237 | name: "framework-wifi-service-shared-srcs", |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1238 | srcs: [ |
Roshan Pius | c93cd7a | 2019-12-09 07:39:41 -0800 | [diff] [blame] | 1239 | "core/java/android/net/InterfaceConfiguration.java", |
Roshan Pius | 3032c89 | 2020-01-08 11:10:15 -0800 | [diff] [blame] | 1240 | "core/java/android/os/BasicShellCommandHandler.java", |
Roshan Pius | 04769a5 | 2019-12-04 13:03:47 -0800 | [diff] [blame] | 1241 | "core/java/android/util/BackupUtils.java", |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1242 | "core/java/android/util/LocalLog.java", |
| 1243 | "core/java/android/util/Rational.java", |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1244 | "core/java/com/android/internal/util/FastXmlSerializer.java", |
| 1245 | "core/java/com/android/internal/util/HexDump.java", |
| 1246 | "core/java/com/android/internal/util/IState.java", |
| 1247 | "core/java/com/android/internal/util/MessageUtils.java", |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1248 | "core/java/com/android/internal/util/State.java", |
| 1249 | "core/java/com/android/internal/util/StateMachine.java", |
| 1250 | "core/java/com/android/internal/util/WakeupMessage.java", |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1251 | ], |
David Su | 298cd36 | 2020-01-17 19:02:49 +0000 | [diff] [blame] | 1252 | visibility: ["//frameworks/opt/net/wifi/service"], |
Roshan Pius | 09de13e | 2019-10-16 13:16:04 -0700 | [diff] [blame] | 1253 | } |
Jiyong Park | 0d7e86d | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 1254 | |
| 1255 | // TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp |
| 1256 | metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " + |
| 1257 | "--ignore-classes-on-classpath " + |
| 1258 | "--hide-package com.android.server " + |
| 1259 | "--error UnhiddenSystemApi " + |
| 1260 | "--hide RequiresPermission " + |
| 1261 | "--hide CallbackInterface " + |
| 1262 | "--hide MissingPermission --hide BroadcastBehavior " + |
| 1263 | "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " + |
| 1264 | "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " + |
| 1265 | "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.*" |
| 1266 | |
| 1267 | build = [ |
| 1268 | "StubLibraries.bp", |
| 1269 | "ApiDocs.bp", |
| 1270 | ] |
Chen Xu | 546ce5e | 2020-01-10 08:38:31 -0800 | [diff] [blame] | 1271 | |
| 1272 | // TODO(b/147699819): move to frameworks/base/telephony/ folder |
| 1273 | droidstubs { |
| 1274 | name: "framework-telephony-stubs-srcs", |
| 1275 | srcs: [ |
| 1276 | ":framework-telephony-sources", |
| 1277 | ":framework_native_aidl", |
| 1278 | ":framework-javastream-protos", |
| 1279 | ], |
| 1280 | aidl: { |
| 1281 | local_include_dirs: [ |
| 1282 | "core/java", |
| 1283 | "telecomm/java" |
| 1284 | ], |
| 1285 | }, |
| 1286 | libs: [ |
| 1287 | "framework-annotations-lib", |
| 1288 | "android.hardware.radio-V1.5-java", |
| 1289 | ], |
| 1290 | defaults: ["framework-module-stubs-defaults-systemapi"], |
| 1291 | filter_packages: ["android.telephony"], |
| 1292 | sdk_version: "system_current", |
| 1293 | } |
| 1294 | |
| 1295 | java_library { |
| 1296 | name: "framework-telephony-stubs", |
| 1297 | srcs: [":framework-telephony-stubs-srcs"], |
| 1298 | // TODO(b/147699819): move public aidls to a separate folder and potentially remove |
| 1299 | // below aidl exports. |
| 1300 | aidl: { |
| 1301 | export_include_dirs: ["telephony/java"], |
| 1302 | }, |
David Su | c976e86 | 2020-01-16 20:50:11 -0800 | [diff] [blame] | 1303 | sdk_version: "core_current", |
| 1304 | libs: ["android_system_stubs_current"], |
Chen Xu | 546ce5e | 2020-01-10 08:38:31 -0800 | [diff] [blame] | 1305 | } |
| 1306 | |
| 1307 | java_library { |
| 1308 | name: "framework-telephony", |
| 1309 | srcs: [ |
| 1310 | ":framework-telephony-sources", |
Malcolm Chen | 58b59a5 | 2020-01-14 19:25:13 -0800 | [diff] [blame] | 1311 | ":framework-telephony-shared-srcs", |
Chen Xu | 546ce5e | 2020-01-10 08:38:31 -0800 | [diff] [blame] | 1312 | ], |
| 1313 | // TODO: change to framework-system-stub to build against system APIs. |
| 1314 | libs: [ |
| 1315 | "framework-minus-apex", |
| 1316 | "unsupportedappusage", |
Dheeraj Shetty | 81a4f4e | 2020-01-15 16:30:18 -0800 | [diff] [blame] | 1317 | "ike-stubs", |
Chen Xu | 546ce5e | 2020-01-10 08:38:31 -0800 | [diff] [blame] | 1318 | ], |
| 1319 | static_libs: [ |
| 1320 | "libphonenumber-platform", |
| 1321 | "app-compat-annotations", |
| 1322 | ], |
| 1323 | sdk_version: "core_platform", |
| 1324 | aidl: { |
| 1325 | export_include_dirs: ["telephony/java"], |
| 1326 | include_dirs: [ |
| 1327 | "frameworks/native/aidl/binder", |
| 1328 | "frameworks/native/aidl/gui", |
| 1329 | ] |
| 1330 | }, |
Malcolm Chen | 58b59a5 | 2020-01-14 19:25:13 -0800 | [diff] [blame] | 1331 | jarjar_rules: ":framework-telephony-jarjar-rules", |
Chen Xu | 546ce5e | 2020-01-10 08:38:31 -0800 | [diff] [blame] | 1332 | dxflags: [ |
| 1333 | "--core-library", |
| 1334 | "--multi-dex", |
| 1335 | ], |
| 1336 | // This is to break the dependency from boot jars. |
| 1337 | dex_preopt: { |
| 1338 | enabled: false, |
| 1339 | }, |
| 1340 | installable: true, |
| 1341 | } |
| 1342 | |
| 1343 | filegroup { |
| 1344 | // TODO (b/147690217): move to frameworks/base/telephony/common. |
| 1345 | name: "framework-telephony-annotations", |
| 1346 | srcs: ["telephony/java/android/telephony/Annotation.java"], |
| 1347 | } |
| 1348 | |
| 1349 | filegroup { |
Malcolm Chen | 58b59a5 | 2020-01-14 19:25:13 -0800 | [diff] [blame] | 1350 | name: "framework-telephony-jarjar-rules", |
Chen Xu | 546ce5e | 2020-01-10 08:38:31 -0800 | [diff] [blame] | 1351 | srcs: ["telephony/framework-telephony-jarjar-rules.txt"], |
| 1352 | } |