از سال ۲۰۲۶، برای همسو شدن با مدل توسعه پایدار trunk و تضمین پایداری پلتفرم برای اکوسیستم، کد منبع را در سهماهه دوم و چهارم در AOSP منتشر خواهیم کرد. برای ساخت و مشارکت در AOSP، توصیه میکنیم android-latest-release به جای aosp-main استفاده کنید. شاخه manifest در android-latest-release همیشه به جدیدترین نسخه منتشر شده در AOSP ارجاع میدهد. برای اطلاعات بیشتر، به تغییرات در AOSP مراجعه کنید.
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
توصیفگر دستگاه
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) |
سازندگان عمومی
توصیفگر دستگاه
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 ()
دریافت شناسه ساخت
public String getBuildId ()
کلاس دستگاه را دریافت کنید
public String getDeviceClass ()
دریافت سریال نمایشگر
public String getDisplaySerial ()
دریافت نسخه سختافزاری
public String getHardwareRevision ()
دریافت مکآدرس
public String getMacAddress ()
public Integer getPreconfiguredDeviceNumOffset ()
public String getPreconfiguredIp ()
دریافت محصول
public String getProduct ()
دریافت نوع محصول
public String getProductVariant ()
دریافت ویژگی
public String getProperty (String name)
دریافت نسخه SDK
public String getSdkVersion ()
سریال را دریافت کنید
public String getSerial ()
getSimOperator
public String getSimOperator ()
دریافت SimState
public String getSimState ()
دریافت وضعیت دستگاه (TestDeviceState)
public TestDeviceState getTestDeviceState ()
isStubDevice
public boolean isStubDevice ()
موقت است
public boolean isTemporary ()
این تابع مشخص میکند که آیا دستگاه در پایان فراخوانی حذف خواهد شد یا خیر.
رشتهی دوتایی
public String toString ()
توضیحاتی شامل سریالها، شناسه محصول و ساخت ارائه میدهد
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-12-04 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-12-04 بهوقت ساعت هماهنگ جهانی."],[],[]]