本文整理汇总了Java中com.android.ddmlib.AndroidDebugBridge.removeClientChangeListener方法的典型用法代码示例。如果您正苦于以下问题:Java AndroidDebugBridge.removeClientChangeListener方法的具体用法?Java AndroidDebugBridge.removeClientChangeListener怎么用?Java AndroidDebugBridge.removeClientChangeListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.android.ddmlib.AndroidDebugBridge
的用法示例。
在下文中一共展示了AndroidDebugBridge.removeClientChangeListener方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: run
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
@Override
public void run() {
AndroidDebugBridge.addClientChangeListener(this);
myClient.dumpHprof();
synchronized (myEvents) {
myEvent = myEvents.start(System.currentTimeMillis(), MemoryMonitorView.EVENT_HPROF);
}
try {
myResponse.await(1, TimeUnit.MINUTES);
// TODO Handle cases where it fails or times out.
}
catch (InterruptedException e) {
// Interrupted
}
// If the event had not finished, finish it now
synchronized (myEvents) {
if (myEvent != null) {
myEvent.stop(System.currentTimeMillis());
}
}
AndroidDebugBridge.removeClientChangeListener(this);
}
示例3: 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);
}
}
示例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: stop
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
@Override
public void stop() {
super.stop();
myRequestPending = false;
if (myExecutingTask != null) {
AndroidDebugBridge.removeClientChangeListener(this);
}
}
示例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: dispose
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
public void dispose() {
AndroidDebugBridge.removeDebugBridgeChangeListener(this);
AndroidDebugBridge.removeDeviceChangeListener(this);
AndroidDebugBridge.removeClientChangeListener(this);
}
示例9: dispose
import com.android.ddmlib.AndroidDebugBridge; //导入方法依赖的package包/类
public void dispose() {
AndroidDebugBridge.removeClientChangeListener(this);
}