Home
last modified time | relevance | path

Searched refs:getForegroundThreadScheduler (Results 1 – 25 of 31) sorted by relevance

12

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSystemClockTest.java24 Robolectric.getForegroundThreadScheduler().advanceTo(1000); in shouldAllowForFakingOfTime()
30 Robolectric.getForegroundThreadScheduler().advanceTo(1000); in sleep()
37 Robolectric.getForegroundThreadScheduler().advanceTo(1000); in testSetCurrentTime()
47 Robolectric.getForegroundThreadScheduler().advanceTo(1000); in testElapsedRealtime()
49 Robolectric.getForegroundThreadScheduler().advanceTo(1034); in testElapsedRealtime()
55 Robolectric.getForegroundThreadScheduler().advanceTo(1000); in testElapsedRealtimeNanos()
57 Robolectric.getForegroundThreadScheduler().advanceTo(1034); in testElapsedRealtimeNanos()
DShadowRenderNodeAnimatorTest.java49 Robolectric.getForegroundThreadScheduler().pause(); in canceled()
112 Robolectric.getForegroundThreadScheduler().pause(); in doubleCanceled()
127 Robolectric.getForegroundThreadScheduler().pause(); in doubleEnded()
142 Robolectric.getForegroundThreadScheduler().pause(); in delayedAndCanceled()
DShadowVibratorTest.java56 Robolectric.getForegroundThreadScheduler().advanceToNextPostedRunnable(); in vibrateMilliseconds()
88 Robolectric.getForegroundThreadScheduler().advanceToNextPostedRunnable(); in vibrateOneShotEffect()
DShadowHandlerTest.java375 final long startTime = Robolectric.getForegroundThreadScheduler().getCurrentTime(); in scheduler_wontDispatchRemovedMessage_evenIfMessageReused()
497 final long startTime = Robolectric.getForegroundThreadScheduler().getCurrentTime(); in shouldSetWhenOnMessage()
500 Robolectric.getForegroundThreadScheduler().advanceToLastPostedRunnable(); in shouldSetWhenOnMessage()
502 Robolectric.getForegroundThreadScheduler().advanceToLastPostedRunnable(); in shouldSetWhenOnMessage()
DShadowAsyncTaskTest.java29 Robolectric.getForegroundThreadScheduler().pause(); in setUp()
136 Robolectric.getForegroundThreadScheduler().unPause(); in onPostExecute_doesNotSwallowExceptions()
DShadowChoreographerTest.java36 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceToLastPostedRunnable(); in removeFrameCallback_shouldRemoveCallback()
DShadowObjectAnimatorTest.java45 Robolectric.getForegroundThreadScheduler().pause(); in start_shouldRunAnimation()
DShadowValueAnimatorTest.java55 Robolectric.getForegroundThreadScheduler().pause(); in test_WhenInfiniteAnimationIsPlayed_AnimationIsOnlyPlayedOnce()
DShadowAutoCompleteTextViewTest.java27 Robolectric.getForegroundThreadScheduler().pause(); in shouldInvokeFilter()
DShadowAsyncTaskLoaderTest.java21 Robolectric.getForegroundThreadScheduler().pause(); in setUp()
DShadowApplicationTest.java563 …assertThat(shadowApplication.getForegroundThreadScheduler()).isSameInstanceAs(Robolectric.getForeg… in getThreadScheduler_shouldMatchRobolectricValue()
572 assertThat(shadowApplication.getForegroundThreadScheduler()).isSameInstanceAs(s); in getForegroundThreadScheduler_shouldMatchRuntimeEnvironment()
DShadowViewTest.java323 Robolectric.getForegroundThreadScheduler().advanceBy(1); in shouldPostActionsToTheMessageQueueWithDelay()
334 Robolectric.getForegroundThreadScheduler().advanceBy(1); in shouldRemovePostedCallbacksFromMessageQueue()
497 Robolectric.getForegroundThreadScheduler().advanceToNextPostedRunnable(); in setAnimation()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowScroller.java60 startTime = ShadowApplication.getInstance().getForegroundThreadScheduler().getCurrentTime(); in startScroll()
64 ShadowApplication.getInstance().getForegroundThreadScheduler().postDelayed(new Runnable() { in startScroll()
92 …return ShadowApplication.getInstance().getForegroundThreadScheduler().getCurrentTime() - startTime; in deltaTime()
DShadowSystemClock.java29 return ShadowApplication.getInstance().getForegroundThreadScheduler().getCurrentTime(); in now()
39 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceBy(millis); in sleep()
52 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceTo(millis); in setCurrentTimeMillis()
DShadowAsyncTask.java34 ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() { in ShadowAsyncTask()
44 ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() { in ShadowAsyncTask()
131 ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() { in publishProgress()
DShadowAsyncTaskLoader.java29 ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() { in onForceLoad()
DShadowApplication.java38 ? getForegroundThreadScheduler()
90 public Scheduler getForegroundThreadScheduler() { in getForegroundThreadScheduler() method in ShadowApplication
DShadowView.java363 ShadowApplication.getInstance().getForegroundThreadScheduler().post(action); in post()
369 ShadowApplication.getInstance().getForegroundThreadScheduler().postDelayed(action, delayMills); in postDelayed()
375 ShadowApplication.getInstance().getForegroundThreadScheduler().postDelayed(new Runnable() { in postInvalidateDelayed()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DRobolectric.java187 public static Scheduler getForegroundThreadScheduler() { in getForegroundThreadScheduler() method in Robolectric
188 return ShadowApplication.getInstance().getForegroundThreadScheduler(); in getForegroundThreadScheduler()
195 getForegroundThreadScheduler().advanceToLastPostedRunnable(); in flushForegroundThreadScheduler()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/
DParallelUniverseTest.java59 .isSameInstanceAs(ShadowApplication.getInstance().getForegroundThreadScheduler()); in setUpApplicationState_configuresGlobalScheduler()
70 .isSameInstanceAs(shadowApplication.getForegroundThreadScheduler()); in setUpApplicationState_setsBackgroundScheduler_toBeSameAsForeground_whenAdvancedScheduling()
84 .isNotSameInstanceAs(shadowApplication.getForegroundThreadScheduler()); in setUpApplicationState_setsBackgroundScheduler_toBeDifferentToForeground_byDefault()
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/
DShadowAsyncTaskLoader.java29 Robolectric.getForegroundThreadScheduler().post(new Runnable() { in onForceLoad()
DShadowLocalBroadcastManager.java64 Robolectric.getForegroundThreadScheduler().post(new Runnable() {
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/shadows/support/v4/
DShadowAsyncTaskLoaderTest.java21 Robolectric.getForegroundThreadScheduler().pause(); in setUp()
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/robotests/
DOtherProfileListenableFutureTest.java105 Robolectric.getForegroundThreadScheduler().advanceBy(5, TimeUnit.SECONDS); in other_listenableFuture_automaticConnection_workProfileIsTurnedOn_doesNotSetUnavailableProfileException()
138 Robolectric.getForegroundThreadScheduler().advanceBy(5, TimeUnit.SECONDS); in other_listenableFuture_automaticConnection_connectionIsDroppedDuringCall_setUnavailableProfileException()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DActivityControllerTest.java67 final Scheduler s = Robolectric.getForegroundThreadScheduler(); in pendingTasks_areRunEagerly_whenActivityIsStarted_andSchedulerUnPaused()
77 final Scheduler s = Robolectric.getForegroundThreadScheduler(); in delayedTasks_areNotRunEagerly_whenActivityIsStarted_andSchedulerUnPaused()

12