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)
|
وظائف الإنشاء العامة
DeviceDescriptor
public DeviceDescriptor ()
DeviceDescriptor
public DeviceDescriptor (DeviceDescriptor d,
DeviceAllocationState state)
تُستخدَم هذه القيمة لتعديل الحالة بسهولة في ClusterDeviceMonitor.
المعلمات |
d |
DeviceDescriptor |
state |
DeviceAllocationState |
أداة وصف الجهاز
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 |
أداة وصف الجهاز
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,
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,
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 ()
getBuildId
public String getBuildId ()
getDeviceClass
public String getDeviceClass ()
الحصول على حالة الجهاز
public IDevice.DeviceState getDeviceState ()
المرتجعات |
IDevice.DeviceState |
|
getDisplaySerial
public String getDisplaySerial ()
getHardwareRevision
public String getHardwareRevision ()
الحصول على MacAddress
public String getMacAddress ()
public Integer getPreconfiguredDeviceNumOffset ()
public String getPreconfiguredIp ()
getProduct
public String getProduct ()
getProductVariant
public String getProductVariant ()
getProperty
public String getProperty (String name)
getSdkVersion
public String getSdkVersion ()
الطريقة getSerial
public String getSerial ()
برنامج getSimOperator
public String getSimOperator ()
getSimState
public String getSimState ()
isStubDevice
public boolean isStubDevice ()
isTemporary
public boolean isTemporary ()
تعرِض هذه السمة ما إذا كان سيتم حذف الجهاز في نهاية عملية الاستدعاء أم لا.
إلىسلسلة
public String toString ()
توفير وصف مع السلاسل التسلسلية والمنتج ومعرّف الإصدار