DeviceDescriptor

public class DeviceDescriptor
extends Object

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


包含測試裝置相關資訊的類別。

摘要

公用建構函式

DeviceDescriptor()
DeviceDescriptor(DeviceDescriptor d, DeviceAllocationState state)

可在 ClusterDeviceMonitor 中輕鬆更新狀態。

DeviceDescriptor(DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)
DeviceDescriptor(DeviceDescriptor d, String serial, String displaySerial)

用於輕鬆更新預留位置裝置的序列狀態。

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)

公用方法

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()

傳回是否要在叫用作業結束時刪除裝置。

String toString()

提供序列、產品和版本 ID 的說明

公用建構函式

DeviceDescriptor

public DeviceDescriptor ()

DeviceDescriptor

public DeviceDescriptor (DeviceDescriptor d, 
                DeviceAllocationState state)

用於在 ClusterDeviceMonitor 中輕鬆更新狀態。

參數
d DeviceDescriptor

state DeviceAllocationState

DeviceDescriptor

public DeviceDescriptor (DeviceDescriptor d, 
                String preconfiguredIp, 
                Integer preconfiguredDeviceNumOffset)

參數
d DeviceDescriptor

preconfiguredIp String

preconfiguredDeviceNumOffset Integer

DeviceDescriptor

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

用於簡化預留位置裝置序列的狀態更新作業。

參數
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)

參數
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)

參數
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)

參數
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)

參數
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)

參數
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

公用方法

getBatteryLevel

public String getBatteryLevel ()

傳回
String

getBuildId

public String getBuildId ()

傳回
String

getDeviceClass

public String getDeviceClass ()

傳回
String

getDeviceState

public IDevice.DeviceState getDeviceState ()

傳回
IDevice.DeviceState

getDisplaySerial

public String getDisplaySerial ()

傳回
String

getHardwareRevision

public String getHardwareRevision ()

傳回
String

getMacAddress

public String getMacAddress ()

傳回
String

getPre 設定 DeviceNumOffset

public Integer getPreconfiguredDeviceNumOffset ()

傳回
Integer

getPreconfiguredIp

public String getPreconfiguredIp ()

傳回
String

getProduct

public String getProduct ()

傳回
String

getProductVariant

public String getProductVariant ()

傳回
String

getProperty

public String getProperty (String name)

參數
name String

傳回
String

getSdkVersion

public String getSdkVersion ()

傳回
String

getSerial

public String getSerial ()

傳回
String

getSimOperator

public String getSimOperator ()

傳回
String

getSimState

public String getSimState ()

傳回
String

getState

public DeviceAllocationState getState ()

傳回
DeviceAllocationState

getTestDeviceState

public TestDeviceState getTestDeviceState ()

傳回
TestDeviceState

isStubDevice

public boolean isStubDevice ()

傳回
boolean

isTemporary

public boolean isTemporary ()

傳回裝置是否會在叫用作業結束時刪除。

傳回
boolean

toString

public String toString ()

提供含有序號、產品和版本 ID 的說明

傳回
String