DescrittoreDispositivo
public
class
DeviceDescriptor
extends Object
java.lang.Object | |
↳ | com.android.tradefed.command.remote.DeviceDescriptor |
Una classe contenente informazioni che descrivono un dispositivo in test.
Riepilogo
Costruttori pubblici | |
---|---|
DeviceDescriptor()
|
|
DeviceDescriptor(DeviceDescriptor d, DeviceAllocationState state)
Utilizzato per un facile aggiornamento dello stato in ClusterDeviceMonitor. |
|
DeviceDescriptor(DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)
|
|
DeviceDescriptor(DeviceDescriptor d, String serial, String displaySerial)
Utilizzato per aggiornare facilmente lo stato della seriale per i dispositivi segnaposto. |
|
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)
|
Metodi pubblici | |
---|---|
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 se il dispositivo verrà eliminato o meno al termine della chiamata. |
String
|
toString()
Fornisce una descrizione con i numeri di serie, il prodotto e l'ID build |
Costruttori pubblici
DeviceDescriptor
public DeviceDescriptor ()
DeviceDescriptor
public DeviceDescriptor (DeviceDescriptor d, DeviceAllocationState state)
Utilizzato per aggiornare facilmente lo stato in ClusterDeviceMonitor.
Parametri | |
---|---|
d |
DeviceDescriptor |
state |
DeviceAllocationState |
DeviceDescriptor
public DeviceDescriptor (DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)
Parametri | |
---|---|
d |
DeviceDescriptor |
preconfiguredIp |
String |
preconfiguredDeviceNumOffset |
Integer |
DeviceDescriptor
public DeviceDescriptor (DeviceDescriptor d, String serial, String displaySerial)
Utilizzato per aggiornare facilmente lo stato della seriale per i dispositivi segnaposto.
Parametri | |
---|---|
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)
Parametri | |
---|---|
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)
Parametri | |
---|---|
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)
Parametri | |
---|---|
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)
Parametri | |
---|---|
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)
Parametri | |
---|---|
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 |
Metodi pubblici
getBatteryLevel
public String getBatteryLevel ()
Ritorni | |
---|---|
String |
getBuildId
public String getBuildId ()
Ritorni | |
---|---|
String |
getDeviceClass
public String getDeviceClass ()
Ritorni | |
---|---|
String |
getDeviceState
public IDevice.DeviceState getDeviceState ()
Ritorni | |
---|---|
IDevice.DeviceState |
getDisplaySerial
public String getDisplaySerial ()
Ritorni | |
---|---|
String |
getHardwareRevision
public String getHardwareRevision ()
Ritorni | |
---|---|
String |
getMacAddress
public String getMacAddress ()
Ritorni | |
---|---|
String |
getPreconfiguredDeviceNumOffset
public Integer getPreconfiguredDeviceNumOffset ()
Ritorni | |
---|---|
Integer |
getPreconfigureIp
public String getPreconfiguredIp ()
Ritorni | |
---|---|
String |
getProduct
public String getProduct ()
Ritorni | |
---|---|
String |
getProductVariant
public String getProductVariant ()
Ritorni | |
---|---|
String |
getProperty
public String getProperty (String name)
Parametri | |
---|---|
name |
String |
Ritorni | |
---|---|
String |
getSdkVersion
public String getSdkVersion ()
Ritorni | |
---|---|
String |
getSerial
public String getSerial ()
Ritorni | |
---|---|
String |
getSimOperator
public String getSimOperator ()
Ritorni | |
---|---|
String |
getSimState
public String getSimState ()
Ritorni | |
---|---|
String |
Dispositivo isStub
public boolean isStubDevice ()
Ritorni | |
---|---|
boolean |
isTemporary
public boolean isTemporary ()
Restituisce se il dispositivo verrà eliminato o meno al termine dell'invocazione.
Ritorni | |
---|---|
boolean |
toString
public String toString ()
Fornisce una descrizione con i numeri di serie, il prodotto e l'ID build
Ritorni | |
---|---|
String |