/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 | 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 | 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 | JSR166TestCase.java | 14 import static java.util.concurrent.TimeUnit.NANOSECONDS; 1284 return NANOSECONDS.toMillis(System.nanoTime() - startNanoTime);
|
D | ScheduledExecutorSubclassTest.java | 10 import static java.util.concurrent.TimeUnit.NANOSECONDS; 257 = NANOSECONDS.toMillis(now - previous.get()); in testFixedDelaySequence()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | TimeUnitTest.java | 42 import static java.util.concurrent.TimeUnit.NANOSECONDS; 80 SECONDS.convert(1000000000L*t, NANOSECONDS)); in testConvert() 95 MILLISECONDS.convert(1000000L*t, NANOSECONDS)); in testConvert() 110 MICROSECONDS.convert(1000L*t, NANOSECONDS)); in testConvert() 113 NANOSECONDS.convert(t, DAYS)); in testConvert() 115 NANOSECONDS.convert(t, HOURS)); in testConvert() 117 NANOSECONDS.convert(t, MINUTES)); in testConvert() 119 NANOSECONDS.convert(t, SECONDS)); in testConvert() 121 NANOSECONDS.convert(t, MILLISECONDS)); in testConvert() 123 NANOSECONDS.convert(t, MICROSECONDS)); in testConvert() [all …]
|
D | ForkJoinPoolTest.java | 36 import static java.util.concurrent.TimeUnit.NANOSECONDS; 267 assertFalse(p.awaitTermination(Long.MIN_VALUE, NANOSECONDS)); in testAwaitTermination_timesOut() 269 assertFalse(p.awaitTermination(-1L, NANOSECONDS)); in testAwaitTermination_timesOut() 271 assertFalse(p.awaitTermination(0L, NANOSECONDS)); in testAwaitTermination_timesOut() 275 assertFalse(p.awaitTermination(timeoutNanos, NANOSECONDS)); in testAwaitTermination_timesOut()
|
D | ThreadPoolExecutorTest.java | 38 import static java.util.concurrent.TimeUnit.NANOSECONDS; 484 assertFalse(p.awaitTermination(Long.MIN_VALUE, NANOSECONDS)); in testAwaitTermination_timesOut() 486 assertFalse(p.awaitTermination(-1L, NANOSECONDS)); in testAwaitTermination_timesOut() 488 assertFalse(p.awaitTermination(0L, NANOSECONDS)); in testAwaitTermination_timesOut() 492 assertFalse(p.awaitTermination(timeoutNanos, NANOSECONDS)); in testAwaitTermination_timesOut()
|
D | FutureTaskTest.java | 38 import static java.util.concurrent.TimeUnit.NANOSECONDS; 852 task.get(timeout, NANOSECONDS); in testGet_NegativeInfinityTimeout()
|
D | AbstractQueuedLongSynchronizerTest.java | 38 import static java.util.concurrent.TimeUnit.NANOSECONDS; 1270 assertFalse(c.await(0L, NANOSECONDS)); 1282 assertFalse(c.await(Long.MIN_VALUE, NANOSECONDS));
|
D | AbstractQueuedSynchronizerTest.java | 38 import static java.util.concurrent.TimeUnit.NANOSECONDS; 1273 assertFalse(c.await(0L, NANOSECONDS)); 1285 assertFalse(c.await(Long.MIN_VALUE, NANOSECONDS));
|
D | ScheduledExecutorSubclassTest.java | 36 import static java.util.concurrent.TimeUnit.NANOSECONDS; 279 = NANOSECONDS.toMillis(now - previous.get()); in testFixedDelaySequence()
|
/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()
|
/libcore/luni/src/test/java/libcore/java/lang/ref/ |
D | ReferenceQueueTest.java | 73 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithSpuriousNotify() 97 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndNoTimeout() 113 final long durationMillis = TimeUnit.NANOSECONDS.toMillis(durationNanos); in testRemoveWithDelayedResultAndTimeout()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Process.java | 199 Math.min(TimeUnit.NANOSECONDS.toMillis(rem) + 1, 100)); in waitFor()
|
/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/nio/file/attribute/ |
D | FileTime.java | 150 long nanos = unit.convert(instant.getNano(), TimeUnit.NANOSECONDS); in to() 260 case NANOSECONDS: in toInstant()
|