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

public static final 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()

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

الثابتات

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

NOTIFY_AS_NATIVE

public static final String 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 ()

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

المرتجعات
boolean