Home
last modified time | relevance | path

Searched refs:VirtualMachine (Results 1 – 18 of 18) sorted by relevance

/packages/modules/Virtualization/java/framework/src/android/system/virtualmachine/
DVirtualMachineManager.java84 private final Map<String, WeakReference<VirtualMachine>> mVmsByName = new ArrayMap<>();
224 @RequiresPermission(VirtualMachine.MANAGE_VIRTUAL_MACHINE_PERMISSION)
225 public VirtualMachine create(@NonNull String name, @NonNull VirtualMachineConfig config) in create()
234 private VirtualMachine createLocked(@NonNull String name, @NonNull VirtualMachineConfig config) in createLocked()
236 VirtualMachine vm = VirtualMachine.create(mContext, name, config); in createLocked()
259 public VirtualMachine get(@NonNull String name) throws VirtualMachineException { in get()
267 private VirtualMachine getLocked(@NonNull String name) throws VirtualMachineException { in getLocked()
268 VirtualMachine vm = getVmByName(name); in getLocked()
271 vm = VirtualMachine.load(mContext, name); in getLocked()
294 public VirtualMachine importFromDescriptor( in importFromDescriptor()
[all …]
DVirtualMachineCallback.java141 void onPayloadStarted(@NonNull VirtualMachine vm); in onPayloadStarted()
147 void onPayloadReady(@NonNull VirtualMachine vm); in onPayloadReady()
150 void onPayloadFinished(@NonNull VirtualMachine vm, int exitCode); in onPayloadFinished()
153 void onError(@NonNull VirtualMachine vm, @ErrorCode int errorCode, @NonNull String message); in onError()
156 void onStopped(@NonNull VirtualMachine vm, @StopReason int reason); in onStopped()
DVirtualMachine.java143 public class VirtualMachine implements AutoCloseable { class
415 private VirtualMachine( in VirtualMachine() method in VirtualMachine
466 static VirtualMachine fromDescriptor( in fromDescriptor()
473 VirtualMachine vm; in fromDescriptor()
476 vm = new VirtualMachine(context, name, config, VirtualizationService.getInstance()); in fromDescriptor()
518 static VirtualMachine create( in create()
524 VirtualMachine vm = in create()
525 new VirtualMachine(context, name, config, VirtualizationService.getInstance()); in create()
601 static VirtualMachine load(@NonNull Context context, @NonNull String name) in load()
610 VirtualMachine vm = in load()
[all …]
DVirtualMachineConfig.java1019 @RequiresPermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION)
1033 @RequiresPermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION)
1258 @RequiresPermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION)
1275 @RequiresPermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION)
1290 VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION,
/packages/modules/Virtualization/tests/testapk/src/java/com/android/microdroid/test/
DMicrodroidTests.java18 import static android.system.virtualmachine.VirtualMachine.STATUS_DELETED;
19 import static android.system.virtualmachine.VirtualMachine.STATUS_RUNNING;
20 import static android.system.virtualmachine.VirtualMachine.STATUS_STOPPED;
55 import android.system.virtualmachine.VirtualMachine;
155 grantPermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION); in setup()
162 revokePermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION); in setup()
168 revokePermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION); in tearDown()
188 VirtualMachine vm = forceCreateNewVirtualMachine("test_vm", config); in createAndConnectToVmHelper()
236 VirtualMachine vm = in vmAttestationWhenRemoteAttestationIsNotSupported()
262 VirtualMachine vm = in vmAttestationWithVendorPartitionWhenSupported()
[all …]
/packages/modules/Virtualization/demo/java/com/android/microdroid/demo/
DMainActivity.java23 import android.system.virtualmachine.VirtualMachine;
75 if (status != null && status == VirtualMachine.STATUS_RUNNING) { in onCreate()
90 if (status == VirtualMachine.STATUS_RUNNING) { in onCreate()
149 private VirtualMachine mVirtualMachine;
158 mStatus.setValue(VirtualMachine.STATUS_DELETED); in VirtualMachineModel()
172 public void onPayloadStarted(VirtualMachine vm) {} in run()
175 public void onPayloadReady(VirtualMachine vm) { in run()
186 private void testVmService(VirtualMachine vm) { in run()
217 public void onPayloadFinished(VirtualMachine vm, int exitCode) { in run()
227 public void onError(VirtualMachine vm, int errorCode, String message) { in run()
[all …]
/packages/modules/Virtualization/java/framework/api/
Dsystem-current.txt4 public class VirtualMachine implements java.lang.AutoCloseable {
7 …e(from=android.system.virtualmachine.VirtualMachine.MIN_VSOCK_PORT, to=android.system.virtualmachi…
8 …e(from=android.system.virtualmachine.VirtualMachine.MIN_VSOCK_PORT, to=android.system.virtualmachi…
14 …method @RequiresPermission(android.system.virtualmachine.VirtualMachine.MANAGE_VIRTUAL_MACHINE_PER…
29 …method public void onError(@NonNull android.system.virtualmachine.VirtualMachine, int, @NonNull St…
30 … method public void onPayloadFinished(@NonNull android.system.virtualmachine.VirtualMachine, int);
31 method public void onPayloadReady(@NonNull android.system.virtualmachine.VirtualMachine);
32 method public void onPayloadStarted(@NonNull android.system.virtualmachine.VirtualMachine);
33 method public void onStopped(@NonNull android.system.virtualmachine.VirtualMachine, int);
99 …tem.virtualmachine.VirtualMachine.MANAGE_VIRTUAL_MACHINE_PERMISSION) @WorkerThread public android.…
[all …]
Dtest-current.txt4 public class VirtualMachine implements java.lang.AutoCloseable {
5 ….avf_v_test_apis") @RequiresPermission(android.system.virtualmachine.VirtualMachine.USE_CUSTOM_VIR…
21 …method @NonNull @RequiresPermission(allOf={android.system.virtualmachine.VirtualMachine.USE_CUSTOM…
22 …st_apis") @NonNull @RequiresPermission(android.system.virtualmachine.VirtualMachine.USE_CUSTOM_VIR…
23 …method @NonNull @RequiresPermission(android.system.virtualmachine.VirtualMachine.USE_CUSTOM_VIRTUA…
24 …st_apis") @NonNull @RequiresPermission(android.system.virtualmachine.VirtualMachine.USE_CUSTOM_VIR…
30 ….avf_v_test_apis") @RequiresPermission(android.system.virtualmachine.VirtualMachine.MANAGE_VIRTUAL…
31 ….avf_v_test_apis") @RequiresPermission(android.system.virtualmachine.VirtualMachine.MANAGE_VIRTUAL…
32 ….avf_v_test_apis") @RequiresPermission(android.system.virtualmachine.VirtualMachine.MANAGE_VIRTUAL…
/packages/modules/Virtualization/tests/helper/src/java/com/android/microdroid/test/device/
DMicrodroidDeviceTestBase.java32 import android.system.virtualmachine.VirtualMachine;
161 public VirtualMachine forceCreateNewVirtualMachine(String name, VirtualMachineConfig config) in forceCreateNewVirtualMachine()
300 public void runToFinish(String logTag, VirtualMachine vm) in runToFinish()
340 protected void forceStop(VirtualMachine vm) { in forceStop()
349 public void onPayloadStarted(VirtualMachine vm) {} in onPayloadStarted()
352 public void onPayloadReady(VirtualMachine vm) {} in onPayloadReady()
355 public void onPayloadFinished(VirtualMachine vm, int exitCode) {} in onPayloadFinished()
358 public void onError(VirtualMachine vm, int errorCode, String message) {} in onError()
362 public void onStopped(VirtualMachine vm, int reason) { in onStopped()
474 VirtualMachine vm = getVirtualMachineManager().get(vmName); in tryBootVm()
[all …]
/packages/modules/Virtualization/tests/benchmark/src/java/com/android/microdroid/benchmark/
DBenchmarkVmListener.java22 import android.system.virtualmachine.VirtualMachine;
40 void onPayloadReady(VirtualMachine vm, IBenchmarkService benchmarkService) in onPayloadReady()
51 public final void onPayloadReady(VirtualMachine vm) { in onPayloadReady()
68 public void onError(VirtualMachine vm, int errorCode, String message) { in onError()
77 public void runToFinish(String logTag, VirtualMachine vm) in runToFinish()
DMicrodroidBenchmarks.java37 import android.system.virtualmachine.VirtualMachine;
142 grantPermission(VirtualMachine.MANAGE_VIRTUAL_MACHINE_PERMISSION); in setup()
143 grantPermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION); in setup()
356 VirtualMachine vm = forceCreateNewVirtualMachine(vmName, config); in testVsockTransferFromHostToVM()
387 VirtualMachine vm = forceCreateNewVirtualMachine(vmName, config); in testVirtioBlkReadRate()
416 public void onPayloadReady(VirtualMachine vm, IBenchmarkService benchmarkService) in onPayloadReady()
529 VirtualMachine vm = forceCreateNewVirtualMachine(vmName, config); in testMemoryUsage()
592 public void onPayloadReady(VirtualMachine vm, IBenchmarkService service) in onPayloadReady()
615 VirtualMachine vm = forceCreateNewVirtualMachine(vmName, config); in testMemoryReclaim()
662 public void onPayloadReady(VirtualMachine vm, IBenchmarkService service) in onPayloadReady()
[all …]
/packages/modules/Virtualization/tests/vmshareapp/src/java/com/android/microdroid/test/sharevm/
DVmShareServiceImpl.java23 import android.system.virtualmachine.VirtualMachine;
61 private VirtualMachine mVirtualMachine;
114 public void onPayloadStarted(VirtualMachine vm) { in startVm()
119 public void onPayloadReady(VirtualMachine vm) { in startVm()
124 public void onPayloadFinished(VirtualMachine vm, int exitCode) { in startVm()
129 public void onError(VirtualMachine vm, int errorCode, String message) { in startVm()
135 public void onStopped(VirtualMachine vm, int reason) { in startVm()
/packages/modules/Virtualization/service_vm/test_apk/src/java/com/android/virt/vm_attestation/testapp/
DVmAttestationTests.java23 import android.system.virtualmachine.VirtualMachine;
60 grantPermission(VirtualMachine.MANAGE_VIRTUAL_MACHINE_PERMISSION); in setup()
61 grantPermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION); in setup()
81 VirtualMachine vm = forceCreateNewVirtualMachine("attestation_client", config); in requestingAttestationSucceeds()
89 public void onPayloadReady(VirtualMachine vm) { in requestingAttestationSucceeds()
/packages/modules/Virtualization/service_vm/test_apk/src/java/com/android/virt/rkpd/vm_attestation/testapp/
DRkpdVmAttestationTest.java27 import android.system.virtualmachine.VirtualMachine;
97 revokePermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION); in setUp()
102 grantPermission(VirtualMachine.USE_CUSTOM_VIRTUAL_MACHINE_PERMISSION); in setUp()
116 VirtualMachine vm = forceCreateNewVirtualMachine("attestation_with_rkpd_client", config); in usingProvisionedKeyForVmAttestationSucceeds()
/packages/modules/Virtualization/java/framework/
DREADME.md75 [`VirtualMachine`](src/android/system/virtualmachine/VirtualMachine.java)
91 VirtualMachine vm = vmm.getOrCreate("my vm", config);
153 the `VirtualMachine` object. This will return one of the following values:
164 [`VirtualMachine`](src/android/system/virtualmachine/VirtualMachine.java) can
203 [`VirtualMachine`](src/android/system/virtualmachine/VirtualMachine.java).
246 void onPayloadReady(VirtualMachine vm) {
265 vsock port, and the VirtualMachine class provides a way to connect to the VM and
289 void onPayloadReady(VirtualMachine vm) {
299 [`VirtualMachine`](src/android/system/virtualmachine/VirtualMachine.java)
355 [`VirtualMachine`](src/android/system/virtualmachine/VirtualMachine.java)
/packages/modules/Virtualization/vmlauncher_app/java/com/android/virtualization/vmlauncher/
DMainActivity.java30 import android.system.virtualmachine.VirtualMachine;
77 private VirtualMachine mVirtualMachine;
236 public void onPayloadStarted(VirtualMachine vm) { in onCreate()
241 public void onPayloadReady(VirtualMachine vm) { in onCreate()
251 public void onPayloadFinished(VirtualMachine vm, int exitCode) { in onCreate()
261 public void onError(VirtualMachine vm, int errorCode, String message) { in onCreate()
270 public void onStopped(VirtualMachine vm, int reason) { in onCreate()
/packages/modules/Virtualization/tests/testapk_no_internet_perm/src/java/com/android/microdroid/test/
DMicrodroidTestAppNoInternetPerm.java23 import android.system.virtualmachine.VirtualMachine;
65 VirtualMachine vm = in configuringNetworkSupportedRequiresInternetPermission()
/packages/modules/Virtualization/virtualizationmanager/src/
Daidl.rs628 Ok(VirtualMachine::create(instance)) in create_vm_internal()
1168 struct VirtualMachine { struct
1172 impl VirtualMachine { argument
1174 BnVirtualMachine::new_binder(VirtualMachine { instance }, BinderFeatures::default()) in create()
1178 impl Interface for VirtualMachine {} implementation
1180 impl IVirtualMachine for VirtualMachine { implementation
1245 impl Drop for VirtualMachine { implementation