AdbDevice

public final class AdbDevice
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.server.AdbDevice


Holds the state of a device as reported by the "adb devices -l" command.

Summary

Public constructors

AdbDevice(String serial, IDevice.DeviceState state)

Public methods

boolean equals(Object o)
String getSerial()
IDevice.DeviceState getState()
int hashCode()
static AdbDevice parseAdbLine(String line)

Parse a single line returned from "adb devices -l" as an AdbDevice or null if the line doesn't match the expected format.

Public constructors

AdbDevice

public AdbDevice (String serial, 
                IDevice.DeviceState state)

Parameters
serial String

state IDevice.DeviceState

Public methods

equals

public boolean equals (Object o)

Parameters
o Object

Returns
boolean

getSerial

public String getSerial ()

Returns
String

getState

public IDevice.DeviceState getState ()

Returns
IDevice.DeviceState

hashCode

public int hashCode ()

Returns
int

parseAdbLine

public static AdbDevice parseAdbLine (String line)

Parse a single line returned from "adb devices -l" as an AdbDevice or null if the line doesn't match the expected format.

Parameters
line String

Returns
AdbDevice