DeviceDescriptor

public class DeviceDescriptor
extends Object

java.lang.Object
com.android.tradefed.command.remote.DeviceDescriptor


Una classe contenente informazioni che descrivono un dispositivo in prova.

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, 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 seriale per i dispositivi segnaposto.

Metodi pubblici

String getBatteryLevel ()
String getBuildId ()
String getDeviceClass ()
IDevice.DeviceState getDeviceState ()
String getDisplaySerial ()
String getHardwareRevision ()
String getMacAddress ()
String getProduct ()
String getProductVariant ()
String getProperty (String name)
String getSdkVersion ()
String getSerial ()
String getSimOperator ()
String getSimState ()
DeviceAllocationState getState ()
TestDeviceState getTestDeviceState ()
boolean isStubDevice ()
boolean isTemporary ()

Restituisce 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 (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, 
                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, 
                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, 
                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

idevice IDevice

DeviceDescriptor

public DeviceDescriptor (DeviceDescriptor d, 
                DeviceAllocationState state)

Utilizzato per un facile aggiornamento dello stato in ClusterDeviceMonitor.

Parametri
d DeviceDescriptor

state DeviceAllocationState

DeviceDescriptor

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

Utilizzato per un facile aggiornamento dello stato del seriale per i dispositivi segnaposto.

Parametri
d DeviceDescriptor

serial String

displaySerial String

Metodi pubblici

getBatteryLevel

public String getBatteryLevel ()

ritorna
String

getBuildId

public String getBuildId ()

ritorna
String

getDeviceClass

public String getDeviceClass ()

ritorna
String

getDeviceState

public IDevice.DeviceState getDeviceState ()

ritorna
IDevice.DeviceState

getDisplaySerial

public String getDisplaySerial ()

ritorna
String

getHardwareRevision

public String getHardwareRevision ()

ritorna
String

getMacAddress

public String getMacAddress ()

ritorna
String

getProduct

public String getProduct ()

ritorna
String

getProductVariant

public String getProductVariant ()

ritorna
String

getProperty

public String getProperty (String name)

Parametri
name String

ritorna
String

getSdkVersion

public String getSdkVersion ()

ritorna
String

getSerial

public String getSerial ()

ritorna
String

getSimOperator

public String getSimOperator ()

ritorna
String

getSimState

public String getSimState ()

ritorna
String

getState

public DeviceAllocationState getState ()

ritorna
DeviceAllocationState

getTestDeviceState

public TestDeviceState getTestDeviceState ()

ritorna
TestDeviceState

isStubDevice

public boolean isStubDevice ()

ritorna
boolean

è Temporaneo

public boolean isTemporary ()

Restituisce se il dispositivo verrà eliminato o meno al termine della chiamata.

ritorna
boolean

accordare

public String toString ()

Fornisce una descrizione con i numeri di serie, il prodotto e l'ID build

ritorna
String