Makoto Onuki | 3aefe33 | 2023-10-06 10:02:07 -0700 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_base_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_base_license"], |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 8 | |
| 9 | // OWNER: g/ravenwood |
| 10 | // Bug component: 25698 |
Makoto Onuki | 9e4c072 | 2024-10-14 15:32:09 -0700 | [diff] [blame] | 11 | default_team: "trendy_team_ravenwood", |
Makoto Onuki | 3aefe33 | 2023-10-06 10:02:07 -0700 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | filegroup { |
John Wu | 2511073 | 2024-10-10 22:40:49 +0000 | [diff] [blame] | 15 | name: "ravenwood-common-policies", |
| 16 | srcs: [ |
| 17 | "texts/ravenwood-common-policies.txt", |
| 18 | ], |
| 19 | visibility: ["//visibility:private"], |
| 20 | } |
| 21 | |
| 22 | filegroup { |
Makoto Onuki | dfade84 | 2024-05-02 15:42:08 -0700 | [diff] [blame] | 23 | name: "ravenwood-services-policies", |
| 24 | srcs: [ |
| 25 | "texts/ravenwood-services-policies.txt", |
| 26 | ], |
John Wu | 2abff41 | 2024-10-10 21:58:26 +0000 | [diff] [blame] | 27 | visibility: ["//visibility:private"], |
Makoto Onuki | dfade84 | 2024-05-02 15:42:08 -0700 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | filegroup { |
| 31 | name: "ravenwood-framework-policies", |
| 32 | srcs: [ |
| 33 | "texts/ravenwood-framework-policies.txt", |
| 34 | ], |
John Wu | 2abff41 | 2024-10-10 21:58:26 +0000 | [diff] [blame] | 35 | visibility: ["//visibility:private"], |
Makoto Onuki | dfade84 | 2024-05-02 15:42:08 -0700 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | filegroup { |
| 39 | name: "ravenwood-standard-options", |
| 40 | srcs: [ |
| 41 | "texts/ravenwood-standard-options.txt", |
| 42 | ], |
John Wu | 2abff41 | 2024-10-10 21:58:26 +0000 | [diff] [blame] | 43 | visibility: ["//visibility:private"], |
Makoto Onuki | dfade84 | 2024-05-02 15:42:08 -0700 | [diff] [blame] | 44 | } |
| 45 | |
| 46 | filegroup { |
| 47 | name: "ravenwood-annotation-allowed-classes", |
| 48 | srcs: [ |
| 49 | "texts/ravenwood-annotation-allowed-classes.txt", |
| 50 | ], |
John Wu | 2abff41 | 2024-10-10 21:58:26 +0000 | [diff] [blame] | 51 | visibility: ["//visibility:private"], |
Makoto Onuki | dfade84 | 2024-05-02 15:42:08 -0700 | [diff] [blame] | 52 | } |
| 53 | |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 54 | // This and the next module contain the same classes with different implementations. |
| 55 | // "ravenwood-runtime-common-device" will be statically linked in device side tests. |
| 56 | // "ravenwood-runtime-common-ravenwood" will only exist in ravenwood-runtime, which will take |
| 57 | // precedence even if the test jar (accidentally) contains "ravenwood-runtime-common-device". |
| 58 | // "ravenwood-runtime-common" uses it to detect if the rutime is Ravenwood or not. |
| 59 | java_library { |
| 60 | name: "ravenwood-runtime-common-ravenwood", |
| 61 | host_supported: true, |
| 62 | sdk_version: "core_current", |
| 63 | srcs: [ |
| 64 | "runtime-common-ravenwood-src/**/*.java", |
| 65 | ], |
Makoto Onuki | d619e43 | 2024-07-19 16:45:02 -0700 | [diff] [blame] | 66 | visibility: [ |
| 67 | // Some tests need to access the utilities. |
| 68 | ":__subpackages__", |
| 69 | ], |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 70 | } |
| 71 | |
| 72 | java_library { |
| 73 | name: "ravenwood-runtime-common-device", |
| 74 | host_supported: true, |
| 75 | sdk_version: "core_current", |
| 76 | srcs: [ |
| 77 | "runtime-common-device-src/**/*.java", |
| 78 | ], |
| 79 | visibility: ["//visibility:private"], |
| 80 | } |
| 81 | |
| 82 | java_library { |
| 83 | name: "ravenwood-runtime-common", |
| 84 | host_supported: true, |
| 85 | sdk_version: "core_current", |
| 86 | srcs: [ |
| 87 | "runtime-common-src/**/*.java", |
| 88 | ], |
| 89 | libs: [ |
| 90 | "ravenwood-runtime-common-ravenwood", |
| 91 | ], |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 92 | static_libs: [ |
| 93 | "framework-annotations-lib", // should it be "libs" instead? |
| 94 | ], |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 95 | visibility: ["//visibility:private"], |
| 96 | } |
| 97 | |
Makoto Onuki | 053eac8 | 2024-02-13 10:31:18 -0800 | [diff] [blame] | 98 | java_library_host { |
| 99 | name: "ravenwood-helper-libcore-runtime.host", |
| 100 | srcs: [ |
| 101 | "runtime-helper-src/libcore-fake/**/*.java", |
| 102 | ], |
Makoto Onuki | 172f2a0 | 2024-10-18 11:03:02 -0700 | [diff] [blame] | 103 | libs: [ |
| 104 | "app-compat-annotations", |
| 105 | ], |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 106 | static_libs: [ |
| 107 | "ravenwood-runtime-common", |
| 108 | ], |
Makoto Onuki | 053eac8 | 2024-02-13 10:31:18 -0800 | [diff] [blame] | 109 | visibility: ["//visibility:private"], |
| 110 | } |
| 111 | |
| 112 | java_host_for_device { |
| 113 | name: "ravenwood-helper-libcore-runtime", |
| 114 | libs: [ |
| 115 | "ravenwood-helper-libcore-runtime.host", |
| 116 | ], |
| 117 | visibility: ["//visibility:private"], |
| 118 | } |
| 119 | |
| 120 | java_library { |
| 121 | name: "ravenwood-helper-framework-runtime", |
| 122 | srcs: [ |
| 123 | "runtime-helper-src/framework/**/*.java", |
| 124 | ], |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 125 | static_libs: [ |
| 126 | "ravenwood-runtime-common", |
Makoto Onuki | 172f2a0 | 2024-10-18 11:03:02 -0700 | [diff] [blame] | 127 | "androidx.annotation_annotation", |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 128 | ], |
Makoto Onuki | 053eac8 | 2024-02-13 10:31:18 -0800 | [diff] [blame] | 129 | libs: [ |
| 130 | "framework-minus-apex.ravenwood", |
John Wu | 0bbc544 | 2024-10-17 08:46:06 +0000 | [diff] [blame] | 131 | "framework-configinfrastructure.ravenwood", |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 132 | "ravenwood-helper-libcore-runtime", |
Makoto Onuki | 053eac8 | 2024-02-13 10:31:18 -0800 | [diff] [blame] | 133 | ], |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 134 | sdk_version: "core_current", |
Makoto Onuki | 053eac8 | 2024-02-13 10:31:18 -0800 | [diff] [blame] | 135 | visibility: ["//visibility:private"], |
| 136 | } |
| 137 | |
| 138 | // Combine ravenwood-helper-*-runtime and create a single library, which we include |
| 139 | // in the ravenwood runtime. |
| 140 | // We do it this way rather than including the individual jars in the runtime, because |
| 141 | // for some reason we couldn't include a java_host_for_device module in the ravenwood runtime. |
| 142 | java_library { |
| 143 | name: "ravenwood-helper-runtime", |
| 144 | defaults: ["ravenwood-internal-only-visibility-java"], |
| 145 | static_libs: [ |
| 146 | "ravenwood-helper-framework-runtime", |
| 147 | "ravenwood-helper-libcore-runtime", |
| 148 | ], |
| 149 | } |
| 150 | |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 151 | java_library { |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 152 | name: "ravenwood-junit-impl", |
| 153 | srcs: [ |
| 154 | "junit-src/**/*.java", |
| 155 | "junit-impl-src/**/*.java", |
| 156 | ], |
Jeff Sharkey | c91451a | 2024-01-29 10:55:45 -0700 | [diff] [blame] | 157 | static_libs: [ |
| 158 | "androidx.test.monitor-for-device", |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 159 | "ravenwood-runtime-common", |
Jeff Sharkey | c91451a | 2024-01-29 10:55:45 -0700 | [diff] [blame] | 160 | ], |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 161 | libs: [ |
Jihoon Kang | 1e37ed3 | 2024-08-30 00:29:12 +0000 | [diff] [blame] | 162 | "android.test.mock.impl", |
Jeff Sharkey | 5e210d7 | 2023-11-10 11:22:05 -0700 | [diff] [blame] | 163 | "framework-minus-apex.ravenwood", |
Jeff Sharkey | 8a922ec | 2024-02-27 12:36:36 -0700 | [diff] [blame] | 164 | "ravenwood-framework", |
Jeff Sharkey | 3e91c2b | 2024-02-15 14:12:07 -0700 | [diff] [blame] | 165 | "services.core.ravenwood", |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 166 | "junit", |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 167 | "framework-annotations-lib", |
| 168 | "ravenwood-helper-framework-runtime", |
| 169 | "ravenwood-helper-libcore-runtime", |
John Wu | 9c7227e | 2024-10-09 00:29:02 +0000 | [diff] [blame] | 170 | "hoststubgen-helper-runtime.ravenwood", |
| 171 | "mockito-ravenwood-prebuilt", |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 172 | ], |
John Wu | 768fc68 | 2024-10-25 21:16:27 +0000 | [diff] [blame] | 173 | visibility: [":__subpackages__"], |
Jeff Sharkey | 3e91c2b | 2024-02-15 14:12:07 -0700 | [diff] [blame] | 174 | jarjar_rules: ":ravenwood-services-jarjar-rules", |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 175 | } |
| 176 | |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 177 | java_device_for_host { |
| 178 | name: "ravenwood-junit-impl-for-ravenizer", |
| 179 | libs: [ |
| 180 | "ravenwood-junit-impl", |
| 181 | ], |
| 182 | visibility: [":__subpackages__"], |
| 183 | } |
| 184 | |
Jeff Sharkey | 7037e35 | 2024-02-27 14:22:24 -0700 | [diff] [blame] | 185 | // Separated out from ravenwood-junit-impl since it needs to compile |
| 186 | // against `module_current` |
| 187 | java_library { |
| 188 | name: "ravenwood-junit-impl-flag", |
| 189 | srcs: [ |
| 190 | "junit-flag-src/**/*.java", |
| 191 | ], |
Liana Kazanova | 0c16dd3 | 2024-06-25 20:40:04 +0000 | [diff] [blame] | 192 | sdk_version: "module_current", |
Jeff Sharkey | 7037e35 | 2024-02-27 14:22:24 -0700 | [diff] [blame] | 193 | libs: [ |
| 194 | "junit", |
| 195 | "flag-junit", |
| 196 | ], |
| 197 | visibility: ["//visibility:public"], |
| 198 | } |
| 199 | |
Makoto Onuki | 8df6bd0 | 2024-08-01 12:38:50 -0700 | [diff] [blame] | 200 | // Carefully compiles against only module_current to support tests that |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 201 | // want to verify they're unbundled. The "impl" library above is what |
| 202 | // ships inside the Ravenwood environment to actually drive any API |
| 203 | // access to implementation details. |
Makoto Onuki | 8df6bd0 | 2024-08-01 12:38:50 -0700 | [diff] [blame] | 204 | // We can't use test_current here because this library needs to be statically |
| 205 | // linked to mainline tests as well, which can't use test APIs because they |
| 206 | // need to be able to run on multiple API levels. |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 207 | java_library { |
| 208 | name: "ravenwood-junit", |
| 209 | srcs: [ |
| 210 | "junit-src/**/*.java", |
| 211 | "junit-stub-src/**/*.java", |
Jeff Sharkey | 7037e35 | 2024-02-27 14:22:24 -0700 | [diff] [blame] | 212 | "junit-flag-src/**/*.java", |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 213 | ], |
Felipe Leme | dfbfb23 | 2024-07-23 05:31:38 +0000 | [diff] [blame] | 214 | sdk_version: "module_current", |
Makoto Onuki | df9cd26 | 2024-05-16 15:44:38 -0700 | [diff] [blame] | 215 | static_libs: [ |
| 216 | "ravenwood-runtime-common", |
| 217 | "ravenwood-runtime-common-device", |
| 218 | ], |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 219 | libs: [ |
| 220 | "junit", |
Jeff Sharkey | 7037e35 | 2024-02-27 14:22:24 -0700 | [diff] [blame] | 221 | "flag-junit", |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 222 | "framework-annotations-lib", |
Jeff Sharkey | 41cfbb3 | 2023-11-16 09:26:28 -0700 | [diff] [blame] | 223 | ], |
Jeff Sharkey | 91f414e | 2023-11-07 15:43:59 -0700 | [diff] [blame] | 224 | visibility: ["//visibility:public"], |
| 225 | } |
Jeff Sharkey | 4ee8a65 | 2023-11-14 08:45:56 -0700 | [diff] [blame] | 226 | |
Jeff Sharkey | 8a922ec | 2024-02-27 12:36:36 -0700 | [diff] [blame] | 227 | // Library used to publish a handful of `android.ravenwood` APIs into |
| 228 | // the Ravenwood BCP; we don't want to publish these APIs into the BCP |
| 229 | // on physical devices, which is why this is a separate library |
| 230 | java_library { |
| 231 | name: "ravenwood-framework", |
| 232 | srcs: [ |
| 233 | "framework-src/**/*.java", |
| 234 | ], |
| 235 | libs: [ |
| 236 | "framework-minus-apex.ravenwood", |
| 237 | ], |
| 238 | sdk_version: "core_current", |
| 239 | visibility: ["//visibility:public"], |
| 240 | } |
| 241 | |
Jeff Sharkey | c91451a | 2024-01-29 10:55:45 -0700 | [diff] [blame] | 242 | java_host_for_device { |
| 243 | name: "androidx.test.monitor-for-device", |
| 244 | libs: [ |
| 245 | "androidx.test.monitor-for-host", |
| 246 | ], |
| 247 | } |
| 248 | |
| 249 | java_device_for_host { |
| 250 | name: "androidx.test.monitor-for-host", |
| 251 | libs: [ |
| 252 | "androidx.test.monitor", |
| 253 | ], |
| 254 | } |
Jeff Sharkey | 3e91c2b | 2024-02-15 14:12:07 -0700 | [diff] [blame] | 255 | |
| 256 | filegroup { |
Makoto Onuki | f38d599 | 2024-05-30 10:40:50 -0700 | [diff] [blame] | 257 | name: "ravenwood-framework-jarjar-rules", |
| 258 | srcs: ["texts/ravenwood-framework-jarjar-rules.txt"], |
| 259 | visibility: ["//frameworks/base"], |
| 260 | } |
| 261 | |
| 262 | filegroup { |
Jeff Sharkey | 3e91c2b | 2024-02-15 14:12:07 -0700 | [diff] [blame] | 263 | name: "ravenwood-services-jarjar-rules", |
Makoto Onuki | a3fe562 | 2024-03-27 13:08:32 -0700 | [diff] [blame] | 264 | srcs: ["texts/ravenwood-services-jarjar-rules.txt"], |
Jeff Sharkey | 3e91c2b | 2024-02-15 14:12:07 -0700 | [diff] [blame] | 265 | visibility: ["//frameworks/base"], |
| 266 | } |
Makoto Onuki | 3fb1f2b | 2024-03-27 13:08:32 -0700 | [diff] [blame] | 267 | |
John Wu | 5e13e25 | 2024-09-25 00:43:28 +0000 | [diff] [blame] | 268 | cc_defaults { |
| 269 | name: "ravenwood_jni_defaults", |
Makoto Onuki | aedf30b | 2024-05-01 11:16:50 -0700 | [diff] [blame] | 270 | cflags: [ |
| 271 | "-Wall", |
| 272 | "-Werror", |
| 273 | "-Wno-unused-parameter", |
| 274 | "-Wthread-safety", |
| 275 | ], |
John Wu | 5e13e25 | 2024-09-25 00:43:28 +0000 | [diff] [blame] | 276 | static_libs: [ |
| 277 | "libnativehelper_jvm", |
Makoto Onuki | aedf30b | 2024-05-01 11:16:50 -0700 | [diff] [blame] | 278 | ], |
John Wu | 5e13e25 | 2024-09-25 00:43:28 +0000 | [diff] [blame] | 279 | shared_libs: [ |
| 280 | "liblog", |
| 281 | ], |
Makoto Onuki | 371ac3f | 2024-11-05 09:35:18 -0800 | [diff] [blame^] | 282 | visibility: ["//visibility:private"], |
| 283 | } |
| 284 | |
| 285 | cc_library_host_shared { |
| 286 | name: "libravenwood_initializer", |
| 287 | defaults: ["ravenwood_jni_defaults"], |
| 288 | srcs: [ |
| 289 | "runtime-jni/ravenwood_initializer.cpp", |
| 290 | ], |
John Wu | 5e13e25 | 2024-09-25 00:43:28 +0000 | [diff] [blame] | 291 | } |
Makoto Onuki | aedf30b | 2024-05-01 11:16:50 -0700 | [diff] [blame] | 292 | |
John Wu | 5e13e25 | 2024-09-25 00:43:28 +0000 | [diff] [blame] | 293 | // We need this as a separate library because we need to overload the |
| 294 | // sysprop symbols before libbase is loaded into the process |
| 295 | cc_library_host_shared { |
| 296 | name: "libravenwood_sysprop", |
| 297 | defaults: ["ravenwood_jni_defaults"], |
| 298 | srcs: ["runtime-jni/ravenwood_sysprop.cpp"], |
| 299 | } |
| 300 | |
| 301 | cc_library_host_shared { |
| 302 | name: "libravenwood_runtime", |
| 303 | defaults: ["ravenwood_jni_defaults"], |
| 304 | srcs: [ |
| 305 | "runtime-jni/ravenwood_runtime.cpp", |
| 306 | "runtime-jni/ravenwood_os_constants.cpp", |
| 307 | ], |
Makoto Onuki | aedf30b | 2024-05-01 11:16:50 -0700 | [diff] [blame] | 308 | shared_libs: [ |
| 309 | "libbase", |
Makoto Onuki | aedf30b | 2024-05-01 11:16:50 -0700 | [diff] [blame] | 310 | "libutils", |
| 311 | "libcutils", |
| 312 | ], |
Makoto Onuki | aedf30b | 2024-05-01 11:16:50 -0700 | [diff] [blame] | 313 | } |
| 314 | |
Makoto Onuki | 3fb1f2b | 2024-03-27 13:08:32 -0700 | [diff] [blame] | 315 | // For collecting the *stats.csv files in a known directory under out/host/linux-x86/testcases/. |
| 316 | // The "test" just shows the available stats filenames. |
| 317 | sh_test_host { |
| 318 | name: "ravenwood-stats-checker", |
Makoto Onuki | a3fe562 | 2024-03-27 13:08:32 -0700 | [diff] [blame] | 319 | src: "scripts/ravenwood-stats-checker.sh", |
Makoto Onuki | 3fb1f2b | 2024-03-27 13:08:32 -0700 | [diff] [blame] | 320 | test_suites: ["general-tests"], |
Cole Faust | 5aeb9fd | 2024-10-22 16:30:57 -0700 | [diff] [blame] | 321 | device_common_data: [ |
John Wu | 9834616 | 2024-09-26 22:59:40 +0000 | [diff] [blame] | 322 | ":framework-minus-apex.ravenwood-base_all{hoststubgen_framework-minus-apex_stats.csv}", |
| 323 | ":framework-minus-apex.ravenwood-base_all{hoststubgen_framework-minus-apex_apis.csv}", |
| 324 | ":framework-minus-apex.ravenwood-base_all{hoststubgen_framework-minus-apex_keep_all.txt}", |
| 325 | ":framework-minus-apex.ravenwood-base_all{hoststubgen_framework-minus-apex_dump.txt}", |
Makoto Onuki | 134a415 | 2024-06-26 14:21:12 -0700 | [diff] [blame] | 326 | ":services.core.ravenwood-base{hoststubgen_services.core_stats.csv}", |
| 327 | ":services.core.ravenwood-base{hoststubgen_services.core_apis.csv}", |
| 328 | ":services.core.ravenwood-base{hoststubgen_services.core_keep_all.txt}", |
| 329 | ":services.core.ravenwood-base{hoststubgen_services.core_dump.txt}", |
Makoto Onuki | b4f5f9e | 2024-10-22 14:51:17 -0700 | [diff] [blame] | 330 | |
| 331 | ":framework-configinfrastructure.ravenwood-base{framework-configinfrastructure_stats.csv}", |
| 332 | ":framework-configinfrastructure.ravenwood-base{framework-configinfrastructure_apis.csv}", |
| 333 | ":framework-configinfrastructure.ravenwood-base{framework-configinfrastructure_keep_all.txt}", |
| 334 | ":framework-configinfrastructure.ravenwood-base{framework-configinfrastructure_dump.txt}", |
| 335 | |
| 336 | ":framework-statsd.ravenwood-base{framework-statsd_stats.csv}", |
| 337 | ":framework-statsd.ravenwood-base{framework-statsd_apis.csv}", |
| 338 | ":framework-statsd.ravenwood-base{framework-statsd_keep_all.txt}", |
| 339 | ":framework-statsd.ravenwood-base{framework-statsd_dump.txt}", |
Makoto Onuki | 3fb1f2b | 2024-03-27 13:08:32 -0700 | [diff] [blame] | 340 | ], |
| 341 | } |
Makoto Onuki | e5e9727 | 2024-05-23 10:49:31 -0700 | [diff] [blame] | 342 | |
| 343 | java_library { |
| 344 | name: "services.fakes.ravenwood-jarjar", |
| 345 | installable: false, |
| 346 | srcs: [":services.fakes-sources"], |
| 347 | libs: [ |
| 348 | "ravenwood-framework", |
| 349 | "services.core.ravenwood", |
| 350 | ], |
| 351 | jarjar_rules: ":ravenwood-services-jarjar-rules", |
| 352 | visibility: ["//visibility:private"], |
| 353 | } |
| 354 | |
| 355 | java_library { |
| 356 | name: "mockito-ravenwood-prebuilt", |
| 357 | installable: false, |
| 358 | static_libs: [ |
| 359 | "mockito-robolectric-prebuilt", |
| 360 | ], |
| 361 | } |
| 362 | |
| 363 | java_library { |
| 364 | name: "inline-mockito-ravenwood-prebuilt", |
| 365 | installable: false, |
| 366 | static_libs: [ |
| 367 | "inline-mockito-robolectric-prebuilt", |
| 368 | ], |
| 369 | } |
| 370 | |
John Wu | 4438639 | 2024-11-01 18:20:48 +0000 | [diff] [blame] | 371 | filegroup { |
| 372 | name: "ravenwood-data", |
| 373 | device_common_srcs: [ |
| 374 | ":system-build.prop", |
| 375 | ":framework-res", |
| 376 | ":ravenwood-empty-res", |
| 377 | ":framework-platform-compat-config", |
| 378 | ":services-platform-compat-config", |
| 379 | ], |
| 380 | device_first_srcs: [ |
| 381 | ":apex_icu.dat", |
| 382 | ], |
| 383 | visibility: ["//visibility:private"], |
| 384 | } |
| 385 | |
| 386 | // Keep in sync with build/make/target/product/generic/Android.bp |
| 387 | filegroup { |
| 388 | name: "ravenwood-fonts", |
| 389 | device_common_srcs: [ |
| 390 | ":AndroidClock.ttf", |
| 391 | ":CarroisGothicSC-Regular.ttf", |
| 392 | ":ComingSoon.ttf", |
| 393 | ":CutiveMono.ttf", |
| 394 | ":DancingScript-Regular.ttf", |
| 395 | ":DroidSansMono.ttf", |
| 396 | ":NotoColorEmoji.ttf", |
| 397 | ":NotoColorEmojiFlags.ttf", |
| 398 | ":NotoNaskhArabic-Bold.ttf", |
| 399 | ":NotoNaskhArabic-Regular.ttf", |
| 400 | ":NotoNaskhArabicUI-Bold.ttf", |
| 401 | ":NotoNaskhArabicUI-Regular.ttf", |
| 402 | ":NotoSansAdlam-VF.ttf", |
| 403 | ":NotoSansAhom-Regular.otf", |
| 404 | ":NotoSansAnatolianHieroglyphs-Regular.otf", |
| 405 | ":NotoSansArmenian-VF.ttf", |
| 406 | ":NotoSansAvestan-Regular.ttf", |
| 407 | ":NotoSansBalinese-Regular.ttf", |
| 408 | ":NotoSansBamum-Regular.ttf", |
| 409 | ":NotoSansBassaVah-Regular.otf", |
| 410 | ":NotoSansBatak-Regular.ttf", |
| 411 | ":NotoSansBengali-VF.ttf", |
| 412 | ":NotoSansBengaliUI-VF.ttf", |
| 413 | ":NotoSansBhaiksuki-Regular.otf", |
| 414 | ":NotoSansBrahmi-Regular.ttf", |
| 415 | ":NotoSansBuginese-Regular.ttf", |
| 416 | ":NotoSansBuhid-Regular.ttf", |
| 417 | ":NotoSansCJK-Regular.ttc", |
| 418 | ":NotoSansCanadianAboriginal-Regular.ttf", |
| 419 | ":NotoSansCarian-Regular.ttf", |
| 420 | ":NotoSansChakma-Regular.otf", |
| 421 | ":NotoSansCham-Bold.ttf", |
| 422 | ":NotoSansCham-Regular.ttf", |
| 423 | ":NotoSansCherokee-Regular.ttf", |
| 424 | ":NotoSansCoptic-Regular.ttf", |
| 425 | ":NotoSansCuneiform-Regular.ttf", |
| 426 | ":NotoSansCypriot-Regular.ttf", |
| 427 | ":NotoSansDeseret-Regular.ttf", |
| 428 | ":NotoSansDevanagari-VF.ttf", |
| 429 | ":NotoSansDevanagariUI-VF.ttf", |
| 430 | ":NotoSansEgyptianHieroglyphs-Regular.ttf", |
| 431 | ":NotoSansElbasan-Regular.otf", |
| 432 | ":NotoSansEthiopic-VF.ttf", |
| 433 | ":NotoSansGeorgian-VF.ttf", |
| 434 | ":NotoSansGlagolitic-Regular.ttf", |
| 435 | ":NotoSansGothic-Regular.ttf", |
| 436 | ":NotoSansGrantha-Regular.ttf", |
| 437 | ":NotoSansGujarati-Bold.ttf", |
| 438 | ":NotoSansGujarati-Regular.ttf", |
| 439 | ":NotoSansGujaratiUI-Bold.ttf", |
| 440 | ":NotoSansGujaratiUI-Regular.ttf", |
| 441 | ":NotoSansGunjalaGondi-Regular.otf", |
| 442 | ":NotoSansGurmukhi-VF.ttf", |
| 443 | ":NotoSansGurmukhiUI-VF.ttf", |
| 444 | ":NotoSansHanifiRohingya-Regular.otf", |
| 445 | ":NotoSansHanunoo-Regular.ttf", |
| 446 | ":NotoSansHatran-Regular.otf", |
| 447 | ":NotoSansHebrew-Bold.ttf", |
| 448 | ":NotoSansHebrew-Regular.ttf", |
| 449 | ":NotoSansImperialAramaic-Regular.ttf", |
| 450 | ":NotoSansInscriptionalPahlavi-Regular.ttf", |
| 451 | ":NotoSansInscriptionalParthian-Regular.ttf", |
| 452 | ":NotoSansJavanese-Regular.otf", |
| 453 | ":NotoSansKaithi-Regular.ttf", |
| 454 | ":NotoSansKannada-VF.ttf", |
| 455 | ":NotoSansKannadaUI-VF.ttf", |
| 456 | ":NotoSansKayahLi-Regular.ttf", |
| 457 | ":NotoSansKharoshthi-Regular.ttf", |
| 458 | ":NotoSansKhmer-VF.ttf", |
| 459 | ":NotoSansKhmerUI-Bold.ttf", |
| 460 | ":NotoSansKhmerUI-Regular.ttf", |
| 461 | ":NotoSansKhojki-Regular.otf", |
| 462 | ":NotoSansLao-Bold.ttf", |
| 463 | ":NotoSansLao-Regular.ttf", |
| 464 | ":NotoSansLaoUI-Bold.ttf", |
| 465 | ":NotoSansLaoUI-Regular.ttf", |
| 466 | ":NotoSansLepcha-Regular.ttf", |
| 467 | ":NotoSansLimbu-Regular.ttf", |
| 468 | ":NotoSansLinearA-Regular.otf", |
| 469 | ":NotoSansLinearB-Regular.ttf", |
| 470 | ":NotoSansLisu-Regular.ttf", |
| 471 | ":NotoSansLycian-Regular.ttf", |
| 472 | ":NotoSansLydian-Regular.ttf", |
| 473 | ":NotoSansMalayalam-VF.ttf", |
| 474 | ":NotoSansMalayalamUI-VF.ttf", |
| 475 | ":NotoSansMandaic-Regular.ttf", |
| 476 | ":NotoSansManichaean-Regular.otf", |
| 477 | ":NotoSansMarchen-Regular.otf", |
| 478 | ":NotoSansMasaramGondi-Regular.otf", |
| 479 | ":NotoSansMedefaidrin-VF.ttf", |
| 480 | ":NotoSansMeeteiMayek-Regular.ttf", |
| 481 | ":NotoSansMeroitic-Regular.otf", |
| 482 | ":NotoSansMiao-Regular.otf", |
| 483 | ":NotoSansModi-Regular.ttf", |
| 484 | ":NotoSansMongolian-Regular.ttf", |
| 485 | ":NotoSansMro-Regular.otf", |
| 486 | ":NotoSansMultani-Regular.otf", |
| 487 | ":NotoSansMyanmar-Bold.otf", |
| 488 | ":NotoSansMyanmar-Medium.otf", |
| 489 | ":NotoSansMyanmar-Regular.otf", |
| 490 | ":NotoSansMyanmarUI-Bold.otf", |
| 491 | ":NotoSansMyanmarUI-Medium.otf", |
| 492 | ":NotoSansMyanmarUI-Regular.otf", |
| 493 | ":NotoSansNKo-Regular.ttf", |
| 494 | ":NotoSansNabataean-Regular.otf", |
| 495 | ":NotoSansNewTaiLue-Regular.ttf", |
| 496 | ":NotoSansNewa-Regular.otf", |
| 497 | ":NotoSansOgham-Regular.ttf", |
| 498 | ":NotoSansOlChiki-Regular.ttf", |
| 499 | ":NotoSansOldItalic-Regular.ttf", |
| 500 | ":NotoSansOldNorthArabian-Regular.otf", |
| 501 | ":NotoSansOldPermic-Regular.otf", |
| 502 | ":NotoSansOldPersian-Regular.ttf", |
| 503 | ":NotoSansOldSouthArabian-Regular.ttf", |
| 504 | ":NotoSansOldTurkic-Regular.ttf", |
| 505 | ":NotoSansOriya-Bold.ttf", |
| 506 | ":NotoSansOriya-Regular.ttf", |
| 507 | ":NotoSansOriyaUI-Bold.ttf", |
| 508 | ":NotoSansOriyaUI-Regular.ttf", |
| 509 | ":NotoSansOsage-Regular.ttf", |
| 510 | ":NotoSansOsmanya-Regular.ttf", |
| 511 | ":NotoSansPahawhHmong-Regular.otf", |
| 512 | ":NotoSansPalmyrene-Regular.otf", |
| 513 | ":NotoSansPauCinHau-Regular.otf", |
| 514 | ":NotoSansPhagsPa-Regular.ttf", |
| 515 | ":NotoSansPhoenician-Regular.ttf", |
| 516 | ":NotoSansRejang-Regular.ttf", |
| 517 | ":NotoSansRunic-Regular.ttf", |
| 518 | ":NotoSansSamaritan-Regular.ttf", |
| 519 | ":NotoSansSaurashtra-Regular.ttf", |
| 520 | ":NotoSansSharada-Regular.otf", |
| 521 | ":NotoSansShavian-Regular.ttf", |
| 522 | ":NotoSansSinhala-VF.ttf", |
| 523 | ":NotoSansSinhalaUI-VF.ttf", |
| 524 | ":NotoSansSoraSompeng-Regular.otf", |
| 525 | ":NotoSansSoyombo-VF.ttf", |
| 526 | ":NotoSansSundanese-Regular.ttf", |
| 527 | ":NotoSansSylotiNagri-Regular.ttf", |
| 528 | ":NotoSansSymbols-Regular-Subsetted.ttf", |
| 529 | ":NotoSansSymbols-Regular-Subsetted2.ttf", |
| 530 | ":NotoSansSyriacEastern-Regular.ttf", |
| 531 | ":NotoSansSyriacEstrangela-Regular.ttf", |
| 532 | ":NotoSansSyriacWestern-Regular.ttf", |
| 533 | ":NotoSansTagalog-Regular.ttf", |
| 534 | ":NotoSansTagbanwa-Regular.ttf", |
| 535 | ":NotoSansTaiLe-Regular.ttf", |
| 536 | ":NotoSansTaiTham-Regular.ttf", |
| 537 | ":NotoSansTaiViet-Regular.ttf", |
| 538 | ":NotoSansTakri-VF.ttf", |
| 539 | ":NotoSansTamil-VF.ttf", |
| 540 | ":NotoSansTamilUI-VF.ttf", |
| 541 | ":NotoSansTelugu-VF.ttf", |
| 542 | ":NotoSansTeluguUI-VF.ttf", |
| 543 | ":NotoSansThaana-Bold.ttf", |
| 544 | ":NotoSansThaana-Regular.ttf", |
| 545 | ":NotoSansThai-Bold.ttf", |
| 546 | ":NotoSansThai-Regular.ttf", |
| 547 | ":NotoSansThaiUI-Bold.ttf", |
| 548 | ":NotoSansThaiUI-Regular.ttf", |
| 549 | ":NotoSansTifinagh-Regular.otf", |
| 550 | ":NotoSansUgaritic-Regular.ttf", |
| 551 | ":NotoSansVai-Regular.ttf", |
| 552 | ":NotoSansWancho-Regular.otf", |
| 553 | ":NotoSansWarangCiti-Regular.otf", |
| 554 | ":NotoSansYi-Regular.ttf", |
| 555 | ":NotoSerif-Bold.ttf", |
| 556 | ":NotoSerif-BoldItalic.ttf", |
| 557 | ":NotoSerif-Italic.ttf", |
| 558 | ":NotoSerif-Regular.ttf", |
| 559 | ":NotoSerifArmenian-VF.ttf", |
| 560 | ":NotoSerifBengali-VF.ttf", |
| 561 | ":NotoSerifCJK-Regular.ttc", |
| 562 | ":NotoSerifDevanagari-VF.ttf", |
| 563 | ":NotoSerifDogra-Regular.ttf", |
| 564 | ":NotoSerifEthiopic-VF.ttf", |
| 565 | ":NotoSerifGeorgian-VF.ttf", |
| 566 | ":NotoSerifGujarati-VF.ttf", |
| 567 | ":NotoSerifGurmukhi-VF.ttf", |
| 568 | ":NotoSerifHebrew-Bold.ttf", |
| 569 | ":NotoSerifHebrew-Regular.ttf", |
| 570 | ":NotoSerifHentaigana.ttf", |
| 571 | ":NotoSerifKannada-VF.ttf", |
| 572 | ":NotoSerifKhmer-Bold.otf", |
| 573 | ":NotoSerifKhmer-Regular.otf", |
| 574 | ":NotoSerifLao-Bold.ttf", |
| 575 | ":NotoSerifLao-Regular.ttf", |
| 576 | ":NotoSerifMalayalam-VF.ttf", |
| 577 | ":NotoSerifMyanmar-Bold.otf", |
| 578 | ":NotoSerifMyanmar-Regular.otf", |
| 579 | ":NotoSerifNyiakengPuachueHmong-VF.ttf", |
| 580 | ":NotoSerifSinhala-VF.ttf", |
| 581 | ":NotoSerifTamil-VF.ttf", |
| 582 | ":NotoSerifTelugu-VF.ttf", |
| 583 | ":NotoSerifThai-Bold.ttf", |
| 584 | ":NotoSerifThai-Regular.ttf", |
| 585 | ":NotoSerifTibetan-VF.ttf", |
| 586 | ":NotoSerifYezidi-VF.ttf", |
| 587 | ":Roboto-Regular.ttf", |
| 588 | ":RobotoFlex-Regular.ttf", |
| 589 | ":RobotoStatic-Regular.ttf", |
| 590 | ":SourceSansPro-Bold.ttf", |
| 591 | ":SourceSansPro-BoldItalic.ttf", |
| 592 | ":SourceSansPro-Italic.ttf", |
| 593 | ":SourceSansPro-Regular.ttf", |
| 594 | ":SourceSansPro-SemiBold.ttf", |
| 595 | ":SourceSansPro-SemiBoldItalic.ttf", |
| 596 | ], |
| 597 | device_first_srcs: [ |
| 598 | ":font_fallback.xml", |
| 599 | ":fonts.xml", |
| 600 | ], |
| 601 | visibility: ["//visibility:private"], |
| 602 | } |
| 603 | |
John Wu | 2abff41 | 2024-10-10 21:58:26 +0000 | [diff] [blame] | 604 | // JARs in "ravenwood-runtime" are set to the classpath, sorted alphabetically. |
| 605 | // Rename some of the dependencies to make sure they're included in the intended order. |
| 606 | |
| 607 | java_library { |
| 608 | name: "100-framework-minus-apex.ravenwood", |
| 609 | installable: false, |
| 610 | static_libs: ["framework-minus-apex.ravenwood"], |
| 611 | visibility: ["//visibility:private"], |
| 612 | } |
| 613 | |
| 614 | java_library { |
| 615 | name: "200-kxml2-android", |
| 616 | installable: false, |
| 617 | static_libs: ["kxml2-android"], |
| 618 | visibility: ["//visibility:private"], |
| 619 | } |
| 620 | |
| 621 | java_library { |
| 622 | name: "z00-all-updatable-modules-system-stubs", |
| 623 | installable: false, |
| 624 | static_libs: ["all-updatable-modules-system-stubs-for-host"], |
| 625 | visibility: ["//visibility:private"], |
| 626 | } |
| 627 | |
Makoto Onuki | e5e9727 | 2024-05-23 10:49:31 -0700 | [diff] [blame] | 628 | android_ravenwood_libgroup { |
| 629 | name: "ravenwood-runtime", |
John Wu | 4438639 | 2024-11-01 18:20:48 +0000 | [diff] [blame] | 630 | data: [":ravenwood-data"], |
| 631 | fonts: [":ravenwood-fonts"], |
Makoto Onuki | e5e9727 | 2024-05-23 10:49:31 -0700 | [diff] [blame] | 632 | libs: [ |
| 633 | "100-framework-minus-apex.ravenwood", |
| 634 | "200-kxml2-android", |
| 635 | |
| 636 | "ravenwood-runtime-common-ravenwood", |
| 637 | |
| 638 | "android.test.mock.ravenwood", |
| 639 | "ravenwood-helper-runtime", |
| 640 | "hoststubgen-helper-runtime.ravenwood", |
| 641 | "services.core.ravenwood-jarjar", |
| 642 | "services.fakes.ravenwood-jarjar", |
| 643 | |
Makoto Onuki | 953445b | 2024-07-19 11:21:29 -0700 | [diff] [blame] | 644 | // ICU |
| 645 | "core-icu4j-for-host.ravenwood", |
| 646 | "icu4j-icudata-jarjar", |
| 647 | "icu4j-icutzdata-jarjar", |
| 648 | |
John Wu | 0bbc544 | 2024-10-17 08:46:06 +0000 | [diff] [blame] | 649 | // DeviceConfig |
| 650 | "framework-configinfrastructure.ravenwood", |
| 651 | |
Makoto Onuki | b4f5f9e | 2024-10-22 14:51:17 -0700 | [diff] [blame] | 652 | // StatsD |
| 653 | "framework-statsd.ravenwood", |
| 654 | |
Makoto Onuki | e5e9727 | 2024-05-23 10:49:31 -0700 | [diff] [blame] | 655 | // Provide runtime versions of utils linked in below |
| 656 | "junit", |
| 657 | "truth", |
| 658 | "flag-junit", |
| 659 | "ravenwood-framework", |
| 660 | "ravenwood-junit-impl", |
| 661 | "ravenwood-junit-impl-flag", |
| 662 | "mockito-ravenwood-prebuilt", |
| 663 | "inline-mockito-ravenwood-prebuilt", |
| 664 | |
| 665 | // It's a stub, so it should be towards the end. |
| 666 | "z00-all-updatable-modules-system-stubs", |
| 667 | ], |
| 668 | jni_libs: [ |
John Wu | 5e13e25 | 2024-09-25 00:43:28 +0000 | [diff] [blame] | 669 | // Libraries has to be loaded in the following order |
Makoto Onuki | 371ac3f | 2024-11-05 09:35:18 -0800 | [diff] [blame^] | 670 | "libravenwood_initializer", |
John Wu | 5e13e25 | 2024-09-25 00:43:28 +0000 | [diff] [blame] | 671 | "libravenwood_sysprop", |
Makoto Onuki | e5e9727 | 2024-05-23 10:49:31 -0700 | [diff] [blame] | 672 | "libravenwood_runtime", |
John Wu | 5e13e25 | 2024-09-25 00:43:28 +0000 | [diff] [blame] | 673 | "libandroid_runtime", |
Makoto Onuki | e5e9727 | 2024-05-23 10:49:31 -0700 | [diff] [blame] | 674 | ], |
| 675 | } |
| 676 | |
| 677 | android_ravenwood_libgroup { |
| 678 | name: "ravenwood-utils", |
| 679 | libs: [ |
| 680 | "junit", |
| 681 | "truth", |
| 682 | "flag-junit", |
| 683 | "ravenwood-framework", |
| 684 | "ravenwood-junit", |
| 685 | "mockito-ravenwood-prebuilt", |
| 686 | "inline-mockito-ravenwood-prebuilt", |
| 687 | ], |
| 688 | } |
John Wu | 2abff41 | 2024-10-10 21:58:26 +0000 | [diff] [blame] | 689 | |
| 690 | build = [ |
| 691 | "Framework.bp", |
| 692 | ] |