MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / shutdown

Method shutdown

packages/server/src/android.rs:293–298  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

291 }
292
293 pub fn shutdown(&self, id: &str) -> Result<(), AppError> {
294 let avd_name = avd_from_id(id)?;
295 let serial = self.resolve_serial(&avd_name)?;
296 let _ = self.run_adb(["-s", &serial, "emu", "kill"])?;
297 Ok(())
298 }
299
300 pub fn erase(&self, id: &str) -> Result<(), AppError> {
301 let avd_name = avd_from_id(id)?;

Callers 2

shutdown_simulatorFunction · 0.80
cleanupAndroidFunction · 0.80

Calls 3

avd_from_idFunction · 0.85
resolve_serialMethod · 0.80
run_adbMethod · 0.80

Tested by

no test coverage detected