Home
last modified time | relevance | path

Searched refs:NANOSECONDS (Results 1 – 15 of 15) sorted by relevance

/libcore/jsr166-tests/src/test/java/jsr166/
DTimeUnitTest.java44 TimeUnit.NANOSECONDS)); in testConvert()
66 TimeUnit.NANOSECONDS)); in testConvert()
88 TimeUnit.NANOSECONDS)); in testConvert()
91 TimeUnit.NANOSECONDS.convert(t, in testConvert()
94 TimeUnit.NANOSECONDS.convert(t, in testConvert()
97 TimeUnit.NANOSECONDS.convert(t, in testConvert()
100 TimeUnit.NANOSECONDS.convert(t, in testConvert()
103 TimeUnit.NANOSECONDS.convert(t, in testConvert()
106 TimeUnit.NANOSECONDS.convert(t, in testConvert()
109 TimeUnit.NANOSECONDS.convert(t, in testConvert()
[all …]
DForkJoinPoolTest.java30 import static java.util.concurrent.TimeUnit.NANOSECONDS;
230 assertFalse(p.awaitTermination(Long.MIN_VALUE, NANOSECONDS)); in testAwaitTermination_timesOut()
232 assertFalse(p.awaitTermination(-1L, NANOSECONDS)); in testAwaitTermination_timesOut()
234 assertFalse(p.awaitTermination(0L, NANOSECONDS)); in testAwaitTermination_timesOut()
238 assertFalse(p.awaitTermination(timeoutNanos, NANOSECONDS)); in testAwaitTermination_timesOut()
DThreadPoolExecutorTest.java14 import static java.util.concurrent.TimeUnit.NANOSECONDS;
409 assertFalse(p.awaitTermination(Long.MIN_VALUE, NANOSECONDS)); in testAwaitTermination_timesOut()
411 assertFalse(p.awaitTermination(-1L, NANOSECONDS)); in testAwaitTermination_timesOut()
413 assertFalse(p.awaitTermination(0L, NANOSECONDS)); in testAwaitTermination_timesOut()
417 assertFalse(p.awaitTermination(timeoutNanos, NANOSECONDS)); in testAwaitTermination_timesOut()
DJSR166TestCase.java28 import static java.util.concurrent.TimeUnit.NANOSECONDS;
629 return NANOSECONDS.toMillis(System.nanoTime() - startNanoTime); in millisElapsedSince()
DPhaserTest.java17 import static java.util.concurrent.TimeUnit.NANOSECONDS;
DDelayQueueTest.java99 return unit.convert(n, TimeUnit.NANOSECONDS); in getDelay()
DLinkedTransferQueueTest.java24 import static java.util.concurrent.TimeUnit.NANOSECONDS;
/libcore/luni/src/main/java/java/util/concurrent/
DScheduledThreadPoolExecutor.java8 import static java.util.concurrent.TimeUnit.NANOSECONDS;
208 return unit.convert(time - now(), NANOSECONDS); in getDelay()
226 long diff = getDelay(NANOSECONDS) - other.getDelay(NANOSECONDS); in compareTo()
400 super(corePoolSize, Integer.MAX_VALUE, 0, NANOSECONDS, in ScheduledThreadPoolExecutor()
417 super(corePoolSize, Integer.MAX_VALUE, 0, NANOSECONDS, in ScheduledThreadPoolExecutor()
434 super(corePoolSize, Integer.MAX_VALUE, 0, NANOSECONDS, in ScheduledThreadPoolExecutor()
455 super(corePoolSize, Integer.MAX_VALUE, 0, NANOSECONDS, in ScheduledThreadPoolExecutor()
484 long headDelay = head.getDelay(NANOSECONDS); in overflowFree()
592 schedule(command, 0, NANOSECONDS); in execute()
602 return schedule(task, 0, NANOSECONDS); in submit()
[all …]
DDelayQueue.java8 import static java.util.concurrent.TimeUnit.NANOSECONDS;
159 if (first == null || first.getDelay(NANOSECONDS) > 0) in poll()
184 long delay = first.getDelay(NANOSECONDS); in take()
232 long delay = first.getDelay(NANOSECONDS); in poll()
297 return (first == null || first.getDelay(NANOSECONDS) > 0) ? in peekExpired()
DAbstractExecutorService.java151 f = ecs.poll(nanos, TimeUnit.NANOSECONDS); in doInvokeAny()
258 f.get(nanos, TimeUnit.NANOSECONDS); in invokeAll()
DTimeUnit.java43 NANOSECONDS { enumConstant
DThreadPoolExecutor.java1036 workQueue.poll(keepAliveTime, TimeUnit.NANOSECONDS) : in getTask()
1682 return unit.convert(keepAliveTime, TimeUnit.NANOSECONDS); in getKeepAliveTime()
DForkJoinTask.java1020 if ((ms = TimeUnit.NANOSECONDS.toMillis(ns)) > 0L && in get()
DForkJoinPool.java3005 long millis = TimeUnit.NANOSECONDS.toMillis(nanos); in awaitTermination()
3062 common.awaitQuiescence(Long.MAX_VALUE, TimeUnit.NANOSECONDS); in quiesceCommonPool()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java56 long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithSpuriousNotify()
78 long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndNoTimeout()
88 long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndTimeout()