Home
last modified time | relevance | path

Searched refs:getScheduler (Results 1 – 18 of 18) 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.java157 …assertWithMessage("areAnyRunnable").that(shadowOf(looper).getScheduler().areAnyRunnable()).isFalse… in shouldNotQueueMessagesIfLooperIsQuit()
172 …assertWithMessage("areAnyRunnable").that(shadowOf(looper).getScheduler().areAnyRunnable()).isFalse… in shouldThrowawayRunnableQueueIfLooperQuits()
199 assertWithMessage("areAnyRunnable").that(sLooper.getScheduler().areAnyRunnable()).isFalse(); in shouldResetQueue_whenLooperIsReset()
208 Scheduler old = sLooper.getScheduler(); in shouldSetNewScheduler_whenLooperIsReset()
210 assertThat(old).isNotSameInstanceAs(sLooper.getScheduler()); in shouldSetNewScheduler_whenLooperIsReset()
248 Scheduler scheduler = shadowOf(mainLooper).getScheduler(); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()
264 …assertWithMessage("scheduler").that(shadowOf(mainLooper).getScheduler()).isNotSameInstanceAs(sched… in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()
265 assertWithMessage("scheduler").that(shadowOf(mainLooper).getScheduler()).isSameInstanceAs(s); in soStaticRefsToLoopersInAppWorksAcrossTests_shouldRetainSameLooperForMainThreadBetweenResetsButGiveItAFreshScheduler()
285 assertThat(sMainLooper.getScheduler()).isSameInstanceAs(s); in reset_setsGlobalScheduler_forMainLooper_byDefault()
295 assertThat(sMainLooper.getScheduler()).isSameInstanceAs(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.java371 runAt.add(shadowOf(Looper.myLooper()).getScheduler().getCurrentTime()); in scheduler_wontDispatchRemovedMessage_evenIfMessageReused()
456 …assertWithMessage("currentTime").that(shadowOf(handler.getLooper()).getScheduler().getCurrentTime(… in shouldRemoveTaggedCallback()
DShadowMessageQueueTest.java69 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/exoplayer/tree/library/dash/src/test/java/com/google/android/exoplayer2/source/dash/offline/
DDownloadServiceDashTest.java137 protected Scheduler getScheduler() { in setUp()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactor/api/
Dkotlinx-coroutines-reactor.api50 public final fun getScheduler ()Lreactor/core/scheduler/Scheduler;
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/
DParallelUniverseTest.java57 .isSameInstanceAs(ShadowLooper.getShadowMainLooper().getScheduler()); in setUpApplicationState_configuresGlobalScheduler()
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/api/
Dkotlinx-coroutines-rx3.api72 public final fun getScheduler ()Lio/reactivex/rxjava3/core/Scheduler;
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/api/
Dkotlinx-coroutines-rx2.api85 public final fun getScheduler ()Lio/reactivex/Scheduler;