DeviceDescriptor

public class DeviceDescriptor
extends Object

java.lang.Object
   ↳ com.android.tradefed.command.remote.DeviceDescriptor


Classe contenant des informations décrivant un appareil en cours de test.

Résumé

Constructeurs publics

DeviceDescriptor()
DeviceDescriptor(DeviceDescriptor d, DeviceAllocationState state)

Permet de mettre à jour facilement l'état dans ClusterDeviceMonitor.

DeviceDescriptor(DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)
DeviceDescriptor(DeviceDescriptor d, String serial, String displaySerial)

Permet de mettre à jour facilement l'état de la série pour les appareils d'espace réservé.

DeviceDescriptor(String serial, boolean isStubDevice, IDevice.DeviceState deviceState, DeviceAllocationState state, String product, String productVariant, String sdkVersion, String buildId, String batteryLevel, String deviceClass, String macAddress, String simState, String simOperator, IDevice idevice)
DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, String product, String productVariant, String sdkVersion, String buildId, String batteryLevel)
DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, String product, String productVariant, String sdkVersion, String buildId, String batteryLevel, String deviceClass, String macAddress, String simState, String simOperator)
DeviceDescriptor(String serial, boolean isStubDevice, DeviceAllocationState state, String product, String productVariant, String sdkVersion, String buildId, String batteryLevel, String deviceClass, String macAddress, String simState, String simOperator, IDevice idevice)
DeviceDescriptor(String serial, String displaySerial, boolean isStubDevice, IDevice.DeviceState deviceState, DeviceAllocationState state, TestDeviceState testDeviceState, String product, String productVariant, String sdkVersion, String buildId, String hardwareRevision, String batteryLevel, String deviceClass, String macAddress, String simState, String simOperator, boolean isTemporary, String preconfiguredIp, Integer preconfiguredDeviceNumOffset, IDevice idevice)

Méthodes publiques

String getBatteryLevel()
String getBuildId()
String getDeviceClass()
IDevice.DeviceState getDeviceState()
String getDisplaySerial()
String getHardwareRevision()
String getMacAddress()
Integer getPreconfiguredDeviceNumOffset()
String getPreconfiguredIp()
String getProduct()
String getProductVariant()
String getProperty(String name)
String getSdkVersion()
String getSerial()
String getSimOperator()
String getSimState()
DeviceAllocationState getState()
TestDeviceState getTestDeviceState()
boolean isStubDevice()
boolean isTemporary()

Indique si l'appareil sera supprimé à la fin de l'appel.

String toString()

Fournit une description avec les numéros de série, le produit et l'ID de build

Constructeurs publics

Descripteur d'appareil

public DeviceDescriptor ()

DeviceDescriptor

public DeviceDescriptor (DeviceDescriptor d, 
                DeviceAllocationState state)

Permet de mettre à jour facilement l'état dans ClusterDeviceMonitor.

Paramètres
d DeviceDescriptor

state DeviceAllocationState

DeviceDescriptor

public DeviceDescriptor (DeviceDescriptor d, 
                String preconfiguredIp, 
                Integer preconfiguredDeviceNumOffset)

Paramètres
d DeviceDescriptor

preconfiguredIp String

preconfiguredDeviceNumOffset Integer

DeviceDescriptor

public DeviceDescriptor (DeviceDescriptor d, 
                String serial, 
                String displaySerial)

Permet de mettre à jour facilement l'état de la série pour les appareils d'espace réservé.

Paramètres
d DeviceDescriptor

serial String

displaySerial String

DeviceDescriptor

public DeviceDescriptor (String serial, 
                boolean isStubDevice, 
                IDevice.DeviceState deviceState, 
                DeviceAllocationState state, 
                String product, 
                String productVariant, 
                String sdkVersion, 
                String buildId, 
                String batteryLevel, 
                String deviceClass, 
                String macAddress, 
                String simState, 
                String simOperator, 
                IDevice idevice)

Paramètres
serial String

isStubDevice boolean

deviceState IDevice.DeviceState

state DeviceAllocationState

product String

productVariant String

sdkVersion String

buildId String

batteryLevel String

deviceClass String

macAddress String

simState String

simOperator String

idevice IDevice

DeviceDescriptor

