Home
last modified time | relevance | path

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

/tools/tradefederation/core/src/com/android/tradefed/device/
DDeviceManager.java809 Process emulatorProcess = ((IManagedTestDevice) device).getEmulatorProcess(); in killEmulator() local
810 if (emulatorProcess != null) { in killEmulator()
811 emulatorProcess.destroy(); in killEmulator()
812 if (emulatorProcess.isAlive()) { in killEmulator()
815 forceKillProcess(emulatorProcess, device.getSerialNumber()); in killEmulator()
831 private void forceKillProcess(Process emulatorProcess, String emulatorSerial) { in forceKillProcess() argument
832 if (emulatorProcess.getClass().getName().equals("java.lang.UNIXProcess")) { in forceKillProcess()
835 Field f = emulatorProcess.getClass().getDeclaredField("pid"); in forceKillProcess()
837 Integer pid = (Integer)f.get(emulatorProcess); in forceKillProcess()