Home
last modified time | relevance | path

Searched defs:nanos (Results 1 – 25 of 47) sorted by relevance

12

/libcore/jsr166-tests/src/test/java/jsr166/
DSystemTest.java46 long nanos = n2 - n1; in testNanoTime1() local
66 long nanos = n2 - n1; in testNanoTime2() local
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java150 long nanos = unit.convert(instant.getNano(), TimeUnit.NANOSECONDS); in to() local
174 int nanos = instant.getNano(); in toMillis() local
233 int nanos = 0; in toInstant() local
414 int nanos = 0; in toString() local
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DLockSupport.java226 public static void parkNanos(Object blocker, long nanos) { in parkNanos()
351 public static void parkNanos(long nanos) { in parkNanos()
/libcore/ojluni/src/main/java/java/time/
DDuration.java158 private final int nanos; field in Duration
272 public static Duration ofNanos(long nanos) { in ofNanos()
397 int nanos = parseFraction(text, fractionMatch, seconds < 0 ? -1 : 1); in parse() local
435 … create(boolean negate, long daysAsSecs, long hoursAsSecs, long minsAsSecs, long secs, int nanos) { in create()
505 private Duration(long seconds, int nanos) { in Duration()
997 BigInteger nanos = seconds.movePointRight(9).toBigIntegerExact(); in create() local
1337 int nanos = in.readInt(); in readExternal() local
DInstant.java252 private final int nanos; field in Instant
417 private Instant(long epochSecond, int nanos) { in Instant()
1361 int nanos = in.readInt(); in readExternal() local
DOffsetTime.java936 public OffsetTime plusNanos(long nanos) { in plusNanos()
1047 public OffsetTime minusNanos(long nanos) { in minusNanos()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDuration.java1089 …public void plus(long seconds, int nanos, long otherSeconds, int otherNanos, long expectedSeconds,… in plus()
1300 …public void plusSeconds_long(long seconds, int nanos, long amount, long expectedSeconds, int expec… in plusSeconds_long()
1376 …public void plusMillis_long(long seconds, int nanos, long amount, long expectedSeconds, int expect… in plusMillis_long()
1383 …public void plusMillis_long_oneMore(long seconds, int nanos, long amount, long expectedSeconds, in… in plusMillis_long_oneMore()
1390 …public void plusMillis_long_minusOneLess(long seconds, int nanos, long amount, long expectedSecond… in plusMillis_long_minusOneLess()
1502 …public void plusNanos_long(long seconds, int nanos, long amount, long expectedSeconds, int expecte… in plusNanos_long()
1708 …public void minus(long seconds, int nanos, long otherSeconds, int otherNanos, long expectedSeconds… in minus()
1919 …public void minusSeconds_long(long seconds, int nanos, long amount, long expectedSeconds, int expe… in minusSeconds_long()
1995 …public void minusMillis_long(long seconds, int nanos, long amount, long expectedSeconds, int expec… in minusMillis_long()
2002 …public void minusMillis_long_oneMore(long seconds, int nanos, long amount, long expectedSeconds, i… in minusMillis_long_oneMore()
[all …]
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DObject.annotated.java52 public final native void wait(long timeout, int nanos) throws java.lang.InterruptedException; in wait()
DThread.annotated.java62 public static void sleep(long millis, int nanos) throws java.lang.InterruptedException { throw new … in sleep()
106 public final void join(long millis, int nanos) throws java.lang.InterruptedException { throw new Ru… in join()
/libcore/ojluni/src/main/java/java/util/concurrent/
DAbstractExecutorService.java148 boolean timed, long nanos) in doInvokeAny()
264 final long nanos = unit.toNanos(timeout); in invokeAll() local
DSynchronousQueue.java186 abstract E transfer(E e, boolean timed, long nanos); in transfer()
328 E transfer(E e, boolean timed, long nanos) { in transfer()
413 SNode awaitFulfill(SNode s, boolean timed, long nanos) { in awaitFulfill()
641 E transfer(E e, boolean timed, long nanos) { in transfer()
735 Object awaitFulfill(QNode s, E e, boolean timed, long nanos) { in awaitFulfill()
DCyclicBarrier.java199 private int dowait(boolean timed, long nanos) in dowait()
DPhaser.java784 long nanos = unit.toNanos(timeout); in awaitAdvanceInterruptibly() local
1090 long nanos; field in Phaser.QNode
1096 boolean timed, long nanos) { in QNode()
DLinkedBlockingDeque.java410 long nanos = unit.toNanos(timeout); in offerFirst() local
433 long nanos = unit.toNanos(timeout); in offerLast() local
514 long nanos = unit.toNanos(timeout); in pollFirst() local
532 long nanos = unit.toNanos(timeout); in pollLast() local
DLinkedBlockingQueue.java376 long nanos = unit.toNanos(timeout); in offer() local
459 long nanos = unit.toNanos(timeout); in poll() local
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java73 private Duration(long seconds, int nanos) { in Duration()
101 public static java.time.Duration ofNanos(long nanos) { in ofNanos()
136 int nanos) { in create()
352 private final int nanos; field in Duration
/libcore/ojluni/annotations/hiddenapi/java/lang/
DObject.java75 public final native void wait(long timeout, int nanos) throws java.lang.InterruptedException; in wait()
DThread.java99 private static native void sleep(java.lang.Object lock, long millis, int nanos) in sleep()
102 public static void sleep(long millis, int nanos) throws java.lang.InterruptedException { in sleep()
219 public final void join(long millis, int nanos) throws java.lang.InterruptedException { in join()
334 public final void parkFor$(long nanos) { in parkFor$()
/libcore/ojluni/src/main/java/java/lang/
DObject.java527 public final native void wait(long timeout, int nanos) throws InterruptedException; in wait()
DThread.java360 private static native void sleep(Object lock, long millis, int nanos) in sleep()
386 public static void sleep(long millis, int nanos) in sleep()
1465 public final void join(long millis, int nanos) in join()
/libcore/ojluni/src/test/java/nio/file/attribute/
DFileTimeTest.java170 long nanos = v; in main() local
297 long nanos = NANOSECONDS.convert(value - unit.convert(secs, SECONDS), unit); in eqTime() local
/libcore/ojluni/annotations/mmodule/java/lang/
DThread.annotated.java62 public static void sleep(long millis, int nanos) throws java.lang.InterruptedException { throw new … in sleep()
112 public final void join(long millis, int nanos) throws java.lang.InterruptedException { throw new Ru… in join()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateTimeImpl.java337 private ChronoLocalDateTimeImpl<D> plusNanos(long nanos) { in plusNanos()
342 …alDateTimeImpl<D> plusWithOverflow(D newDate, long hours, long minutes, long seconds, long nanos) { in plusWithOverflow()
/libcore/benchmarks/src/benchmarks/regression/
DCharacterBenchmark.java41 public double nanosToUnits(double nanos) { in nanosToUnits()
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DFutureTask.java105 private int awaitDone(boolean timed, long nanos) throws java.lang.InterruptedException { in awaitDone()

12