Home
last modified time | relevance | path

Searched refs:postDelayed (Results 1 – 25 of 61) sorted by relevance

123

/external/robolectric-shadows/utils/src/test/java/org/robolectric/util/
DSchedulerTest.java79 scheduler.postDelayed(new AddToTranscript("one"), 0); in setIdleStateToUnPause_shouldRunPendingTasks()
80 scheduler.postDelayed(new AddToTranscript("two"), 0); in setIdleStateToUnPause_shouldRunPendingTasks()
81 scheduler.postDelayed(new AddToTranscript("three"), 1000); in setIdleStateToUnPause_shouldRunPendingTasks()
91 scheduler.postDelayed(new AddToTranscript("one"), 0); in setIdleStateToConstantIdle_shouldRunAllTasks()
92 scheduler.postDelayed(new AddToTranscript("two"), 0); in setIdleStateToConstantIdle_shouldRunAllTasks()
93 scheduler.postDelayed(new AddToTranscript("three"), 1000); in setIdleStateToConstantIdle_shouldRunAllTasks()
103 scheduler.postDelayed(new AddToTranscript("one"), 0); in unPause_shouldRunPendingTasks()
104 scheduler.postDelayed(new AddToTranscript("two"), 0); in unPause_shouldRunPendingTasks()
105 scheduler.postDelayed(new AddToTranscript("three"), 1000); in unPause_shouldRunPendingTasks()
116 scheduler.postDelayed(new AddToTranscript("one"), 0); in idleConstantlyTrue_shouldRunAllTasks()
[all …]
/external/exoplayer/tree/testutils/src/test/java/com/google/android/exoplayer2/testutil/
DFakeClockTest.java124 handler.postDelayed(testRunnables[0], 0); in testPostDelayed()
125 handler.postDelayed(testRunnables[1], 100); in testPostDelayed()
126 handler.postDelayed(testRunnables[2], 200); in testPostDelayed()
131 handler.postDelayed(testRunnables[3], 50); in testPostDelayed()
132 handler.postDelayed(testRunnables[4], 100); in testPostDelayed()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowHandlerTest.java113 new Handler().postDelayed(scratchRunnable, 1); in postDelayedThenIdleMainLooper_shouldNotRunRunnable()
120 new Handler().postDelayed(scratchRunnable, 1); in testPostDelayedThenRunMainLooperOneTask()
140 new Handler().postDelayed(scratchRunnable, 1); in testPostDelayedThenRunMainLooperToNextTask_shouldRunOneTask()
150 new Handler().postDelayed(task1, 1); in testPostDelayedTwiceThenRunMainLooperToNextTask_shouldRunMultipleTasks()
151 new Handler().postDelayed(task2, 1); in testPostDelayedTwiceThenRunMainLooperToNextTask_shouldRunMultipleTasks()
163 new Handler().postDelayed(task1, 1); in testPostDelayedTwiceThenRunMainLooperOneTask_shouldRunOnlyOneTask()
164 new Handler().postDelayed(task2, 1); in testPostDelayedTwiceThenRunMainLooperOneTask_shouldRunOnlyOneTask()
177 new Handler().postDelayed(task1, 1); in testPostDelayedMultipleThenRunMainLooperOneTask_shouldRunMultipleTask()
178 new Handler().postDelayed(task2, 10); in testPostDelayedMultipleThenRunMainLooperOneTask_shouldRunMultipleTask()
179 new Handler().postDelayed(task3, 100); in testPostDelayedMultipleThenRunMainLooperOneTask_shouldRunMultipleTask()
DShadowLooperTest.java107 new Handler().postDelayed(new Runnable() { in idleMainLooper_executesScheduledTasks()
125 new Handler().postDelayed(new Runnable() { in idleConstantly_runsPostDelayedTasksImmediately()
335 handler.postDelayed(empty, 5000); in resetThreadLoopers_resets_background_thread_schedulers()
401 handler1.postDelayed(new Runnable() { in withAdvancedScheduling_shouldDispatchMessagesOnBothLoopers_whenAdvancingForegroundThread()
407 handler2.postDelayed(new Runnable() { in withAdvancedScheduling_shouldDispatchMessagesOnBothLoopers_whenAdvancingForegroundThread()
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
DScheduler.java141 postDelayed(runnable, 0, TimeUnit.MILLISECONDS); in post()
150 public synchronized void postDelayed(Runnable runnable, long delayMillis) { in postDelayed() method in Scheduler
151 postDelayed(runnable, delayMillis, TimeUnit.MILLISECONDS); in postDelayed()
157 public synchronized void postDelayed(Runnable runnable, long delay, TimeUnit unit) { in postDelayed() method in Scheduler
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DAudioTest.java190 handler.postDelayed(requestBeepRunnable, msToRecord / 2); in doRecordingTestRepetition()
196 handler.postDelayed(stopBeepRunnable, msToRecord); in doRecordingTestRepetition()
224 handler.postDelayed(playBeepRunnable, 300); in beginPlaybackMeasurement()
263 handler.postDelayed(playBeepRunnable, (long) (period + Math.random() * 50 - 25));
320 handler.postDelayed(playBeepRunnable, (long) (period * 3 + Math.random() * 100 - 50));
339 … handler.postDelayed(processRecordingRunnable, (long) (msToRecord * 2 + Math.random() * 100 - 50));
DScreenResponseFragment.java183 handler.postDelayed(startBlinking, enableFullScreen ? 800 : 300); in startBlinkLatency()
206 handler.postDelayed(doBlinkRunnable, 100);
262 handler.postDelayed(doBlinkRunnable, 550 + (long) (Math.random()*100));
326 handler.postDelayed(doBlinkRunnable, 40 + (long) (Math.random()*20));
472 handler.postDelayed(startBrightness, enableFullScreen ? 1000 : CURVE_BLINK_TIME); in startBrightnessCurve()
494 handler.postDelayed(finishBrightnessCurve, CURVE_TIMEOUT);
497 handler.postDelayed(new Runnable() {
DMidiTest.java108 handler.postDelayed(cancelMidiOutRunnable, noteDelay * inputRepetitions + timeout); in testMidiOut()
134 handler.postDelayed(requestNoteRunnable, noteDelay); in testMidiIn()
273 handler.postDelayed(finishMidiInRunnable, timeout);
/external/connectedappssdk/tests/shared/src/main/java/com/google/android/enterprise/connectedapps/testapp/types/
DTestCrossProfileType.java127 .postDelayed( in listenableFutureVoidMethodWithNonBlockingDelay()
141 new Handler().postDelayed(() -> v.set(s), TimeUnit.SECONDS.toMillis(secondsDelay)); in listenableFutureIdentityStringMethodWithNonBlockingDelay()
151 new Handler().postDelayed(() -> v.set(s), TimeUnit.SECONDS.toMillis(secondsDelay)); in listenableFutureIdentityStringMethodWithNonBlockingDelayWith3SecondTimeout()
198 .postDelayed(() -> asyncVoidMethod(callback), TimeUnit.SECONDS.toMillis(secondsDelay)); in asyncVoidMethodWithNonBlockingDelay()
205 .postDelayed(() -> asyncVoidMethod(callback), TimeUnit.SECONDS.toMillis(secondsDelay)); in asyncVoidMethodWithNonBlockingDelayWith50SecondTimeout()
212 .postDelayed( in asyncIdentityStringMethodWithNonBlockingDelayWith3SecondTimeout()
220 .postDelayed( in asyncIdentityStringMethodWithNonBlockingDelay()
536 new Handler().postDelayed(() -> future.set(s), TimeUnit.SECONDS.toMillis(secondsDelay)); in simpleFutureIdentityStringMethodWithNonBlockingDelay()
DTestCrossProfileTypeWhichNeedsContext.java119 .postDelayed( in asyncIdentityStringMethodWhichDelays10SecondsOnWorkProfile()
135 .postDelayed( in futureIdentityStringMethodWhichDelays10SecondsOnWorkProfile()
/external/oboe/apps/OboeTester/app/src/main/java/com/google/sample/oboe/manualtest/
DNativeSniffer.java38 mHandler.postDelayed(this, SNIFFER_UPDATE_DELAY_MSEC); in startSniffer()
59 mHandler.postDelayed(this, SNIFFER_UPDATE_PERIOD_MSEC); in reschedule()
DRoundTripLatencyActivity.java108 mHandler.postDelayed(new Runnable() { in onAnalyserDone()
208 mHandler.postDelayed(runnableCode, SNIFFER_UPDATE_PERIOD_MSEC);
218 mHandler.postDelayed(runnableCode, SNIFFER_UPDATE_DELAY_MSEC); in startSniffer()
365 handler.postDelayed(new Runnable() { in processBundleFromIntent()
DManualGlitchActivity.java124 handler.postDelayed(new Runnable() { in processBundleFromIntent()
173 handler.postDelayed(new Runnable() { in startAutomaticTest()
/external/kotlinx.coroutines/kotlinx-coroutines-test/src/
DTestCoroutineDispatcher.kt64postDelayed(CancellableContinuationRunnable(continuation) { resumeUndispatched(Unit) }, timeMillis) in <lambda>()
69 val node = postDelayed(block, timeMillis) in <lambda>()
85 private fun postDelayed(block: Runnable, delayTime: Long) = in <lambda>() method in kotlinx.coroutines.test.TestCoroutineDispatcher
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DSystemHandlerWrapper.java82 public boolean postDelayed(Runnable runnable, long delayMs) { in postDelayed() method in SystemHandlerWrapper
83 return handler.postDelayed(runnable, delayMs); in postDelayed()
DHandlerWrapper.java60 boolean postDelayed(Runnable runnable, long delayMs); in postDelayed() method
/external/webrtc/sdk/android/api/org/webrtc/
DCameraVideoCapturer.java141 surfaceTextureHelper.getHandler().postDelayed(this, CAMERA_OBSERVER_PERIOD_MS);
154 surfaceTextureHelper.getHandler().postDelayed(cameraObserver, CAMERA_OBSERVER_PERIOD_MS); in CameraStatistics()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/test_/
DTestCoroutineContext.kt189 private fun postDelayed(block: Runnable, delayTime: Long) = in <lambda>() method in kotlinx.coroutines.test.TestCoroutineContext
228 postDelayed(Runnable { in <lambda>()
234 val node = postDelayed(block, timeMillis) in <lambda>()
/external/kotlinx.coroutines/ui/kotlinx-coroutines-android/src/
DHandlerDispatcher.kt139 handler.postDelayed(block, timeMillis.coerceAtMost(MAX_DELAY)) in scheduleResumeAfterDelay()
144 handler.postDelayed(block, timeMillis.coerceAtMost(MAX_DELAY)) in invokeOnTimeout()
/external/connectedappssdk/sdk/src/main/java/com/google/android/enterprise/connectedapps/internal/
DBackgroundExceptionThrower.java42 new Handler(Looper.getMainLooper()).postDelayed(new ThrowingRunnable(throwable), 1000); in throwInBackground()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSystemVibrator.java116 handler.postDelayed(stopVibratingRunnable, this.milliseconds); in recordVibrate()
131 handler.postDelayed(stopVibratingRunnable, milliseconds);
DShadowScroller.java64 ShadowApplication.getInstance().getForegroundThreadScheduler().postDelayed(new Runnable() { in startScroll()
DShadowView.java368 protected boolean postDelayed(Runnable action, long delayMills) { in postDelayed() method in ShadowView
369 ShadowApplication.getInstance().getForegroundThreadScheduler().postDelayed(action, delayMills); in postDelayed()
375 ShadowApplication.getInstance().getForegroundThreadScheduler().postDelayed(new Runnable() { in postInvalidateDelayed()
/external/ims/rcs/presencepolling/tests/src/com/android/service/ims/presence/
DPresencePollingTestBase.java63 h.postDelayed(lock::countDown, delayMs); in waitForHandlerActionDelayed()
/external/skqp/platform_tools/android/apps/arcore/src/main/java/org/skia/arcore/
DHelloArActivity.java89 mPlaneStatusCheckingHandler.postDelayed(
260 mPlaneStatusCheckingHandler.postDelayed( in onResume()

123