Home
last modified time | relevance | path

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

123

/libcore/ojluni/src/test/java/util/concurrent/tck/
DCyclicBarrierTest.java63 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in awaitNumberWaiting()
210 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait3_TimeoutException()
237 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait4_Timeout_BrokenBarrier()
265 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait5_Timeout_BrokenBarrier()
437 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testResetAfterTimeout()
DLinkedTransferQueueTest.java297 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll()
301 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
322 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testInterruptedTimedPoll()
348 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollAfterInterrupt()
629 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testOfferInExecutor()
656 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testPollInExecutor()
767 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testWaitingConsumer()
939 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTryTransfer3()
990 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS);
1011 assertTrue(millisElapsedSince(startTime) >= timeoutMillis());
[all …]
DBlockingQueueTest.java122 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedOfferNull() method
247 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollWithOffer()
267 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer()
273 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer()
DScheduledExecutorSubclassTest.java155 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
160 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
175 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
180 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
195 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
201 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
217 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule5()
223 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule5()
252 final long elapsedMillis = millisElapsedSince(startTime); in testFixedRateSequence()
298 final long elapsedMillis = millisElapsedSince(startTime); in testFixedDelaySequence()
[all …]
DScheduledExecutorTest.java98 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
103 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
119 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
124 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
139 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
145 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
161 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule5()
167 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule5()
196 final long elapsedMillis = millisElapsedSince(startTime); in testFixedRateSequence()
242 final long elapsedMillis = millisElapsedSince(startTime); in testFixedDelaySequence()
[all …]
DLinkedBlockingDequeTest.java688 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer()
775 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll()
779 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
801 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testInterruptedTimedPoll()
918 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOfferFirst()
1076 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollFirst()
1080 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollFirst()
1111 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testInterruptedTimedPollFirst()
1131 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollFirstWithOfferFirst()
1148 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollFirstWithOfferFirst()
[all …]
DSynchronousQueueTest.java221 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer()
266 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
283 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollWithOffer()
303 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer()
310 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer()
596 if (millisElapsedSince(startTime) > LONG_DELAY_MS)
DExecutorCompletionServiceTest.java140 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testPoll1()
160 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testPoll2()
184 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testPollReturnsNull()
DSemaphoreTest.java103 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread()
117 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThreads()
228 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTryAcquire_timeout()
241 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTryAcquireN_timeout()
611 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testReleaseAcquireDifferentThreads()
DForkJoinPoolTest.java281 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testAwaitTermination_timesOut()
333 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testIsQuiescent()
348 && millisElapsedSince(startTime) < LONG_DELAY_MS) in testIsQuiescent()
355 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testIsQuiescent()
872 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedInvokeAny4()
888 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS);
DLockSupportTest.java291 if (millisElapsedSince(startTime) >= timeoutMillis()) in testParkTimesOut()
346 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testGetBlocker()
DSubmissionPublisherTest.java827 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS / 2); in testEmptyTimedOffer()
844 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS / 2);
872 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS / 2);
897 assertTrue(millisElapsedSince(startTime) >= delay);
928 assertTrue(millisElapsedSince(startTime) >= delay); in testHandledDroppedTimedOffer()
958 assertTrue(millisElapsedSince(startTime) >= delay); in testRecoveredHandledDroppedTimedOffer()
DExecutorsTest.java242 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testNewSingleThreadScheduledExecutor()
266 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testNewScheduledThreadPool()
292 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testUnconfigurableScheduledExecutorService()
/libcore/jsr166-tests/src/test/java/jsr166/
DCyclicBarrierTest.java44 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in awaitNumberWaiting()
189 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait3_TimeoutException()
216 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait4_Timeout_BrokenBarrier()
244 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait5_Timeout_BrokenBarrier()
416 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testResetAfterTimeout()
DLinkedTransferQueueTest.java279 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll()
283 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
304 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testInterruptedTimedPoll()
330 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollAfterInterrupt()
612 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testOfferInExecutor()
639 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testPollInExecutor()
750 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testWaitingConsumer()
925 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTryTransfer3()
976 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS);
997 assertTrue(millisElapsedSince(startTime) >= timeoutMillis());
[all …]
DBlockingQueueTest.java98 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedOfferNull() method
223 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollWithOffer()
243 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer()
249 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer()
DScheduledExecutorSubclassTest.java131 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
136 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
151 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
156 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
171 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
177 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
193 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule5()
199 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule5()
228 final long elapsedMillis = millisElapsedSince(startTime); in testFixedRateSequence()
274 final long elapsedMillis = millisElapsedSince(startTime); in testFixedDelaySequence()
[all …]
DScheduledExecutorTest.java74 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
79 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
95 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
100 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
115 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
121 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
137 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule5()
143 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule5()
172 final long elapsedMillis = millisElapsedSince(startTime); in testFixedRateSequence()
218 final long elapsedMillis = millisElapsedSince(startTime); in testFixedDelaySequence()
[all …]
DLinkedBlockingDequeTest.java654 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer()
741 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll()
745 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
767 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testInterruptedTimedPoll()
884 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOfferFirst()
1042 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollFirst()
1046 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollFirst()
1077 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testInterruptedTimedPollFirst()
1097 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollFirstWithOfferFirst()
1114 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollFirstWithOfferFirst()
[all …]
DSynchronousQueueTest.java200 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer()
245 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
262 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollWithOffer()
282 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer()
289 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer()
576 if (millisElapsedSince(startTime) > LONG_DELAY_MS)
DSemaphoreTest.java80 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread()
94 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThreads()
205 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTryAcquire_timeout()
218 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTryAcquireN_timeout()
588 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testReleaseAcquireDifferentThreads()
DForkJoinPoolTest.java263 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testAwaitTermination_timesOut()
315 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testIsQuiescent()
330 && millisElapsedSince(startTime) < LONG_DELAY_MS) in testIsQuiescent()
337 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testIsQuiescent()
854 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedInvokeAny4()
870 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS);
DLockSupportTest.java267 if (millisElapsedSince(startTime) >= timeoutMillis()) in testParkTimesOut()
322 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testGetBlocker()
DExecutorsTest.java219 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testNewSingleThreadScheduledExecutor()
243 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testNewScheduledThreadPool()
269 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testUnconfigurableScheduledExecutorService()
DJSR166TestCase.java283 long elapsedMillis = millisElapsedSince(startTime); in runTestProfiled()
1042 assertTrue(millisElapsedSince(startTime) >= timeoutMillis);
1222 else if (millisElapsedSince(startTime) > timeoutMillis) {
1252 else if (millisElapsedSince(startTime) > timeoutMillis) {
1283 static long millisElapsedSince(long startNanoTime) {
1309 if (millisElapsedSince(startTime) > timeoutMillis/2)

123