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, 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) |
سازندگان عمومی
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,
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 |
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 |
DeviceDescriptor
public DeviceDescriptor (DeviceDescriptor d,
String preconfiguredIp,
Integer preconfiguredDeviceNumOffset)
پارامترها |
---|
d | DeviceDescriptor |
preconfiguredIp | String |
preconfiguredDeviceNumOffset | Integer |
روش های عمومی
getBatteryLevel
public String getBatteryLevel ()
getBuildId
public String getBuildId ()
getDeviceClass
public String getDeviceClass ()
getDeviceState
public IDevice.DeviceState getDeviceState ()
برمی گرداند |
---|
IDevice.DeviceState | |
getDisplaySerial
public String getDisplaySerial ()
getHardwareRevision
public String getHardwareRevision ()
دریافت مک آدرس
public String getMacAddress ()
public Integer getPreconfiguredDeviceNumOffset ()
public String getPreconfiguredIp ()
دریافت محصول
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 ()
موقت است
public boolean isTemporary ()
نشان می دهد که آیا دستگاه در پایان فراخوانی حذف خواهد شد یا خیر.
toString
public String toString ()
توضیحاتی را با سریال ها، محصول و شناسه ساخت ارائه می دهد