IAndroidDebugBridge
public
interface
IAndroidDebugBridge
com.android.tradefed.device.IAndroidDebugBridge |
Interface definition for AndroidDebugBridge
methods used in this
package.
AndroidDebugBridge
can be mocked out in unit tests.
Summary
Public methods | |
---|---|
abstract
void
|
addDeviceChangeListener(AndroidDebugBridge.IDeviceChangeListener listener)
Wrapper for |
abstract
void
|
disconnectBridge()
Wrapper for |
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 |
abstract
void
|
init(boolean clientSupport, String adbOsLocation)
Wrapper for |
abstract
void
|
removeDeviceChangeListener(AndroidDebugBridge.IDeviceChangeListener listener)
Wrapper for |
abstract
void
|
terminate()
Wrapper for |
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 |