DescrittoreDispositivo
public
class
DeviceDescriptor
extends Object
java.lang.Object | |
🎞 | com.android.tradefed.command.remote.DeviceDescriptor |
Una classe contenente informazioni che descrivono un dispositivo sottoposto a test.
Riepilogo
Costruttori pubblici | |
---|---|
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)
Utilizzato per un facile aggiornamento dello stato in ClusterDeviceMonitor. |
|
DeviceDescriptor(DeviceDescriptor d, String serial, String displaySerial)
Utilizzato per un facile aggiornamento dello stato del numero seriale dei dispositivi segnaposto. |
|
DeviceDescriptor(DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)
|
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
DescrittoreDispositivo
public DeviceDescriptor ()
DescrittoreDispositivo
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 |
DescrittoreDispositivo
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 |
DescrittoreDispositivo
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 |
DescrittoreDispositivo
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 |
DescrittoreDispositivo
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 |
DescrittoreDispositivo
public DeviceDescriptor (DeviceDescriptor d, DeviceAllocationState state)
Utilizzato per un facile aggiornamento dello stato in ClusterDeviceMonitor.
Parametri | |
---|---|
d |
DeviceDescriptor |
state |
DeviceAllocationState |
DescrittoreDispositivo
public DeviceDescriptor (DeviceDescriptor d, String serial, String displaySerial)
Utilizzato per un facile aggiornamento dello stato del numero seriale dei dispositivi segnaposto.
Parametri | |
---|---|
d |
DeviceDescriptor |
serial |
String |
displaySerial |
String |
DescrittoreDispositivo
public DeviceDescriptor (DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)
Parametri | |
---|---|
d |
DeviceDescriptor |
preconfiguredIp |
String |
preconfiguredDeviceNumOffset |
Integer |
Metodi pubblici
OttieniLivelloBatteria
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 |
getPreconfigureDeviceNumOffset
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 |
èTemporaneo
public boolean isTemporary ()
Indica se il dispositivo verrà eliminato o meno al termine della chiamata.
Ritorni | |
---|---|
boolean |
ToString
public String toString ()
Fornisce una descrizione con i numeri di serie, il prodotto e l'ID build
Ritorni | |
---|---|
String |