Descriptor de dispositivo

public class DeviceDescriptor
extends Object

Objeto java.lang.
   ↳ com.android.tradefed.command.remote.DeviceDescriptor


Una clase que contiene información que describe un dispositivo que se está probando.

Resumen

Constructores públicos

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)

Se usa para actualizar el estado fácilmente en ClusterDeviceMonitor.

DeviceDescriptor(DeviceDescriptor d, String serial, String displaySerial)

Se usa para actualizar fácilmente el estado de la serie para dispositivos de marcador de posición.

DeviceDescriptor(DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)

Métodos públicos

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

Indica si el dispositivo se borrará o no al final de la invocación.

String toString()

Proporciona una descripción con los números de serie, el producto y el ID de compilación

Constructores públicos

Descriptor de dispositivo

public DeviceDescriptor ()

Descriptor de dispositivo

public DeviceDescriptor (String serial, 
                boolean isStubDevice, 
                DeviceAllocationState state, 
                String product, 
                String productVariant, 
                String sdkVersion, 
                String buildId, 
                String batteryLevel)

Parámetros
serial String

isStubDevice boolean

state DeviceAllocationState

product String

productVariant String

sdkVersion String

buildId String

batteryLevel String

Descriptor de dispositivo

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)

Parámetros
serial String

isStubDevice boolean

state DeviceAllocationState

product String

productVariant String

sdkVersion String

buildId String

batteryLevel String

deviceClass String

macAddress String

simState String

simOperator String

Descriptor de dispositivo

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)

Parámetros
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

Descriptor de dispositivo

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)

Parámetros
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

Descriptor de dispositivo

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)

Parámetros
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

Descriptor de dispositivo

public DeviceDescriptor (DeviceDescriptor d, 
                DeviceAllocationState state)

Se usa para actualizar el estado fácilmente en ClusterDeviceMonitor.

Parámetros
d DeviceDescriptor

state DeviceAllocationState

Descriptor de dispositivo

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

Se usa para actualizar fácilmente el estado de la serie para dispositivos de marcador de posición.

Parámetros
d DeviceDescriptor

serial String

displaySerial String

Descriptor de dispositivo

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

Parámetros
d DeviceDescriptor

preconfiguredIp String

preconfiguredDeviceNumOffset Integer

Métodos públicos

getBateríaLevel

public String getBatteryLevel ()

Muestra
String

getBuildId

public String getBuildId ()

Muestra
String

getDeviceClass

public String getDeviceClass ()

Muestra
String

getDeviceState

public IDevice.DeviceState getDeviceState ()

Muestra
IDevice.DeviceState

getDisplaySerial

public String getDisplaySerial ()

Muestra
String

getHardwareRevision

public String getHardwareRevision ()

Muestra
String

getMacAddress

public String getMacAddress ()

Muestra
String

getPreSetDeviceNumOffset

public Integer getPreconfiguredDeviceNumOffset ()

Muestra
Integer

getPreconfiguradoIp

public String getPreconfiguredIp ()

Muestra
String

getProduct

public String getProduct ()

Muestra
String

getProductVariant

public String getProductVariant ()

Muestra
String

getProperty

public String getProperty (String name)

Parámetros
name String

Muestra
String

getSdkVersion

public String getSdkVersion ()

Muestra
String

getSerial

public String getSerial ()

Muestra
String

getSimOperator

public String getSimOperator ()

Muestra
String

getSimState

public String getSimState ()

Muestra
String

getState

public DeviceAllocationState getState ()

Muestra
DeviceAllocationState

getTestDeviceState

public TestDeviceState getTestDeviceState ()

Muestra
TestDeviceState

Dispositivo isStub

public boolean isStubDevice ()

Muestra
boolean

Temporal

public boolean isTemporary ()

Indica si el dispositivo se borrará o no al final de la invocación.

Muestra
boolean

toString

public String toString ()

Proporciona una descripción con los números de serie, el producto y el ID de compilación

Muestra
String