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
.
Bản tóm tắt
Các nhà xây dựng công cộng | |
---|---|
DeviceMonitorMultiplexer () |
Phương pháp công khai | |
---|---|
void | addMonitor ( IDeviceMonitor globalDeviceMonitor) |
void | addMonitors ( globalDeviceMonitors) addMonitors ( globalDeviceMonitors) |
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 Màn hình đã được thiết lập. |
void | setDeviceLister ( IDeviceMonitor.DeviceLister lister) Cho phép thiết lập |
void | stop () Một phương thức sẽ được gọi khi cần dừng Màn hình. |
Các nhà xây dựng công cộng
DeviceMonitorMultiplexer
public DeviceMonitorMultiplexer ()
Phương pháp công khai
addMonitor
public void addMonitor (IDeviceMonitor globalDeviceMonitor)
Thông số | |
---|---|
globalDeviceMonitor | IDeviceMonitor |
addMonitors
public void addMonitors (globalDeviceMonitors)
Thông số | |
---|---|
globalDeviceMonitors |
tifyDeviceStateChange
public void notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
Báo hiệu cho IDeviceMonitor
rằng trạng thái thiết bị đã được thay đổi. Việc triển khai giám sát nên giới hạn số lượng xử lý và tương tác IDeviceManager / DeviceLister mà chúng thực hiện trong phương pháp này.
Thông 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 Màn hình đã được thiết lập.
setDeviceLister
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
Cho phép thiết lập DeviceLister
. Sau khi cố gắng thiết lập Lister thành công, việc triển khai có thể loại bỏ tất cả các lần thử tiếp theo.
Thông số | |
---|---|
lister | IDeviceMonitor.DeviceLister |
dừng lại
public void stop ()
Một phương thức sẽ được gọi khi cần dừng Màn hình.