Home
last modified time | relevance | path

Searched refs:getScheduler (Results 1 – 17 of 17) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowLooper.java63 shadowOf(looper).getScheduler().reset(); in resetThreadLoopers()
130 getScheduler().reset(); in quitUnchecked()
273 getScheduler().advanceBy(amount, unit); in idle()
277 getScheduler().idleConstantly(shouldIdleConstantly); in idleConstantly()
285 getScheduler().advanceToLastPostedRunnable(); in runToEndOfTasks()
293 getScheduler().advanceToNextPostedRunnable(); in runToNextTask()
302 getScheduler().runOneTask(); in runOneTask()
317 getScheduler().postDelayed(runnable, delayMillis, TimeUnit.MILLISECONDS); in post()
335 getScheduler().postAtFrontOfQueue(runnable); in postAtFrontOfQueue()
343 getScheduler().pause(); in pause()
[all …]
DShadowOverScroller.java63 startTime = getScheduler().getCurrentTime(); in startScroll()
67 getScheduler().postDelayed(new Runnable() { in startScroll()
120 return getScheduler().getCurrentTime() - startTime; in deltaTime()
123 private Scheduler getScheduler() { in getScheduler() method in ShadowOverScroller
125 return shadowLooper.getScheduler(); in getScheduler()
DShadowMessage.java35 shadowOf(target.getLooper()).getScheduler().remove(scheduledRunnable); in unschedule()
DShadowMessageQueue.java72 public Scheduler getScheduler() { in getScheduler() method in ShadowMessageQueue
DShadowView.java386 shadowLooper.getScheduler().remove(callback); in removeCallbacks()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowLooperTest.java156 assertThat(shadowOf(looper).getScheduler().areAnyRunnable()).named("areAnyRunnable").isFalse(); in shouldNotQueueMessagesIfLooperIsQuit()
171 assertThat(shadowOf(looper).getScheduler().areAnyRunnable()).named("areAnyRunnable").isFalse(); in shouldThrowawayRunnableQueueIfLooperQuits()
198 assertThat(sLooper.getScheduler().areAnyRunnable()).named("areAnyRunnable").isFalse(); in shouldResetQueue_whenLooperIsReset()
207 Scheduler old = sLooper.getScheduler(); in shouldSetNewScheduler_whenLooperIsReset()
209 assertThat(old).isNotSameAs(sLooper.getScheduler()); in shouldSetNewScheduler_whenLooperIsReset()
247 Scheduler scheduler = shadowOf(mainLooper).getScheduler(); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()
263 assertThat(shadowOf(mainLooper).getScheduler()).named("scheduler").isNotSameAs(scheduler); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()
264 assertThat(shadowOf(mainLooper).getScheduler()).named("scheduler").isSameAs(s); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()
284 assertThat(sMainLooper.getScheduler()).isSameAs(s); in reset_setsGlobalScheduler_forMainLooper_byDefault()
294 assertThat(sMainLooper.getScheduler()).isSameAs(s); in reset_setsGlobalScheduler_forMainLooper_withAdvancedScheduling()
[all …]
DShadowContextWrapperTest.java129 assertThat(shadowOf(handler.getLooper()).getScheduler().size()).isEqualTo(0); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()
131 assertThat(shadowOf(handler.getLooper()).getScheduler().size()).isEqualTo(1); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()
133 assertThat(shadowOf(handler.getLooper()).getScheduler().size()).isEqualTo(0); in sendBroadcast_shouldSendIntentUsingHandlerIfOneIsProvided()
DShadowHandlerTest.java370 runAt.add(shadowOf(Looper.myLooper()).getScheduler().getCurrentTime()); in scheduler_wontDispatchRemovedMessage_evenIfMessageReused()
455 …assertThat(shadowOf(handler.getLooper()).getScheduler().getCurrentTime()).named("currentTime").isE… in shouldRemoveTaggedCallback()
DShadowMessageQueueTest.java68 scheduler = shadowQueue.getScheduler(); in setUp()
/external/exoplayer/tree/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DDemoDownloadService.java63 protected PlatformScheduler getScheduler() { in getScheduler() method in DemoDownloadService
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DIntentServiceControllerTest.java177 shadowOf(handler.getLooper()).getScheduler().post(action); in runOnUiThread()
DServiceControllerTest.java180 shadowOf(handler.getLooper()).getScheduler().post(action); in runOnUiThread()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/
DDownloadService.java584 @Nullable Scheduler scheduler = foregroundAllowed ? getScheduler() : null; in onCreate()
723 protected abstract Scheduler getScheduler(); in getScheduler() method in DownloadService
/external/kotlinx.coroutines/binary-compatibility-validator/reference-public-api/
Dkotlinx-coroutines-reactor.txt48 public final fun getScheduler ()Lreactor/core/scheduler/Scheduler;
Dkotlinx-coroutines-rx2.txt76 public final fun getScheduler ()Lio/reactivex/Scheduler;
/external/exoplayer/tree/library/dash/src/test/java/com/google/android/exoplayer2/source/dash/offline/
DDownloadServiceDashTest.java137 protected Scheduler getScheduler() { in setUp()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/
DParallelUniverseTest.java57 .isSameAs(ShadowLooper.getShadowMainLooper().getScheduler()); in setUpApplicationState_configuresGlobalScheduler()