DeviceMonitorMultiplexer

public class DeviceMonitorMultiplexer
extends Object implements IDeviceMonitor

java.lang.Object
com.android.tradefed.device.DeviceMonitorMultiplexer


คลาสพร็อกซีเพื่อเผยแพร่คำขอไปยัง IDeviceMonitor หลายรายการ

สรุป

เครื่องมือสร้างสาธารณะ

DeviceMonitorMultiplexer()

เมธอดสาธารณะ

void addMonitor(IDeviceMonitor globalDeviceMonitor)
void addMonitors(List<IDeviceMonitor> globalDeviceMonitors)
void notifyDeviceStateChange(String serial, DeviceAllocationState oldState, DeviceAllocationState newState)

ส่งสัญญาณไปยัง IDeviceMonitor ว่าสถานะอุปกรณ์มีการเปลี่ยนแปลง

void removeMonitor(IDeviceMonitor mon)
void run()

เมธอดที่จะเรียกใช้หลังจากตั้งค่าช่อง @Option ทั้งหมดของมอนิเตอร์แล้ว

void setDeviceLister(IDeviceMonitor.DeviceLister lister)

อนุญาตให้ตั้งค่า DeviceLister

void stop()

เมธอดที่จะเรียกใช้เมื่อต้องหยุดมอนิเตอร์

เครื่องมือสร้างสาธารณะ

DeviceMonitorMultiplexer

public DeviceMonitorMultiplexer ()

เมธอดสาธารณะ

addMonitor

public void addMonitor (IDeviceMonitor globalDeviceMonitor)

พารามิเตอร์
globalDeviceMonitor IDeviceMonitor

addMonitors

public void addMonitors (List<IDeviceMonitor> globalDeviceMonitors)

พารามิเตอร์
globalDeviceMonitors List

notifyDeviceStateChange

public void notifyDeviceStateChange (String serial, 
                DeviceAllocationState oldState, 
                DeviceAllocationState newState)

ส่งสัญญาณไปยัง IDeviceMonitor ว่าสถานะอุปกรณ์มีการเปลี่ยนแปลง การติดตั้งใช้งานมอนิเตอร์ควรจำกัดปริมาณการประมวลผลและการโต้ตอบ IDeviceManager/DeviceLister ที่ดำเนินการในเมธอดนี้

พารามิเตอร์
serial String

oldState DeviceAllocationState

newState DeviceAllocationState

removeMonitor

public void removeMonitor (IDeviceMonitor mon)

พารามิเตอร์
mon IDeviceMonitor

run

public void run ()

เมธอดที่จะเรียกใช้หลังจากตั้งค่าช่อง @Option ทั้งหมดของมอนิเตอร์แล้ว

setDeviceLister

public void setDeviceLister (IDeviceMonitor.DeviceLister lister)

อนุญาตให้ตั้งค่า DeviceLister หลังจากพยายามตั้งค่า Lister สำเร็จแล้ว การติดตั้งใช้งานอาจทิ้งความพยายามทั้งหมดในภายหลัง

พารามิเตอร์
lister IDeviceMonitor.DeviceLister

stop

public void stop ()

เมธอดที่จะเรียกใช้เมื่อต้องหยุดมอนิเตอร์