DeviceDescriptor
public
class
DeviceDescriptor
extends Object
java.lang.Object | |
↳ | com.android.tradefed.command.remote.DeviceDescriptor |
Klasa zawierająca informacje opisujące testowane urządzenie.
Podsumowanie
Konstruktory publiczne | |
---|---|
DeviceDescriptor()
|
|
DeviceDescriptor(DeviceDescriptor d, DeviceAllocationState state)
Służy do łatwego aktualizowania stanu w ClusterDeviceMonitor. |
|
DeviceDescriptor(DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)
|
|
DeviceDescriptor(DeviceDescriptor d, String serial, String displaySerial)
Służy do łatwej aktualizacji stanu numeru seryjnego w przypadku urządzeń zastępczych. |
|
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)
|
Metody publiczne | |
---|---|
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()
Zwraca informację, czy urządzenie zostanie usunięte po zakończeniu wywołania. |
String
|
toString()
Udostępnia opis z numerami seryjnymi, identyfikatorami produktu i kompilacji. |
Konstruktory publiczne
Deskryptor urządzenia
public DeviceDescriptor ()
Deskryptor urządzenia
public DeviceDescriptor (DeviceDescriptor d, DeviceAllocationState state)
Służy do łatwego aktualizowania stanu w ClusterDeviceMonitor.
Parametry | |
---|---|
d |
DeviceDescriptor |
state |
DeviceAllocationState |
DeviceDescriptor
public DeviceDescriptor (DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)
Parametry | |
---|---|
d |
DeviceDescriptor |
preconfiguredIp |
String |
preconfiguredDeviceNumOffset |
Integer |
DeviceDescriptor
public DeviceDescriptor (DeviceDescriptor d, String serial, String displaySerial)
Służy do łatwej aktualizacji stanu numeru seryjnego w przypadku urządzeń zastępczych.
Parametry | |
---|---|
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)
Parametry | |
---|---|
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)
Parametry | |
---|---|
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)
Parametry | |
---|---|
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)
Parametry | |
---|---|
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)
Parametry | |
---|---|
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 |
Metody publiczne
getBatteryLevel
public String getBatteryLevel ()
Zwroty | |
---|---|
String |
getBuildId
public String getBuildId ()
Zwroty | |
---|---|
String |
getDeviceClass
public String getDeviceClass ()
Zwroty | |
---|---|
String |
getDeviceState
public IDevice.DeviceState getDeviceState ()
Zwroty | |
---|---|
IDevice.DeviceState |
getDisplaySerial
public String getDisplaySerial ()
Zwroty | |
---|---|
String |
getHardwareRevision
public String getHardwareRevision ()
Zwroty | |
---|---|
String |
getMacAddress
public String getMacAddress ()
Zwroty | |
---|---|
String |
getPreconfiguredDeviceNumOffset
public Integer getPreconfiguredDeviceNumOffset ()
Zwroty | |
---|---|
Integer |
getPreconfiguredIp
public String getPreconfiguredIp ()
Zwroty | |
---|---|
String |
getProduct
public String getProduct ()
Zwroty | |
---|---|
String |
getProductVariant
public String getProductVariant ()
Zwroty | |
---|---|
String |
getProperty
public String getProperty (String name)
Parametry | |
---|---|
name |
String |
Zwroty | |
---|---|
String |
getSdkVersion
public String getSdkVersion ()
Zwroty | |
---|---|
String |
getSerial
public String getSerial ()
Zwroty | |
---|---|
String |
getSimOperator
public String getSimOperator ()
Zwroty | |
---|---|
String |
getSimState
public String getSimState ()
Zwroty | |
---|---|
String |
Urządzenie isStub
public boolean isStubDevice ()
Zwroty | |
---|---|
boolean |
isTemporary
public boolean isTemporary ()
Zwraca informację, czy urządzenie zostanie usunięte po zakończeniu wywołania.
Zwroty | |
---|---|
boolean |
toString
public String toString ()
Udostępnia opis z numerami seryjnymi, identyfikatorami produktu i kompilacji.
Zwroty | |
---|---|
String |