Searched refs:NANOSECONDS (Results 1 – 15 of 15) sorted by relevance
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TimeUnitTest.java | 44 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 …]
|
D | ForkJoinPoolTest.java | 30 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()
|
D | ThreadPoolExecutorTest.java | 14 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()
|
D | JSR166TestCase.java | 28 import static java.util.concurrent.TimeUnit.NANOSECONDS; 629 return NANOSECONDS.toMillis(System.nanoTime() - startNanoTime); in millisElapsedSince()
|
D | PhaserTest.java | 17 import static java.util.concurrent.TimeUnit.NANOSECONDS;
|
D | DelayQueueTest.java | 99 return unit.convert(n, TimeUnit.NANOSECONDS); in getDelay()
|
D | LinkedTransferQueueTest.java | 24 import static java.util.concurrent.TimeUnit.NANOSECONDS;
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ScheduledThreadPoolExecutor.java | 8 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 …]
|
D | DelayQueue.java | 8 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()
|
D | AbstractExecutorService.java | 151 f = ecs.poll(nanos, TimeUnit.NANOSECONDS); in doInvokeAny() 258 f.get(nanos, TimeUnit.NANOSECONDS); in invokeAll()
|
D | TimeUnit.java | 43 NANOSECONDS { enumConstant
|
D | ThreadPoolExecutor.java | 1036 workQueue.poll(keepAliveTime, TimeUnit.NANOSECONDS) : in getTask() 1682 return unit.convert(keepAliveTime, TimeUnit.NANOSECONDS); in getKeepAliveTime()
|
D | ForkJoinTask.java | 1020 if ((ms = TimeUnit.NANOSECONDS.toMillis(ns)) > 0L && in get()
|
D | ForkJoinPool.java | 3005 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/ |
D | ReferenceQueueTest.java | 56 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()
|