ManagedTestDeviceFactory

public class ManagedTestDeviceFactory
extends Object implements IManagedTestDeviceFactory

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


פקטורי (factory) ליצירת סוגים שונים של מכשירים שאפשר לנטר באמצעות Tf

סיכום

ערכים קבועים

String IPADDRESS_PATTERN

String NOTIFY_AS_NATIVE

שדות

protected IDeviceMonitor mAllocationMonitor

protected IDeviceManager mDeviceManager

protected boolean mFastbootEnabled

‫constructors ציבוריים

ManagedTestDeviceFactory(boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)

‫methods ציבוריים

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 אם הפעלנו אותה בסביבה מרוחקת.

ערכים קבועים

IPADDRESS_PATTERN

public static final String IPADDRESS_PATTERN

ערך קבוע: "((^([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

ערך קבוע: "NOTIFY_AS_NATIVE"

שדות

mAllocationMonitor

protected IDeviceMonitor mAllocationMonitor

mDeviceManager

protected IDeviceManager mDeviceManager

mFastbootEnabled

protected boolean mFastbootEnabled

‫constructors ציבוריים

ManagedTestDeviceFactory

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

פרמטרים
fastbootEnabled boolean

deviceManager IDeviceManager

allocationMonitor IDeviceMonitor

‫methods ציבוריים

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