1package {
2    default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5aidl_interface {
6    name: "android.system.virtualizationservice",
7    srcs: ["android/system/virtualizationservice/**/*.aidl"],
8    imports: ["android.system.virtualizationcommon"],
9    // This is never accessed directly. Apps are expected to use this indirectly via the Java
10    // wrapper android.system.virtualmachine.
11    unstable: true,
12    backend: {
13        java: {
14            sdk_version: "module_current",
15            apex_available: [
16                "//apex_available:platform",
17                "com.android.virt",
18            ],
19        },
20        cpp: {
21            enabled: true,
22        },
23        ndk: {
24            apex_available: [
25                "com.android.virt",
26                "com.android.compos",
27            ],
28        },
29        rust: {
30            enabled: true,
31            apex_available: [
32                "com.android.virt",
33                "com.android.compos",
34            ],
35        },
36    },
37}
38
39aidl_interface {
40    name: "android.system.virtualizationservice_internal",
41    srcs: ["android/system/virtualizationservice_internal/**/*.aidl"],
42    imports: [
43        "android.system.virtualizationcommon",
44        "android.system.virtualizationservice",
45    ],
46    unstable: true,
47    backend: {
48        java: {
49            sdk_version: "module_current",
50            apex_available: [
51                "com.android.virt",
52            ],
53        },
54        rust: {
55            enabled: true,
56            apex_available: [
57                "com.android.virt",
58            ],
59        },
60        ndk: {
61            apex_available: [
62                "com.android.virt",
63            ],
64        },
65    },
66}
67
68aidl_interface {
69    name: "android.system.virtualizationmaintenance",
70    srcs: ["android/system/virtualizationmaintenance/**/*.aidl"],
71    unstable: true,
72    backend: {
73        java: {
74            sdk_version: "module_current",
75            apex_available: [
76                "com.android.virt",
77            ],
78        },
79        rust: {
80            enabled: true,
81            apex_available: [
82                "com.android.virt",
83            ],
84        },
85    },
86}
87
88aidl_interface {
89    name: "android.system.virtualmachineservice",
90    srcs: ["android/system/virtualmachineservice/**/*.aidl"],
91    imports: [
92        "android.hardware.security.secretkeeper-V1",
93        "android.system.virtualizationcommon",
94    ],
95    unstable: true,
96    backend: {
97        java: {
98            enabled: false,
99        },
100        rust: {
101            enabled: true,
102            apex_available: [
103                "com.android.virt",
104                "com.android.compos",
105            ],
106        },
107    },
108}
109
110aidl_interface {
111    name: "android.system.virtualizationcommon",
112    srcs: ["android/system/virtualizationcommon/**/*.aidl"],
113    unstable: true,
114    backend: {
115        java: {
116            sdk_version: "module_current",
117            apex_available: [
118                "com.android.virt",
119                "//apex_available:platform",
120            ],
121        },
122        ndk: {
123            apex_available: [
124                "com.android.virt",
125                "com.android.compos",
126            ],
127        },
128        rust: {
129            enabled: true,
130            apex_available: [
131                "com.android.virt",
132                "com.android.compos",
133            ],
134        },
135    },
136}
137