DeviceDescriptor
public
class
DeviceDescriptor
extends Object
java.lang.Object | |
↳ | com.android.tradefed.command.remote.DeviceDescriptor |
Uma classe que contém informações que descrevem um dispositivo em teste.
Resumo
Construtores públicos | |
---|---|
DeviceDescriptor()
|
|
DeviceDescriptor(DeviceDescriptor d, DeviceAllocationState state)
Usado para facilitar a atualização de estado no ClusterDeviceMonitor. |
|
DeviceDescriptor(DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)
|
|
DeviceDescriptor(DeviceDescriptor d, String serial, String displaySerial)
Usado para facilitar a atualização de estado do número de série para dispositivos de marcador de posição. |
|
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)
|
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()
Retorna se o dispositivo será excluído ou não ao final da invocação. |
String
|
toString()
Fornece uma descrição com números de série, produto e ID da versão |
Construtores públicos
DeviceDescriptor
public DeviceDescriptor ()
DeviceDescriptor
public DeviceDescriptor (DeviceDescriptor d, DeviceAllocationState state)
Usado para facilitar a atualização de estado no ClusterDeviceMonitor.
Parâmetros | |
---|---|
d |
DeviceDescriptor |
state |
DeviceAllocationState |
DeviceDescriptor
public DeviceDescriptor (DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)
Parâmetros | |
---|---|
d |
DeviceDescriptor |
preconfiguredIp |
String |
preconfiguredDeviceNumOffset |
Integer |
DeviceDescriptor
public DeviceDescriptor (DeviceDescriptor d, String serial, String displaySerial)
Usado para facilitar a atualização do estado do serial para dispositivos de marcador de posição.
Parâmetros | |
---|---|
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)
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 |
DeviceDescriptor
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 |
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)
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 |
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)
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 |
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)
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 |
Métodos públicos
getBatteryLevel
public String getBatteryLevel ()
Retorna | |
---|---|
String |
getBuildId
public String getBuildId ()
Retorna | |
---|---|
String |
getDeviceClass
public String getDeviceClass ()
Retorna | |
---|---|
String |
getDeviceState
public IDevice.DeviceState getDeviceState ()
Retorna | |
---|---|
IDevice.DeviceState |
getDisplaySerial
public String getDisplaySerial ()
Retorna | |
---|---|
String |
getHardwareRevision
public String getHardwareRevision ()
Retorna | |
---|---|
String |
getMacAddress
public String getMacAddress ()
Retorna | |
---|---|
String |
getPreconfiguredDeviceNumOffset
public Integer getPreconfiguredDeviceNumOffset ()
Retorna | |
---|---|
Integer |
getPreconfiguredIp
public String getPreconfiguredIp ()
Retorna | |
---|---|
String |
getProduct
public String getProduct ()
Retorna | |
---|---|
String |
getProductVariant
public String getProductVariant ()
Retorna | |
---|---|
String |
getProperty
public String getProperty (String name)
Parâmetros | |
---|---|
name |
String |
Retorna | |
---|---|
String |
getSdkVersion
public String getSdkVersion ()
Retorna | |
---|---|
String |
getSerial
public String getSerial ()
Retorna | |
---|---|
String |
getSimOperator
public String getSimOperator ()
Retorna | |
---|---|
String |
getSimState
public String getSimState ()
Retorna | |
---|---|
String |
isStubDevice
public boolean isStubDevice ()
Retorna | |
---|---|
boolean |
isTemporary
public boolean isTemporary ()
Retorna se o dispositivo será excluído ou não ao final da invocação.
Retorna | |
---|---|
boolean |
toString
public String toString ()
Fornece uma descrição com números de série, ID do produto e do build
Retorna | |
---|---|
String |