/packages/modules/Virtualization/tests/testapk/src/java/com/android/microdroid/test/ |
D | MicrodroidTests.java | 158 void runToFinish(VirtualMachine vm) throws VirtualMachineException, InterruptedException { in runToFinish() argument 159 vm.setCallback(mExecutorService, this); in runToFinish() 160 vm.run(); in runToFinish() 164 void forceStop(VirtualMachine vm) { in forceStop() argument 166 vm.clearCallback(); in forceStop() 167 vm.stop(); in forceStop() 175 public void onPayloadStarted(VirtualMachine vm, ParcelFileDescriptor stream) {} in onPayloadStarted() argument 178 public void onPayloadReady(VirtualMachine vm) {} in onPayloadReady() argument 181 public void onPayloadFinished(VirtualMachine vm, int exitCode) {} in onPayloadFinished() argument 184 public void onError(VirtualMachine vm, int errorCode, String message) {} in onError() argument [all …]
|
/packages/modules/Virtualization/virtualizationservice/src/ |
D | aidl.rs | 104 for vm in vms { in dump() 105 writeln!(file, "VM CID: {}", vm.cid).or(Err(StatusCode::UNKNOWN_ERROR))?; in dump() 106 writeln!(file, "\tState: {:?}", vm.vm_state.lock().unwrap()) in dump() 108 writeln!(file, "\tPayload state {:?}", vm.payload_state()) in dump() 110 writeln!(file, "\tProtected: {}", vm.protected).or(Err(StatusCode::UNKNOWN_ERROR))?; in dump() 111 writeln!(file, "\ttemporary_directory: {}", vm.temporary_directory.to_string_lossy()) in dump() 113 writeln!(file, "\trequester_uid: {}", vm.requester_uid) in dump() 115 writeln!(file, "\trequester_sid: {}", vm.requester_sid) in dump() 117 writeln!(file, "\trequester_debug_pid: {}", vm.requester_debug_pid) in dump() 231 .map(|vm| VirtualMachineDebugInfo { in debugListVms() [all …]
|
/packages/modules/Virtualization/javalib/jni/ |
D | android_system_virtualmachine_VirtualMachine.cpp | 36 auto vm = IVirtualMachine::fromBinder(SpAIBinder{AIBinder_fromJavaBinder(env, vmBinder)}); in android_system_virtualmachine_VirtualMachine_connectToVsockServer() local 38 std::tuple args{env, vm.get(), port}; in android_system_virtualmachine_VirtualMachine_connectToVsockServer() 42 auto [env, vm, port] = *static_cast<Args*>(param); in android_system_virtualmachine_VirtualMachine_connectToVsockServer() 45 if (auto status = vm->connectVsock(port, &fd); !status.isOk()) { in android_system_virtualmachine_VirtualMachine_connectToVsockServer() 61 JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* /*reserved*/) { in JNI_OnLoad() argument 63 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
|
/packages/services/Car/service/jni/ |
D | JniLoader.cpp | 23 extern jint initializeCarEvsService(JavaVM* vm); 29 JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* /*reserved*/) { in JNI_OnLoad() argument 31 initializeCarEvsService(vm); in JNI_OnLoad() 36 JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* /*reserved*/) { in JNI_OnUnload() argument 38 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnUnload()
|
/packages/modules/Virtualization/compos/common/ |
D | compos_client.rs | 53 vm: Strong<dyn IVirtualMachine>, field 145 let vm = service in start() localVariable 156 vm.as_binder().link_to_death(&mut death_recipient)?; in start() 163 vm.registerCallback(&callback)?; in start() 165 vm.start()?; in start() 169 Ok(VmInstance { vm, cid }) in start() 189 let mut vsock_factory = VsockFactory::new(&*self.vm); in get_service() 249 vm: &'a dyn IVirtualMachine, field 253 fn new(vm: &'a dyn IVirtualMachine) -> Self { in new() 254 Self { vm } in new() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/ |
D | VpnUtilsTest.java | 35 final VpnManager vm = mock(VpnManager.class); in testIsAlwaysOnVpnSet() local 36 when(vm.getAlwaysOnVpnPackageForUser(0)).thenReturn("com.example.vpn"); in testIsAlwaysOnVpnSet() 37 assertThat(VpnUtils.isAlwaysOnVpnSet(vm, 0)).isTrue(); in testIsAlwaysOnVpnSet() 39 when(vm.getAlwaysOnVpnPackageForUser(0)).thenReturn(null); in testIsAlwaysOnVpnSet() 40 assertThat(VpnUtils.isAlwaysOnVpnSet(vm, 0)).isFalse(); in testIsAlwaysOnVpnSet()
|
/packages/modules/Virtualization/vm/src/ |
D | run.rs | 196 let vm = in run() localVariable 199 let cid = vm.getCid().context("Failed to get CID")?; in run() 204 state_to_str(vm.getState()?) in run() 206 vm.start()?; in run() 207 println!("Started VM, state now {}.", state_to_str(vm.getState()?)); in run() 212 service.debugHoldVmRef(&vm).context("Failed to pass VM to VirtualizationService") in run() 216 wait_for_vm(vm) in run() 221 fn wait_for_vm(vm: Strong<dyn IVirtualMachine>) -> Result<(), Error> { in wait_for_vm() 227 vm.registerCallback(&callback)?; in wait_for_vm() 228 let death_recipient = wait_for_death(&mut vm.as_binder(), dead.clone())?; in wait_for_vm()
|
/packages/services/Car/service/jni/evs/ |
D | CarEvsService.cpp | 133 JavaVM* vm = nullptr; in createServiceHandle() local 134 env->GetJavaVM(&vm); in createServiceHandle() 135 if (vm == nullptr) { in createServiceHandle() 140 return reinterpret_cast<jlong>(new EvsServiceContext(vm, clazz)); in createServiceHandle() 154 jint initializeCarEvsService(JavaVM* vm) { in initializeCarEvsService() argument 156 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in initializeCarEvsService()
|
/packages/modules/Virtualization/javalib/src/android/system/virtualmachine/ |
D | VirtualMachineCallback.java | 101 void onPayloadStarted(@NonNull VirtualMachine vm, @Nullable ParcelFileDescriptor stream); in onPayloadStarted() argument 104 void onPayloadReady(@NonNull VirtualMachine vm); in onPayloadReady() argument 107 void onPayloadFinished(@NonNull VirtualMachine vm, int exitCode); in onPayloadFinished() argument 110 void onError(@NonNull VirtualMachine vm, @ErrorCode int errorCode, @NonNull String message); in onError() argument 113 void onDied(@NonNull VirtualMachine vm, @DeathReason int reason); in onDied() argument
|
D | VirtualMachineManager.java | 87 VirtualMachine vm; in getOrCreate() local 89 vm = get(name); in getOrCreate() 90 if (vm == null) { in getOrCreate() 91 vm = create(name, config); in getOrCreate() 94 return vm; in getOrCreate()
|
D | VirtualMachine.java | 190 VirtualMachine vm = new VirtualMachine(context, name, config); in create() local 193 final File thisVmDir = vm.mConfigFilePath.getParentFile(); in create() 201 try (FileOutputStream output = new FileOutputStream(vm.mConfigFilePath)) { in create() 202 vm.mConfig.serialize(output); in create() 211 vm.mInstanceFilePath.createNewFile(); in create() 222 ParcelFileDescriptor.open(vm.mInstanceFilePath, MODE_READ_WRITE), in create() 231 return vm; in create() 248 VirtualMachine vm = new VirtualMachine(context, name, config); in load() local 253 if (!vm.mInstanceFilePath.exists()) { in load() 257 return vm; in load()
|
/packages/modules/Virtualization/tests/ |
D | vsock_test.cc | 89 sp<IVirtualMachine> vm; in TEST_F() local 90 status = mVirtualizationService->createVm(config, std::nullopt, std::nullopt, &vm); in TEST_F() 94 status = vm->getCid(&cid); in TEST_F() 98 status = vm->start(); in TEST_F() 125 sp<IVirtualMachine> vm; in TEST_F() local 126 auto status = mVirtualizationService->createVm(config, std::nullopt, std::nullopt, &vm); in TEST_F()
|
/packages/providers/MediaProvider/jni/ |
D | jni_init.cpp | 23 int register_android_providers_media_FuseDaemon(JavaVM* vm, JNIEnv* env); 26 extern "C" jint JNI_OnLoad(JavaVM* vm, void* /* reserved */) { in JNI_OnLoad() argument 28 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad() 33 mediaprovider::register_android_providers_media_FuseDaemon(vm, env); in JNI_OnLoad()
|
/packages/services/Car/car-evs-helper-lib/jni/ |
D | CarEvsBufferRenderer.cpp | 75 JNIEXPORT jint JNI_OnLoad(JavaVM* vm, void* /*reserved*/) { in JNI_OnLoad() argument 77 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad() 101 JNIEXPORT void JNI_OnUnload(JavaVM* vm, void* /*reserved*/) { in JNI_OnUnload() argument 103 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnUnload()
|
/packages/modules/Virtualization/demo/java/com/android/microdroid/demo/ |
D | MainActivity.java | 191 VirtualMachine vm, ParcelFileDescriptor stream) { in run() 202 public void onPayloadReady(VirtualMachine vm) { in run() 212 service = vm.connectToVsockServer(ITestService.SERVICE_PORT); in run() 256 public void onPayloadFinished(VirtualMachine vm, int exitCode) { in run() 266 public void onError(VirtualMachine vm, int errorCode, String message) { in run() 277 public void onDied(VirtualMachine vm, @DeathReason int reason) { in run()
|
/packages/modules/Virtualization/microdroid/ |
D | README.md | 139 adb shell /apex/com.android.virt/bin/vm run-app \ 155 adb shell /apex/com.android.virt/bin/vm stop $CID 158 , where `$CID` is the reported CID value. This works only when the `vm` was 160 the console where the `vm run-app` command was invoked. 171 `$CID` should be the CID that `vm` reported upon execution of the `vm run` 173 `adb shell "/apex/com.android.virt/bin/vm list"`. `5555` must be the value.
|
/packages/apps/Nfc/nci/jni/ |
D | NfcJniUtil.h | 93 JavaVM* vm; member 125 ScopedAttach(JavaVM* vm, JNIEnv** env) : vm_(vm) { in ScopedAttach() argument
|
/packages/modules/Virtualization/docs/getting_started/ |
D | index.md | 49 You can spawn your own VMs by passing a JSON config file to the VirtualizationService via the `vm` 64 adb shell "/apex/com.android.virt/bin/vm run /data/local/tmp/vm_config.json" 67 The `vm` command also has other subcommands for debugging; run `/apex/com.android.virt/bin/vm help` 79 adb shell /apex/com.android.virt/bin/vm run-app \
|
/packages/modules/ExtServices/jni/ |
D | ExtServicesJniOnLoad.cpp | 23 extern "C" JNIEXPORT jint JNI_OnLoad(JavaVM *vm, void * /* reserved */) { in JNI_OnLoad() argument 25 if (vm->GetEnv((void **)&env, JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
|
/packages/modules/Connectivity/framework/jni/ |
D | onload.cpp | 24 extern "C" jint JNI_OnLoad(JavaVM* vm, void*) { in JNI_OnLoad() argument 26 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
|
/packages/modules/Connectivity/framework-t/jni/ |
D | onload.cpp | 26 extern "C" jint JNI_OnLoad(JavaVM* vm, void*) { in JNI_OnLoad() argument 28 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
|
/packages/modules/Connectivity/tests/unit/jni/ |
D | test_onload.cpp | 32 extern "C" jint JNI_OnLoad(JavaVM* vm, void* /* reserved */) in JNI_OnLoad() argument 37 if (vm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) { in JNI_OnLoad()
|
/packages/modules/Connectivity/tests/unit/jni/android_net_frameworktests_util/ |
D | onload.cpp | 28 extern "C" jint JNI_OnLoad(JavaVM* vm, void*) { in JNI_OnLoad() argument 30 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
|
/packages/modules/Virtualization/vm/ |
D | Android.bp | 6 name: "vm", 7 crate_name: "vm",
|
/packages/modules/Connectivity/service/jni/com_android_net_module_util/ |
D | onload.cpp | 26 extern "C" jint JNI_OnLoad(JavaVM* vm, void*) { in JNI_OnLoad() argument 28 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
|