ManagedTestDeviceFile
public
class
ManagedTestDeviceFactory
extends Object
implements
IManagedTestDeviceFactory
java.lang.Object | |
↳ | com.android.tradefed.device.ManagedTestDevicefactor |
مصنع لإنشاء أنواع مختلفة من الأجهزة التي يمكن مراقبتها بواسطة 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()
إنشاء |
IRunUtil
|
getRunUtil()
عرض مثيل |
boolean
|
isRemoteEnvironment()
قم بإرجاع القيمة "true" إذا كنا نقوم حاليًا بالتشغيل في بيئة بعيدة. |
boolean
|
isTcpDeviceSerial(String serial)
أداة مساعدة للجهاز إذا كان هذا الرقم تسلسليًا من جهاز متصل عن بُعد. |
الثوابت
frameWORK_CHECK_MAX_إعادة المحاولة
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
mFastbootEnabled
protected boolean mFastbootEnabled
شركة إنشاءات عامة
ManagedTestDeviceFile
public ManagedTestDeviceFactory (boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)
المعلمات | |
---|---|
fastbootEnabled |
boolean |
deviceManager |
IDeviceManager |
allocationMonitor |
IDeviceMonitor |
الطرق العامة
إنشاء جهاز
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 |
إنشاء جهاز استقبال الإخراج
protected CollectingOutputReceiver createOutputReceiver ()
إنشاء CollectingOutputReceiver
المرتجعات | |
---|---|
CollectingOutputReceiver |
بيئة التحكم عن بُعد
protected boolean isRemoteEnvironment ()
قم بإرجاع القيمة "true" إذا كنا نقوم حاليًا بالتشغيل في بيئة بعيدة. سيؤدي هذا إلى تغيير الجهاز السلوك.
المرتجعات | |
---|---|
boolean |
قناة isTcpDeviceSerial
protected boolean isTcpDeviceSerial (String serial)
أداة مساعدة للجهاز إذا كان هذا الرقم تسلسليًا من جهاز متصل عن بُعد.
التنسيق التسلسلي لجهاز tcp هو
المعلمات | |
---|---|
serial |
String |
المرتجعات | |
---|---|
boolean |