Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/util/
DSimpleTimeZone.java215 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/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()
DLinkedTransferQueueTest.java276 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 …]
DScheduledExecutorTest.java69 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 …]
DScheduledExecutorSubclassTest.java127 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 …]
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()
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()
DSynchronousQueueTest.java198 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 …]
DLinkedBlockingDequeTest.java652 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 …]
DSemaphoreTest.java78 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()
DForkJoinPoolTest.java256 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 …]
DLockSupportTest.java264 long startTime = System.nanoTime(); in testParkTimesOut()
267 if (millisElapsedSince(startTime) >= timeoutMillis()) in testParkTimesOut()
311 long startTime = System.nanoTime(); in testGetBlocker() local
322 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in testGetBlocker()
DExecutorsTest.java210 long startTime = System.nanoTime(); in testNewSingleThreadScheduledExecutor() local
219 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testNewSingleThreadScheduledExecutor()
234 long startTime = System.nanoTime(); in testNewScheduledThreadPool() local
243 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testNewScheduledThreadPool()
260 long startTime = System.nanoTime(); in testUnconfigurableScheduledExecutorService() local
269 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testUnconfigurableScheduledExecutorService()
DJSR166TestCase.java281 long startTime = System.nanoTime(); in runTestProfiled() local
283 long elapsedMillis = millisElapsedSince(startTime); in runTestProfiled()
1034 long startTime = System.nanoTime();
1042 assertTrue(millisElapsedSince(startTime) >= timeoutMillis);
1213 long startTime = System.nanoTime();
1222 else if (millisElapsedSince(startTime) > timeoutMillis) {
1237 long startTime = 0L;
1250 else if (startTime == 0L)
1251 startTime = System.nanoTime();
1252 else if (millisElapsedSince(startTime) > timeoutMillis) {
[all …]
DAbstractQueuedSynchronizerTest.java142 long startTime = System.nanoTime(); in waitForQueuedThread() local
144 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread()
247 long startTime; in assertAwaitTimesOut() local
251 startTime = System.nanoTime(); in assertAwaitTimesOut()
253 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in assertAwaitTimesOut()
256 startTime = System.nanoTime(); in assertAwaitTimesOut()
261 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in assertAwaitTimesOut()
552 long startTime = System.nanoTime(); in testAcquireNanos_Timeout()
555 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAcquireNanos_Timeout()
627 long startTime = System.nanoTime(); in testAwait_IMSE() local
[all …]
DAbstractQueuedLongSynchronizerTest.java139 long startTime = System.nanoTime(); in waitForQueuedThread() local
141 if (millisElapsedSince(startTime) > LONG_DELAY_MS) in waitForQueuedThread()
244 long startTime; in assertAwaitTimesOut() local
248 startTime = System.nanoTime(); in assertAwaitTimesOut()
250 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in assertAwaitTimesOut()
253 startTime = System.nanoTime(); in assertAwaitTimesOut()
258 assertTrue(millisElapsedSince(startTime) >= timeoutMillis); in assertAwaitTimesOut()
549 long startTime = System.nanoTime(); in testAcquireNanos_Timeout()
552 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testAcquireNanos_Timeout()
624 long startTime = System.nanoTime(); in testAwait_IMSE() local
[all …]
DExchangerTest.java113 long startTime = System.nanoTime(); in testExchange_TimeoutException()
118 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testExchange_TimeoutException()
DLinkedBlockingQueueTest.java344 long startTime = System.nanoTime(); in testTimedOffer()
346 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedOffer()
431 long startTime = System.nanoTime(); in testTimedPoll() local
433 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedPoll()
435 long startTime = System.nanoTime(); in testTimedPoll()
437 assertTrue(millisElapsedSince(startTime) >= timeoutMillis()); in testTimedPoll()
450 long startTime = System.nanoTime(); in testInterruptedTimedPoll()
459 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testInterruptedTimedPoll()
DAbstractExecutorServiceTest.java457 long startTime = System.nanoTime(); in testTimedInvokeAny4() local
466 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS); in testTimedInvokeAny4()
476 long startTime = System.nanoTime();
482 assertTrue(millisElapsedSince(startTime) < LONG_DELAY_MS);
590 long startTime = System.nanoTime();
594 assertTrue(millisElapsedSince(startTime) >= timeout);
/libcore/ojluni/src/main/java/java/util/concurrent/
DFutureTask.java404 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/
DProcess.java189 long startTime = System.nanoTime(); in waitFor() local
201 rem = unit.toNanos(timeout) - (System.nanoTime() - startTime); in waitFor()
/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/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/luni/src/main/java/java/lang/ref/
DFinalizerReference.java162 final long startTime = System.nanoTime(); in awaitFinalization() local
163 final long endTime = startTime + timeout; in awaitFinalization()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DWeakHashMapTest.java202 long startTime = System.currentTimeMillis(); in test_entrySet() local
212 System.currentTimeMillis() - startTime < 5000); in test_entrySet()
310 long startTime = System.currentTimeMillis(); in test_keySet() local
326 System.currentTimeMillis() - startTime < timeout); in test_keySet()
396 long startTime = System.currentTimeMillis(); in test_values() local
406 System.currentTimeMillis() - startTime < 5000); in test_values()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldSocketChannelTest.java255 long startTime = System.currentTimeMillis(); in test_writeLjava_nio_ByteBuffer_Nonblocking_HugeData() local
267 assertTimeout(startTime, TIMEOUT); in test_writeLjava_nio_ByteBuffer_Nonblocking_HugeData()
275 private void assertTimeout(long startTime, long timeout) { in assertTimeout() argument
277 if ((currentTime - startTime) > timeout) { in assertTimeout()

12