DeviceDescriptor

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, IDevice idevice)
DeviceDescriptor ( DeviceDescriptor d, DeviceAllocationState state)

يستخدم لتحديث الحالة بسهولة في ClusterDeviceMonitor.

DeviceDescriptor ( DeviceDescriptor d, String serial, String displaySerial)

تستخدم لتحديث الحالة بسهولة من المسلسل للأجهزة النائبة.

الطرق العامة

String getBatteryLevel ()
String getBuildId ()
String getDeviceClass ()
IDevice.DeviceState getDeviceState ()
String getDisplaySerial ()
String getHardwareRevision ()
String getMacAddress ()
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 ()

يقدم وصفاً مع المسلسلات والمنتج ومعرف البناء

المنشئون العامة

DeviceDescriptor

public DeviceDescriptor ()

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, 
                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, 
                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, 
                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

idevice IDevice

DeviceDescriptor

public DeviceDescriptor (DeviceDescriptor d, 
                DeviceAllocationState state)

يستخدم لتحديث الحالة بسهولة في ClusterDeviceMonitor.

المعلمات
d DeviceDescriptor

state DeviceAllocationState

DeviceDescriptor

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

تستخدم لتحديث الحالة بسهولة من المسلسل للأجهزة النائبة.

المعلمات
d DeviceDescriptor

serial String

displaySerial String

الطرق العامة

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

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

إلى سلسلة

public String toString ()

يقدم وصفاً مع المسلسلات والمنتج ومعرف البناء

عائدات
String