public class

StubDeviceRecovery

extends Object
implements IDeviceRecovery
java.lang.Object
   ↳ com.android.tradefed.device.StubDeviceRecovery

Class Overview

Empty implementation of a IDeviceRecovery.

Summary

Public Constructors
StubDeviceRecovery()
Public Methods
void recoverDevice(IDeviceStateMonitor monitor, boolean recoverUntilOnline)
Attempt to recover the given device that can no longer be communicated with.
void recoverDeviceBootloader(IDeviceStateMonitor monitor)
Attempt to recover the given unresponsive device in bootloader mode.
void recoverDeviceRecovery(IDeviceStateMonitor monitor)
Attempt to recover the given unresponsive device in recovery mode.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.device.IDeviceRecovery

Public Constructors

public StubDeviceRecovery ()

Public Methods

public 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 the IDeviceStateMonitor to use.
recoverUntilOnline 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.

public void recoverDeviceBootloader (IDeviceStateMonitor monitor)

Attempt to recover the given unresponsive device in bootloader mode.

Parameters
monitor the IDeviceStateMonitor to use.

public void recoverDeviceRecovery (IDeviceStateMonitor monitor)

Attempt to recover the given unresponsive device in recovery mode.

Parameters
monitor the IDeviceStateMonitor to use.