IAdbDeviceChangeListener

public interface IAdbDeviceChangeListener

com.android.tradefed.device.IAdbDeviceChangeListener


Interface deal with ERROR(/IDevice) addition, deletion, and changes.

Summary

Public methods

abstract void deviceChanged(String serial, String newState)

Called when a previously known device's state has changed.

abstract void deviceConnected(String serial, String state)

Called when a new device is detected for the first time.

abstract void deviceDisconnected(String serial)

Called when a device is no longer reported by the tracking command.

Public methods

deviceChanged

public abstract void deviceChanged (String serial, 
                String newState)

Called when a previously known device's state has changed.

Parameters
serial String: The device serial number.

newState String: The new state of the device.

deviceConnected

public abstract void deviceConnected (String serial, 
                String state)

Called when a new device is detected for the first time.

Parameters
serial String: The device serial number.

state String: The current state of the device (e.g., "device", "offline", "unauthorized").

deviceDisconnected

public abstract void deviceDisconnected (String serial)

Called when a device is no longer reported by the tracking command.

Parameters
serial String: The device serial number that has disconnected.