Home
last modified time | relevance | path

Searched refs:millisElapsedSince (Results 1 – 25 of 28) sorted by relevance

12

/libcore/jsr166-tests/src/test/java/jsr166/
DCyclicBarrierTest.java33 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in awaitNumberWaiting()
178 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait3_TimeoutException()
205 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait4_Timeout_BrokenBarrier()
233 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait5_Timeout_BrokenBarrier()
405 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testResetAfterTimeout()
DSynchronousQueueTest.java172 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer()
217 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
234 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollWithOffer()
239 assertTrue(millisElapsedSince(startTime) < MEDIUM_DELAY_MS); in testTimedPollWithOffer()
260 assertTrue(millisElapsedSince(startTime) < MEDIUM_DELAY_MS); in testTimedPollWithOffer()
553 if (millisElapsedSince(startTime) > LONG_DELAY_MS)
DLinkedBlockingDequeTest.java627 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer()
714 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll()
718 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
734 assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS); in testInterruptedTimedPoll()
742 assertTrue(millisElapsedSince(t0) < MEDIUM_DELAY_MS); in testInterruptedTimedPoll()
859 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOfferFirst()
1017 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollFirst()
1021 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollFirst()
1070 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollFirstWithOfferFirst()
1087 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollFirstWithOfferFirst()
[all …]
DBlockingQueueTest.java86 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedOfferNull() method
211 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollWithOffer()
235 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer()
DScheduledExecutorTest.java48 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
53 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
71 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
76 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
93 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
99 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
117 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule5()
123 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule5()
325 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testGetCompletedTaskCount()
602 } while (millisElapsedSince(startTime) < MEDIUM_DELAY_MS); in testPurge()
DScheduledExecutorSubclassTest.java100 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
105 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
123 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
128 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
145 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
151 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
169 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule5()
175 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule5()
375 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testGetCompletedTaskCount()
651 } while (millisElapsedSince(startTime) < MEDIUM_DELAY_MS); in testPurge()
DSemaphoreTest.java67 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread()
81 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThreads()
192 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTryAcquire_timeout()
205 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTryAcquireN_timeout()
570 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testReleaseAcquireDifferentThreads()
DLockSupportTest.java249 if (millisElapsedSince(startTime) >= timeoutMillis()) in testParkTimesOut()
304 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testGetBlocker()
DLinkedTransferQueueTest.java252 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll()
256 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
272 assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS); in testInterruptedTimedPoll()
280 assertTrue(millisElapsedSince(t0) < MEDIUM_DELAY_MS); in testInterruptedTimedPoll()
303 assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS); in testTimedPollAfterInterrupt()
948 assertTrue(millisElapsedSince(t0) >= timeoutMillis()); in testTryTransfer6()
989 assertTrue(millisElapsedSince(t0) >= timeoutMillis()); in testTryTransfer8()
DExecutorsTest.java190 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testNewSingleThreadScheduledExecutor()
216 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testNewScheduledThreadPool()
244 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testUnconfigurableScheduledExecutorService()
DLinkedBlockingQueueTest.java317 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer()
404 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll()
408 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
424 assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS); in testInterruptedTimedPoll()
432 assertTrue(millisElapsedSince(t0) < MEDIUM_DELAY_MS); in testInterruptedTimedPoll()
DPriorityBlockingQueueTest.java360 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll()
364 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
380 assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS); in testInterruptedTimedPoll()
388 assertTrue(millisElapsedSince(t0) < MEDIUM_DELAY_MS); in testInterruptedTimedPoll()
DArrayBlockingQueueTest.java327 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer()
415 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll()
419 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
435 assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS); in testInterruptedTimedPoll()
443 assertTrue(millisElapsedSince(t0) < MEDIUM_DELAY_MS); in testInterruptedTimedPoll()
DExchangerTest.java106 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testExchange_TimeoutException()
DReentrantLockTest.java77 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread()
395 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testTryLock_Timeout()
493 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testAwait_IMSE()
526 assertTrue(millisElapsedSince(startTime) >= timeoutMillis);
546 assertTrue(millisElapsedSince(startTime) >= timeoutMillis);
567 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testAwaitUntil_Timeout()
DJSR166TestCase.java460 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in assertFutureTimesOut()
607 else if (millisElapsedSince(startTime) > timeoutMillis) { in waitForThreadToEnterWaitState()
628 long millisElapsedSince(long startNanoTime) { in millisElapsedSince() method in JSR166TestCase
DAbstractQueuedLongSynchronizerTest.java125 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread()
244 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in assertAwaitTimesOut()
526 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAcquireNanos_Timeout()
604 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testAwait_IMSE()
1197 assertTrue(millisElapsedSince(startTime) >= millis);
DAbstractQueuedSynchronizerTest.java128 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread()
247 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in assertAwaitTimesOut()
529 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAcquireNanos_Timeout()
607 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testAwait_IMSE()
1200 assertTrue(millisElapsedSince(startTime) >= millis);
DReentrantReadWriteLockTest.java79 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread()
783 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testWriteTryLock_Timeout()
803 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testReadTryLock_Timeout()
877 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testAwait_IMSE()
925 assertTrue(millisElapsedSince(startTime) >= timeoutMillis);
946 assertTrue(millisElapsedSince(startTime) >= timeoutMillis);
968 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testAwaitUntil_Timeout()
DExecutorCompletionServiceTest.java128 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testPoll1()
DForkJoinTaskTest.java96 assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS); in checkCompletedNormally() method
104 assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS); in checkCompletedNormally()
139 assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS);
177 assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS);
DThreadPoolExecutorTest.java165 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testGetCompletedTaskCount()
423 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testAwaitTermination_timesOut()
1946 && millisElapsedSince(startTime) < LONG_DELAY_MS) in testAllowCoreThreadTimeOut_true()
1948 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testAllowCoreThreadTimeOut_true()
DDelayQueueTest.java394 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll()
398 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
DCountedCompleterTest.java95 assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS); in checkCompletedNormally()
103 assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS); in checkCompletedNormally()
138 assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS);
176 assertTrue(millisElapsedSince(t0) < SMALL_DELAY_MS);
DForkJoinPoolTest.java244 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testAwaitTermination_timesOut()
295 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testIsQuiescent()

12