Google致力於提高黑人社區的種族平等。 怎麼看。
本頁面由 Cloud Translation API 翻譯而成。
Switch to English

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)

IDeviceMonitor設備狀態已更改。

void removeMonitor ( IDeviceMonitor mon)
void run ()

設置所有Monitor的@Option字段後將調用的方法。

void setDeviceLister ( IDeviceMonitor.DeviceLister lister)

允許設置DeviceLister

void stop ()

需要停止Monitor時將調用的方法。

公共建設者

DeviceMonitorMultiplexer

public DeviceMonitorMultiplexer ()

公開方法

addMonitor

public void addMonitor ( IDeviceMonitor globalDeviceMonitor)

參量
globalDeviceMonitor IDeviceMonitor

addMonitors

public void addMonitors ( globalDeviceMonitors)

參量
globalDeviceMonitors

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

public void run ()

設置所有Monitor的@Option字段後將調用的方法。

setDeviceLister

public void setDeviceLister ( IDeviceMonitor.DeviceLister lister)

允許設置DeviceLister 。成功嘗試設置Lister後,實現可能會丟棄所有後續嘗試。

參量
lister IDeviceMonitor.DeviceLister

public void stop ()

需要停止Monitor時將調用的方法。