Deskryptor urządzenia

public class DeviceDescriptor
extends Object

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


Klasa zawierająca informacje o testowanym urządzeniu.

Podsumowanie

Konstruktory publiczne

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)

Służy do łatwego aktualizowania stanu w ClusterDeviceMonitor.

DeviceDescriptor(DeviceDescriptor d, String serial, String displaySerial)

Służy do łatwego aktualizowania stanu numerów seryjnych urządzeń zastępczych.

DeviceDescriptor(DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)

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

Wskazuje, czy urządzenie zostanie usunięte na końcu wywołania.

String toString()

Zawiera opis z numerami seryjnymi, produktem i identyfikatorem kompilacji

Konstruktory publiczne

Deskryptor urządzenia

public DeviceDescriptor ()

Deskryptor urządzenia

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

Deskryptor urządzenia

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

Deskryptor urządzenia

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

Deskryptor urządzenia

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

Deskryptor urządzenia

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

Deskryptor urządzenia

public DeviceDescriptor (DeviceDescriptor d, 
                DeviceAllocationState state)

Służy do łatwego aktualizowania stanu w ClusterDeviceMonitor.

Parametry
d DeviceDescriptor

state DeviceAllocationState

Deskryptor urządzenia

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

Służy do łatwego aktualizowania stanu numerów seryjnych urządzeń zastępczych.

Parametry
d DeviceDescriptor

serial String

displaySerial String

Deskryptor urządzenia

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

Parametry
d DeviceDescriptor

preconfiguredIp String

preconfiguredDeviceNumOffset Integer

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

public String getPreconfiguredIp ()

Zwroty
String

getProduct

public String getProduct ()

Zwroty
String

wersja_produktu

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

Operator getSim

public String getSimOperator ()

Zwroty
String

getSimState

public String getSimState ()

Zwroty
String

getState

public DeviceAllocationState getState ()

Zwroty
DeviceAllocationState

getTestDeviceState

public TestDeviceState getTestDeviceState ()

Zwroty
TestDeviceState

Urządzenie isStub

public boolean isStubDevice ()

Zwroty
boolean

Jest tymczasowy

public boolean isTemporary ()

Wskazuje, czy urządzenie zostanie usunięte na końcu wywołania.

Zwroty
boolean

Ciąg

public String toString ()

Zawiera opis z numerami seryjnymi, produktem i identyfikatorem kompilacji

Zwroty
String