Descriptor de dispositivo
public class DeviceDescriptor
extends Object
java.lang.Objeto |
↳ | com.android.tradefed.command.remote.DeviceDescriptor |
Una clase que contiene información que describe un dispositivo bajo prueba.
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 utiliza para actualizar fácilmente el estado en ClusterDeviceMonitor. |
DeviceDescriptor ( DeviceDescriptor d, String serial, String displaySerial) Se utiliza para actualizar fácilmente el estado del número de serie de dispositivos marcadores de posición. |
DeviceDescriptor ( DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset) |
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 utiliza para actualizar fácilmente el estado en ClusterDeviceMonitor.
Parámetros |
---|
d | DeviceDescriptor |
state | DeviceAllocationState |
Descriptor de dispositivo
public DeviceDescriptor (DeviceDescriptor d,
String serial,
String displaySerial)
Se utiliza para actualizar fácilmente el estado del número de serie de dispositivos marcadores 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
obtener nivel de batería
public String getBatteryLevel ()
obtener ID de compilación
public String getBuildId ()
getDeviceClass
public String getDeviceClass ()
obtener estado del dispositivo
public IDevice.DeviceState getDeviceState ()
Devoluciones |
---|
IDevice.DeviceState | |
getDisplaySerial
public String getDisplaySerial ()
obtenerRevisióndeHardware
public String getHardwareRevision ()
obtener dirección Mac
public String getMacAddress ()
public Integer getPreconfiguredDeviceNumOffset ()
public String getPreconfiguredIp ()
obtenerProducto
public String getProduct ()
obtenerVarianteProducto
public String getProductVariant ()
obtener propiedad
public String getProperty (String name)
getSdkVersion
public String getSdkVersion ()
obtener serie
public String getSerial ()
obtenerSimOperador
public String getSimOperator ()
getSimState
public String getSimState ()
esStubDevice
public boolean isStubDevice ()
es temporal
public boolean isTemporary ()
Devuelve si el dispositivo se eliminará o no al final de la invocación.
Encadenar
public String toString ()
Proporciona una descripción con números de serie, producto e identificación de compilación.