Home
last modified time | relevance | path

Searched refs:delayMillis (Results 1 – 20 of 20) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/channels/
DTickerChannels.kt63 delayMillis: Long, in ticker()
64 initialDelayMillis: Long = delayMillis, in ticker()
68 require(delayMillis >= 0) { "Expected non-negative delay, but has $delayMillis ms" } in ticker()
72 TickerMode.FIXED_PERIOD -> fixedPeriodTicker(delayMillis, initialDelayMillis, channel) in ticker()
73 TickerMode.FIXED_DELAY -> fixedDelayTicker(delayMillis, initialDelayMillis, channel) in ticker()
79 delayMillis: Long, in fixedPeriodTicker()
85 val delayNs = delayToNanos(delayMillis) in fixedPeriodTicker()
102 delayMillis: Long, in fixedDelayTicker()
109 delay(delayMillis) in fixedDelayTicker()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowChoreographer.java57 public static void setPostCallbackDelay(int delayMillis) {
58 postCallbackDelayMillis = delayMillis;
68 public static void setPostFrameCallbackDelay(int delayMillis) {
69 postFrameCallbackDelayMillis = delayMillis;
97 int callbackType, Runnable action, Object token, long delayMillis) {
98 handler.postDelayed(action, delayMillis);
125 protected void postFrameCallbackDelayed(final FrameCallback callback, long delayMillis) {
130 }, callback, SystemClock.uptimeMillis() + delayMillis);
DShadowLooper.java315 public boolean post(Runnable runnable, long delayMillis) { in post() argument
317 getScheduler().postDelayed(runnable, delayMillis, TimeUnit.MILLISECONDS); in post()
/external/mockito/src/main/java/org/mockito/verification/
DAfter.java25 public After(long delayMillis, VerificationMode verificationMode) { in After() argument
26 this(10, delayMillis, verificationMode); in After()
29 After(long pollingPeriod, long delayMillis, VerificationMode verificationMode) { in After() argument
30 this(new VerificationOverTimeImpl(pollingPeriod, delayMillis, verificationMode, false)); in After()
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
DScheduler.java150 public synchronized void postDelayed(Runnable runnable, long delayMillis) { in postDelayed() argument
151 postDelayed(runnable, delayMillis, TimeUnit.MILLISECONDS); in postDelayed()
158 long delayMillis = unit.toMillis(delay); in postDelayed() local
159 …if ((idleState != CONSTANT_IDLE && (isPaused() || delayMillis > 0)) || Thread.currentThread() != a… in postDelayed()
160 runnables.add(new ScheduledRunnable(runnable, currentTime + delayMillis)); in postDelayed()
162 runOrQueueRunnable(runnable, currentTime + delayMillis); in postDelayed()
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/flow/operators/
DDelay.kt312 internal fun CoroutineScope.fixedPeriodTicker(delayMillis: Long, initialDelayMillis: Long = delayMi… in fixedPeriodTicker()
313 require(delayMillis >= 0) { "Expected non-negative delay, but has $delayMillis ms" } in fixedPeriodTicker()
319 delay(delayMillis) in fixedPeriodTicker()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/channels/
DTickerChannelTest.kt14 …val delayChannel = ticker(delayMillis = 1000, initialDelayMillis = 0, mode = TickerMode.FIXED_DELA… in <lambda>()
31 val delayChannel = ticker(delayMillis = 1000, initialDelayMillis = 0) in <lambda>()
50 val delayChannel = ticker(delayMillis = 200, initialDelayMillis = 0) in <lambda>()
/external/mockito/src/test/java/org/mockitoutil/async/
DAsyncTesting.java31 public void runAfter(final int delayMillis, final Runnable runnable) { in runAfter() argument
38 Thread.sleep(delayMillis); in runAfter()
48 …AsyncTesting] Starting thread that will execute the runnable after " + delayMillis + " millis. Thr… in runAfter()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DSimpleTimeLimiterTest.java268 final long delayMillis; field in SimpleTimeLimiterTest.SampleImpl
271 SampleImpl(long delayMillis) { in SampleImpl() argument
272 this.delayMillis = delayMillis; in SampleImpl()
278 MILLISECONDS.sleep(delayMillis); in sleepThenReturnInput()
289 MILLISECONDS.sleep(delayMillis); in sleepThenThrowException()
DJSR166TestCase.java268 Date delayedDate(long delayMillis) { in delayedDate() argument
269 return new Date(System.currentTimeMillis() + delayMillis); in delayedDate()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DSimpleTimeLimiterTest.java268 final long delayMillis; field in SimpleTimeLimiterTest.SampleImpl
271 SampleImpl(long delayMillis) { in SampleImpl() argument
272 this.delayMillis = delayMillis; in SampleImpl()
278 MILLISECONDS.sleep(delayMillis); in sleepThenReturnInput()
289 MILLISECONDS.sleep(delayMillis); in sleepThenThrowException()
DJSR166TestCase.java267 Date delayedDate(long delayMillis) { in delayedDate() argument
268 return new Date(System.currentTimeMillis() + delayMillis); in delayedDate()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DThreadInterruptTest.java125 private void interruptLater(final int delayMillis) { in interruptLater() argument
130 sleep(delayMillis); in interruptLater()
DDisconnectTest.java123 private void disconnectLater(final HttpURLConnection connection, final int delayMillis) { in disconnectLater() argument
127 sleep(delayMillis); in disconnectLater()
/external/libchrome/base/android/java/src/org/chromium/base/
DThreadUtils.java190 public static void postOnUiThreadDelayed(Runnable task, long delayMillis) { in postOnUiThreadDelayed() argument
191 getUiThreadHandler().postDelayed(task, delayMillis); in postOnUiThreadDelayed()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DLoader.java343 public void start(long delayMillis) { in start() argument
346 if (delayMillis > 0) { in start()
347 sendEmptyMessageDelayed(MSG_START, delayMillis); in start()
/external/replicaisland/src/com/replica/replicaisland/
DAnimationPlayerActivity.java65 public void sleep(long delayMillis) { in sleep() argument
67 sendMessageDelayed(obtainMessage(0), delayMillis); in sleep()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/guide/
Dexample-channel-10.kt12 val tickerChannel = ticker(delayMillis = 100, initialDelayMillis = 0) // create ticker channel in <lambda>()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DSpdy3ConnectionTest.java1456 private void interruptAfterDelay(final long delayMillis) {
1461 Thread.sleep(delayMillis);
/external/libabigail/tests/data/test-read-dwarf/
Dtest-libandroid.so.abi18197 …<parameter type-id='bd54fe1a' name='delayMillis' filepath='frameworks/base/native/android/choreogr…
18210 …<parameter type-id='8f92235e' name='delayMillis' filepath='frameworks/base/native/android/choreogr…