DeviceMonitorMultiplexer
public class DeviceMonitorMultiplexer
extends Object
implements IDeviceMonitor
java.lang.Object | |
. | com.android.tradefed.device.DeviceMonitorMultiplexer |
คลาสพร็อกซีเพื่อเผยแพร่คำขอไปยัง IDeviceMonitor
หลายรายการ
สรุป
ผู้สร้างสาธารณะ | |
---|---|
DeviceMonitorMultiplexer () |
วิธีการสาธารณะ | |
---|---|
void | addMonitor ( IDeviceMonitor globalDeviceMonitor) |
void | addMonitors ( globalDeviceMonitors) addMonitors ( globalDeviceMonitors) |
void | notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState) ส่งสัญญาณ |
void | removeMonitor ( IDeviceMonitor mon) |
void | run () เมธอดที่จะถูกเรียกหลังจากตั้งค่าฟิลด์ @Option ของ Monitor ทั้งหมดแล้ว |
void | setDeviceLister ( IDeviceMonitor.DeviceLister lister) อนุญาตให้ตั้งค่า |
void | stop () วิธีการที่จะเรียกเมื่อจำเป็นต้องหยุดการตรวจสอบ |
ผู้สร้างสาธารณะ
DeviceMonitorMultiplexer
public DeviceMonitorMultiplexer ()
วิธีการสาธารณะ
addMonitor
public void addMonitor (IDeviceMonitor globalDeviceMonitor)
พารามิเตอร์ | |
---|---|
globalDeviceMonitor | IDeviceMonitor |
เพิ่มจอภาพ
public void addMonitors (globalDeviceMonitors)
พารามิเตอร์ | |
---|---|
globalDeviceMonitors |
notifyDeviceStateChange
public void notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
ส่งสัญญาณ IDeviceMonitor
ว่าสถานะอุปกรณ์มีการเปลี่ยนแปลง การตรวจสอบการใช้งานควรจำกัดจำนวนการประมวลผลและการโต้ตอบของ IDeviceManager/DeviceLister ที่พวกเขาทำในวิธีนี้
พารามิเตอร์ | |
---|---|
serial | String |
oldState | DeviceAllocationState |
newState | DeviceAllocationState |
วิ่ง
public void run ()
เมธอดที่จะถูกเรียกหลังจากตั้งค่าฟิลด์ @Option ของ Monitor ทั้งหมดแล้ว
setDeviceLister
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
อนุญาตให้ตั้งค่า DeviceLister
หลังจากพยายามตั้งค่า Lister สำเร็จ การใช้งานอาจละทิ้งความพยายามที่ตามมาทั้งหมด
พารามิเตอร์ | |
---|---|
lister | IDeviceMonitor.DeviceLister |
หยุด
public void stop ()
วิธีการที่จะเรียกเมื่อจำเป็นต้องหยุดการตรวจสอบ