DeviceUnavailableMonitor

public final class DeviceUnavailableMonitor
extends Object implements ITestInvocationListener

java.lang.Object
   ↳ com.android.tradefed.invoker.DeviceUnavailableMonitor


This listener attempts to capture a test case level DNAE only.

Summary

Public constructors

DeviceUnavailableMonitor()

Public methods

DeviceNotAvailableException getUnavailableException()

Returns the exception if any was captured.

void invocationFailed(FailureDescription failure)
void invocationFailed(Throwable cause)
void invocationStarted(IInvocationContext context)
void testFailed(TestDescription test, FailureDescription failure)
void testRunFailed(FailureDescription failure)

Public constructors

DeviceUnavailableMonitor

public DeviceUnavailableMonitor ()

Public methods

getUnavailableException

public DeviceNotAvailableException getUnavailableException ()

Returns the exception if any was captured.

Returns
DeviceNotAvailableException

invocationFailed

public void invocationFailed (FailureDescription failure)

Parameters
failure FailureDescription

invocationFailed

public void invocationFailed (Throwable cause)

Parameters
cause Throwable

invocationStarted

public void invocationStarted (IInvocationContext context)

Parameters
context IInvocationContext

testFailed

public void testFailed (TestDescription test, 
                FailureDescription failure)

Parameters
test TestDescription

failure FailureDescription

testRunFailed

public void testRunFailed (FailureDescription failure)

Parameters
failure FailureDescription