DeviceMonitorMultiplexer
public
class
DeviceMonitorMultiplexer
extends Object
implements
IDeviceMonitor
java.lang.Object | |
↳ | com.android.tradefed.device.DeviceMonitorMultiplexer |
Một lớp proxy để truyền yêu cầu đến nhiều IDeviceMonitor
.
Tóm tắt
Hàm khởi tạo công khai | |
---|---|
DeviceMonitorMultiplexer()
|
Phương thức công khai | |
---|---|
void
|
addMonitor(IDeviceMonitor globalDeviceMonitor)
|
void
|
addMonitors(
|
void
|
notifyDeviceStateChange(String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
Báo hiệu cho |
void
|
removeMonitor(IDeviceMonitor mon)
|
void
|
run()
Một phương thức sẽ được gọi sau khi tất cả các trường @Option của Monitor đã được đặt. |
void
|
setDeviceLister(IDeviceMonitor.DeviceLister lister)
Cho phép đặt |
void
|
stop()
Một phương thức sẽ được gọi khi cần dừng Trình theo dõi. |
Hàm khởi tạo công khai
DeviceMonitorMultiplexer
public DeviceMonitorMultiplexer ()
Phương thức công khai
addMonitor
public void addMonitor (IDeviceMonitor globalDeviceMonitor)
Tham số | |
---|---|
globalDeviceMonitor |
IDeviceMonitor |
addMonitors
public void addMonitors (globalDeviceMonitors)
Tham số | |
---|---|
globalDeviceMonitors |
|
notifyDeviceStateChange
public void notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
Báo hiệu cho IDeviceMonitor
rằng trạng thái thiết bị đã thay đổi.
Việc triển khai giám sát phải giới hạn lượng dữ liệu xử lý và tương tác IDeviceManager/DeviceLister mà chúng thực hiện trong phương thức này.
Tham số | |
---|---|
serial |
String |
oldState |
DeviceAllocationState |
newState |
DeviceAllocationState |
chạy
public void run ()
Một phương thức sẽ được gọi sau khi tất cả các trường @Option của Monitor đã được đặt.
setDeviceLister
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
Cho phép đặt DeviceLister
. Sau khi thiết lập thành công Lister, các hoạt động triển khai có thể loại bỏ tất cả các lần thử tiếp theo.
Tham số | |
---|---|
lister |
IDeviceMonitor.DeviceLister |
điểm dừng
public void stop ()
Một phương thức sẽ được gọi khi cần dừng Trình theo dõi.