Home
last modified time | relevance | path

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

12

/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()
DAbstractQueuedLongSynchronizerTest.java12 import static java.util.concurrent.TimeUnit.NANOSECONDS;
1242 assertFalse(c.await(0L, NANOSECONDS));
1254 assertFalse(c.await(Long.MIN_VALUE, NANOSECONDS));
DAbstractQueuedSynchronizerTest.java12 import static java.util.concurrent.TimeUnit.NANOSECONDS;
1245 assertFalse(c.await(0L, NANOSECONDS));
1257 assertFalse(c.await(Long.MIN_VALUE, NANOSECONDS));
DJSR166TestCase.java14 import static java.util.concurrent.TimeUnit.NANOSECONDS;
1284 return NANOSECONDS.toMillis(System.nanoTime() - startNanoTime);
DScheduledExecutorSubclassTest.java10 import static java.util.concurrent.TimeUnit.NANOSECONDS;
257 = NANOSECONDS.toMillis(now - previous.get()); in testFixedDelaySequence()
/libcore/ojluni/src/test/java/util/concurrent/tck/
DTimeUnitTest.java42 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 …]
DForkJoinPoolTest.java36 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()
DThreadPoolExecutorTest.java38 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()
DFutureTaskTest.java38 import static java.util.concurrent.TimeUnit.NANOSECONDS;
852 task.get(timeout, NANOSECONDS); in testGet_NegativeInfinityTimeout()
DAbstractQueuedLongSynchronizerTest.java38 import static java.util.concurrent.TimeUnit.NANOSECONDS;
1270 assertFalse(c.await(0L, NANOSECONDS));
1282 assertFalse(c.await(Long.MIN_VALUE, NANOSECONDS));
DAbstractQueuedSynchronizerTest.java38 import static java.util.concurrent.TimeUnit.NANOSECONDS;
1273 assertFalse(c.await(0L, NANOSECONDS));
1285 assertFalse(c.await(Long.MIN_VALUE, NANOSECONDS));
DScheduledExecutorSubclassTest.java36 import static java.util.concurrent.TimeUnit.NANOSECONDS;
279 = NANOSECONDS.toMillis(now - previous.get()); in testFixedDelaySequence()
/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()
/libcore/luni/src/test/java/libcore/java/lang/ref/
DReferenceQueueTest.java73 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/
DProcess.java199 Math.min(TimeUnit.NANOSECONDS.toMillis(rem) + 1, 100)); in waitFor()
/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/nio/file/attribute/
DFileTime.java150 long nanos = unit.convert(instant.getNano(), TimeUnit.NANOSECONDS); in to()
260 case NANOSECONDS: in toInstant()

12