デバイス記述子

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、ビルド 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

getPreconfiguredDeviceNumOffset

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

一時的

public boolean isTemporary ()

呼び出しの終了時にデバイスが削除されるかどうかを返します。

戻り値
boolean

toString

public String toString ()

シリアル番号、プロダクト ID、ビルド ID を含む説明を提供します。

戻り値
String