DeviceDescriptor (裝置描述元)
public
class
DeviceDescriptor
extends Object
java.lang.Object | |
↳ | com.android.tradefed.command.remote.DeviceDescriptor |
這個類別含有用於說明受測試裝置的資訊。
摘要
公用建構函式 | |
---|---|
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)
用於在 ClusterDeviceMonitor 中輕鬆更新狀態。 |
|
DeviceDescriptor(DeviceDescriptor d, String serial, String displaySerial)
用於輕鬆更新預留位置裝置的序列狀態。 |
|
DeviceDescriptor(DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)
|
公用方法 | |
---|---|
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 (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, 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, 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 |
DeviceDescriptor (裝置描述元)
public DeviceDescriptor (DeviceDescriptor d, DeviceAllocationState state)
用於在 ClusterDeviceMonitor 中輕鬆更新狀態。
參數 | |
---|---|
d |
DeviceDescriptor |
state |
DeviceAllocationState |
DeviceDescriptor (裝置描述元)
public DeviceDescriptor (DeviceDescriptor d, String serial, String displaySerial)
用於輕鬆更新預留位置裝置的序列狀態。
參數 | |
---|---|
d |
DeviceDescriptor |
serial |
String |
displaySerial |
String |
DeviceDescriptor (裝置描述元)
public DeviceDescriptor (DeviceDescriptor d, String preconfiguredIp, Integer preconfiguredDeviceNumOffset)
參數 | |
---|---|
d |
DeviceDescriptor |
preconfiguredIp |
String |
preconfiguredDeviceNumOffset |
Integer |
公用方法
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 |
getPre 設定 Ip
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 |
isStubDevice
public boolean isStubDevice ()
傳回 | |
---|---|
boolean |
為臨時員工
public boolean isTemporary ()
傳回是否要在叫用結束時刪除裝置。
傳回 | |
---|---|
boolean |
toString
public String toString ()
提供序列、產品和版本 ID 的說明
傳回 | |
---|---|
String |