/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowSystemClockTest.java | 24 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()
|
D | ShadowRenderNodeAnimatorTest.java | 49 Robolectric.getForegroundThreadScheduler().pause(); in canceled() 112 Robolectric.getForegroundThreadScheduler().pause(); in doubleCanceled() 127 Robolectric.getForegroundThreadScheduler().pause(); in doubleEnded() 142 Robolectric.getForegroundThreadScheduler().pause(); in delayedAndCanceled()
|
D | ShadowVibratorTest.java | 56 Robolectric.getForegroundThreadScheduler().advanceToNextPostedRunnable(); in vibrateMilliseconds() 88 Robolectric.getForegroundThreadScheduler().advanceToNextPostedRunnable(); in vibrateOneShotEffect()
|
D | ShadowHandlerTest.java | 375 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()
|
D | ShadowAsyncTaskTest.java | 29 Robolectric.getForegroundThreadScheduler().pause(); in setUp() 136 Robolectric.getForegroundThreadScheduler().unPause(); in onPostExecute_doesNotSwallowExceptions()
|
D | ShadowChoreographerTest.java | 36 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceToLastPostedRunnable(); in removeFrameCallback_shouldRemoveCallback()
|
D | ShadowObjectAnimatorTest.java | 45 Robolectric.getForegroundThreadScheduler().pause(); in start_shouldRunAnimation()
|
D | ShadowValueAnimatorTest.java | 55 Robolectric.getForegroundThreadScheduler().pause(); in test_WhenInfiniteAnimationIsPlayed_AnimationIsOnlyPlayedOnce()
|
D | ShadowAutoCompleteTextViewTest.java | 27 Robolectric.getForegroundThreadScheduler().pause(); in shouldInvokeFilter()
|
D | ShadowAsyncTaskLoaderTest.java | 21 Robolectric.getForegroundThreadScheduler().pause(); in setUp()
|
D | ShadowApplicationTest.java | 563 …assertThat(shadowApplication.getForegroundThreadScheduler()).isSameInstanceAs(Robolectric.getForeg… in getThreadScheduler_shouldMatchRobolectricValue() 572 assertThat(shadowApplication.getForegroundThreadScheduler()).isSameInstanceAs(s); in getForegroundThreadScheduler_shouldMatchRuntimeEnvironment()
|
D | ShadowViewTest.java | 323 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/ |
D | ShadowScroller.java | 60 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()
|
D | ShadowSystemClock.java | 29 return ShadowApplication.getInstance().getForegroundThreadScheduler().getCurrentTime(); in now() 39 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceBy(millis); in sleep() 52 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceTo(millis); in setCurrentTimeMillis()
|
D | ShadowAsyncTask.java | 34 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()
|
D | ShadowAsyncTaskLoader.java | 29 ShadowApplication.getInstance().getForegroundThreadScheduler().post(new Runnable() { in onForceLoad()
|
D | ShadowApplication.java | 38 ? getForegroundThreadScheduler() 90 public Scheduler getForegroundThreadScheduler() { in getForegroundThreadScheduler() method in ShadowApplication
|
D | ShadowView.java | 363 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/ |
D | Robolectric.java | 187 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/ |
D | ParallelUniverseTest.java | 59 .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/ |
D | ShadowAsyncTaskLoader.java | 29 Robolectric.getForegroundThreadScheduler().post(new Runnable() { in onForceLoad()
|
D | ShadowLocalBroadcastManager.java | 64 Robolectric.getForegroundThreadScheduler().post(new Runnable() {
|
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/shadows/support/v4/ |
D | ShadowAsyncTaskLoaderTest.java | 21 Robolectric.getForegroundThreadScheduler().pause(); in setUp()
|
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/robotests/ |
D | OtherProfileListenableFutureTest.java | 105 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/ |
D | ActivityControllerTest.java | 67 final Scheduler s = Robolectric.getForegroundThreadScheduler(); in pendingTasks_areRunEagerly_whenActivityIsStarted_andSchedulerUnPaused() 77 final Scheduler s = Robolectric.getForegroundThreadScheduler(); in delayedTasks_areNotRunEagerly_whenActivityIsStarted_andSchedulerUnPaused()
|