‫ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

java.lang.Object
com.android.tradefed.device.ManagedTestDeviceFactory


مصنع لإنشاء أنواع مختلفة من الأجهزة التي يمكن أن تراقبها Tf

ملخّص

الثوابت

String IPADDRESS_PATTERN

String NOTIFY_AS_NATIVE

الحقول

protected IDeviceMonitor mAllocationMonitor

protected IDeviceManager mDeviceManager

protected boolean mFastbootEnabled

طُرق وضع التصميم العامة

ManagedTestDeviceFactory(boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)

الإجراءات العامة

IManagedTestDevice createDevice(IDevice idevice)

إنشاء IManagedTestDevice استنادًا إلى IDevice الذي تم تمريره إليه

IManagedTestDevice createRequestedDevice(IDevice idevice, IDeviceSelection options)

إنشاء جهاز يطابق المواصفات تحديدًا

static boolean isTcpDeviceSerial(String serial)

أداة مساعدة لتحديد ما إذا كان الجهاز تسلسليًا من جهاز متصل عن بُعد

void setFastbootEnabled(boolean enable)

تفعيل أو عدم تفعيل ميزة fastboot للجهاز الذي تم إنشاؤه

الإجراءات المحمية

CollectingOutputReceiver createOutputReceiver()

إنشاء CollectingOutputReceiver

IRunUtil getRunUtil()

عرض مثيل IRunUtil التلقائي

boolean isRemoteEnvironment()

عرض "صحيح" إذا كنا ننفّذ حاليًا في بيئة بعيدة

الثوابت

IPADDRESS_PATTERN

public static final String IPADDRESS_PATTERN

Constant Value: "((^([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5])\.([01]?\d\d?|2[0-4]\d|25[0-5]))|(localhost)){1}"

NOTIFY_AS_NATIVE

public static final String NOTIFY_AS_NATIVE

Constant Value: "NOTIFY_AS_NATIVE"

الحقول

mAllocationMonitor

protected IDeviceMonitor mAllocationMonitor

mDeviceManager

protected IDeviceManager mDeviceManager

mFastbootEnabled

protected boolean mFastbootEnabled

طُرق وضع التصميم العامة

ManagedTestDeviceFactory

public ManagedTestDeviceFactory (boolean fastbootEnabled, 
                IDeviceManager deviceManager, 
                IDeviceMonitor allocationMonitor)

المعلَمات
fastbootEnabled boolean

deviceManager IDeviceManager

allocationMonitor IDeviceMonitor

الإجراءات العامة

createDevice

public IManagedTestDevice createDevice (IDevice idevice)

إنشاء IManagedTestDevice استنادًا إلى IDevice الذي تم تمريره إليه

المعلَمات
idevice IDevice: الذي سيحدّد نوع الجهاز الذي تم إنشاؤه

المرتجعات
IManagedTestDevice ‫IManagedTestDevice تم إنشاؤه استنادًا إلى IDevice

createRequestedDevice

public IManagedTestDevice createRequestedDevice (IDevice idevice, 
                IDeviceSelection options)

إنشاء جهاز يطابق المواصفات تحديدًا

المعلَمات
idevice IDevice

options IDeviceSelection

المرتجعات
IManagedTestDevice

isTcpDeviceSerial

public static boolean isTcpDeviceSerial (String serial)

أداة مساعدة لتحديد ما إذا كان الجهاز تسلسليًا من جهاز متصل عن بُعد. يكون تنسيق الرقم التسلسلي لجهاز tcp على النحو التالي :

المعلَمات
serial String

المرتجعات
boolean

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

تفعيل أو عدم تفعيل ميزة fastboot للجهاز الذي تم إنشاؤه

المعلَمات
enable boolean: القيمة التي تم ضبط الدعم عليها

الإجراءات المحمية

createOutputReceiver

protected CollectingOutputReceiver createOutputReceiver ()

إنشاء CollectingOutputReceiver

المرتجعات
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

عرض مثيل IRunUtil التلقائي

المرتجعات
IRunUtil

isRemoteEnvironment

protected boolean isRemoteEnvironment ()

عرض "صحيح" إذا كنا ننفّذ حاليًا في بيئة بعيدة سيؤدي ذلك إلى تغيير سلوك الجهاز.

المرتجعات
boolean