توصیفگر دستگاه

public class DeviceDescriptor
extends 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)

برای به‌روزرسانی آسان وضعیت سریال برای دستگاه‌های جانگهدار (placeholder) استفاده می‌شود.

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 ()

توضیحاتی شامل سریال‌ها، شناسه محصول و ساخت ارائه می‌دهد

سازندگان عمومی

توصیفگر دستگاه

public 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

توصیفگر دستگاه

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

برای به‌روزرسانی آسان وضعیت سریال برای دستگاه‌های جانگهدار (placeholder) استفاده می‌شود.

پارامترها
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 ()

بازگشت‌ها
String

دریافت شناسه ساخت

public String getBuildId ()

بازگشت‌ها
String

کلاس دستگاه را دریافت کنید

public String getDeviceClass ()

بازگشت‌ها
String

دریافت وضعیت دستگاه

public IDevice.DeviceState getDeviceState ()

بازگشت‌ها
IDevice.DeviceState

دریافت سریال نمایشگر

public String getDisplaySerial ()

بازگشت‌ها
String

دریافت نسخه سخت‌افزاری

public String getHardwareRevision ()

بازگشت‌ها
String

دریافت مک‌آدرس

public String getMacAddress ()

بازگشت‌ها
String

getPreconfiguredDeviceNumOffset

public Integer getPreconfiguredDeviceNumOffset ()

بازگشت‌ها
Integer

دریافت آی‌پی از پیش پیکربندی‌شده

public String getPreconfiguredIp ()

بازگشت‌ها
String

دریافت محصول

public String getProduct ()

بازگشت‌ها
String

دریافت نوع محصول

public String getProductVariant ()

بازگشت‌ها
String

دریافت ویژگی

public String getProperty (String name)

پارامترها
name String

بازگشت‌ها
String

دریافت نسخه SDK

public String getSdkVersion ()

بازگشت‌ها
String

سریال را دریافت کنید

public String getSerial ()

بازگشت‌ها
String

getSimOperator

public String getSimOperator ()

بازگشت‌ها
String

دریافت SimState

public String getSimState ()

بازگشت‌ها
String

دریافت وضعیت

public DeviceAllocationState getState ()

بازگشت‌ها
DeviceAllocationState

دریافت وضعیت دستگاه (TestDeviceState)

public TestDeviceState getTestDeviceState ()

بازگشت‌ها
TestDeviceState

isStubDevice

public boolean isStubDevice ()

بازگشت‌ها
boolean

موقت است

public boolean isTemporary ()

این تابع مشخص می‌کند که آیا دستگاه در پایان فراخوانی حذف خواهد شد یا خیر.

بازگشت‌ها
boolean

رشته‌ی دوتایی

public String toString ()

توضیحاتی شامل سریال‌ها، شناسه محصول و ساخت ارائه می‌دهد

بازگشت‌ها
String