/libcore/luni/src/main/java/java/util/ |
D | SimpleTimeZone.java | 45 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/ |
D | CyclicBarrierTest.java | 31 long startTime = System.nanoTime(); in awaitNumberWaiting() local 33 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in awaitNumberWaiting() 173 long startTime = System.nanoTime(); in testAwait3_TimeoutException() 178 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait3_TimeoutException() 200 long startTime = System.nanoTime(); in testAwait4_Timeout_BrokenBarrier() 205 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait4_Timeout_BrokenBarrier() 228 long startTime = System.nanoTime(); in testAwait5_Timeout_BrokenBarrier() 233 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait5_Timeout_BrokenBarrier() 400 long startTime = System.nanoTime(); in testResetAfterTimeout() 405 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testResetAfterTimeout()
|
D | SynchronousQueueTest.java | 170 long startTime = System.nanoTime(); in testTimedOffer() 172 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer() 214 long startTime = System.nanoTime(); in testTimedPoll() local 217 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll() 232 long startTime = System.nanoTime(); in testTimedPollWithOffer() 234 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollWithOffer() 237 startTime = System.nanoTime(); in testTimedPollWithOffer() 239 assertTrue(millisElapsedSince(startTime) < MEDIUM_DELAY_MS); in testTimedPollWithOffer() 257 long startTime = System.nanoTime(); in testTimedPollWithOffer() local 260 assertTrue(millisElapsedSince(startTime) < MEDIUM_DELAY_MS); in testTimedPollWithOffer() [all …]
|
D | BlockingQueueTest.java | 81 long startTime = System.nanoTime(); in testTimedOfferNull() local 86 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedOfferNull() argument 209 long startTime = System.nanoTime(); in testTimedPollWithOffer() 211 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollWithOffer() 233 long startTime = System.nanoTime(); in testTimedPollWithOffer() local 235 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer()
|
D | LinkedBlockingDequeTest.java | 625 long startTime = System.nanoTime(); in testTimedOffer() 627 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer() 712 long startTime = System.nanoTime(); in testTimedPoll() local 714 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll() 716 long startTime = System.nanoTime(); in testTimedPoll() 718 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll() 857 long startTime = System.nanoTime(); in testTimedOfferFirst() 859 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOfferFirst() 1015 long startTime = System.nanoTime(); in testTimedPollFirst() local 1017 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollFirst() [all …]
|
D | ExecutorsTest.java | 181 long startTime = System.nanoTime(); in testNewSingleThreadScheduledExecutor() local 190 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testNewSingleThreadScheduledExecutor() 207 long startTime = System.nanoTime(); in testNewScheduledThreadPool() local 216 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testNewScheduledThreadPool() 235 long startTime = System.nanoTime(); in testUnconfigurableScheduledExecutorService() local 244 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testUnconfigurableScheduledExecutorService() 270 long startTime = System.nanoTime(); in testTimedCallable()
|
D | SemaphoreTest.java | 65 long startTime = System.nanoTime(); in waitForQueuedThread() local 67 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread() 79 long startTime = System.nanoTime(); in waitForQueuedThreads() local 81 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThreads() 189 long startTime = System.nanoTime(); in testTryAcquire_timeout() local 192 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTryAcquire_timeout() 202 long startTime = System.nanoTime(); in testTryAcquireN_timeout() local 205 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTryAcquireN_timeout() 548 long startTime = System.nanoTime(); in testReleaseAcquireDifferentThreads() local 570 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testReleaseAcquireDifferentThreads()
|
D | ScheduledExecutorTest.java | 42 final long startTime = System.nanoTime(); in testSchedule1() local 48 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1() 53 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1() 65 final long startTime = System.nanoTime(); in testSchedule3() local 71 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3() 76 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3() 87 final long startTime = System.nanoTime(); in testSchedule4() local 93 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4() 99 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4() 111 final long startTime = System.nanoTime(); in testSchedule5() local [all …]
|
D | LockSupportTest.java | 246 long startTime = System.nanoTime(); in testParkTimesOut() 249 if (millisElapsedSince(startTime) >= timeoutMillis()) in testParkTimesOut() 293 long startTime = System.nanoTime(); in testGetBlocker() local 304 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testGetBlocker()
|
D | ScheduledExecutorSubclassTest.java | 94 final long startTime = System.nanoTime(); in testSchedule1() local 100 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1() 105 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1() 117 final long startTime = System.nanoTime(); in testSchedule3() local 123 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3() 128 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3() 139 final long startTime = System.nanoTime(); in testSchedule4() local 145 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4() 151 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4() 163 final long startTime = System.nanoTime(); in testSchedule5() local [all …]
|
D | ExchangerTest.java | 101 long startTime = System.nanoTime(); in testExchange_TimeoutException() 106 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testExchange_TimeoutException()
|
D | ReentrantLockTest.java | 75 long startTime = System.nanoTime(); in waitForQueuedThread() local 77 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread() 392 long startTime = System.nanoTime(); in testTryLock_Timeout() 395 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testTryLock_Timeout() 487 long startTime = System.nanoTime(); in testAwait_IMSE() local 493 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testAwait_IMSE() 521 long startTime = System.nanoTime(); 526 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); 543 long startTime = System.nanoTime(); 546 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); [all …]
|
D | JSR166TestCase.java | 367 long startTime = System.nanoTime(); in delay() local 374 long d = ns - (System.nanoTime() - startTime); in delay() 452 long startTime = System.nanoTime(); in assertFutureTimesOut() local 460 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in assertFutureTimesOut() 598 long startTime = System.nanoTime(); in waitForThreadToEnterWaitState() local 607 else if (millisElapsedSince(startTime) > timeoutMillis) { in waitForThreadToEnterWaitState()
|
D | AbstractQueuedLongSynchronizerTest.java | 123 long startTime = System.nanoTime(); in waitForQueuedThread() local 125 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread() 226 long startTime = System.nanoTime(); in assertAwaitTimesOut() local 244 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in assertAwaitTimesOut() 523 long startTime = System.nanoTime(); in testAcquireNanos_Timeout() 526 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAcquireNanos_Timeout() 598 long startTime = System.nanoTime(); in testAwait_IMSE() local 604 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testAwait_IMSE() 1195 long startTime = System.nanoTime(); 1197 assertTrue(millisElapsedSince(startTime) >= millis);
|
D | AbstractQueuedSynchronizerTest.java | 126 long startTime = System.nanoTime(); in waitForQueuedThread() local 128 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread() 229 long startTime = System.nanoTime(); in assertAwaitTimesOut() local 247 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in assertAwaitTimesOut() 526 long startTime = System.nanoTime(); in testAcquireNanos_Timeout() 529 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAcquireNanos_Timeout() 601 long startTime = System.nanoTime(); in testAwait_IMSE() local 607 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testAwait_IMSE() 1198 long startTime = System.nanoTime(); 1200 assertTrue(millisElapsedSince(startTime) >= millis);
|
D | ReentrantReadWriteLockTest.java | 77 long startTime = System.nanoTime(); in waitForQueuedThread() local 79 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread() 780 long startTime = System.nanoTime(); in testWriteTryLock_Timeout() 783 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testWriteTryLock_Timeout() 800 long startTime = System.nanoTime(); in testReadTryLock_Timeout() 803 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testReadTryLock_Timeout() 871 long startTime = System.nanoTime(); in testAwait_IMSE() local 877 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testAwait_IMSE() 920 long startTime = System.nanoTime(); 925 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); [all …]
|
D | ExecutorCompletionServiceTest.java | 125 long startTime = System.nanoTime(); in testPoll1() local 128 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testPoll1()
|
D | LinkedBlockingQueueTest.java | 315 long startTime = System.nanoTime(); in testTimedOffer() 317 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer() 402 long startTime = System.nanoTime(); in testTimedPoll() local 404 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll() 406 long startTime = System.nanoTime(); in testTimedPoll() 408 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
|
D | ArrayBlockingQueueTest.java | 325 long startTime = System.nanoTime(); in testTimedOffer() 327 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer() 413 long startTime = System.nanoTime(); in testTimedPoll() local 415 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll() 417 long startTime = System.nanoTime(); in testTimedPoll() 419 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
|
D | ForkJoinPoolTest.java | 237 long startTime = System.nanoTime(); in testAwaitTermination_timesOut() local 239 assertTrue(System.nanoTime() - startTime >= timeoutNanos); in testAwaitTermination_timesOut() 241 startTime = System.nanoTime(); in testAwaitTermination_timesOut() 244 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testAwaitTermination_timesOut() 289 long startTime = System.nanoTime(); in testIsQuiescent() local 295 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testIsQuiescent()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldDoubleTest.java | 72 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/ |
D | ReferenceQueue.java | 111 long startTime = System.nanoTime(); in remove() local 117 long nanosElapsed = System.nanoTime() - startTime; in remove()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | InetAddressThreadTest.java | 69 long startTime = System.currentTimeMillis(); in run() local 78 && System.currentTimeMillis() - startTime > 240000) { in run()
|
/libcore/libart/src/main/java/java/lang/ |
D | Daemons.java | 268 long startTime = FinalizerDaemon.INSTANCE.finalizingStartedNanos; in waitForFinalization() local 269 sleepFor(startTime, MAX_FINALIZE_NANOS); in waitForFinalization() 274 FinalizerDaemon.INSTANCE.finalizingStartedNanos != startTime; in waitForFinalization()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | OldSocketChannelTest.java | 253 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()
|