Home
last modified time | relevance | path

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

123

/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/test/java/util/concurrent/tck/
DSystemTest.java70 long nanos = n2 - n1; in testNanoTime1() local
90 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.java248 public static void parkNanos(Object blocker, long nanos) { in parkNanos()
374 public static void parkNanos(long nanos) { in parkNanos()
DStampedLock.java508 long nanos = unit.toNanos(time); in tryWriteLock() local
582 long nanos = unit.toNanos(time); in tryReadLock() local
1248 long nanos; in acquireWrite() local
1316 long nanos = 0L; in acquireRead() local
1375 long nanos; in acquireRead() local
/libcore/ojluni/src/main/java/java/time/
DDuration.java161 private final int nanos; field in Duration
275 public static Duration ofNanos(long nanos) { in ofNanos()
400 int nanos = parseFraction(text, fractionMatch, seconds < 0 ? -1 : 1); in parse() local
438 … create(boolean negate, long daysAsSecs, long hoursAsSecs, long minsAsSecs, long secs, int nanos) { in create()
508 private Duration(long seconds, int nanos) { in Duration()
1018 BigInteger nanos = seconds.movePointRight(9).toBigIntegerExact(); in create() local
1515 int nanos = in.readInt(); in readExternal() local
DInstant.java253 private final int nanos; field in Instant
418 private Instant(long epochSecond, int nanos) { in Instant()
1358 int nanos = in.readInt(); in readExternal() local
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKDuration.java1116 …public void plus(long seconds, int nanos, long otherSeconds, int otherNanos, long expectedSeconds,… in plus()
1327 …public void plusSeconds_long(long seconds, int nanos, long amount, long expectedSeconds, int expec… in plusSeconds_long()
1403 …public void plusMillis_long(long seconds, int nanos, long amount, long expectedSeconds, int expect… in plusMillis_long()
1410 …public void plusMillis_long_oneMore(long seconds, int nanos, long amount, long expectedSeconds, in… in plusMillis_long_oneMore()
1417 …public void plusMillis_long_minusOneLess(long seconds, int nanos, long amount, long expectedSecond… in plusMillis_long_minusOneLess()
1529 …public void plusNanos_long(long seconds, int nanos, long amount, long expectedSeconds, int expecte… in plusNanos_long()
1735 …public void minus(long seconds, int nanos, long otherSeconds, int otherNanos, long expectedSeconds… in minus()
1946 …public void minusSeconds_long(long seconds, int nanos, long amount, long expectedSeconds, int expe… in minusSeconds_long()
2022 …public void minusMillis_long(long seconds, int nanos, long amount, long expectedSeconds, int expec… in minusMillis_long()
2029 …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.java64 public static void sleep(long millis, int nanos) throws java.lang.InterruptedException { throw new … in sleep()
108 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.java153 boolean timed, long nanos) in doInvokeAny()
268 final long nanos = unit.toNanos(timeout); in invokeAll() local
DCyclicBarrier.java201 private int dowait(boolean timed, long nanos) in dowait()
DPhaser.java783 long nanos = unit.toNanos(timeout); in awaitAdvanceInterruptibly() local
1092 long nanos; field in Phaser.QNode
1098 boolean timed, long nanos) { in QNode()
DSubmissionPublisher.java396 private int doOffer(T item, long nanos, in doOffer()
447 private int retryOffer(T item, long nanos, in retryOffer()
610 long nanos = unit.toNanos(timeout); in offer() local
1456 final void awaitSpace(long nanos) { in awaitSpace()
1477 long nanos = timeout; in block() local
DLinkedBlockingDeque.java403 long nanos = unit.toNanos(timeout); in offerFirst() local
426 long nanos = unit.toNanos(timeout); in offerLast() local
507 long nanos = unit.toNanos(timeout); in pollFirst() local
525 long nanos = unit.toNanos(timeout); in pollLast() 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/src/main/java/sun/nio/ch/
DSelChImpl.java84 default void park(int event, long nanos) throws IOException { in park()
/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.java522 public final native void wait(long timeoutMillis, int nanos) throws InterruptedException; in wait()
/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/src/main/java/java/time/chrono/
DChronoLocalDateTimeImpl.java332 private ChronoLocalDateTimeImpl<D> plusNanos(long nanos) { in plusNanos()
337 …alDateTimeImpl<D> plusWithOverflow(D newDate, long hours, long minutes, long seconds, long nanos) { in plusWithOverflow()
/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/benchmarks/src/benchmarks/regression/
DCharacterBenchmark.java41 public double nanosToUnits(double nanos) { in nanosToUnits()
/libcore/luni/src/test/java/libcore/java/lang/
DThreadTest.java460 long nanos; field in ThreadTest.LongParker
463 LongParker(long nanos) { in LongParker()

123