Home
last modified time | relevance | path

Searched refs:getBackgroundThreadScheduler (Results 1 – 13 of 13) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DRobolectricTest.java71 assertThat(Robolectric.getBackgroundThreadScheduler().isPaused()).isFalse(); in shouldResetBackgroundSchedulerBeforeTests()
72 Robolectric.getBackgroundThreadScheduler().pause(); in shouldResetBackgroundSchedulerBeforeTests()
77 assertThat(Robolectric.getBackgroundThreadScheduler().isPaused()).isFalse(); in shouldResetBackgroundSchedulerAfterTests()
78 Robolectric.getBackgroundThreadScheduler().pause(); in shouldResetBackgroundSchedulerAfterTests()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAsyncTaskTest.java28 Robolectric.getBackgroundThreadScheduler().pause(); in setUp()
118 Robolectric.getBackgroundThreadScheduler().unPause(); in executeReturnsAsyncTask()
129 Robolectric.getBackgroundThreadScheduler().unPause(); in shouldGetStatusForAsyncTask()
135 Robolectric.getBackgroundThreadScheduler().unPause(); in onPostExecute_doesNotSwallowExceptions()
DShadowAsyncTaskLoaderTest.java22 Robolectric.getBackgroundThreadScheduler().pause(); in setUp()
DShadowApplicationTest.java564 …assertThat(shadowApplication.getBackgroundThreadScheduler()).isSameInstanceAs(Robolectric.getBackg… in getThreadScheduler_shouldMatchRobolectricValue()
580 …assertThat(shadowApplication.getBackgroundThreadScheduler()).isNotSameInstanceAs(RuntimeEnvironmen… in getBackgroundThreadScheduler_shouldDifferFromRuntimeEnvironment_byDefault()
588 assertThat(shadowApplication.getBackgroundThreadScheduler()).isNotSameInstanceAs(s); in getBackgroundThreadScheduler_shouldDifferFromRuntimeEnvironment_withAdvancedScheduling()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/
DRobolectric.java203 public static Scheduler getBackgroundThreadScheduler() { in getBackgroundThreadScheduler() method in Robolectric
204 return ShadowApplication.getInstance().getBackgroundThreadScheduler(); in getBackgroundThreadScheduler()
211 getBackgroundThreadScheduler().advanceToLastPostedRunnable(); in flushBackgroundThreadScheduler()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowAsyncTaskLoader.java43 ShadowApplication.getInstance().getBackgroundThreadScheduler().post(future); in onForceLoad()
DShadowApplication.java67 getInstance().getBackgroundThreadScheduler().advanceBy(0); in runBackgroundTasks()
99 public Scheduler getBackgroundThreadScheduler() { in getBackgroundThreadScheduler() method in ShadowApplication
DShadowAsyncTask.java90 ShadowApplication.getInstance().getBackgroundThreadScheduler().post(new Runnable() { in execute()
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/
DShadowAsyncTaskLoader.java41 Robolectric.getBackgroundThreadScheduler().post(future); in onForceLoad()
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/shadows/support/v4/
DShadowAsyncTaskLoaderTest.java22 Robolectric.getBackgroundThreadScheduler().pause(); in setUp()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/
DParallelUniverseTest.java69 assertThat(shadowApplication.getBackgroundThreadScheduler()) in setUpApplicationState_setsBackgroundScheduler_toBeSameAsForeground_whenAdvancedScheduling()
83 assertThat(shadowApplication.getBackgroundThreadScheduler()) in setUpApplicationState_setsBackgroundScheduler_toBeDifferentToForeground_byDefault()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/util/concurrent/
DRoboExecutorServiceTest.java22 private final Scheduler backgroundScheduler = Robolectric.getBackgroundThreadScheduler();
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/util/concurrent/
DRoboExecutorService.java48 this.scheduler = ShadowApplication.getInstance().getBackgroundThreadScheduler(); in RoboExecutorService()