Gerätedeskriptor
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(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 für die einfache Statusaktualisierung in ClusterDeviceMonitor verwendet. |
|
DeviceDescriptor(DeviceDescriptor d, String serial, String displaySerial)
Wird zur einfachen Statusaktualisierung von Seriennummern 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. |
String
|
toString()
Bietet eine Beschreibung mit Seriennummern, Produkt und Build-ID |
Öffentliche Konstruktoren
Gerätedeskriptor
public DeviceDescriptor ()
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, 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, 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ätedeskriptor
public DeviceDescriptor (DeviceDescriptor d, DeviceAllocationState state)
Wird für die einfache Statusaktualisierung in ClusterDeviceMonitor verwendet.
Parameter | |
---|---|
d |
DeviceDescriptor |
state |
DeviceAllocationState |
Gerätedeskriptor
public DeviceDescriptor (DeviceDescriptor d, String serial, String displaySerial)
Wird zur einfachen Statusaktualisierung von Seriennummern für Platzhaltergeräte verwendet.
Parameter | |
---|---|
d |
DeviceDescriptor |
serial |
String |
displaySerial |
String |
Gerätedeskriptor
public DeviceDescriptor (DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)
Parameter | |
---|---|
d |
DeviceDescriptor |
preconfiguredIp |
String |
preconfiguredDeviceNumOffset |
Integer |
Ö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 |
getPreconfigureDeviceNumOffset
public Integer getPreconfiguredDeviceNumOffset ()
Returns | |
---|---|
Integer |
getPreconfigureIp
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 |
isStubDevice
public boolean isStubDevice ()
Returns | |
---|---|
boolean |
Isttemporär
public boolean isTemporary ()
Gibt zurück, ob das Gerät am Ende des Aufrufs gelöscht wird.
Returns | |
---|---|
boolean |
toString
public String toString ()
Bietet eine Beschreibung mit Seriennummern, Produkt und Build-ID
Returns | |
---|---|
String |