DeviceMonitorMultiplexer
public
class
DeviceMonitorMultiplexer
extends Object
implements
IDeviceMonitor
java.lang.Object | |
↳ | com.android.tradefed.device.DeviceMonitorMultiplexer |
A proxy class to propagate requests to multiple IDeviceMonitor
s.
Summary
Public constructors | |
---|---|
DeviceMonitorMultiplexer()
|
Public methods | |
---|---|
void
|
addMonitor(IDeviceMonitor globalDeviceMonitor)
|
void
|
addMonitors(List<IDeviceMonitor> globalDeviceMonitors)
|
void
|
notifyDeviceStateChange(String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
Signals the |
void
|
removeMonitor(IDeviceMonitor mon)
|
void
|
run()
A method that will be called after all of the Monitor's @Option fields have been set. |
void
|
setDeviceLister(IDeviceMonitor.DeviceLister lister)
Allows the |
void
|
stop()
A method that will be called when the Monitor need to be stopped. |
Public constructors
DeviceMonitorMultiplexer
public DeviceMonitorMultiplexer ()
Public methods
addMonitor
public void addMonitor (IDeviceMonitor globalDeviceMonitor)
Parameters | |
---|---|
globalDeviceMonitor |
IDeviceMonitor |
addMonitors
public void addMonitors (List<IDeviceMonitor> globalDeviceMonitors)
Parameters | |
---|---|
globalDeviceMonitors |
List |
notifyDeviceStateChange
public void notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
Signals the IDeviceMonitor
that a device state has been changed.
Monitor implementations should limit the amount of processing and
IDeviceManager/DeviceLister interaction they do in this method.
Parameters | |
---|---|
serial |
String |
oldState |
DeviceAllocationState |
newState |
DeviceAllocationState |
run
public void run ()
A method that will be called after all of the Monitor's @Option fields have been set.
setDeviceLister
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
Allows the IDeviceMonitor.DeviceLister
to be set. After a successful attempt to set the Lister,
implementations may discard all subsequent attempts.
Parameters | |
---|---|
lister |
IDeviceMonitor.DeviceLister |
stop
public void stop ()
A method that will be called when the Monitor need to be stopped.
Interfaces
- IAndroidDebugBridge
- IBatteryTemperature
- IDeviceManager
- IDeviceManager.IFastbootListener
- IDeviceMonitor
- IDeviceRecovery
- IDeviceSelection
- IDeviceStateMonitor
- IFileEntry
- ILogcatReceiver
- IManagedTestDevice
- IManagedTestDeviceFactory
- IMultiDeviceRecovery
- INativeDevice
- ITestDevice
- ITestDeviceMutator
- IWifiHelper
- NativeDevice.DeviceAction
Classes
- AndroidDebugBridgeWrapper
- BackgroundDeviceAction
- BatteryTemperature
- BatteryTemperature.DumpsysBatteryTemperatureReceiver
- CollectingByteOutputReceiver
- CollectingOutputReceiver
- CpuStatsCollector
- CpuStatsCollector.CpuStats
- CpuStatsCollector.CpuStatsReceiver
- DeviceDiagTest
- DeviceManager
- DeviceManager.FastbootDevice
- DeviceMonitorMultiplexer
- DeviceProperties
- DeviceSelectionOptions
- DeviceStateMonitor
- DeviceUtilStatsMonitor
- DeviceUtilStatsMonitor.UtilizationDesc
- DumpsysPackageReceiver
- FastbootHelper
- FileEntryWrapper
- IDeviceMonitor.DeviceLister
- IManagedTestDevice.DeviceEventResponse
- ITestDevice.MountPointInfo
- LargeOutputReceiver
- LogcatReceiver
- ManagedDeviceList
- ManagedTestDeviceFactory
- NativeDevice
- NativeDevice.AdbAction
- NativeDevice.AdbShellAction
- NativeDeviceStateMonitor
- NullDevice
- PackageInfo
- ReconnectingRecovery
- RemoteAndroidDevice
- RetryingWaitDeviceRecovery
- StubDevice
- TcpDevice
- TestDevice
- TestDeviceMutator
- TestDeviceOptions
- TopHelper
- TopHelper.TopReceiver
- TopHelper.TopStats
- WaitDeviceRecovery
- WifiHelper
Enums
Exceptions