DeviceMonitorÇoğullayıcı
public class DeviceMonitorMultiplexer
extends Object
implements IDeviceMonitor
java.lang.Nesne | |
↳ | com.android.tradefed.device.DeviceMonitorÇoğullayıcı |
İstekleri birden çok IDeviceMonitor
s'ye yaymak için bir proxy sınıfı.
Özet
Kamu inşaatçıları | |
---|---|
DeviceMonitorMultiplexer () |
Genel yöntemler | |
---|---|
void | addMonitor ( IDeviceMonitor globalDeviceMonitor) |
void | addMonitors ( globalDeviceMonitors) addMonitors ( globalDeviceMonitors) |
void | notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState) |
void | removeMonitor ( IDeviceMonitor mon) |
void | run () Monitörün @Option alanlarının tümü ayarlandıktan sonra çağrılacak bir yöntem. |
void | setDeviceLister ( IDeviceMonitor.DeviceLister lister) |
void | stop () Monitörün durdurulması gerektiğinde çağrılacak bir yöntem. |
Kamu inşaatçıları
DeviceMonitorÇoğullayıcı
public DeviceMonitorMultiplexer ()
Genel yöntemler
addMonitor
public void addMonitor (IDeviceMonitor globalDeviceMonitor)
parametreler | |
---|---|
globalDeviceMonitor | IDeviceMonitor |
addMonitörler
public void addMonitors (globalDeviceMonitors)
parametreler | |
---|---|
globalDeviceMonitors |
notifyDeviceStateDeğiştir
public void notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
IDeviceMonitor
bir cihaz durumunun değiştirildiğini bildirir. İzleme uygulamaları, bu yöntemde yaptıkları işleme miktarını ve IDeviceManager/DeviceLister etkileşimini sınırlamalıdır.
parametreler | |
---|---|
serial | String |
oldState | DeviceAllocationState |
newState | DeviceAllocationState |
koşmak
public void run ()
Monitörün @Option alanlarının tümü ayarlandıktan sonra çağrılacak bir yöntem.
setDeviceLister
public void setDeviceLister (IDeviceMonitor.DeviceLister lister)
DeviceLister
ayarlanmasına izin verir. Listeleyiciyi ayarlamak için başarılı bir denemeden sonra, uygulamalar sonraki tüm denemeleri iptal edebilir.
parametreler | |
---|---|
lister | IDeviceMonitor.DeviceLister |
Dur
public void stop ()
Monitörün durdurulması gerektiğinde çağrılacak bir yöntem.