/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TimeUnitTest.java | 16 import static java.util.concurrent.TimeUnit.NANOSECONDS; 56 SECONDS.convert(1000000000L*t, NANOSECONDS)); in testConvert() 71 MILLISECONDS.convert(1000000L*t, NANOSECONDS)); in testConvert() 86 MICROSECONDS.convert(1000L*t, NANOSECONDS)); in testConvert() 89 NANOSECONDS.convert(t, DAYS)); in testConvert() 91 NANOSECONDS.convert(t, HOURS)); in testConvert() 93 NANOSECONDS.convert(t, MINUTES)); in testConvert() 95 NANOSECONDS.convert(t, SECONDS)); in testConvert() 97 NANOSECONDS.convert(t, MILLISECONDS)); in testConvert() 99 NANOSECONDS.convert(t, MICROSECONDS)); in testConvert() [all …]
|
D | ForkJoinPoolTest.java | 10 import static java.util.concurrent.TimeUnit.NANOSECONDS; 249 assertFalse(p.awaitTermination(Long.MIN_VALUE, NANOSECONDS)); in testAwaitTermination_timesOut() 251 assertFalse(p.awaitTermination(-1L, NANOSECONDS)); in testAwaitTermination_timesOut() 253 assertFalse(p.awaitTermination(0L, NANOSECONDS)); in testAwaitTermination_timesOut() 257 assertFalse(p.awaitTermination(timeoutNanos, NANOSECONDS)); in testAwaitTermination_timesOut()
|
D | ThreadPoolExecutorTest.java | 12 import static java.util.concurrent.TimeUnit.NANOSECONDS; 462 assertFalse(p.awaitTermination(Long.MIN_VALUE, NANOSECONDS)); in testAwaitTermination_timesOut() 464 assertFalse(p.awaitTermination(-1L, NANOSECONDS)); in testAwaitTermination_timesOut() 466 assertFalse(p.awaitTermination(0L, NANOSECONDS)); in testAwaitTermination_timesOut() 470 assertFalse(p.awaitTermination(timeoutNanos, NANOSECONDS)); in testAwaitTermination_timesOut()
|
D | FutureTaskTest.java | 12 import static java.util.concurrent.TimeUnit.NANOSECONDS; 829 task.get(timeout, NANOSECONDS); in testGet_NegativeInfinityTimeout()
|
D | AbstractQueuedSynchronizerTest.java | 12 import static java.util.concurrent.TimeUnit.NANOSECONDS; 1245 assertFalse(c.await(0L, NANOSECONDS)); 1257 assertFalse(c.await(Long.MIN_VALUE, NANOSECONDS));
|
D | AbstractQueuedLongSynchronizerTest.java | 12 import static java.util.concurrent.TimeUnit.NANOSECONDS; 1242 assertFalse(c.await(0L, NANOSECONDS)); 1254 assertFalse(c.await(Long.MIN_VALUE, NANOSECONDS));
|
D | JSR166TestCase.java | 14 import static java.util.concurrent.TimeUnit.NANOSECONDS; 1284 return NANOSECONDS.toMillis(System.nanoTime() - startNanoTime);
|
D | ScheduledExecutorTest.java | 12 import static java.util.concurrent.TimeUnit.NANOSECONDS; 201 = NANOSECONDS.toMillis(now - previous.get()); in testFixedDelaySequence()
|
D | ScheduledExecutorSubclassTest.java | 10 import static java.util.concurrent.TimeUnit.NANOSECONDS; 257 = NANOSECONDS.toMillis(now - previous.get()); in testFixedDelaySequence()
|
D | DelayQueueTest.java | 123 return unit.convert(n, TimeUnit.NANOSECONDS); in getDelay()
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
D | FileTimeTest.java | 78 cmp(Long.MAX_VALUE, DAYS, Long.MAX_VALUE, NANOSECONDS, 1); in main() 79 cmp(Long.MAX_VALUE, DAYS, Long.MIN_VALUE, NANOSECONDS, 1); in main() 80 cmp(Long.MIN_VALUE, DAYS, Long.MIN_VALUE, NANOSECONDS, -1); in main() 81 cmp(Long.MIN_VALUE, DAYS, Long.MAX_VALUE, NANOSECONDS, -1); in main() 171 ft = FileTime.from(nanos, NANOSECONDS); in main() 187 ts(1L, NANOSECONDS, "1970-01-01T00:00:00.000000001Z"); in main() 188 ts(999999999L, NANOSECONDS, "1970-01-01T00:00:00.999999999Z"); in main() 189 ts(9999999999L, NANOSECONDS, "1970-01-01T00:00:09.999999999Z"); in main() 197 ts(-1L, NANOSECONDS, "1969-12-31T23:59:59.999999999Z"); in main() 198 ts(-999999999L, NANOSECONDS, "1969-12-31T23:59:59.000000001Z"); in main() [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ScheduledThreadPoolExecutor.java | 39 import static java.util.concurrent.TimeUnit.NANOSECONDS; 241 return unit.convert(time - System.nanoTime(), NANOSECONDS); in getDelay() 259 long diff = getDelay(NANOSECONDS) - other.getDelay(NANOSECONDS); in compareTo() 542 long headDelay = head.getDelay(NANOSECONDS); in overflowFree() 654 schedule(command, 0, NANOSECONDS); in execute() 664 return schedule(task, 0, NANOSECONDS); in submit() 672 return schedule(Executors.callable(task, result), 0, NANOSECONDS); in submit() 680 return schedule(task, 0, NANOSECONDS); in submit() 1105 return (first == null || first.getDelay(NANOSECONDS) > 0) in poll() 1122 long delay = first.getDelay(NANOSECONDS); in take() [all …]
|
D | DelayQueue.java | 38 import static java.util.concurrent.TimeUnit.NANOSECONDS; 194 return (first == null || first.getDelay(NANOSECONDS) > 0) in poll() 218 long delay = first.getDelay(NANOSECONDS); in take() 266 long delay = first.getDelay(NANOSECONDS); in poll() 331 return (first == null || first.getDelay(NANOSECONDS) > 0) ? in peekExpired()
|
D | AbstractExecutorService.java | 38 import static java.util.concurrent.TimeUnit.NANOSECONDS; 188 f = ecs.poll(nanos, NANOSECONDS); in doInvokeAny() 285 try { f.get(deadline - System.nanoTime(), NANOSECONDS); } in invokeAll()
|
D | TimeUnit.java | 77 NANOSECONDS { enumConstant
|
D | ThreadPoolExecutor.java | 1091 workQueue.poll(keepAliveTime, TimeUnit.NANOSECONDS) : in getTask() 1751 return unit.convert(keepAliveTime, TimeUnit.NANOSECONDS); in getKeepAliveTime()
|
D | ForkJoinPool.java | 2246 else if ((ms = TimeUnit.NANOSECONDS.toMillis(ns)) <= 0L) in awaitJoin() 3263 long millis = TimeUnit.NANOSECONDS.toMillis(nanos); in awaitTermination() 3321 common.awaitQuiescence(Long.MAX_VALUE, TimeUnit.NANOSECONDS); in quiesceCommonPool()
|
D | ForkJoinTask.java | 1037 if ((ms = TimeUnit.NANOSECONDS.toMillis(ns)) > 0L && in get()
|
/libcore/luni/src/test/java/libcore/java/lang/ref/ |
D | ReferenceQueueTest.java | 73 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithSpuriousNotify() 96 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndNoTimeout() 107 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndTimeout()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | TimeZoneNames.java | 65 long nativeDuration = TimeUnit.NANOSECONDS.toMillis(nativeEnd - nativeStart); in create() 66 long duration = TimeUnit.NANOSECONDS.toMillis(end - start); in create()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Process.java | 199 Math.min(TimeUnit.NANOSECONDS.toMillis(rem) + 1, 100)); in waitFor()
|
/libcore/ojluni/src/main/java/java/nio/file/attribute/ |
D | FileTime.java | 150 long nanos = unit.convert(instant.getNano(), TimeUnit.NANOSECONDS); in to() 260 case NANOSECONDS: in toInstant()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 187 (int) TimeUnit.NANOSECONDS.toMillis(finishTimeNanos - System.nanoTime()); in connectErrno()
|