DeviceDescriptor

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가 포함된 설명을 제공합니다.

공개 생성자

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

공개 메서드

배터리 레벨 가져오기

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

getState

public DeviceAllocationState getState ()

반환 값
DeviceAllocationState

getTestDeviceState

public TestDeviceState getTestDeviceState ()

반환 값
TestDeviceState

isStubDevice

public boolean isStubDevice ()

반환 값
boolean

isTemporary

public boolean isTemporary ()

호출이 끝날 때 기기가 삭제되는지 여부를 반환합니다.

반환 값
boolean

toString

public String toString ()

일련번호, 제품, 빌드 ID가 포함된 설명을 제공합니다.

반환 값
String