IAndroidDebugBridge

public interface IAndroidDebugBridge

com.android.tradefed.device.IAndroidDebugBridge


Interface definition for AndroidDebugBridge methods used in this package.

Exposed so use of AndroidDebugBridge can be mocked out in unit tests.

Summary

Public methods

abstract void addDeviceChangeListener(AndroidDebugBridge.IDeviceChangeListener listener)

Wrapper for AndroidDebugBridge#addDeviceChangeListener(IDeviceChangeListener)

abstract void disconnectBridge()

Wrapper for AndroidDebugBridge#disconnectBridge()

abstract String getAdbVersion(String adbOsLocation)

Returns the adb full version of the adb location provided, or null if anything goes wrong.

abstract IDevice[] getDevices()

Wrapper for AndroidDebugBridge#getDevices().

abstract void init(boolean clientSupport, String adbOsLocation)

Wrapper for AndroidDebugBridge#init(boolean) and AndroidDebugBridge#createBridge(String, boolean)

abstract void removeDeviceChangeListener(AndroidDebugBridge.IDeviceChangeListener listener)

Wrapper for AndroidDebugBridge#removeDeviceChangeListener(IDeviceChangeListener)

abstract void terminate()

Wrapper for AndroidDebugBridge#terminate()

Public methods

addDeviceChangeListener

public abstract void addDeviceChangeListener (AndroidDebugBridge.IDeviceChangeListener listener)

Wrapper for AndroidDebugBridge#addDeviceChangeListener(IDeviceChangeListener)

Parameters
listener AndroidDebugBridge.IDeviceChangeListener

disconnectBridge

public abstract void disconnectBridge ()

Wrapper for AndroidDebugBridge#disconnectBridge()

getAdbVersion

public abstract String getAdbVersion (String adbOsLocation)

Returns the adb full version of the adb location provided, or null if anything goes wrong.

Parameters
adbOsLocation String

Returns
String

getDevices

public abstract IDevice[] getDevices ()

Wrapper for AndroidDebugBridge#getDevices().

Returns
IDevice[]

init

public abstract void init (boolean clientSupport, 
                String adbOsLocation)

Wrapper for AndroidDebugBridge#init(boolean) and AndroidDebugBridge#createBridge(String, boolean)

Parameters
clientSupport boolean

adbOsLocation String

removeDeviceChangeListener

public abstract void removeDeviceChangeListener (AndroidDebugBridge.IDeviceChangeListener listener)

Wrapper for AndroidDebugBridge#removeDeviceChangeListener(IDeviceChangeListener)

Parameters
listener AndroidDebugBridge.IDeviceChangeListener

terminate

public abstract void terminate ()

Wrapper for AndroidDebugBridge#terminate()