IDeviceMonitor
public interface IDeviceMonitor
com.android.tradefed.device.IDeviceMonitor |
デバイスの状態を監視するためのインターフェース。渡されることを意図IDeviceManager
その時点でインスタンス、 IDeviceManager
関連するイベントがトリガされるコールバックを呼び出します。任意のキャッシュやバッチ処理は、内で実行する必要がIDeviceMonitor
インスタンス。
概要
ネストされたクラス | |
---|---|
class | IDeviceMonitor.DeviceLister A |
パブリックメソッド | |
---|---|
abstract void | notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState) 信号 |
abstract void | run () モニターのすべての@Optionフィールドが設定された後に呼び出されるメソッド。 |
abstract void | setDeviceLister ( IDeviceMonitor.DeviceLister lister) ことができます |
abstract void | stop () モニターを停止する必要があるときに呼び出されるメソッド。 |
パブリックメソッド
notifyDeviceStateChange
public abstract void notifyDeviceStateChange (String serial, DeviceAllocationState oldState, DeviceAllocationState newState)
信号IDeviceMonitor
デバイスの状態が変更されたことを。モニターの実装では、このメソッドで実行する処理の量とIDeviceManager / DeviceListerの相互作用を制限する必要があります。
パラメーター | |
---|---|
serial | String |
oldState | DeviceAllocationState |
newState | DeviceAllocationState |
走る
public abstract void run ()
モニターのすべての@Optionフィールドが設定された後に呼び出されるメソッド。
setDeviceLister
public abstract void setDeviceLister (IDeviceMonitor.DeviceLister lister)
ことができますDeviceLister
設定します。リスターの設定が成功した後、実装はそれ以降のすべての試行を破棄する場合があります。
パラメーター | |
---|---|
lister | IDeviceMonitor.DeviceLister |
ストップ
public abstract void stop ()
モニターを停止する必要があるときに呼び出されるメソッド。
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-10-04 UTC.