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
|
เครื่องมือสร้างสาธารณะ | |
|---|---|
ManagedTestDeviceFactory(boolean fastbootEnabled, IDeviceManager deviceManager, IDeviceMonitor allocationMonitor)
|
|
เมธอดสาธารณะ | |
|---|---|
IManagedTestDevice
|
createDevice(IDevice idevice)
สร้าง |
IManagedTestDevice
|
createRequestedDevice(IDevice idevice, IDeviceSelection options)
สร้างอุปกรณ์ที่ตรงกับข้อกำหนดโดยเฉพาะ |
static
boolean
|
isTcpDeviceSerial(String serial)
ผู้ช่วยไปยังอุปกรณ์หากเป็นหมายเลขซีเรียลจากอุปกรณ์ที่เชื่อมต่อจากระยะไกล |
void
|
setFastbootEnabled(boolean enable)
เปิดใช้หรือไม่เปิดใช้การรองรับ Fastboot สำหรับอุปกรณ์ที่สร้างขึ้น |
วิธีการที่ได้รับการป้องกัน | |
|---|---|
CollectingOutputReceiver
|
createOutputReceiver()
สร้าง |
IRunUtil
|
getRunUtil()
ส่งคืนอินสแตนซ์ |
boolean
|
isRemoteEnvironment()
แสดงค่าจริงหากเรากำลังทำงานในสภาพแวดล้อมระยะไกล |
ค่าคงที่
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"
ทุ่ง
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 ที่ส่งไปยัง IManagedTestDevice
| พารามิเตอร์ | |
|---|---|
idevice |
IDevice: ที่จะกำหนดประเภทของอุปกรณ์ที่สร้างขึ้น |
| การคืนสินค้า | |
|---|---|
IManagedTestDevice |
a IManagedTestDevice created base on the IDevice |
createRequestedDevice
public IManagedTestDevice createRequestedDevice (IDevice idevice, IDeviceSelection options)
สร้างอุปกรณ์ที่ตรงกับข้อกำหนดโดยเฉพาะ
| พารามิเตอร์ | |
|---|---|
idevice |
IDevice |
options |
IDeviceSelection |
| การคืนสินค้า | |
|---|---|
IManagedTestDevice |
|
isTcpDeviceSerial
public static boolean isTcpDeviceSerial (String serial)
Helper to device if it's a serial from a remotely connected device. serial format of tcp
device is
| พารามิเตอร์ | |
|---|---|
serial |
String |
| การคืนสินค้า | |
|---|---|
boolean |
|
setFastbootEnabled
public void setFastbootEnabled (boolean enable)
เปิดใช้หรือไม่เปิดใช้การรองรับ Fastboot สำหรับอุปกรณ์ที่สร้างขึ้น
| พารามิเตอร์ | |
|---|---|
enable |
boolean: value set the support. |
วิธีการที่ได้รับการป้องกัน
createOutputReceiver
protected CollectingOutputReceiver createOutputReceiver ()
สร้าง CollectingOutputReceiver
| การคืนสินค้า | |
|---|---|
CollectingOutputReceiver |
|
isRemoteEnvironment
protected boolean isRemoteEnvironment ()
แสดงค่าจริงหากเรากำลังทำงานในสภาพแวดล้อมระยะไกล ซึ่งจะเปลี่ยนลักษณะการทำงานของอุปกรณ์
| การคืนสินค้า | |
|---|---|
boolean |
|