DeviceDescriptor

public class DeviceDescriptor
extends Object

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


Eine Klasse mit Informationen zur Beschreibung eines zu testenden Geräts.

Zusammenfassung

Öffentliche Konstruktoren

DeviceDescriptor()
DeviceDescriptor(DeviceDescriptor d, DeviceAllocationState state)

Wird für die einfache Aktualisierung des Status in ClusterDeviceMonitor verwendet.

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

Wird für die einfache Aktualisierung des Status der Seriennummer für Platzhaltergeräte verwendet.

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)

Öffentliche Methoden

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()

Gibt an, ob das Gerät am Ende der Aufrufung gelöscht wird.

String toString()

Bietet eine Beschreibung mit Seriennummern, Produkt- und Build-ID

Öffentliche Konstruktoren

DeviceDescriptor

public DeviceDescriptor ()

DeviceDescriptor

public DeviceDescriptor (DeviceDescriptor d, 
                DeviceAllocationState state)

Wird für die einfache Aktualisierung des Status in ClusterDeviceMonitor verwendet.

Parameter
d DeviceDescriptor

state DeviceAllocationState

Gerätedeskriptor

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

Parameter
d DeviceDescriptor

preconfiguredIp String

preconfiguredDeviceNumOffset Integer

DeviceDescriptor

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

Wird für die einfache Aktualisierung des Status der Seriennummer für Platzhaltergeräte verwendet.

Parameter
d DeviceDescriptor

serial String

displaySerial String

Gerätedeskriptor

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)

Parameter
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

Gerätedeskriptor

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

Parameter
serial String

isStubDevice boolean

state DeviceAllocationState

product String

productVariant String

sdkVersion String

buildId String

batteryLevel String

Gerätedeskriptor

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)

Parameter
serial String

isStubDevice boolean

state DeviceAllocationState

product String

productVariant String

sdkVersion String

buildId String

batteryLevel String

deviceClass String

macAddress String

simState String

simOperator String

Gerätedeskriptor

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)

Parameter
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

Gerätedeskriptor

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)

Parameter
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

Öffentliche Methoden

Akkustand abrufen

public String getBatteryLevel ()

Returns
String

getBuildId

public String getBuildId ()

Returns
String

getDeviceClass

public String getDeviceClass ()

Returns
String

getDeviceState

public IDevice.DeviceState getDeviceState ()

Returns
IDevice.DeviceState

getDisplaySerial

public String getDisplaySerial ()

Returns
String

getHardwareRevision

public String getHardwareRevision ()

Returns
String

getMacAddress

public String getMacAddress ()

Returns
String

getPreconfiguredDeviceNumOffset

public Integer getPreconfiguredDeviceNumOffset ()

Returns
Integer

getPreconfiguredIp

public String getPreconfiguredIp ()

Returns
String

getProduct

public String getProduct ()

Returns
String

getProductVariant

public String getProductVariant ()

Returns
String

getProperty

public String getProperty (String name)

Parameter
name String

Returns
String

getSdkVersion

public String getSdkVersion ()

Returns
String

getSerial

public String getSerial ()

Returns
String

getSimOperator

public String getSimOperator ()

Returns
String

getSimState

public String getSimState ()

Returns
String

getState

public DeviceAllocationState getState ()

Returns
DeviceAllocationState

getTestDeviceState

public TestDeviceState getTestDeviceState ()

Returns
TestDeviceState

isStubDevice

public boolean isStubDevice ()

Returns
boolean

isTemporary

public boolean isTemporary ()

Gibt an, ob das Gerät am Ende der Aufrufs gelöscht wird.

Returns
boolean

toString

public String toString ()

Bietet eine Beschreibung mit Seriennummern, Produkt- und Build-ID

Returns
String