Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DTimeUnitTest.java16 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 …]
DForkJoinPoolTest.java10 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()
DThreadPoolExecutorTest.java12 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()
DFutureTaskTest.java12 import static java.util.concurrent.TimeUnit.NANOSECONDS;
829 task.get(timeout, NANOSECONDS); in testGet_NegativeInfinityTimeout()
DAbstractQueuedSynchronizerTest.java12 import static java.util.concurrent.TimeUnit.NANOSECONDS;
1245 assertFalse(c.await(0L, NANOSECONDS));
1257 assertFalse(c.await(Long.MIN_VALUE, NANOSECONDS));
DAbstractQueuedLongSynchronizerTest.java12 import static java.util.concurrent.TimeUnit.NANOSECONDS;
1242 assertFalse(c.await(0L, NANOSECONDS));
1254 assertFalse(c.await(Long.MIN_VALUE, NANOSECONDS));
DJSR166TestCase.java14 import static java.util.concurrent.TimeUnit.NANOSECONDS;
1284 return NANOSECONDS.toMillis(System.nanoTime() - startNanoTime);
DScheduledExecutorTest.java12 import static java.util.concurrent.TimeUnit.NANOSECONDS;
201 = NANOSECONDS.toMillis(now - previous.get()); in testFixedDelaySequence()
DScheduledExecutorSubclassTest.java10 import static java.util.concurrent.TimeUnit.NANOSECONDS;
257 = NANOSECONDS.toMillis(now - previous.get()); in testFixedDelaySequence()
DDelayQueueTest.java123 return unit.convert(n, TimeUnit.NANOSECONDS); in getDelay()
/libcore/ojluni/src/test/java/nio/file/attribute/
DFileTimeTest.java78 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/
DScheduledThreadPoolExecutor.java39 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 …]
DDelayQueue.java38 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()
DAbstractExecutorService.java38 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()
DTimeUnit.java77 NANOSECONDS { enumConstant
DThreadPoolExecutor.java1091 workQueue.poll(keepAliveTime, TimeUnit.NANOSECONDS) : in getTask()
1751 return unit.convert(keepAliveTime, TimeUnit.NANOSECONDS); in getKeepAliveTime()
DForkJoinPool.java2246 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()
DForkJoinTask.java1037 if ((ms = TimeUnit.NANOSECONDS.toMillis(ns)) > 0L && in get()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java73 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/
DTimeZoneNames.java65 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/
DProcess.java199 Math.min(TimeUnit.NANOSECONDS.toMillis(rem) + 1, 100)); in waitFor()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java150 long nanos = unit.convert(instant.getNano(), TimeUnit.NANOSECONDS); in to()
260 case NANOSECONDS: in toInstant()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java187 (int) TimeUnit.NANOSECONDS.toMillis(finishTimeNanos - System.nanoTime()); in connectErrno()