Home
last modified time | relevance | path

Searched refs:startTime (Results 1 – 25 of 39) sorted by relevance

12

/libcore/luni/src/main/java/java/util/
DSimpleTimeZone.java45 private int startYear, startMonth, startDay, startDayOfWeek, startTime; field in SimpleTimeZone
164 int startDay, int startDayOfWeek, int startTime, int endMonth, in SimpleTimeZone() argument
166 this(offset, name, startMonth, startDay, startDayOfWeek, startTime, in SimpleTimeZone()
213 int startDay, int startDayOfWeek, int startTime, int endMonth, in SimpleTimeZone() argument
224 this.startTime = startTime; in SimpleTimeZone()
280 int startDay, int startDayOfWeek, int startTime, int startTimeMode, in SimpleTimeZone() argument
284 this(offset, name, startMonth, startDay, startDayOfWeek, startTime, in SimpleTimeZone()
327 && startTime == tz.startTime && endMonth == tz.endMonth in equals()
401 if (ruleDay > day || ruleDay == day && time < startTime) { in getOffset()
499 + startTime + startMode + endMonth + endDay + endDayOfWeek in hashCode()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DCyclicBarrierTest.java42 long startTime = System.nanoTime(); in awaitNumberWaiting() local
44 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in awaitNumberWaiting()
184 long startTime = System.nanoTime(); in testAwait3_TimeoutException()
189 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait3_TimeoutException()
211 long startTime = System.nanoTime(); in testAwait4_Timeout_BrokenBarrier()
216 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait4_Timeout_BrokenBarrier()
239 long startTime = System.nanoTime(); in testAwait5_Timeout_BrokenBarrier()
244 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait5_Timeout_BrokenBarrier()
411 long startTime = System.nanoTime(); in testResetAfterTimeout()
416 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testResetAfterTimeout()
DSynchronousQueueTest.java196 long startTime = System.nanoTime(); in testTimedOffer()
198 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer()
240 long startTime = System.nanoTime(); in testTimedPoll() local
243 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
258 long startTime = System.nanoTime(); in testTimedPollWithOffer()
260 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollWithOffer()
263 startTime = System.nanoTime(); in testTimedPollWithOffer()
265 assertTrue(millisElapsedSince(startTime) < MEDIUM_DELAY_MS); in testTimedPollWithOffer()
283 long startTime = System.nanoTime(); in testTimedPollWithOffer() local
286 assertTrue(millisElapsedSince(startTime) < MEDIUM_DELAY_MS); in testTimedPollWithOffer()
[all …]
DBlockingQueueTest.java93 long startTime = System.nanoTime(); in testTimedOfferNull() local
98 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedOfferNull() argument
221 long startTime = System.nanoTime(); in testTimedPollWithOffer()
223 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollWithOffer()
245 long startTime = System.nanoTime(); in testTimedPollWithOffer() local
247 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer()
DScheduledExecutorTest.java66 final long startTime = System.nanoTime(); in testSchedule1() local
72 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
77 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
89 final long startTime = System.nanoTime(); in testSchedule3() local
95 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
100 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
111 final long startTime = System.nanoTime(); in testSchedule4() local
117 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
123 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
135 final long startTime = System.nanoTime(); in testSchedule5() local
[all …]
DScheduledExecutorSubclassTest.java123 final long startTime = System.nanoTime(); in testSchedule1() local
129 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
134 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1()
146 final long startTime = System.nanoTime(); in testSchedule3() local
152 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
157 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3()
168 final long startTime = System.nanoTime(); in testSchedule4() local
174 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
180 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4()
192 final long startTime = System.nanoTime(); in testSchedule5() local
[all …]
DLinkedBlockingDequeTest.java653 long startTime = System.nanoTime(); in testTimedOffer()
655 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer()
740 long startTime = System.nanoTime(); in testTimedPoll() local
742 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll()
744 long startTime = System.nanoTime(); in testTimedPoll()
746 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
885 long startTime = System.nanoTime(); in testTimedOfferFirst()
887 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOfferFirst()
1043 long startTime = System.nanoTime(); in testTimedPollFirst() local
1045 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollFirst()
[all …]
DSemaphoreTest.java77 long startTime = System.nanoTime(); in waitForQueuedThread() local
79 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread()
91 long startTime = System.nanoTime(); in waitForQueuedThreads() local
93 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThreads()
201 long startTime = System.nanoTime(); in testTryAcquire_timeout() local
204 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTryAcquire_timeout()
214 long startTime = System.nanoTime(); in testTryAcquireN_timeout() local
217 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTryAcquireN_timeout()
560 long startTime = System.nanoTime(); in testReleaseAcquireDifferentThreads() local
582 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testReleaseAcquireDifferentThreads()
DLockSupportTest.java258 long startTime = System.nanoTime(); in testParkTimesOut()
261 if (millisElapsedSince(startTime) >= timeoutMillis()) in testParkTimesOut()
305 long startTime = System.nanoTime(); in testGetBlocker() local
316 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testGetBlocker()
DExecutorsTest.java204 long startTime = System.nanoTime(); in testNewSingleThreadScheduledExecutor() local
213 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testNewSingleThreadScheduledExecutor()
230 long startTime = System.nanoTime(); in testNewScheduledThreadPool() local
239 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testNewScheduledThreadPool()
258 long startTime = System.nanoTime(); in testUnconfigurableScheduledExecutorService() local
267 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testUnconfigurableScheduledExecutorService()
DExchangerTest.java113 long startTime = System.nanoTime(); in testExchange_TimeoutException()
118 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testExchange_TimeoutException()
DJSR166TestCase.java385 long startTime = System.nanoTime(); in delay() local
392 long d = ns - (System.nanoTime() - startTime); in delay()
477 long startTime = System.nanoTime(); in assertFutureTimesOut() local
485 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in assertFutureTimesOut()
626 long startTime = System.nanoTime(); in waitForThreadToEnterWaitState() local
635 else if (millisElapsedSince(startTime) > timeoutMillis) { in waitForThreadToEnterWaitState()
678 long startTime = System.nanoTime(); in checkTimedGet() local
682 if (millisElapsedSince(startTime) > timeoutMillis/2) in checkTimedGet()
DReentrantLockTest.java89 long startTime = System.nanoTime(); in waitForQueuedThread() local
91 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread()
408 long startTime = System.nanoTime(); in testTryLock_Timeout()
411 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testTryLock_Timeout()
499 long startTime = System.nanoTime(); in testAwait_IMSE() local
505 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testAwait_IMSE()
533 long startTime = System.nanoTime();
538 assertTrue(millisElapsedSince(startTime) >= timeoutMillis);
553 long startTime = System.nanoTime();
556 assertTrue(millisElapsedSince(startTime) >= timeoutMillis);
[all …]
DReentrantReadWriteLockTest.java92 long startTime = System.nanoTime(); in waitForQueuedThread() local
94 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread()
797 long startTime = System.nanoTime(); in testWriteTryLock_Timeout()
800 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testWriteTryLock_Timeout()
817 long startTime = System.nanoTime(); in testReadTryLock_Timeout()
820 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testReadTryLock_Timeout()
884 long startTime = System.nanoTime(); in testAwait_IMSE() local
892 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testAwait_IMSE()
935 long startTime = System.nanoTime();
940 assertTrue(millisElapsedSince(startTime) >= timeoutMillis);
[all …]
DExecutorCompletionServiceTest.java135 long startTime = System.nanoTime(); in testPoll1() local
138 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testPoll1()
DAbstractQueuedSynchronizerTest.java142 long startTime = System.nanoTime(); in waitForQueuedThread() local
144 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread()
247 long startTime = System.nanoTime(); in assertAwaitTimesOut() local
265 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in assertAwaitTimesOut()
544 long startTime = System.nanoTime(); in testAcquireNanos_Timeout()
547 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAcquireNanos_Timeout()
619 long startTime = System.nanoTime(); in testAwait_IMSE() local
625 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testAwait_IMSE()
1215 long startTime = System.nanoTime();
1217 assertTrue(millisElapsedSince(startTime) >= millis);
DAbstractQueuedLongSynchronizerTest.java139 long startTime = System.nanoTime(); in waitForQueuedThread() local
141 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread()
244 long startTime = System.nanoTime(); in assertAwaitTimesOut() local
262 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in assertAwaitTimesOut()
541 long startTime = System.nanoTime(); in testAcquireNanos_Timeout()
544 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAcquireNanos_Timeout()
616 long startTime = System.nanoTime(); in testAwait_IMSE() local
622 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testAwait_IMSE()
1212 long startTime = System.nanoTime();
1214 assertTrue(millisElapsedSince(startTime) >= millis);
DLinkedBlockingQueueTest.java342 long startTime = System.nanoTime(); in testTimedOffer()
344 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer()
429 long startTime = System.nanoTime(); in testTimedPoll() local
431 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll()
433 long startTime = System.nanoTime(); in testTimedPoll()
435 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
/libcore/luni/src/main/java/java/util/concurrent/
DFutureTask.java375 long startTime = 0L; // Special value 0L means not yet parked in awaitDone() local
403 if (startTime == 0L) { // first time in awaitDone()
404 startTime = System.nanoTime(); in awaitDone()
405 if (startTime == 0L) in awaitDone()
406 startTime = 1L; in awaitDone()
409 long elapsed = System.nanoTime() - startTime; in awaitDone()
/libcore/luni/src/test/java/libcore/java/lang/
DOldDoubleTest.java72 long startTime = System.currentTimeMillis(); in test_parseDouble_LString_AndroidRegression() local
75 (System.currentTimeMillis() - startTime) < 1000); in test_parseDouble_LString_AndroidRegression()
/libcore/luni/src/main/java/java/lang/ref/
DReferenceQueue.java111 long startTime = System.nanoTime(); in remove() local
117 long nanosElapsed = System.nanoTime() - startTime; in remove()
DFinalizerReference.java148 final long startTime = System.nanoTime(); in awaitFinalization() local
149 final long endTime = startTime + timeout; in awaitFinalization()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DInetAddressThreadTest.java69 long startTime = System.currentTimeMillis(); in run() local
78 && System.currentTimeMillis() - startTime > 240000) { in run()
/libcore/libart/src/main/java/java/lang/
DDaemons.java283 long startTime = FinalizerDaemon.INSTANCE.finalizingStartedNanos; in waitForFinalization() local
284 sleepFor(startTime, MAX_FINALIZE_NANOS); in waitForFinalization()
289 FinalizerDaemon.INSTANCE.finalizingStartedNanos != startTime; in waitForFinalization()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldSocketChannelTest.java253 long startTime = System.currentTimeMillis(); in test_writeLjava_nio_ByteBuffer_Nonblocking_HugeData() local
265 assertTimeout(startTime, TIMEOUT); in test_writeLjava_nio_ByteBuffer_Nonblocking_HugeData()
273 private void assertTimeout(long startTime, long timeout) { in assertTimeout() argument
275 if ((currentTime - startTime) > timeout) { in assertTimeout()

12