blob: 26ea214cc94bcb1effb1c84c70b2dc5e652a634a [file] [log] [blame]
Jiyong Park9b8253b2021-06-28 18:37:26 +09001package {
2 default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5java_sdk_library {
Nikita Ioffef28eec22022-10-18 23:17:34 +01006 name: "framework-virtualization",
Jiyong Park9b8253b2021-06-28 18:37:26 +09007
Nikita Ioffe6d340a22022-12-06 14:16:20 +00008 defaults: ["non-updatable-framework-module-defaults"],
Nikita Ioffe30b50e62022-11-15 11:27:45 +00009
Alan Stokes5c1d9c02022-09-01 11:10:32 +010010 jarjar_rules: "jarjar-rules.txt",
11
Jiyong Park9b8253b2021-06-28 18:37:26 +090012 srcs: ["src/**/*.java"],
13 static_libs: [
14 "android.system.virtualizationservice-java",
Nikita Ioffee3a049f2024-02-15 15:47:23 +000015 "avf_aconfig_flags_java",
Alan Stokes5c1d9c02022-09-01 11:10:32 +010016 // For android.sysprop.HypervisorProperties
17 "PlatformProperties",
Jiyong Park9b8253b2021-06-28 18:37:26 +090018 ],
19
20 apex_available: ["com.android.virt"],
Nikita Ioffef28eec22022-10-18 23:17:34 +010021
Jiyong Park9b8253b2021-06-28 18:37:26 +090022 permitted_packages: [
23 "android.system.virtualmachine",
24 "android.system.virtualizationservice",
Alan Stokes5c1d9c02022-09-01 11:10:32 +010025 // android.sysprop.*, renamed by jarjar
26 "com.android.system.virtualmachine.sysprop",
Jiyong Park9b8253b2021-06-28 18:37:26 +090027 ],
Alan Stokes36a58d92022-11-09 13:35:40 +000028 errorprone: {
Alan Stokes36a58d92022-11-09 13:35:40 +000029 enabled: true,
30 javacflags: [
Nikita Ioffe0ef49382022-11-18 14:28:08 +000031 // We use @GuardedBy and we want a test failure if our locking isn't consistent with it.
Alan Stokes36a58d92022-11-09 13:35:40 +000032 "-Xep:GuardedBy:ERROR",
33 ],
34 },
Nikita Ioffef28eec22022-10-18 23:17:34 +010035
Nikita Ioffe30b50e62022-11-15 11:27:45 +000036 sdk_version: "core_platform",
Nikita Ioffe69d297a2022-11-21 12:32:05 +000037 stub_only_libs: [
38 "android_module_lib_stubs_current",
39 ],
Nikita Ioffe30b50e62022-11-15 11:27:45 +000040 impl_only_libs: [
41 "framework",
42 ],
43 impl_library_visibility: [
Nikita Ioffe0ef49382022-11-18 14:28:08 +000044 "//packages/modules/Virtualization:__subpackages__",
Nikita Ioffe30b50e62022-11-15 11:27:45 +000045 ],
Gurpreet Singh3415ee12024-03-15 11:46:43 +000046 aconfig_declarations: [
47 "avf_aconfig_flags",
48 ],
Alan Stokes34f06882022-08-17 11:38:24 +010049}