AndroidDebugBridgeWrapper

class AndroidDebugBridgeWrapper
extends Object implements IAndroidDebugBridge

java.lang.Object
   ↳ com.android.tradefed.device.AndroidDebugBridgeWrapper


A wrapper that directs IAndroidDebugBridge calls to the 'real' AndroidDebugBridge.

Summary

Public methods

void addDeviceChangeListener(AndroidDebugBridge.IDeviceChangeListener listener)

Wrapper for AndroidDebugBridge.addDeviceChangeListener(IDeviceChangeListener)

void disconnectBridge()

Wrapper for AndroidDebugBridge.disconnectBridge()

String getAdbVersion(String adbOsLocation)

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

IDevice[] getDevices()

Wrapper for AndroidDebugBridge.getDevices().

void init(boolean clientSupport, String adbOsLocation)

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

void removeDeviceChangeListener(AndroidDebugBridge.IDeviceChangeListener listener)

Wrapper for AndroidDebugBridge.removeDeviceChangeListener(IDeviceChangeListener)

void terminate()

Wrapper for AndroidDebugBridge.terminate()

Public methods

addDeviceChangeListener

public void addDeviceChangeListener (AndroidDebugBridge.IDeviceChangeListener listener)

Wrapper for AndroidDebugBridge.addDeviceChangeListener(IDeviceChangeListener)

Parameters
listener AndroidDebugBridge.IDeviceChangeListener

disconnectBridge

public void disconnectBridge ()

Wrapper for AndroidDebugBridge.disconnectBridge()

getAdbVersion

public 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 IDevice[] getDevices ()

Wrapper for AndroidDebugBridge.getDevices().

Returns
IDevice[]

init

public void init (boolean clientSupport, 
                String adbOsLocation)

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

Parameters
clientSupport boolean

adbOsLocation String

removeDeviceChangeListener

public void removeDeviceChangeListener (AndroidDebugBridge.IDeviceChangeListener listener)

Wrapper for AndroidDebugBridge.removeDeviceChangeListener(IDeviceChangeListener)

Parameters
listener AndroidDebugBridge.IDeviceChangeListener

terminate

public void terminate ()

Wrapper for AndroidDebugBridge.terminate()