1package {
2    default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5java_sdk_library {
6    name: "framework-virtualization",
7
8    defaults: ["non-updatable-framework-module-defaults"],
9
10    jarjar_rules: "jarjar-rules.txt",
11
12    srcs: ["src/**/*.java"],
13    static_libs: [
14        "android.system.virtualizationservice-java",
15        "avf_aconfig_flags_java",
16        // For android.sysprop.HypervisorProperties
17        "PlatformProperties",
18    ],
19
20    apex_available: ["com.android.virt"],
21
22    permitted_packages: [
23        "android.system.virtualmachine",
24        "android.system.virtualizationservice",
25        // android.sysprop.*, renamed by jarjar
26        "com.android.system.virtualmachine.sysprop",
27    ],
28    errorprone: {
29        enabled: true,
30        javacflags: [
31            // We use @GuardedBy and we want a test failure if our locking isn't consistent with it.
32            "-Xep:GuardedBy:ERROR",
33        ],
34    },
35
36    sdk_version: "core_platform",
37    stub_only_libs: [
38        "android_module_lib_stubs_current",
39    ],
40    impl_only_libs: [
41        "framework",
42    ],
43    impl_library_visibility: [
44        "//packages/modules/Virtualization:__subpackages__",
45    ],
46    aconfig_declarations: [
47        "avf_aconfig_flags",
48    ],
49}
50