AdbDevice

public final class AdbDevice
extends Object

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


Contient l'état d'un appareil tel qu'indiqué par la commande "adb devices -l".

Résumé

Constructeurs publics

AdbDevice(String serial, IDevice.DeviceState state)

Méthodes publiques

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

Analyse une seule ligne renvoyée par "adb devices -l" en tant qu'AdbDevice ou null si la ligne ne correspond pas au format attendu.

Constructeurs publics

AdbDevice

public AdbDevice (String serial, 
                IDevice.DeviceState state)

Paramètres
serial String

state IDevice.DeviceState

Méthodes publiques

égal à

public boolean equals (Object o)

Paramètres
o Object

Renvoie
boolean

getSerial

public String getSerial ()

Renvoie
String

getState

public IDevice.DeviceState getState ()

Renvoie
IDevice.DeviceState

hashCode

public int hashCode ()

Renvoie
int

parseAdbLine

public static AdbDevice parseAdbLine (String line)

Analyse une seule ligne renvoyée par "adb devices -l" en tant qu'AdbDevice ou null si la ligne ne correspond pas au format attendu.

Paramètres
line String

Renvoie
AdbDevice