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