ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

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


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

ملخّص

الثابتات

int FRAMEWORK_CHECK_MAX_RETRY

long FRAMEWORK_CHECK_SLEEP_MS

الحقول

protected static final String CHECK_PM_CMD

protected static final String EXPECTED_ERROR

protected static final String EXPECTED_RES

public static final String IPADDRESS_PATTERN

protected IDeviceMonitor mAllocationMonitor

protected IDeviceManager mDeviceManager

protected boolean mFastbootEnabled

وظائف الإنشاء العامة

ManagedTestDeviceFactory(boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)

الطرق العامة

IManagedTestDevice createDevice(IDevice idevice)

void setFastbootEnabled(boolean enable)

الطرق المحمية

boolean checkFrameworkSupport(IDevice idevice)

دالة مساعدة تُعرِض قيمة صحيحة إذا كان الجهاز متوافقًا مع إطار العمل.

CollectingOutputReceiver createOutputReceiver()

أنشئ CollectingOutputReceiver.

IRunUtil getRunUtil()

عرض نسخة IRunUtil التلقائية

boolean isRemoteEnvironment()

عرض القيمة true إذا كنا نشغّل التطبيق حاليًا في بيئة عن بُعد

boolean isTcpDeviceSerial(String serial)

مساعد للجهاز إذا كان رقمًا تسلسليًا من جهاز متصل عن بُعد

الثابتات

FRAMEWORK_CHECK_MAX_RETRY

protected static final int FRAMEWORK_CHECK_MAX_RETRY

القيمة الثابتة: 3 (0x00000003)

FRAMEWORK_CHECK_SLEEP_MS

protected static final long FRAMEWORK_CHECK_SLEEP_MS

القيمة الثابتة: 500 (0x00000000000001f4)

الحقول

CHECK_PM_CMD

protected static final String CHECK_PM_CMD

EXPECTED_ERROR

protected static final String EXPECTED_ERROR

EXPECTED_RES

protected static final String EXPECTED_RES

IPADDRESS_PATTERN

public static final String IPADDRESS_PATTERN

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)

المعلمات
idevice IDevice

المرتجعات
IManagedTestDevice

setFastbootEnabled

public void setFastbootEnabled (boolean enable)

المعلمات
enable boolean

الطرق المحمية

checkFrameworkSupport

protected boolean checkFrameworkSupport (IDevice idevice)

دالة مساعدة تعرض قيمة صحيحة إذا كان الجهاز متوافقًا مع إطار العمل.

المعلمات
idevice IDevice

المرتجعات
boolean

createOutputReceiver

protected CollectingOutputReceiver createOutputReceiver ()

أنشئ CollectingOutputReceiver.

المرتجعات
CollectingOutputReceiver

getRunUtil

protected IRunUtil getRunUtil ()

عرض نسخة IRunUtil التلقائية

المرتجعات
IRunUtil

isRemoteEnvironment

protected boolean isRemoteEnvironment ()

عرض القيمة true إذا كنا نشغّل التطبيق حاليًا في بيئة عن بُعد سيؤدي ذلك إلى تغيير سلوك الجهاز.

المرتجعات
boolean

isTcpDeviceSerial

protected boolean isTcpDeviceSerial (String serial)

مساعد للجهاز إذا كان رقمًا تسلسليًا من جهاز متصل عن بُعد تنسيق الجهاز التسلسلي لخدمة بروتوكول النقل (TCP) هو :

المعلمات
serial String

المرتجعات
boolean