RetryingWaitDeviceRecovery

public class RetryingWaitDeviceRecovery
extends WaitDeviceRecovery

java.lang.Object
   ↳ com.android.tradefed.device.WaitDeviceRecovery
     ↳ com.android.tradefed.device.RetryingWaitDeviceRecovery


A WaitDeviceRecovery which retries its recovery step either indefinitely or for a certain number of iterations.

Summary

Public constructors

RetryingWaitDeviceRecovery()

Public methods

void recoverDevice(IDeviceStateMonitor monitor, boolean recoverUntilOnline)

Attempt to recover the given device that can no longer be communicated with.

Public constructors

RetryingWaitDeviceRecovery

RetryingWaitDeviceRecovery ()

Public methods

recoverDevice

void recoverDevice (IDeviceStateMonitor monitor, 
                boolean recoverUntilOnline)

Attempt to recover the given device that can no longer be communicated with.

Method should block and only return when device is in requested state.

Parameters
monitor IDeviceStateMonitor: the IDeviceStateMonitor to use.

recoverUntilOnline boolean: if true, method should return as soon as device is online on adb. If false, method should block until device is fully available for testing (ie waitForDeviceAvailable() succeeds.