public DeviceDescriptor (String serial, 
                boolean isStubDevice, 
                DeviceAllocationState state, 
                String product, 
                String productVariant, 
                String sdkVersion, 
                String buildId, 
                String batteryLevel)

Paramètres
serial String

isStubDevice boolean

state DeviceAllocationState

product String

productVariant String

sdkVersion String

buildId String

batteryLevel String

DeviceDescriptor

public DeviceDescriptor (String serial, 
                boolean isStubDevice, 
                DeviceAllocationState state, 
                String product, 
                String productVariant, 
                String sdkVersion, 
                String buildId, 
                String batteryLevel, 
                String deviceClass, 
                String macAddress, 
                String simState, 
                String simOperator)

Paramètres
serial String

isStubDevice boolean

state DeviceAllocationState

product String

productVariant String

sdkVersion String

buildId String

batteryLevel String

deviceClass String

macAddress String

simState String

simOperator String

DeviceDescriptor

public DeviceDescriptor (String serial, 
                boolean isStubDevice, 
                DeviceAllocationState state, 
                String product, 
                String productVariant, 
                String sdkVersion, 
                String buildId, 
                String batteryLevel, 
                String deviceClass, 
                String macAddress, 
                String simState, 
                String simOperator, 
                IDevice idevice)

Paramètres
serial String

isStubDevice boolean

state DeviceAllocationState

product String

productVariant String

sdkVersion String

buildId String

batteryLevel String

deviceClass String

macAddress String

simState String

simOperator String

idevice IDevice

DeviceDescriptor

public DeviceDescriptor (String serial, 
                String displaySerial, 
                boolean isStubDevice, 
                IDevice.DeviceState deviceState, 
                DeviceAllocationState state, 
                TestDeviceState testDeviceState, 
                String product, 
                String productVariant, 
                String sdkVersion, 
                String buildId, 
                String hardwareRevision, 
                String batteryLevel, 
                String deviceClass, 
                String macAddress, 
                String simState, 
                String simOperator, 
                boolean isTemporary, 
                String preconfiguredIp, 
                Integer preconfiguredDeviceNumOffset, 
                IDevice idevice)

Paramètres
serial String

displaySerial String

isStubDevice boolean

deviceState IDevice.DeviceState

state DeviceAllocationState

testDeviceState TestDeviceState

product String

productVariant String

sdkVersion String

buildId String

hardwareRevision String

batteryLevel String

deviceClass String

macAddress String

simState String

simOperator String

isTemporary boolean

preconfiguredIp String

preconfiguredDeviceNumOffset Integer

idevice IDevice

Méthodes publiques

getBatteryLevel

public String getBatteryLevel ()

Renvoie
String

getBuildId

public String getBuildId ()

Renvoie
String

getDeviceClass

public String getDeviceClass ()

Renvoie
String

getDeviceState

public IDevice.DeviceState getDeviceState ()

Renvoie
IDevice.DeviceState

getDisplaySerial

public String getDisplaySerial ()

Renvoie
String

getHardwareRevision

public String getHardwareRevision ()

Renvoie
String

getMacAddress

public String getMacAddress ()

Renvoie
String

getPreconfiguredDeviceNumOffset

public Integer getPreconfiguredDeviceNumOffset ()

Renvoie
Integer

getPreconfigureIp

public String getPreconfiguredIp ()

Renvoie
String

getProduct

public String getProduct ()

Renvoie
String

getProductVariant

public String getProductVariant ()

Renvoie
String

getProperty

public String getProperty (String name)

Paramètres
name String

Renvoie
String

getSdkVersion

public String getSdkVersion ()

Renvoie
String

getSerial

public String getSerial ()

Renvoie
String

getSimOperator

public String getSimOperator ()

Renvoie
String

getSimState

public String getSimState ()

Renvoie
String

getState

public DeviceAllocationState getState ()

Renvoie
DeviceAllocationState

getTestDeviceState

public TestDeviceState getTestDeviceState ()

Renvoie
TestDeviceState

isStubDevice

public boolean isStubDevice ()

Renvoie
boolean

isTemporary

public boolean isTemporary ()

Indique si l'appareil sera supprimé à la fin de l'appel.

Renvoie
boolean

toString

public String toString ()

Fournit une description avec les numéros de série, le produit et l'ID de build

Renvoie
String