기기 설명자
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가 포함된 설명을 제공합니다. |
공개 생성자
기기 설명자
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 |
getDeviceState
public IDevice.DeviceState getDeviceState ()
반환 값 | |
---|---|
IDevice.DeviceState |
getDisplaySerial
public String getDisplaySerial ()
반환 값 | |
---|---|
String |
getHardwareRevision
public String getHardwareRevision ()
반환 값 | |
---|---|
String |
getMacAddress
public String getMacAddress ()
반환 값 | |
---|---|
String |
getPreconfigurationDeviceNumOffset
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 |
isStubDevice
public boolean isStubDevice ()
반환 값 | |
---|---|
boolean |
임시
public boolean isTemporary ()
호출 종료 시 기기가 삭제될지 여부를 반환합니다.
반환 값 | |
---|---|
boolean |
toString
public String toString ()
일련번호, 제품, 빌드 ID가 포함된 설명을 제공합니다.
반환 값 | |
---|---|
String |