java.lang.Object |
↳ |
java.lang.Throwable |
|
↳ |
java.lang.Exception |
|
|
↳ |
java.lang.RuntimeException |
|
|
|
↳ |
android.support.test.espresso.AppNotIdleException |
Class Overview
An exception which indicates that the App has not become idle even after the specified duration.
Summary
Public Methods |
static
AppNotIdleException
|
create(List<String> idleConditions, int loopCount, int seconds)
Creates a new AppNotIdleException suitable for erroring out a test case.
|
[Expand]
Inherited Methods |
From class
java.lang.Throwable
final
void
|
addSuppressed(Throwable arg0)
|
Throwable
|
fillInStackTrace()
|
Throwable
|
getCause()
|
String
|
getLocalizedMessage()
|
String
|
getMessage()
|
StackTraceElement[]
|
getStackTrace()
|
final
Throwable[]
|
getSuppressed()
|
Throwable
|
initCause(Throwable arg0)
|
void
|
printStackTrace(PrintStream arg0)
|
void
|
printStackTrace(PrintWriter arg0)
|
void
|
printStackTrace()
|
void
|
setStackTrace(StackTraceElement[] arg0)
|
String
|
toString()
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Methods
public
static
AppNotIdleException
create
(List<String> idleConditions, int loopCount, int seconds)
Creates a new AppNotIdleException suitable for erroring out a test case.
This should be called only from the main thread if the app does not idle out within the
specified duration.
Parameters
idleConditions
| list of idleConditions that failed to become idle. |
loopCount
| number of times it was tried to check if they became idle. |
seconds
| number of seconds that was tried before giving up. |
Returns
- a AppNotIdleException suitable to be thrown on the instrumentation thread.