/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowLooper.java | 63 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 …]
|
D | ShadowOverScroller.java | 63 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()
|
D | ShadowMessage.java | 35 shadowOf(target.getLooper()).getScheduler().remove(scheduledRunnable); in unschedule()
|
D | ShadowMessageQueue.java | 72 public Scheduler getScheduler() { in getScheduler() method in ShadowMessageQueue
|
D | ShadowView.java | 386 shadowLooper.getScheduler().remove(callback); in removeCallbacks()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowLooperTest.java | 157 …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 …]
|
D | ShadowContextWrapperTest.java | 129 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()
|
D | ShadowHandlerTest.java | 371 runAt.add(shadowOf(Looper.myLooper()).getScheduler().getCurrentTime()); in scheduler_wontDispatchRemovedMessage_evenIfMessageReused() 456 …assertWithMessage("currentTime").that(shadowOf(handler.getLooper()).getScheduler().getCurrentTime(… in shouldRemoveTaggedCallback()
|
D | ShadowMessageQueueTest.java | 69 scheduler = shadowQueue.getScheduler(); in setUp()
|
/external/exoplayer/tree/demos/main/src/main/java/com/google/android/exoplayer2/demo/ |
D | DemoDownloadService.java | 63 protected PlatformScheduler getScheduler() { in getScheduler() method in DemoDownloadService
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/ |
D | IntentServiceControllerTest.java | 177 shadowOf(handler.getLooper()).getScheduler().post(action); in runOnUiThread()
|
D | ServiceControllerTest.java | 180 shadowOf(handler.getLooper()).getScheduler().post(action); in runOnUiThread()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/ |
D | DownloadService.java | 584 @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/ |
D | DownloadServiceDashTest.java | 137 protected Scheduler getScheduler() { in setUp()
|
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-reactor/api/ |
D | kotlinx-coroutines-reactor.api | 50 public final fun getScheduler ()Lreactor/core/scheduler/Scheduler;
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/internal/ |
D | ParallelUniverseTest.java | 57 .isSameInstanceAs(ShadowLooper.getShadowMainLooper().getScheduler()); in setUpApplicationState_configuresGlobalScheduler()
|
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx3/api/ |
D | kotlinx-coroutines-rx3.api | 72 public final fun getScheduler ()Lio/reactivex/rxjava3/core/Scheduler;
|
/external/kotlinx.coroutines/reactive/kotlinx-coroutines-rx2/api/ |
D | kotlinx-coroutines-rx2.api | 85 public final fun getScheduler ()Lio/reactivex/Scheduler;
|