デバイス記述子

public class DeviceDescriptor
extends Object

java.lang.オブジェクト
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 を含む説明を提供します

パブリックコンストラクター

デバイス記述子

public 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

デバイス記述子

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

デバイス記述子

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

デバイス記述子

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

デバイス記述子

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

デバイス記述子

public DeviceDescriptor (DeviceDescriptor d, 
                DeviceAllocationState state)

ClusterDeviceMonitor で状態を簡単に更新するために使用されます。

パラメーター
d DeviceDescriptor

state DeviceAllocationState

デバイス記述子

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

プレースホルダーデバイスのシリアル状態を簡単に更新するために使用されます。

パラメーター
d DeviceDescriptor

serial String

displaySerial String

デバイス記述子

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

パラメーター
d DeviceDescriptor

preconfiguredIp String

preconfiguredDeviceNumOffset Integer

パブリックメソッド

バッテリーレベルの取得

public String getBatteryLevel ()

戻り値
String

getBuildId

public String getBuildId ()

戻り値
String

getDeviceClass

public String getDeviceClass ()

戻り値
String

デバイス状態の取得

public IDevice.DeviceState getDeviceState ()

戻り値
IDevice.DeviceState

getDisplaySerial

public String getDisplaySerial ()

戻り値
String

ハードウェアリビジョンの取得

public String getHardwareRevision ()

戻り値
String

マックアドレスを取得する

public String getMacAddress ()

戻り値
String

getPreconfiguredDeviceNumOffset

public Integer getPreconfiguredDeviceNumOffset ()

戻り値
Integer

getPreconfiguredIp

public String getPreconfiguredIp ()

戻り値
String

製品を取得する

public String getProduct ()

戻り値
String

getProductVariant

public String getProductVariant ()

戻り値
String

getプロパティ

public String getProperty (String name)

パラメーター
name String

戻り値
String

SDKバージョンの取得

public String getSdkVersion ()

戻り値
String

シリアル取得

public String getSerial ()

戻り値
String

getSimOperator

public String getSimOperator ()

戻り値
String

getSimState

public String getSimState ()

戻り値
String

状態の取得

public DeviceAllocationState getState ()

戻り値
DeviceAllocationState

getTestDeviceState

public TestDeviceState getTestDeviceState ()

戻り値
TestDeviceState

isStubDevice

public boolean isStubDevice ()

戻り値
boolean

一時的です

public boolean isTemporary ()

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

戻り値
boolean

toString

public String toString ()

シリアル、製品、ビルド ID を含む説明を提供します

戻り値
String