AndroidDebugBridge.IDeviceChangeListener

public static interface AndroidDebugBridge.IDeviceChangeListener

com.android.tradefed.device.server.AndroidDebugBridge.IDeviceChangeListener


Classes which implement this interface provide methods that deal with IDevice addition, deletion, and changes.

Summary

Public methods

abstract void deviceChanged(IDevice device, int changeMask)

Sent when a device data changed, or when clients are started/terminated on the device.

abstract void deviceConnected(IDevice device)

Sent when the a device is connected to the AndroidDebugBridge.

abstract void deviceDisconnected(IDevice device)

Sent when the a device is connected to the AndroidDebugBridge.

Public methods

deviceChanged

public abstract void deviceChanged (IDevice device, 
                int changeMask)

Sent when a device data changed, or when clients are started/terminated on the device.

This is sent from a non UI thread.

Parameters
device IDevice: the device that was updated.

changeMask int: the mask describing what changed. It can contain any of the following values: IDevice.CHANGE_BUILD_INFO, IDevice.CHANGE_STATE, IDevice.CHANGE_CLIENT_LIST

deviceConnected

public abstract void deviceConnected (IDevice device)

Sent when the a device is connected to the AndroidDebugBridge.

This is sent from a non UI thread.

Parameters
device IDevice: the new device.

deviceDisconnected

public abstract void deviceDisconnected (IDevice device)

Sent when the a device is connected to the AndroidDebugBridge.

This is sent from a non UI thread.

Parameters
device IDevice: the new device.