/libcore/ojluni/src/main/java/java/util/ |
D | SimpleTimeZone.java | 215 int startMonth, int startDay, int startDayOfWeek, int startTime, in SimpleTimeZone() argument 219 startMonth, startDay, startDayOfWeek, startTime, WALL_TIME, in SimpleTimeZone() 273 int startMonth, int startDay, int startDayOfWeek, int startTime, in SimpleTimeZone() argument 278 startMonth, startDay, startDayOfWeek, startTime, WALL_TIME, in SimpleTimeZone() 330 int startTime, int startTimeMode, in SimpleTimeZone() argument 340 this.startTime = startTime; in SimpleTimeZone() 385 public void setStartRule(int startMonth, int startDay, int startDayOfWeek, int startTime) in setStartRule() argument 390 this.startTime = startTime; in setStartRule() 412 public void setStartRule(int startMonth, int startDay, int startTime) { in setStartRule() argument 413 setStartRule(startMonth, startDay, 0, startTime); in setStartRule() [all …]
|
/libcore/benchmarks/src/benchmarks/ |
D | BigIntegerBenchmark.java | 40 private static void printTime(String s, long startTime, int reps) { in printTime() argument 43 + (double)(System.nanoTime() - startTime) / 1000.0 / reps + " usecs / iter"); in printTime() 67 long startTime = getStartTime(); in repeatInner() local 71 printTime("inner(" + n + "," + prec + ") took ", startTime, rep); in repeatInner() 89 long startTime = getStartTime(); in repeatHarmonic1000() local 97 printTime("harmonic(1000) to " + prec + " digits took ", startTime, rep); in repeatHarmonic1000() 108 long startTime = getStartTime(); in repeatToString() local 119 printTime("toString(" + prec + ") took ", startTime, rep); in repeatToString() 148 long startTime = getStartTime(); in repeatEApprox() local 156 printTime("eApprox(" + n + "," + prec + ") took ", startTime, rep); in repeatEApprox() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CyclicBarrierTest.java | 42 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()
|
D | LinkedTransferQueueTest.java | 276 long startTime = System.nanoTime(); in testTimedPoll() local 279 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll() 281 startTime = System.nanoTime(); in testTimedPoll() 283 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll() 296 long startTime = System.nanoTime(); in testInterruptedTimedPoll() 304 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testInterruptedTimedPoll() 322 long startTime = System.nanoTime(); in testTimedPollAfterInterrupt() 330 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollAfterInterrupt() 610 long startTime = System.nanoTime(); in testOfferInExecutor() 612 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testOfferInExecutor() [all …]
|
D | ScheduledExecutorSubclassTest.java | 127 final long startTime = System.nanoTime(); in testSchedule1() local 131 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1() 136 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1() 146 final long startTime = System.nanoTime(); in testSchedule3() local 151 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3() 156 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3() 166 final long startTime = System.nanoTime(); in testSchedule4() local 171 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4() 177 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4() 188 final long startTime = System.nanoTime(); in testSchedule5() local [all …]
|
D | ScheduledExecutorTest.java | 69 final long startTime = System.nanoTime(); in testSchedule1() local 74 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1() 79 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1() 90 final long startTime = System.nanoTime(); in testSchedule3() local 95 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3() 100 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3() 110 final long startTime = System.nanoTime(); in testSchedule4() local 115 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4() 121 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4() 132 final long startTime = System.nanoTime(); in testSchedule5() local [all …]
|
D | BlockingQueueTest.java | 93 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() 243 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer() 247 long startTime = System.nanoTime(); in testTimedPollWithOffer() local 249 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer()
|
D | SynchronousQueueTest.java | 198 long startTime = System.nanoTime(); in testTimedOffer() 200 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer() 242 long startTime = System.nanoTime(); in testTimedPoll() local 245 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll() 260 long startTime = System.nanoTime(); in testTimedPollWithOffer() 262 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollWithOffer() 265 startTime = System.nanoTime(); in testTimedPollWithOffer() 282 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer() 286 long startTime = System.nanoTime(); in testTimedPollWithOffer() local 289 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer() [all …]
|
D | LinkedBlockingDequeTest.java | 652 long startTime = System.nanoTime(); in testTimedOffer() 654 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer() 739 long startTime = System.nanoTime(); in testTimedPoll() local 741 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll() 743 long startTime = System.nanoTime(); in testTimedPoll() 745 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll() 758 long startTime = System.nanoTime(); in testInterruptedTimedPoll() 767 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testInterruptedTimedPoll() 882 long startTime = System.nanoTime(); in testTimedOfferFirst() 884 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOfferFirst() [all …]
|
D | SemaphoreTest.java | 78 long startTime = System.nanoTime(); in waitForQueuedThread() local 80 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread() 92 long startTime = System.nanoTime(); in waitForQueuedThreads() local 94 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThreads() 202 long startTime = System.nanoTime(); in testTryAcquire_timeout() local 205 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTryAcquire_timeout() 215 long startTime = System.nanoTime(); in testTryAcquireN_timeout() local 218 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTryAcquireN_timeout() 566 long startTime = System.nanoTime(); in testReleaseAcquireDifferentThreads() local 588 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testReleaseAcquireDifferentThreads()
|
D | ForkJoinPoolTest.java | 256 long startTime = System.nanoTime(); in testAwaitTermination_timesOut() local 258 assertTrue(System.nanoTime() - startTime >= timeoutNanos); in testAwaitTermination_timesOut() 260 startTime = System.nanoTime(); in testAwaitTermination_timesOut() 263 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testAwaitTermination_timesOut() 309 long startTime = System.nanoTime(); in testIsQuiescent() local 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() 845 long startTime = System.nanoTime(); in testTimedInvokeAny4() local 854 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedInvokeAny4() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | CyclicBarrierTest.java | 61 long startTime = System.nanoTime(); in awaitNumberWaiting() local 63 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in awaitNumberWaiting() 205 long startTime = System.nanoTime(); in testAwait3_TimeoutException() 210 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait3_TimeoutException() 232 long startTime = System.nanoTime(); in testAwait4_Timeout_BrokenBarrier() 237 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait4_Timeout_BrokenBarrier() 260 long startTime = System.nanoTime(); in testAwait5_Timeout_BrokenBarrier() 265 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAwait5_Timeout_BrokenBarrier() 432 long startTime = System.nanoTime(); in testResetAfterTimeout() 437 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testResetAfterTimeout()
|
D | LinkedTransferQueueTest.java | 294 long startTime = System.nanoTime(); in testTimedPoll() local 297 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll() 299 startTime = System.nanoTime(); in testTimedPoll() 301 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll() 314 long startTime = System.nanoTime(); in testInterruptedTimedPoll() 322 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testInterruptedTimedPoll() 340 long startTime = System.nanoTime(); in testTimedPollAfterInterrupt() 348 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollAfterInterrupt() 627 long startTime = System.nanoTime(); in testOfferInExecutor() 629 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testOfferInExecutor() [all …]
|
D | ScheduledExecutorSubclassTest.java | 149 final long startTime = System.nanoTime(); in testSchedule1() local 153 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1() 158 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1() 168 final long startTime = System.nanoTime(); in testSchedule3() local 173 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3() 178 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3() 188 final long startTime = System.nanoTime(); in testSchedule4() local 193 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4() 199 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4() 210 final long startTime = System.nanoTime(); in testSchedule5() local [all …]
|
D | ScheduledExecutorTest.java | 91 final long startTime = System.nanoTime(); in testSchedule1() local 96 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1() 101 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule1() 112 final long startTime = System.nanoTime(); in testSchedule3() local 117 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3() 122 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule3() 132 final long startTime = System.nanoTime(); in testSchedule4() local 137 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4() 143 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testSchedule4() 154 final long startTime = System.nanoTime(); in testSchedule5() local [all …]
|
D | BlockingQueueTest.java | 117 long startTime = System.nanoTime(); in testTimedOfferNull() local 122 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedOfferNull() argument 245 long startTime = System.nanoTime(); in testTimedPollWithOffer() 247 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollWithOffer() 267 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer() 271 long startTime = System.nanoTime(); in testTimedPollWithOffer() local 273 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer()
|
D | LinkedBlockingDequeTest.java | 686 long startTime = System.nanoTime(); in testTimedOffer() 688 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer() 773 long startTime = System.nanoTime(); in testTimedPoll() local 775 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll() 777 long startTime = System.nanoTime(); in testTimedPoll() 779 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll() 792 long startTime = System.nanoTime(); in testInterruptedTimedPoll() 801 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testInterruptedTimedPoll() 916 long startTime = System.nanoTime(); in testTimedOfferFirst() 918 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOfferFirst() [all …]
|
D | SynchronousQueueTest.java | 219 long startTime = System.nanoTime(); in testTimedOffer() 221 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer() 263 long startTime = System.nanoTime(); in testTimedPoll() local 266 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll() 281 long startTime = System.nanoTime(); in testTimedPollWithOffer() 283 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPollWithOffer() 286 startTime = System.nanoTime(); in testTimedPollWithOffer() 303 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer() 307 long startTime = System.nanoTime(); in testTimedPollWithOffer() local 310 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPollWithOffer() [all …]
|
D | ExecutorCompletionServiceTest.java | 137 long startTime = System.nanoTime(); in testPoll1() local 140 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testPoll1() 157 long startTime = System.nanoTime(); in testPoll2() local 160 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testPoll2() 182 long startTime = System.nanoTime(); in testPollReturnsNull() local 184 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testPollReturnsNull()
|
D | SemaphoreTest.java | 101 long startTime = System.nanoTime(); in waitForQueuedThread() local 103 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread() 115 long startTime = System.nanoTime(); in waitForQueuedThreads() local 117 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThreads() 225 long startTime = System.nanoTime(); in testTryAcquire_timeout() local 228 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTryAcquire_timeout() 238 long startTime = System.nanoTime(); in testTryAcquireN_timeout() local 241 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTryAcquireN_timeout() 589 long startTime = System.nanoTime(); in testReleaseAcquireDifferentThreads() local 611 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testReleaseAcquireDifferentThreads()
|
D | ForkJoinPoolTest.java | 274 long startTime = System.nanoTime(); in testAwaitTermination_timesOut() local 276 assertTrue(System.nanoTime() - startTime >= timeoutNanos); in testAwaitTermination_timesOut() 278 startTime = System.nanoTime(); in testAwaitTermination_timesOut() 281 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in testAwaitTermination_timesOut() 327 long startTime = System.nanoTime(); in testIsQuiescent() local 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() 863 long startTime = System.nanoTime(); in testTimedInvokeAny4() local 872 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedInvokeAny4() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | FutureTask.java | 404 long startTime = 0L; // Special value 0L means not yet parked in awaitDone() local 432 if (startTime == 0L) { // first time in awaitDone() 433 startTime = System.nanoTime(); in awaitDone() 434 if (startTime == 0L) in awaitDone() 435 startTime = 1L; in awaitDone() 438 long elapsed = System.nanoTime() - startTime; in awaitDone()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Process.java | 189 long startTime = System.nanoTime(); in waitFor() local 201 rem = unit.toNanos(timeout) - (System.nanoTime() - startTime); in waitFor()
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | TestUtils.java | 42 Duration startTime = Duration.ofNanos(System.nanoTime()); in waitWhileTrueOrTimeout() local 45 if (now.minus(startTime).compareTo(timeout) >= 0) { in waitWhileTrueOrTimeout()
|
/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()
|