デバイス記述子
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) |
パブリックコンストラクター
デバイス記述子
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,
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 ()
getBuildId
public String getBuildId ()
getDeviceClass
public String getDeviceClass ()
デバイス状態の取得
public IDevice.DeviceState getDeviceState ()
getDisplaySerial
public String getDisplaySerial ()
ハードウェアリビジョンの取得
public String getHardwareRevision ()
マックアドレスを取得する
public String getMacAddress ()
public Integer getPreconfiguredDeviceNumOffset ()
public String getPreconfiguredIp ()
製品を取得する
public String getProduct ()
getProductVariant
public String getProductVariant ()
getプロパティ
public String getProperty (String name)
SDKバージョンの取得
public String getSdkVersion ()
シリアル取得
public String getSerial ()
getSimOperator
public String getSimOperator ()
getSimState
public String getSimState ()
isStubDevice
public boolean isStubDevice ()
一時的です
public boolean isTemporary ()
呼び出しの最後にデバイスが削除されるかどうかを返します。
toString
public String toString ()
シリアル、製品、ビルド ID を含む説明を提供します