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 | 005d735 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 28 | filegroup { |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 29 | name: "framework-core-sources", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 30 | srcs: [ |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 31 | "core/java/**/*.java", |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 32 | "core/java/**/*.aidl", |
Artur Satayev | 005d735 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 33 | ], |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 34 | path: "core/java", |
Artur Satayev | 005d735 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 35 | } |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 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 | 7e1339e | 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 | } |
| 66 | |
| 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 | 7e1339e | 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 | 7e1339e | 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 | ac0fd65 | 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 | 153d31b | 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 | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 212 | name: "framework-wifi-sources", |
| 213 | srcs: [ |
| 214 | "wifi/java/**/*.java", |
| 215 | "wifi/java/**/*.aidl", |
| 216 | ], |
| 217 | path: "wifi/java", |
| 218 | } |
| 219 | |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 220 | filegroup { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 221 | name: "framework-non-updatable-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 222 | srcs: [ |
| 223 | // Java/AIDL sources under frameworks/base |
| 224 | ":framework-core-sources", |
| 225 | ":framework-drm-sources", |
| 226 | ":framework-graphics-sources", |
| 227 | ":framework-keystore-sources", |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 228 | ":framework-identity-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 229 | ":framework-location-sources", |
| 230 | ":framework-lowpan-sources", |
| 231 | ":framework-media-sources", |
| 232 | ":framework-mca-effect-sources", |
| 233 | ":framework-mca-filterfw-sources", |
| 234 | ":framework-mca-filterpacks-sources", |
Amit Mahajan | 153d31b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 235 | ":framework-mms-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 236 | ":framework-opengl-sources", |
| 237 | ":framework-rs-sources", |
| 238 | ":framework-sax-sources", |
| 239 | ":framework-telecomm-sources", |
Amit Mahajan | ac0fd65 | 2019-09-23 17:59:57 -0700 | [diff] [blame] | 240 | ":framework-telephony-common-sources", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 241 | ":framework-telephony-sources", |
| 242 | ":framework-wifi-sources", |
| 243 | ":PacProcessor-aidl-sources", |
| 244 | ":ProxyHandler-aidl-sources", |
Aaron Huang | c4081b2 | 2020-01-13 15:03:35 +0800 | [diff] [blame] | 245 | ":net-utils-framework-common-srcs", |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 246 | |
atrost | ff948d8 | 2019-10-10 19:27:31 +0100 | [diff] [blame] | 247 | // AIDL from frameworks/base/native/ |
| 248 | ":platform-compat-native-aidl", |
| 249 | |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 250 | // AIDL sources from external directories |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 251 | ":credstore_aidl", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 252 | ":dumpstate_aidl", |
| 253 | ":framework_native_aidl", |
| 254 | ":gatekeeper_aidl", |
| 255 | ":gsiservice_aidl", |
| 256 | ":incidentcompanion_aidl", |
| 257 | ":installd_aidl", |
| 258 | ":keystore_aidl", |
| 259 | ":libaudioclient_aidl", |
| 260 | ":libbinder_aidl", |
| 261 | ":libbluetooth-binder-aidl", |
| 262 | ":libcamera_client_aidl", |
| 263 | ":libcamera_client_framework_aidl", |
| 264 | ":libupdate_engine_aidl", |
| 265 | ":storaged_aidl", |
| 266 | ":vold_aidl", |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 267 | |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 268 | // For the generated R.java and Manifest.java |
| 269 | ":framework-res{.aapt.srcjar}", |
| 270 | |
| 271 | // etc. |
| 272 | ":framework-javastream-protos", |
| 273 | ":framework-statslog-gen", |
| 274 | ], |
| 275 | } |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 276 | |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 277 | filegroup { |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 278 | name: "framework-updatable-sources", |
| 279 | srcs: [ |
Anton Hansson | 87743c6 | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 280 | ":framework-sdkextensions-sources", |
markchien | 6d06f6d | 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", |
Benedict Wong | 7f58c0d | 2019-11-20 22:52:48 -0800 | [diff] [blame] | 283 | ":ike-srcs", |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 284 | ] |
| 285 | } |
| 286 | |
| 287 | filegroup { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 288 | name: "framework-all-sources", |
| 289 | srcs: [ |
Tobias Thierer | 17d0c59 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 290 | ":framework-mime-sources", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 291 | ":framework-non-updatable-sources", |
Anton Hansson | b4f3557 | 2019-12-02 16:30:22 +0000 | [diff] [blame] | 292 | ":framework-updatable-sources", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 293 | ], |
| 294 | } |
| 295 | |
Artur Satayev | 005d735 | 2019-08-02 16:42:07 +0100 | [diff] [blame] | 296 | java_defaults { |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 297 | name: "framework-aidl-export-defaults", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 298 | aidl: { |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 299 | export_include_dirs: [ |
| 300 | "core/java", |
| 301 | "drm/java", |
| 302 | "graphics/java", |
David Zeuthen | 045b6de | 2019-10-29 15:15:18 -0400 | [diff] [blame] | 303 | "identity/java", |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 304 | "keystore/java", |
| 305 | "location/java", |
| 306 | "lowpan/java", |
| 307 | "media/java", |
| 308 | "media/apex/java", |
| 309 | "media/mca/effect/java", |
| 310 | "media/mca/filterfw/java", |
| 311 | "media/mca/filterpacks/java", |
Amit Mahajan | 153d31b | 2019-10-07 17:41:26 -0700 | [diff] [blame] | 312 | "mms/java", |
Jiyong Park | 7e1339e | 2019-08-16 21:17:14 +0900 | [diff] [blame] | 313 | "opengl/java", |
| 314 | "rs/java", |
| 315 | "sax/java", |
| 316 | "telecomm/java", |
| 317 | "telephony/java", |
| 318 | "wifi/java", |
| 319 | ], |
Jiyong Park | 0c6dc7b | 2019-08-07 22:45:07 +0900 | [diff] [blame] | 320 | }, |
| 321 | } |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 322 | |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 323 | // Collection of classes that are generated from non-Java files that are not listed in |
| 324 | // framework_srcs. These have no or very limited dependency to the framework. |
| 325 | java_library { |
| 326 | name: "framework-internal-utils", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 327 | static_libs: [ |
Dario Freni | d8bf22e | 2018-08-31 14:18:04 +0100 | [diff] [blame] | 328 | "apex_aidl_interface-java", |
Kalesh Singh | 759af32 | 2019-06-19 12:17:43 -0700 | [diff] [blame] | 329 | "suspend_control_aidl_interface-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 330 | "framework-protos", |
Peiyong Lin | 9ca1dd8 | 2019-01-12 17:44:29 -0800 | [diff] [blame] | 331 | "game-driver-protos", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 332 | "android.hidl.base-V1.0-java", |
Henry Fang | 5215ac9 | 2019-02-01 19:24:55 +0000 | [diff] [blame] | 333 | "android.hardware.cas-V1.1-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 334 | "android.hardware.cas-V1.0-java", |
| 335 | "android.hardware.contexthub-V1.0-java", |
| 336 | "android.hardware.health-V1.0-java-constants", |
Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 337 | "android.hardware.radio-V1.0-java", |
| 338 | "android.hardware.radio-V1.1-java", |
| 339 | "android.hardware.radio-V1.2-java", |
| 340 | "android.hardware.radio-V1.3-java", |
| 341 | "android.hardware.radio-V1.4-java", |
Sarah Chin | e138c5e | 2019-11-05 13:30:10 -0800 | [diff] [blame] | 342 | "android.hardware.radio-V1.5-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 343 | "android.hardware.thermal-V1.0-java-constants", |
Wei Wang | fb21bd8 | 2019-01-10 14:16:23 -0800 | [diff] [blame] | 344 | "android.hardware.thermal-V1.0-java", |
Wei Wang | bad7c20 | 2018-11-01 11:57:39 -0700 | [diff] [blame] | 345 | "android.hardware.thermal-V1.1-java", |
| 346 | "android.hardware.thermal-V2.0-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 347 | "android.hardware.tv.input-V1.0-java-constants", |
| 348 | "android.hardware.usb-V1.0-java-constants", |
| 349 | "android.hardware.usb-V1.1-java-constants", |
Badhri Jagan Sridharan | e966a38 | 2018-12-09 14:49:38 -0800 | [diff] [blame] | 350 | "android.hardware.usb-V1.2-java-constants", |
Steven Moreland | e0dde65 | 2019-01-24 12:03:26 -0800 | [diff] [blame] | 351 | "android.hardware.usb.gadget-V1.0-java", |
Michael Wright | f268bf5 | 2018-02-07 23:23:34 +0000 | [diff] [blame] | 352 | "android.hardware.vibrator-V1.0-java", |
| 353 | "android.hardware.vibrator-V1.1-java", |
| 354 | "android.hardware.vibrator-V1.2-java", |
Harpreet "Eli" Sangha | a456f08 | 2018-12-14 12:06:10 +0900 | [diff] [blame] | 355 | "android.hardware.vibrator-V1.3-java", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 356 | "android.hardware.wifi-V1.0-java-constants", |
arangelov | 1ab6149 | 2018-11-22 13:56:50 +0000 | [diff] [blame] | 357 | "devicepolicyprotosnano", |
Inseob Kim | 617a722 | 2019-07-30 18:23:26 +0900 | [diff] [blame] | 358 | |
| 359 | "com.android.sysprop.apex", |
| 360 | "PlatformProperties", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 361 | ], |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 362 | sdk_version: "core_platform", |
| 363 | installable: false, |
| 364 | } |
| 365 | |
| 366 | java_defaults { |
| 367 | name: "framework-defaults", |
| 368 | defaults: ["framework-aidl-export-defaults"], |
| 369 | installable: true, |
| 370 | |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 371 | aidl: { |
| 372 | generate_get_transaction_name: true, |
| 373 | }, |
| 374 | |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 375 | srcs: ["core/java/**/*.logtags"], |
| 376 | |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 377 | exclude_srcs: [ |
| 378 | // See comment on framework-atb-backward-compatibility module below |
| 379 | "core/java/android/content/pm/AndroidTestBaseUpdater.java", |
| 380 | ], |
| 381 | |
| 382 | sdk_version: "core_platform", |
| 383 | libs: [ |
Artur Satayev | 700e08b | 2019-12-11 13:03:32 +0000 | [diff] [blame] | 384 | "app-compat-annotations", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 385 | "ext", |
Artur Satayev | 700e08b | 2019-12-11 13:03:32 +0000 | [diff] [blame] | 386 | "unsupportedappusage", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 387 | "updatable_media_stubs", |
markchien | 6d06f6d | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 388 | "framework-tethering", |
Jiyong Park | 5366ea2 | 2019-08-19 15:24:49 +0900 | [diff] [blame] | 389 | ], |
| 390 | |
| 391 | jarjar_rules: ":framework-jarjar-rules", |
| 392 | |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 393 | static_libs: [ |
| 394 | "framework-internal-utils", |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 395 | ], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 396 | |
Wei Jia | 0a8a8f0 | 2017-12-05 17:05:29 -0800 | [diff] [blame] | 397 | required: [ |
Anton Hansson | 11905c6 | 2018-11-27 12:10:30 +0000 | [diff] [blame] | 398 | // TODO: remove gps_debug when the build system propagates "required" properly. |
| 399 | "gps_debug.conf", |
Logan Chien | 71ddfea | 2018-02-27 16:43:50 +0800 | [diff] [blame] | 400 | ], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 401 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 402 | dxflags: [ |
| 403 | "--core-library", |
| 404 | "--multi-dex", |
| 405 | ], |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 406 | |
Ashley Rose | b47ddd4 | 2019-01-28 19:54:09 -0500 | [diff] [blame] | 407 | plugins: ["view-inspector-annotation-processor"], |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 408 | } |
| 409 | |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 410 | filegroup { |
Steven Moreland | 19e8d46 | 2019-03-08 10:44:22 -0800 | [diff] [blame] | 411 | name: "framework-jarjar-rules", |
| 412 | srcs: ["jarjar_rules_hidl.txt"], |
| 413 | } |
| 414 | |
| 415 | filegroup { |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 416 | name: "libincident_aidl", |
| 417 | srcs: [ |
| 418 | "core/java/android/os/IIncidentManager.aidl", |
| 419 | "core/java/android/os/IIncidentReportStatusListener.aidl", |
| 420 | ], |
Dan Willemsen | 4a49850 | 2019-06-05 15:51:24 -0700 | [diff] [blame] | 421 | path: "core/java", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 422 | } |
| 423 | |
| 424 | filegroup { |
| 425 | name: "statsd_aidl", |
| 426 | srcs: [ |
| 427 | "core/java/android/os/IStatsCompanionService.aidl", |
| 428 | "core/java/android/os/IStatsManager.aidl", |
Tej Singh | a0c89dd | 2019-01-25 16:39:18 -0800 | [diff] [blame] | 429 | "core/java/android/os/IStatsPullerCallback.aidl", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 430 | ], |
Dan Willemsen | a38ff9f | 2019-06-11 10:56:01 -0700 | [diff] [blame] | 431 | path: "core/java", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 432 | } |
| 433 | |
Michael Wright | c390fbe | 2018-12-12 19:45:09 +0000 | [diff] [blame] | 434 | filegroup { |
| 435 | name: "libvibrator_aidl", |
| 436 | srcs: [ |
| 437 | "core/java/android/os/IExternalVibrationController.aidl", |
| 438 | "core/java/android/os/IExternalVibratorService.aidl", |
| 439 | ], |
Dan Willemsen | 4a49850 | 2019-06-05 15:51:24 -0700 | [diff] [blame] | 440 | path: "core/java", |
Michael Wright | c390fbe | 2018-12-12 19:45:09 +0000 | [diff] [blame] | 441 | } |
| 442 | |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 443 | java_library { |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 444 | name: "framework-minus-apex", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 445 | defaults: ["framework-defaults"], |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 446 | srcs: [":framework-non-updatable-sources"], |
Benedict Wong | 7f58c0d | 2019-11-20 22:52:48 -0800 | [diff] [blame] | 447 | libs: ["ike-stubs"], |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 448 | installable: true, |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 449 | javac_shard_size: 150, |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 450 | required: [ |
| 451 | "framework-platform-compat-config", |
| 452 | "libcore-platform-compat-config", |
atrost | 86895aa | 2019-08-19 16:51:15 +0100 | [diff] [blame] | 453 | "services-platform-compat-config", |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 454 | ], |
Tobias Thierer | 17d0c59 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 455 | static_libs: [ |
Tobias Thierer | 8296853 | 2019-11-29 19:39:45 +0000 | [diff] [blame] | 456 | // If MimeMap ever becomes its own APEX, then this dependency would need to be removed |
| 457 | // in favor of an API stubs dependency in java_library "framework" below. |
Tobias Thierer | 17d0c59 | 2019-11-22 16:33:18 +0000 | [diff] [blame] | 458 | "mimemap", |
| 459 | ], |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 460 | // For backwards compatibility. |
| 461 | stem: "framework", |
Jiyong Park | 79242c2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 462 | apex_available: ["//apex_available:platform"], |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 463 | } |
| 464 | |
| 465 | // This "framework" module is NOT installed to the device. It's |
| 466 | // "framework-minus-apex" that gets installed to the device. Note that |
| 467 | // the filename is still framework.jar (via the stem property) for |
| 468 | // compatibility reason. The purpose of this module is to provide |
| 469 | // framework APIs (both public and private) for bundled apps. |
| 470 | // "framework-minus-apex" can't be used for the purpose because 1) |
| 471 | // many apps have already hardcoded the name "framework" and |
| 472 | // 2) it lacks API symbols from updatable modules - as it's clear from |
| 473 | // its suffix "-minus-apex". |
| 474 | java_library { |
| 475 | name: "framework", |
| 476 | defaults: ["framework-aidl-export-defaults"], |
| 477 | installable: false, // this lib is a build-only library |
| 478 | static_libs: [ |
| 479 | "framework-minus-apex", |
Jiyong Park | 025e56e | 2019-12-18 17:26:38 +0900 | [diff] [blame] | 480 | "updatable_media_stubs", |
Anton Hansson | 87743c6 | 2020-01-08 09:48:18 +0000 | [diff] [blame] | 481 | "framework-sdkextensions-stubs-systemapi", |
Jiyong Park | 90247c8 | 2020-01-06 13:30:59 +0900 | [diff] [blame] | 482 | // TODO(b/147200698): should be the stub of framework-tethering |
| 483 | "framework-tethering", |
Benedict Wong | 7f58c0d | 2019-11-20 22:52:48 -0800 | [diff] [blame] | 484 | "ike-stubs", |
Jiyong Park | c893b46 | 2019-10-28 15:33:08 +0900 | [diff] [blame] | 485 | ], |
| 486 | sdk_version: "core_platform", |
Jiyong Park | 79242c2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 487 | apex_available: ["//apex_available:platform"], |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 488 | } |
| 489 | |
| 490 | java_library { |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 491 | name: "framework-all", |
| 492 | defaults: ["framework-defaults"], |
| 493 | srcs: [":framework-all-sources"], |
| 494 | installable: false, |
Jiyong Park | 79242c2 | 2019-12-09 14:45:07 +0900 | [diff] [blame] | 495 | apex_available: ["//apex_available:platform"], |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 496 | } |
| 497 | |
| 498 | java_library { |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 499 | name: "framework-annotation-proc", |
| 500 | defaults: ["framework-defaults"], |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 501 | srcs: [":framework-all-sources"], |
Artur Satayev | 700e08b | 2019-12-11 13:03:32 +0000 | [diff] [blame] | 502 | libs: [ |
| 503 | "app-compat-annotations", |
| 504 | "unsupportedappusage", |
| 505 | ], |
Anna Trostanetski | 97088e9 | 2019-06-26 14:47:58 +0100 | [diff] [blame] | 506 | installable: false, |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 507 | plugins: [ |
| 508 | "unsupportedappusage-annotation-processor", |
| 509 | "compat-changeid-annotation-processor", |
| 510 | ], |
| 511 | } |
| 512 | |
| 513 | platform_compat_config { |
| 514 | name: "framework-platform-compat-config", |
atrost | b9c3450 | 2019-08-05 12:22:18 +0100 | [diff] [blame] | 515 | src: ":framework-annotation-proc", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 516 | } |
| 517 | |
Paul Duffin | 52197580 | 2019-06-05 10:35:08 +0100 | [diff] [blame] | 518 | // A library including just UnsupportedAppUsage.java classes. |
| 519 | // |
| 520 | // Provided for target so that libraries can use it without depending on |
| 521 | // the whole of framework or the core platform API. |
| 522 | // |
| 523 | // Built for host so that the annotation processor can also use this annotation. |
| 524 | java_library { |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 525 | name: "unsupportedappusage-annotation", |
Paul Duffin | 52197580 | 2019-06-05 10:35:08 +0100 | [diff] [blame] | 526 | host_supported: true, |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 527 | srcs: [ |
| 528 | "core/java/android/annotation/IntDef.java", |
| 529 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Paul Duffin | c130801 | 2019-10-10 16:33:42 +0100 | [diff] [blame] | 530 | ], |
| 531 | static_libs: [ |
| 532 | "art.module.api.annotations", |
Mathew Inwood | bad89e5 | 2018-06-28 14:12:10 +0100 | [diff] [blame] | 533 | ], |
Paul Duffin | 52197580 | 2019-06-05 10:35:08 +0100 | [diff] [blame] | 534 | |
| 535 | sdk_version: "core_current", |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 536 | } |
| 537 | |
Paul Duffin | beee5dc | 2018-01-23 13:39:00 +0000 | [diff] [blame] | 538 | // A temporary build target that is conditionally included on the bootclasspath if |
Paul Duffin | a3b6921 | 2018-01-25 09:58:32 +0000 | [diff] [blame] | 539 | // android.test.base library has been removed and which provides support for |
| 540 | // maintaining backwards compatibility for APKs that target pre-P and depend on |
| 541 | // android.test.base classes. This is used iff REMOVE_ATB_FROM_BCP=true is |
| 542 | // specified on the build command line. |
| 543 | java_library { |
| 544 | name: "framework-atb-backward-compatibility", |
Paul Duffin | fab8754 | 2019-02-15 11:39:12 +0000 | [diff] [blame] | 545 | installable: true, |
atrost | 1a94550 | 2019-11-04 17:03:54 +0000 | [diff] [blame] | 546 | libs: ["app-compat-annotations"], |
Paul Duffin | a3b6921 | 2018-01-25 09:58:32 +0000 | [diff] [blame] | 547 | srcs: [ |
| 548 | "core/java/android/content/pm/AndroidTestBaseUpdater.java", |
| 549 | ], |
| 550 | } |
| 551 | |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 552 | genrule { |
| 553 | name: "framework-statslog-gen", |
| 554 | tools: ["stats-log-api-gen"], |
| 555 | cmd: "$(location stats-log-api-gen) --java $(out)", |
David Chen | 0a368b2 | 2017-12-06 16:28:16 -0800 | [diff] [blame] | 556 | out: ["android/util/StatsLogInternal.java"], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 557 | } |
| 558 | |
| 559 | gensrcs { |
| 560 | name: "framework-javastream-protos", |
| 561 | depfile: true, |
| 562 | |
| 563 | tools: [ |
| 564 | "aprotoc", |
| 565 | "protoc-gen-javastream", |
| 566 | "soong_zip", |
| 567 | ], |
| 568 | |
Anton Hansson | d82b2f7 | 2019-11-18 13:34:56 +0000 | [diff] [blame] | 569 | cmd: "mkdir -p $(genDir)/$(in) " + |
| 570 | "&& $(location aprotoc) " + |
| 571 | " --plugin=$(location protoc-gen-javastream) " + |
| 572 | " --dependency_out=$(depfile) " + |
| 573 | " --javastream_out=$(genDir)/$(in) " + |
| 574 | " -Iexternal/protobuf/src " + |
| 575 | " -I . " + |
| 576 | " $(in) " + |
| 577 | "&& $(location soong_zip) -jar -o $(out) -C $(genDir)/$(in) -D $(genDir)/$(in)", |
| 578 | |
Yi Jin | 437aa6e | 2018-01-10 11:34:26 -0800 | [diff] [blame] | 579 | srcs: [ |
| 580 | "core/proto/**/*.proto", |
| 581 | "libs/incident/**/*.proto", |
| 582 | ], |
Colin Cross | cf3a0b5 | 2017-11-16 00:15:28 -0800 | [diff] [blame] | 583 | output_extension: "srcjar", |
| 584 | } |
| 585 | |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 586 | filegroup { |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 587 | name: "framework-annotations", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 588 | srcs: [ |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 589 | "core/java/android/annotation/NonNull.java", |
| 590 | "core/java/android/annotation/Nullable.java", |
| 591 | "core/java/android/annotation/IntDef.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 592 | "core/java/android/annotation/IntRange.java", |
Anton Hansson | b52bd1c | 2019-12-06 17:07:28 +0000 | [diff] [blame] | 593 | "core/java/android/annotation/SystemApi.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 594 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Remi NGUYEN VAN | 231b52b | 2019-01-29 15:38:52 +0900 | [diff] [blame] | 595 | "core/java/com/android/internal/annotations/GuardedBy.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 596 | "core/java/com/android/internal/annotations/VisibleForTesting.java", |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 597 | ], |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 598 | } |
| 599 | |
Anton Hansson | 4ec07fa | 2019-11-08 15:18:04 +0000 | [diff] [blame] | 600 | java_library { |
| 601 | name: "framework-annotations-lib", |
| 602 | srcs: [ ":framework-annotations" ], |
| 603 | sdk_version: "current", |
| 604 | } |
| 605 | |
Chalard Jean | 9521351 | 2019-01-30 21:04:58 +0900 | [diff] [blame] | 606 | filegroup { |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 607 | name: "framework-ike-shared-srcs", |
| 608 | visibility: ["//frameworks/opt/net/ike"], |
| 609 | srcs: [ |
evitayan | bddbfb0 | 2020-01-07 21:21:52 -0800 | [diff] [blame] | 610 | "core/java/android/annotation/StringDef.java", |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 611 | "core/java/android/net/annotations/PolicyDirection.java", |
evitayan | 0efc740 | 2019-12-20 17:55:57 -0800 | [diff] [blame] | 612 | "core/java/com/android/internal/util/IState.java", |
| 613 | "core/java/com/android/internal/util/State.java", |
| 614 | "core/java/com/android/internal/util/StateMachine.java", |
evitayan | 996aa2a | 2019-12-30 11:19:47 -0800 | [diff] [blame] | 615 | "telephony/java/android/telephony/Annotation.java", |
evitayan | e22e47f | 2019-12-30 16:05:38 -0800 | [diff] [blame] | 616 | ], |
| 617 | } |
| 618 | |
| 619 | filegroup { |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 620 | name: "framework-networkstack-shared-srcs", |
| 621 | srcs: [ |
| 622 | // 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] | 623 | ":framework-annotations", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 624 | "core/java/android/net/DhcpResults.java", |
Remi NGUYEN VAN | e88516f | 2019-01-20 09:35:10 +0900 | [diff] [blame] | 625 | "core/java/android/util/LocalLog.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 626 | "core/java/com/android/internal/util/HexDump.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 627 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 628 | "core/java/com/android/internal/util/IState.java", |
| 629 | "core/java/com/android/internal/util/MessageUtils.java", |
| 630 | "core/java/com/android/internal/util/Preconditions.java", |
Remi NGUYEN VAN | 3ba6c0d | 2019-01-20 13:48:19 +0900 | [diff] [blame] | 631 | "core/java/com/android/internal/util/RingBufferIndices.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 632 | "core/java/com/android/internal/util/State.java", |
| 633 | "core/java/com/android/internal/util/StateMachine.java", |
Chalard Jean | 6a76b7e | 2019-04-09 11:16:56 +0900 | [diff] [blame] | 634 | "core/java/com/android/internal/util/TrafficStatsConstants.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 635 | "core/java/com/android/internal/util/WakeupMessage.java", |
johnson.yeh | 095b7a0 | 2019-12-19 20:30:34 +0800 | [diff] [blame] | 636 | "core/java/com/android/internal/util/TokenBucket.java", |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 637 | "core/java/android/net/shared/*.java", |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 638 | ], |
Remi NGUYEN VAN | 77dd54d | 2019-01-25 08:54:08 +0900 | [diff] [blame] | 639 | } |
| 640 | |
markchien | 6d06f6d | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 641 | // 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] | 642 | filegroup { |
| 643 | name: "framework-tethering-shared-srcs", |
| 644 | srcs: [ |
| 645 | "core/java/android/util/LocalLog.java", |
markchien | 6d06f6d | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 646 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
| 647 | "core/java/com/android/internal/util/IState.java", |
| 648 | "core/java/com/android/internal/util/MessageUtils.java", |
| 649 | "core/java/com/android/internal/util/Preconditions.java", |
| 650 | "core/java/com/android/internal/util/State.java", |
| 651 | "core/java/com/android/internal/util/StateMachine.java", |
markchien | 87d3f7d | 2020-01-08 20:58:23 +0800 | [diff] [blame] | 652 | "core/java/com/android/internal/util/TrafficStatsConstants.java", |
markchien | 986750b | 2019-12-06 15:24:53 +0800 | [diff] [blame] | 653 | "core/java/android/net/shared/Inet4AddressUtils.java", |
markchien | 6d06f6d | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 654 | ], |
| 655 | } |
| 656 | |
| 657 | filegroup { |
| 658 | name: "framework-tethering-annotations", |
| 659 | srcs: [ |
| 660 | "core/java/android/annotation/NonNull.java", |
markchien | 75b6d7b | 2020-01-21 13:11:06 +0800 | [diff] [blame] | 661 | "core/java/android/annotation/Nullable.java", |
| 662 | "core/java/android/annotation/RequiresPermission.java", |
markchien | 6d06f6d | 2019-12-16 20:15:20 +0800 | [diff] [blame] | 663 | "core/java/android/annotation/SystemApi.java", |
markchien | 75b6d7b | 2020-01-21 13:11:06 +0800 | [diff] [blame] | 664 | "core/java/android/annotation/TestApi.java", |
Remi NGUYEN VAN | 24b7b6a | 2020-01-27 17:26:14 +0900 | [diff] [blame^] | 665 | "core/java/com/android/internal/annotations/GuardedBy.java", |
markchien | a6ba54d | 2019-09-03 15:58:06 +0800 | [diff] [blame] | 666 | ], |
| 667 | } |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 668 | // Build ext.jar |
| 669 | // ============================================================ |
| 670 | java_library { |
| 671 | name: "ext", |
Colin Cross | a12c0f5 | 2018-06-27 11:00:11 -0700 | [diff] [blame] | 672 | installable: true, |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 673 | sdk_version: "core_platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 674 | static_libs: [ |
| 675 | "libphonenumber-platform", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 676 | "tagsoup", |
Ricky Wai | 0d1bc33 | 2017-10-31 14:31:01 +0000 | [diff] [blame] | 677 | "rappor", |
Tony Mak | 64c4cb2 | 2018-09-25 13:38:28 +0100 | [diff] [blame] | 678 | "libtextclassifier-java", |
| 679 | ], |
| 680 | required: [ |
| 681 | "libtextclassifier", |
Colin Cross | d8e0225 | 2017-10-02 17:14:22 -0700 | [diff] [blame] | 682 | ], |
| 683 | dxflags: ["--core-library"], |
| 684 | } |
| 685 | |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 686 | // ==== java proto host library ============================== |
| 687 | java_library_host { |
| 688 | name: "platformprotos", |
| 689 | srcs: [ |
| 690 | "cmds/am/proto/instrumentation_data.proto", |
Howard Ro | 0546d54 | 2018-08-30 16:23:44 -0700 | [diff] [blame] | 691 | "cmds/statsd/src/**/*.proto", |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 692 | "core/proto/**/*.proto", |
| 693 | "libs/incident/proto/**/*.proto", |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 694 | ], |
| 695 | proto: { |
| 696 | include_dirs: ["external/protobuf/src"], |
| 697 | type: "full", |
| 698 | }, |
| 699 | errorprone: { |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 700 | javacflags: ["-Xep:MissingOverride:OFF"], // b/72714520 |
Andreas Gampe | af27bf66 | 2018-05-17 10:49:26 -0700 | [diff] [blame] | 701 | }, |
| 702 | } |
| 703 | |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 704 | // ==== java proto device library (for test only) ============================== |
| 705 | java_library { |
| 706 | name: "platformprotosnano", |
| 707 | proto: { |
| 708 | type: "nano", |
| 709 | output_params: ["store_unknown_fields=true"], |
| 710 | include_dirs: ["external/protobuf/src"], |
| 711 | }, |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 712 | exclude_srcs: [ |
| 713 | "core/proto/android/privacy.proto", |
| 714 | "core/proto/android/section.proto", |
| 715 | ], |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 716 | sdk_version: "current", |
| 717 | srcs: [ |
| 718 | "core/proto/**/*.proto", |
| 719 | "libs/incident/proto/android/os/**/*.proto", |
| 720 | ], |
| 721 | } |
| 722 | |
| 723 | // ==== java proto device library (for test only) ============================== |
| 724 | java_library { |
| 725 | name: "platformprotoslite", |
| 726 | proto: { |
| 727 | type: "lite", |
| 728 | include_dirs: ["external/protobuf/src"], |
| 729 | }, |
| 730 | |
| 731 | srcs: [ |
| 732 | "core/proto/**/*.proto", |
| 733 | "libs/incident/proto/android/os/**/*.proto", |
| 734 | ], |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 735 | exclude_srcs: [ |
| 736 | "core/proto/android/privacy.proto", |
| 737 | "core/proto/android/section.proto", |
| 738 | ], |
Colin Cross | 4321416 | 2018-08-20 13:57:24 -0700 | [diff] [blame] | 739 | // Protos have lots of MissingOverride and similar. |
| 740 | errorprone: { |
| 741 | javacflags: ["-XepDisableAllChecks"], |
| 742 | }, |
| 743 | } |
| 744 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 745 | // ==== c++ proto device library ============================== |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 746 | cc_defaults { |
| 747 | name: "libplatformprotos-defaults", |
| 748 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 749 | proto: { |
| 750 | export_proto_headers: true, |
| 751 | include_dirs: ["external/protobuf/src"], |
| 752 | }, |
| 753 | |
Chih-Hung Hsieh | c7edf07 | 2017-10-03 09:57:55 -0700 | [diff] [blame] | 754 | cflags: [ |
| 755 | "-Wall", |
| 756 | "-Werror", |
| 757 | "-Wno-unused-parameter", |
| 758 | ], |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 759 | |
| 760 | srcs: [ |
| 761 | "core/proto/**/*.proto", |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 762 | ], |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 763 | } |
| 764 | |
| 765 | cc_library { |
| 766 | name: "libplatformprotos", |
| 767 | defaults: ["libplatformprotos-defaults"], |
| 768 | host_supported: true, |
Joe Onorato | 62c220b | 2017-11-18 20:32:56 -0800 | [diff] [blame] | 769 | |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 770 | target: { |
| 771 | host: { |
| 772 | proto: { |
| 773 | type: "full", |
| 774 | }, |
| 775 | }, |
| 776 | android: { |
| 777 | proto: { |
| 778 | type: "lite", |
| 779 | }, |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 780 | shared_libs: [ |
| 781 | "libprotobuf-cpp-lite", |
| 782 | ], |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 783 | shared: { |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 784 | enabled: false, |
| 785 | }, |
| 786 | }, |
| 787 | }, |
Colin Cross | aa0d435 | 2017-05-02 14:14:56 -0700 | [diff] [blame] | 788 | } |
| 789 | |
Joe Onorato | 9bd5db7 | 2019-04-03 18:19:43 -0700 | [diff] [blame] | 790 | // This library is meant for vendor code that needs to output protobuf. It links |
| 791 | // against the static version of libprotobuf-cpp-lite, for which we can not guarantee |
| 792 | // binary compatibility. |
| 793 | cc_library { |
| 794 | name: "libplatformprotos-static", |
| 795 | defaults: ["libplatformprotos-defaults"], |
| 796 | host_supported: false, |
| 797 | |
| 798 | // This is okay because this library is only built as a static library. The C++ |
| 799 | // API is not guaranteed. The proto API is guaranteed to be stable via Metrics Council, |
| 800 | // but is not authorized to be used outside of debugging. |
| 801 | vendor_available: true, |
| 802 | |
| 803 | target: { |
| 804 | android: { |
| 805 | proto: { |
| 806 | type: "lite", |
| 807 | }, |
| 808 | static_libs: [ |
| 809 | "libprotobuf-cpp-lite", |
| 810 | ], |
| 811 | shared: { |
| 812 | enabled: false, |
| 813 | }, |
| 814 | }, |
| 815 | }, |
| 816 | } |
| 817 | |
| 818 | |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 819 | // This is the full proto version of libplatformprotos. It may only |
| 820 | // be used by test code that is not shipped on the device. |
| 821 | cc_library { |
| 822 | name: "libplatformprotos-test", |
| 823 | defaults: ["libplatformprotos-defaults"], |
| 824 | host_supported: false, |
| 825 | |
| 826 | target: { |
| 827 | android: { |
| 828 | proto: { |
| 829 | type: "full", |
| 830 | }, |
| 831 | shared: { |
| 832 | enabled: false, |
| 833 | }, |
| 834 | }, |
| 835 | }, |
| 836 | } |
| 837 | |
Songchun Fan | 000b5b5 | 2019-12-04 12:17:38 -0800 | [diff] [blame] | 838 | filegroup { |
| 839 | name: "incremental_aidl", |
| 840 | srcs: [ |
| 841 | "core/java/android/os/incremental/IncrementalFileSystemControlParcel.aidl", |
| 842 | ], |
| 843 | path: "core/java", |
| 844 | } |
| 845 | |
| 846 | aidl_interface { |
| 847 | name: "libincremental_aidl", |
| 848 | srcs: [ |
| 849 | ":incremental_aidl", |
| 850 | ], |
| 851 | backend: { |
| 852 | java: { |
| 853 | sdk_version: "28", |
| 854 | }, |
| 855 | cpp: { |
| 856 | enabled: true, |
| 857 | }, |
| 858 | ndk: { |
| 859 | enabled: true, |
| 860 | }, |
| 861 | }, |
| 862 | } |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 863 | |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 864 | gensrcs { |
| 865 | name: "gen-platform-proto-constants", |
| 866 | depfile: true, |
| 867 | |
| 868 | tools: [ |
| 869 | "aprotoc", |
| 870 | "protoc-gen-cppstream", |
| 871 | ], |
| 872 | |
| 873 | srcs: [ |
Kweku Adams | eadd123 | 2018-02-05 16:45:13 -0800 | [diff] [blame] | 874 | "core/proto/android/os/backtrace.proto", |
Kweku Adams | 59e6fd7 | 2017-12-27 15:48:14 -0800 | [diff] [blame] | 875 | "core/proto/android/os/batterytype.proto", |
Yi Jin | 0eb2234 | 2017-11-06 17:17:27 -0800 | [diff] [blame] | 876 | "core/proto/android/os/cpufreq.proto", |
Yi Jin | e2f7f79 | 2017-11-01 17:08:27 -0700 | [diff] [blame] | 877 | "core/proto/android/os/cpuinfo.proto", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 878 | "core/proto/android/os/data.proto", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 879 | "core/proto/android/os/kernelwake.proto", |
| 880 | "core/proto/android/os/pagetypeinfo.proto", |
| 881 | "core/proto/android/os/procrank.proto", |
Kweku Adams | f5cc575 | 2017-12-20 17:59:17 -0800 | [diff] [blame] | 882 | "core/proto/android/os/ps.proto", |
Yi Jin | 0dfa752 | 2017-11-06 17:43:47 -0800 | [diff] [blame] | 883 | "core/proto/android/os/system_properties.proto", |
Yi Jin | 3c034c9 | 2017-12-22 17:36:47 -0800 | [diff] [blame] | 884 | "core/proto/android/util/event_log_tags.proto", |
Colin Cross | bc2dc31 | 2018-10-26 22:34:06 -0700 | [diff] [blame] | 885 | "core/proto/android/util/log.proto", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 886 | ], |
| 887 | |
| 888 | // 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] | 889 | cmd: "mkdir -p $(genDir) " + |
| 890 | "&& $(location aprotoc) " + |
| 891 | " --plugin=$(location protoc-gen-cppstream) " + |
| 892 | " --dependency_out=$(depfile) " + |
| 893 | " --cppstream_out=$(genDir) " + |
| 894 | " -Iexternal/protobuf/src " + |
| 895 | " -I . " + |
| 896 | " $(in)", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 897 | |
Logan Chien | 71ddfea | 2018-02-27 16:43:50 +0800 | [diff] [blame] | 898 | output_extension: "proto.h", |
Yi Jin | 04625ad | 2017-10-17 18:29:33 -0700 | [diff] [blame] | 899 | } |
| 900 | |
Joe Onorato | 99598ee | 2019-02-11 15:55:13 +0000 | [diff] [blame] | 901 | |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 902 | subdirs = [ |
Yi Jin | 0a3406f | 2017-06-22 19:23:11 -0700 | [diff] [blame] | 903 | "cmds/*", |
Jeff Sharkey | 0c686e7 | 2017-10-23 16:04:31 -0600 | [diff] [blame] | 904 | "core/*", |
Colin Cross | 4f8d9e6 | 2016-12-01 15:55:00 -0800 | [diff] [blame] | 905 | "libs/*", |
Colin Cross | 76de4f6 | 2017-05-15 18:10:40 -0700 | [diff] [blame] | 906 | "media/*", |
Colin Cross | 747e7c1 | 2017-10-24 16:21:22 -0700 | [diff] [blame] | 907 | "proto", |
Fabien Sanglard | 1916020 | 2017-01-12 14:24:31 -0500 | [diff] [blame] | 908 | "tools/*", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 909 | "native/android", |
Dan Albert | 7ce8df3 | 2016-09-23 16:43:49 -0700 | [diff] [blame] | 910 | "native/graphics/jni", |
Dan Albert | 2a8d9c2 | 2016-09-23 15:55:49 -0700 | [diff] [blame] | 911 | ] |
Svetoslav Ganov | 74c9983 | 2016-12-05 20:07:20 -0800 | [diff] [blame] | 912 | |
| 913 | optional_subdirs = [ |
| 914 | "core/tests/utiltests/jni", |
| 915 | ] |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 916 | |
Colin Cross | a2b78a7 | 2018-03-29 13:31:04 -0700 | [diff] [blame] | 917 | // TODO(b/77285514): remove this once the last few hidl interfaces have been |
| 918 | // updated to use hwbinder.stubs. |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 919 | java_library { |
| 920 | name: "hwbinder", |
Paul Duffin | 8fcace4 | 2019-06-12 13:47:18 +0100 | [diff] [blame] | 921 | sdk_version: "core_platform", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 922 | |
| 923 | srcs: [ |
| 924 | "core/java/android/os/HidlSupport.java", |
Steven Moreland | e8e63aa | 2018-01-10 15:45:36 -0800 | [diff] [blame] | 925 | "core/java/android/annotation/IntDef.java", |
Ytai Ben-Tsvi | a907efc | 2019-11-06 09:53:34 -0800 | [diff] [blame] | 926 | "core/java/android/annotation/IntRange.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 927 | "core/java/android/annotation/NonNull.java", |
Steven Moreland | 0ff061a | 2019-03-04 17:56:30 -0800 | [diff] [blame] | 928 | "core/java/android/annotation/Nullable.java", |
Steven Moreland | e8e63aa | 2018-01-10 15:45:36 -0800 | [diff] [blame] | 929 | "core/java/android/annotation/SystemApi.java", |
Steven Moreland | cbba4c7 | 2019-01-11 10:19:51 -0800 | [diff] [blame] | 930 | "core/java/android/annotation/TestApi.java", |
Andrei Onea | 24ec321 | 2019-03-15 17:35:05 +0000 | [diff] [blame] | 931 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Ytai Ben-Tsvi | a907efc | 2019-11-06 09:53:34 -0800 | [diff] [blame] | 932 | "core/java/android/os/HidlMemory.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 933 | "core/java/android/os/HwBinder.java", |
| 934 | "core/java/android/os/HwBlob.java", |
| 935 | "core/java/android/os/HwParcel.java", |
| 936 | "core/java/android/os/IHwBinder.java", |
| 937 | "core/java/android/os/IHwInterface.java", |
| 938 | "core/java/android/os/DeadObjectException.java", |
| 939 | "core/java/android/os/DeadSystemException.java", |
Nirav Atre | 9850dd9 | 2018-07-24 17:03:44 -0700 | [diff] [blame] | 940 | "core/java/android/os/NativeHandle.java", |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 941 | "core/java/android/os/RemoteException.java", |
| 942 | "core/java/android/util/AndroidException.java", |
| 943 | ], |
Artur Satayev | bc3d8b9 | 2019-12-10 17:47:53 +0000 | [diff] [blame] | 944 | libs: [ "unsupportedappusage" ], |
Steven Moreland | eddafe9 | 2017-10-02 16:58:41 -0700 | [diff] [blame] | 945 | |
| 946 | dxflags: ["--core-library"], |
| 947 | installable: false, |
| 948 | } |
Nan Zhang | 2db709d | 2017-11-08 20:48:46 -0800 | [diff] [blame] | 949 | |
| 950 | python_defaults { |
| 951 | name: "base_default", |
| 952 | version: { |
| 953 | py2: { |
| 954 | enabled: true, |
| 955 | embedded_launcher: true, |
| 956 | }, |
| 957 | py3: { |
| 958 | enabled: false, |
| 959 | embedded_launcher: false, |
| 960 | }, |
| 961 | }, |
| 962 | } |
| 963 | |
| 964 | python_binary_host { |
| 965 | name: "fontchain_linter", |
| 966 | defaults: ["base_default"], |
| 967 | main: "tools/fonts/fontchain_linter.py", |
| 968 | srcs: [ |
| 969 | "tools/fonts/fontchain_linter.py", |
| 970 | ], |
| 971 | libs: [ |
| 972 | "fontTools", |
| 973 | ], |
| 974 | } |
Nan Zhang | 172875b | 2018-02-27 11:24:03 -0800 | [diff] [blame] | 975 | |
Nan Zhang | af25130 | 2018-08-30 10:59:51 -0700 | [diff] [blame] | 976 | filegroup { |
| 977 | name: "framework-annotation-nonnull-srcs", |
| 978 | srcs: [ |
| 979 | "core/java/android/annotation/NonNull.java", |
| 980 | ], |
| 981 | } |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 982 | |
| 983 | filegroup { |
| 984 | name: "framework-media-annotation-srcs", |
| 985 | srcs: [ |
| 986 | "core/java/android/annotation/CallbackExecutor.java", |
Insun Kang | f86a56c | 2019-01-22 17:16:07 +0900 | [diff] [blame] | 987 | "core/java/android/annotation/CallSuper.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 988 | "core/java/android/annotation/DrawableRes.java", |
| 989 | "core/java/android/annotation/IntDef.java", |
| 990 | "core/java/android/annotation/LongDef.java", |
| 991 | "core/java/android/annotation/NonNull.java", |
| 992 | "core/java/android/annotation/Nullable.java", |
| 993 | "core/java/android/annotation/RequiresPermission.java", |
| 994 | "core/java/android/annotation/SdkConstant.java", |
| 995 | "core/java/android/annotation/StringDef.java", |
Sungsoo Lim | bb3b401 | 2019-01-23 13:17:53 +0900 | [diff] [blame] | 996 | "core/java/android/annotation/SystemApi.java", |
Dongwon Kang | 3584c66 | 2018-11-27 11:14:08 -0800 | [diff] [blame] | 997 | "core/java/android/annotation/TestApi.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 998 | "core/java/android/annotation/UnsupportedAppUsage.java", |
Dongwon Kang | 3584c66 | 2018-11-27 11:14:08 -0800 | [diff] [blame] | 999 | "core/java/com/android/internal/annotations/GuardedBy.java", |
Insun Kang | 06b25ae | 2018-11-20 10:05:44 +0900 | [diff] [blame] | 1000 | ], |
| 1001 | } |
| 1002 | |
Andrei Onea | 7a2985c | 2019-02-18 15:28:35 +0000 | [diff] [blame] | 1003 | // Creates an index of AIDL methods; used for adding UnsupportedAppUsage |
| 1004 | // annotations to private apis |
| 1005 | aidl_mapping { |
| 1006 | name: "framework-aidl-mappings", |
Jiyong Park | ae9972b | 2019-09-15 20:19:02 +0900 | [diff] [blame] | 1007 | srcs: [":framework-all-sources"], |
Tobias Thierer | bc05034a | 2019-05-23 16:20:12 +0100 | [diff] [blame] | 1008 | output: "framework-aidl-mappings.txt", |
Dario Freni | 2ce8434 | 2019-04-26 13:06:22 +0100 | [diff] [blame] | 1009 | } |
Anna Trostanetski | 97088e9 | 2019-06-26 14:47:58 +0100 | [diff] [blame] | 1010 | |
| 1011 | genrule { |
| 1012 | name: "framework-annotation-proc-index", |
| 1013 | srcs: [":framework-annotation-proc"], |
| 1014 | cmd: "unzip -qp $(in) unsupportedappusage/unsupportedappusage_index.csv > $(out)", |
| 1015 | out: ["unsupportedappusage_index.csv"], |
| 1016 | dist: { |
| 1017 | targets: ["droidcore"], |
| 1018 | }, |
| 1019 | } |
Chen Xu | 0e9d675 | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1020 | |
Chen Xu | 0e9d675 | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1021 | filegroup { |
| 1022 | name: "framework-cellbroadcast-shared-srcs", |
| 1023 | srcs: [ |
Jordan Liu | bf68dc8 | 2019-11-20 13:55:18 -0800 | [diff] [blame] | 1024 | "core/java/android/os/HandlerExecutor.java", |
| 1025 | "core/java/android/util/LocalLog.java", |
Chen Xu | 0e9d675 | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1026 | "core/java/android/util/Slog.java", |
Jordan Liu | bf68dc8 | 2019-11-20 13:55:18 -0800 | [diff] [blame] | 1027 | "core/java/com/android/internal/util/IState.java", |
| 1028 | "core/java/com/android/internal/util/Preconditions.java", |
| 1029 | "core/java/com/android/internal/util/State.java", |
| 1030 | "core/java/com/android/internal/util/StateMachine.java", |
Chen Xu | 0e9d675 | 2019-10-08 18:39:03 -0700 | [diff] [blame] | 1031 | ], |
| 1032 | } |
Chen Xu | c00cf99 | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1033 | |
| 1034 | // Avoid including Parcelable classes as we don't want to have two copies of |
| 1035 | // Parcelable cross the process. |
| 1036 | filegroup { |
| 1037 | name: "framework-telephony-stack-shared-srcs", |
| 1038 | srcs: [ |
| 1039 | "core/java/android/os/RegistrantList.java", |
| 1040 | "core/java/android/os/Registrant.java", |
| 1041 | "core/java/android/util/LocalLog.java", |
Chen Xu | c00cf99 | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1042 | "core/java/android/util/TimeUtils.java", |
| 1043 | "core/java/com/android/internal/os/SomeArgs.java", |
Meng Wang | 9c2a8e0 | 2019-12-13 16:45:34 -0800 | [diff] [blame] | 1044 | "core/java/com/android/internal/util/AsyncChannel.java", |
Meng Wang | 3043dac | 2020-01-14 14:04:10 -0800 | [diff] [blame] | 1045 | "core/java/com/android/internal/util/AsyncService.java", |
Meng Wang | 9c2a8e0 | 2019-12-13 16:45:34 -0800 | [diff] [blame] | 1046 | "core/java/com/android/internal/util/BitwiseInputStream.java", |
Michele | 68370a8 | 2019-10-31 11:48:43 -0700 | [diff] [blame] | 1047 | "core/java/com/android/internal/util/FastXmlSerializer.java", |
| 1048 | "core/java/com/android/internal/util/HexDump.java", |
Meng Wang | 8532de9 | 2019-12-02 10:42:20 -0800 | [diff] [blame] | 1049 | "core/java/com/android/internal/util/IState.java", |
Michele | 68370a8 | 2019-10-31 11:48:43 -0700 | [diff] [blame] | 1050 | "core/java/com/android/internal/util/IndentingPrintWriter.java", |
Chen Xu | c00cf99 | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1051 | "core/java/com/android/internal/util/Preconditions.java", |
| 1052 | "core/java/com/android/internal/util/State.java", |
| 1053 | "core/java/com/android/internal/util/StateMachine.java", |
Michele | 68370a8 | 2019-10-31 11:48:43 -0700 | [diff] [blame] | 1054 | "core/java/com/android/internal/util/UserIcons.java", |
Chen Xu | c00cf99 | 2019-09-05 22:07:42 -0700 | [diff] [blame] | 1055 | ], |
| 1056 | } |
Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 1057 | |
| 1058 | // TODO(b/145644363): move this to under StubLibraries.bp or ApiDocs.bp |
| 1059 | metalava_framework_docs_args = "--manifest $(location core/res/AndroidManifest.xml) " + |
| 1060 | "--ignore-classes-on-classpath " + |
| 1061 | "--hide-package com.android.server " + |
| 1062 | "--error UnhiddenSystemApi " + |
| 1063 | "--hide RequiresPermission " + |
| 1064 | "--hide CallbackInterface " + |
| 1065 | "--hide MissingPermission --hide BroadcastBehavior " + |
| 1066 | "--hide HiddenSuperclass --hide DeprecationMismatch --hide UnavailableSymbol " + |
| 1067 | "--hide SdkConstant --hide HiddenTypeParameter --hide Todo --hide Typo " + |
Aurimas Liutikas | 1f76a5a | 2019-11-20 17:51:42 -0800 | [diff] [blame] | 1068 | "--force-convert-to-warning-nullability-annotations +*:-android.*:+android.icu.*:-dalvik.* " + |
| 1069 | "--api-lint-ignore-prefix android.icu. " + |
| 1070 | "--api-lint-ignore-prefix java. " + |
| 1071 | "--api-lint-ignore-prefix junit. " + |
| 1072 | "--api-lint-ignore-prefix org. " |
Jiyong Park | 7fb4b18 | 2019-12-20 14:35:43 +0900 | [diff] [blame] | 1073 | |
| 1074 | build = [ |
| 1075 | "StubLibraries.bp", |
| 1076 | "ApiDocs.bp", |
| 1077 | ] |