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)

פונקציית עזר שמחזירה את הערך true אם יש תמיכה במסגרת במכשיר.

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)

פונקציית עזר שמחזירה את הערך true אם יש תמיכה במסגרת במכשיר.

פרמטרים
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