/** * Terminates the ddm library. This must be called upon application termination. */ public static synchronized void terminate() { // kill the monitoring services if (sThis != null && sThis.mDeviceMonitor != null) { sThis.mDeviceMonitor.stop(); sThis.mDeviceMonitor = null; } sBridgeListeners.clear(); sDeviceListeners.clear(); sInitialized = false; }
/** * Kills the debug bridge, and the adb host server. * @return true if success */ boolean stop() { // if we haven't started we return false; if (mStarted == false) { return false; } // kill the monitoring services mDeviceMonitor.stop(); mDeviceMonitor = null; if (stopAdb() == false) { return false; } mStarted = false; return true; }
/** * Kills the debug bridge, and the adb host server. * @return true if success */ boolean stop() { // if we haven't started we return false; if (!mStarted) { return false; } // kill the monitoring services if (mDeviceMonitor != null) { mDeviceMonitor.stop(); mDeviceMonitor = null; } if (!stopAdb()) { return false; } mStarted = false; return true; }
/** * Kills the debug bridge, and the adb host server. * @return true if success */ boolean stop() { // if we haven't started we return false; if (!mStarted) { return false; } // kill the monitoring services if (mDeviceMonitor != null) { mDeviceMonitor.stop(); mDeviceMonitor = null; } if (!stopAdb()) { return false; } mStarted = false; return true; }
/** * Terminates the ddm library. This must be called upon application termination. */ public static synchronized void terminate() { // kill the monitoring services if (sThis != null && sThis.mDeviceMonitor != null) { sThis.mDeviceMonitor.stop(); sThis.mDeviceMonitor = null; } MonitorThread monitorThread = MonitorThread.getInstance(); if (monitorThread != null) { monitorThread.quit(); } sInitialized = false; }
/** * Terminates the ddm library. This must be called upon application termination. */ public static synchronized void terminate() { // kill the monitoring services if (sThis != null && sThis.mDeviceMonitor != null) { sThis.mDeviceMonitor.stop(); sThis.mDeviceMonitor = null; } MonitorThread monitorThread = MonitorThread.getInstance(); if (monitorThread != null) { monitorThread.quit(); } sInitialized = false; }