本文整理汇总了Java中com.android.ddmlib.AndroidDebugBridge.removeDeviceChangeListener方法的典型用法代码示例。如果您正苦于以下问题:Java AndroidDebugBridge.removeDeviceChangeListener方法的具体用法?Java AndroidDebugBridge.removeDeviceChangeListener怎么用?Java AndroidDebugBridge.removeDeviceChangeListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.android.ddmlib.AndroidDebugBridge
的用法示例。
在下文中一共展示了AndroidDebugBridge.removeDeviceChangeListener方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: dispose
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
@Override
public void dispose() {
AndroidDebugBridge.removeClientChangeListener(this);
for (DeviceLogSource deviceLogSource : deviceLogSourcesMap.values()) {
deviceLogSource.getLogProvider().dispose();
}
for (LogSource fileLogSource : fileLogSourcesMap.values()) {
fileLogSource.getLogProvider().dispose();
}
if (myBridge != null) {
AndroidDebugBridge.removeDeviceChangeListener(this);
AndroidDebugBridge.removeDebugBridgeChangeListener(this);
myBridge = null;
}
deviceLogSourcesMap.clear();
}
示例2: stopAdb
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
/**
* This method is executed in a worker thread started in {@link #stop()}
*
* @param osLocation
* @param clientSupport
*/
private static void stopAdb() {
synchronized (INSTANCE) {
INSTANCE.setState(DeviceManagerState.STOPPING);
INSTANCE._deviceThreadPool.shutdown();
INSTANCE.removeAllDevices();
// LOG.trace("Devices removed");
AndroidDebugBridge.removeClientChangeListener(INSTANCE);
AndroidDebugBridge.removeDebugBridgeChangeListener(INSTANCE);
AndroidDebugBridge.removeDeviceChangeListener(INSTANCE);
AndroidDebugBridge.disconnectBridge();
// AndroidDebugBridge.terminate();
INSTANCE.setState(DeviceManagerState.STOPPED);
}
}
示例3: shutdown
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
/**
* Shutdown the AndroidDebugBridge and clean up all connected devices.
*/
public void shutdown() {
log.info("Notifying device listener about shutdown");
for (HardwareDeviceListener listener : deviceListeners) {
for (AndroidDevice device : connectedDevices.values()) {
listener.onDeviceDisconnected(connectedDevices.get(device));
}
}
log.info("Removing Device Manager listener from ADB");
AndroidDebugBridge.removeDeviceChangeListener(this);
if (!shouldKeepAdbAlive) {
AndroidDebugBridge.disconnectBridge();
}
AndroidDebugBridge.terminate();
log.info("stopping Device Manager");
// TODO add thread interrupt and join handling
}
示例4: dispose
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
@Override
protected void dispose() {
super.dispose();
AndroidDebugBridge.removeDeviceChangeListener(myDeviceChangeListener);
AndroidDebugBridge.removeClientChangeListener(myClientChangeListener);
}
示例5: dispose
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
@Override
public void dispose() {
if (myBridge != null) {
AndroidDebugBridge.removeDeviceChangeListener(this);
AndroidDebugBridge.removeClientChangeListener(this);
AndroidDebugBridge.removeDebugBridgeChangeListener(this);
myBridge = null;
}
}
示例6: run
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
private void run() {
init();
loop();
onRun();
receiverThread.interrupt();
AndroidDebugBridge.removeDeviceChangeListener(deviceChangeListener);
}
示例7: exec
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
/**
* Executes the {@link Runnable} in the UI thread.
* @param runnable the runnable to execute.
*/
private void exec(Runnable runnable) {
try {
Display display = mTree.getDisplay();
display.asyncExec(runnable);
} catch (SWTException e) {
// tree is disposed, we need to do something. lets remove ourselves from the listener.
AndroidDebugBridge.removeDebugBridgeChangeListener(this);
AndroidDebugBridge.removeDeviceChangeListener(this);
AndroidDebugBridge.removeClientChangeListener(this);
}
}
示例8: disconnect
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
/**
* Shutdown the AndroidDebugBridge and clean up all connected devices.
*/
public void disconnect() {
Iterator<TestDevice> iterator = devices.iterator();
while (iterator.hasNext()) {
TestDevice device = iterator.next();
device.dispose();
}
AndroidDebugBridge.removeDeviceChangeListener(this);
AndroidDebugBridge.terminate();
}
示例9: removeNotify
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
@Override
protected void removeNotify() {
AndroidDebugBridge.removeDeviceChangeListener(this);
this.setKeys(new ClientHolder[0]);
}
示例10: removeNotify
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
@Override
protected void removeNotify() {
AndroidDebugBridge.removeDeviceChangeListener(this);
this.setKeys(new DeviceHolder[0]);
}
示例11: endReceiverThread
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
private void endReceiverThread() {
receiverThread.interrupt();
AndroidDebugBridge.removeDeviceChangeListener(deviceChangeListener);
}
示例12: dispose
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
public void dispose() {
AndroidDebugBridge.removeDebugBridgeChangeListener(this);
AndroidDebugBridge.removeDeviceChangeListener(this);
AndroidDebugBridge.removeClientChangeListener(this);
}
示例13: stopListenForDevices
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
public static void stopListenForDevices(AndroidDebugBridge.IDeviceChangeListener listener) {
AndroidDebugBridge.removeDeviceChangeListener(listener);
}
示例14: windowClosing
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
@Override
public void windowClosing(WindowEvent e) {
AndroidDebugBridge.removeDeviceChangeListener(this);
mMainFrame.onAppExit();
}
示例15: detach
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
/**
* Detach all listeners of this support class.
*/
public void detach() {
AndroidDebugBridge.removeDeviceChangeListener(this);
reader.removePropertyChangeListener(this);
deviceLookup.removeLookupListener(this);
return;
}