Home
last modified time | relevance | path

Searched refs:CONSTANT_IDLE (Results 1 – 2 of 2) sorted by relevance

/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
DScheduler.java3 import static org.robolectric.util.Scheduler.IdleState.CONSTANT_IDLE;
49 CONSTANT_IDLE enumConstant
90 case CONSTANT_IDLE: in setIdleState()
159 …if ((idleState != CONSTANT_IDLE && (isPaused() || delayMillis > 0)) || Thread.currentThread() != a… in postDelayed()
324 setIdleState(shouldIdleConstantly ? CONSTANT_IDLE : UNPAUSED); in idleConstantly()
349 case CONSTANT_IDLE: in runOrQueueRunnable()
/external/robolectric-shadows/utils/src/test/java/org/robolectric/util/
DSchedulerTest.java5 import static org.robolectric.util.Scheduler.IdleState.CONSTANT_IDLE;
37 scheduler.setIdleState(CONSTANT_IDLE); in whenIdleStateIsConstantIdle_isPausedReturnsFalse()
65 assertThat(scheduler.getIdleState()).isSameInstanceAs(CONSTANT_IDLE); in idleConstantly_setsIdleState()
96 scheduler.setIdleState(CONSTANT_IDLE); in setIdleStateToConstantIdle_shouldRunAllTasks()
172 scheduler.setIdleState(CONSTANT_IDLE); in postDelayed_whileIdlingConstantly_executesImmediately()
180 scheduler.setIdleState(CONSTANT_IDLE); in postDelayed_whileIdlingConstantly_advancesTime()
420 scheduler.setIdleState(CONSTANT_IDLE); in nestedPostDelayed_whenIdlingConstantly_automaticallyExecutes3After()