Deskryptorurządzenia

public class DeviceDescriptor
extends Object

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


Klasa zawierająca informacje opisujące testowane urządzenie.

Streszczenie

Konstruktorzy publiczni

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

Służy do łatwej aktualizacji stanu w ClusterDeviceMonitor.

DeviceDescriptor ( DeviceDescriptor d, String serial, String displaySerial)

Służy do łatwej aktualizacji stanu szeregowego dla urządzeń zastępczych.

Metody publiczne

String getBatteryLevel ()
String getBuildId ()
String getDeviceClass ()
IDevice.DeviceState getDeviceState ()
String getDisplaySerial ()
String getHardwareRevision ()
String getMacAddress ()
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, czy urządzenie zostanie usunięte na końcu wywołania.

String toString ()

Zawiera opis z numerami seryjnymi, identyfikatorem produktu i kompilacji

Konstruktorzy publiczni

Deskryptorurządzenia

public DeviceDescriptor ()

Deskryptorurzą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

Deskryptorurzą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

Deskryptorurzą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

Deskryptorurzą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

Deskryptorurzą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, 
                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

idevice IDevice

Deskryptorurządzenia

public DeviceDescriptor (DeviceDescriptor d, 
                DeviceAllocationState state)

Służy do łatwej aktualizacji stanu w ClusterDeviceMonitor.

Parametry
d DeviceDescriptor

state DeviceAllocationState

Deskryptorurządzenia

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

Służy do łatwej aktualizacji stanu szeregowego dla urządzeń zastępczych.

Parametry
d DeviceDescriptor

serial String

displaySerial String

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

get DisplaySerial

public String getDisplaySerial ()

Zwroty
String

pobierz wersję sprzętu

public String getHardwareRevision ()

Zwroty
String

pobierz adres Mac

public String getMacAddress ()

Zwroty
String

pobierzProdukt

public String getProduct ()

Zwroty
String

pobierz wariant produktu

public String getProductVariant ()

Zwroty
String

pobierzProperty

public String getProperty (String name)

Parametry
name String

Zwroty
String

pobierz wersjęSdk

public String getSdkVersion ()

Zwroty
String

pobierzSerial

public String getSerial ()

Zwroty
String

getSimOperator

public String getSimOperator ()

Zwroty
String

pobierzSimState

public String getSimState ()

Zwroty
String

getState

public DeviceAllocationState getState ()

Zwroty
DeviceAllocationState

getTestDeviceState

public TestDeviceState getTestDeviceState ()

Zwroty
TestDeviceState

isSubDevice

public boolean isStubDevice ()

Zwroty
boolean

jest Tymczasowy

public boolean isTemporary ()

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

Zwroty
boolean

toString

public String toString ()

Zawiera opis z numerami seryjnymi, identyfikatorem produktu i kompilacji

Zwroty
String