Here are the examples of the java api class com.google.android.apps.common.testing.ui.espresso.base.QueueInterrogator.QueueState taken from open source projects.
1. LooperIdlingResource#isIdleNow()
Project: double-espresso
File: LooperIdlingResource.java
File: LooperIdlingResource.java
@Override public boolean isIdleNow() { // on main thread here. QueueState state = queueInterrogator.determineQueueState(); boolean idle = state == QueueState.EMPTY || state == QueueState.TASK_DUE_LONG; boolean idleWait = considerWaitIdle && monitoredLooper.getThread().getState() == Thread.State.WAITING; if (idleWait) { if (resourceCallback != null) { resourceCallback.onTransitionToIdle(); } } return idle || idleWait; }