Gerätebeschreibung

public class DeviceDescriptor
extends Object

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


Eine Klasse, die Informationen enthält, die ein zu testendes Gerät beschreiben.

Zusammenfassung

Öffentliche Bauträger

DeviceDescriptor ()
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, 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, 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)
DeviceDescriptor ( DeviceDescriptor d, DeviceAllocationState state)

Wird zur einfachen Statusaktualisierung in ClusterDeviceMonitor verwendet.

DeviceDescriptor ( DeviceDescriptor d, String serial, String displaySerial)

Wird zur einfachen Statusaktualisierung der Seriennummer für Platzhaltergeräte verwendet.

DeviceDescriptor ( DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)

Ö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 zurück, ob das Gerät am Ende des Aufrufs gelöscht wird oder nicht.

String toString ()

Bietet eine Beschreibung mit Seriennummer, Produkt und Build-ID

Öffentliche Bauträger

Gerätebeschreibung

public DeviceDescriptor ()

Gerätebeschreibung

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ätebeschreibung

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ätebeschreibung

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ätebeschreibung

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ätebeschreibung

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

Gerätebeschreibung

public DeviceDescriptor (DeviceDescriptor d, 
                DeviceAllocationState state)

Wird zur einfachen Statusaktualisierung in ClusterDeviceMonitor verwendet.

Parameter
d DeviceDescriptor

state DeviceAllocationState

Gerätebeschreibung

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

Wird zur einfachen Statusaktualisierung der Seriennummer für Platzhaltergeräte verwendet.

Parameter
d DeviceDescriptor

serial String

displaySerial String

Gerätebeschreibung

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

Parameter
d DeviceDescriptor

preconfiguredIp String

preconfiguredDeviceNumOffset Integer

Öffentliche Methoden

getBatteryLevel

public String getBatteryLevel ()

Kehrt zurück
String

getBuildId

public String getBuildId ()

Kehrt zurück
String

getDeviceClass

public String getDeviceClass ()

Kehrt zurück
String

getDeviceState

public IDevice.DeviceState getDeviceState ()

Kehrt zurück
IDevice.DeviceState

getDisplaySerial

public String getDisplaySerial ()

Kehrt zurück
String

getHardwareRevision

public String getHardwareRevision ()

Kehrt zurück
String

getMacAddress

public String getMacAddress ()

Kehrt zurück
String

getPreconfiguredDeviceNumOffset

public Integer getPreconfiguredDeviceNumOffset ()

Kehrt zurück
Integer

getPreconfiguredIp

public String getPreconfiguredIp ()

Kehrt zurück
String

getProduct

public String getProduct ()

Kehrt zurück
String

getProductVariant

public String getProductVariant ()

Kehrt zurück
String

getProperty

public String getProperty (String name)

Parameter
name String

Kehrt zurück
String

getSdkVersion

public String getSdkVersion ()

Kehrt zurück
String

getSerial

public String getSerial ()

Kehrt zurück
String

getSimOperator

public String getSimOperator ()

Kehrt zurück
String

getSimState

public String getSimState ()

Kehrt zurück
String

getState

public DeviceAllocationState getState ()

Kehrt zurück
DeviceAllocationState

getTestDeviceState

public TestDeviceState getTestDeviceState ()

Kehrt zurück
TestDeviceState

isStubDevice

public boolean isStubDevice ()

Kehrt zurück
boolean

isTemporär

public boolean isTemporary ()

Gibt zurück, ob das Gerät am Ende des Aufrufs gelöscht wird oder nicht.

Kehrt zurück
boolean

toString

public String toString ()

Bietet eine Beschreibung mit Seriennummer, Produkt und Build-ID

Kehrt zurück
String