Home
last modified time | relevance | path

Searched refs:NANOS_PER_MILLI (Results 1 – 3 of 3) sorted by relevance

/libcore/luni/src/main/java/java/lang/ref/
DReferenceQueue.java28 private static final int NANOS_PER_MILLI = 1000000; field in ReferenceQueue
99 if (timeoutMillis == 0 || (timeoutMillis > Long.MAX_VALUE / NANOS_PER_MILLI)) { in remove()
107 long nanosToWait = timeoutMillis * NANOS_PER_MILLI; in remove()
122 timeoutMillis = nanosRemaining / NANOS_PER_MILLI; in remove()
123 timeoutNanos = (int) (nanosRemaining - timeoutMillis * NANOS_PER_MILLI); in remove()
/libcore/libart/src/main/java/java/lang/
DThread.java60 private static final int NANOS_PER_MILLI = 1000000; field in Thread
763 if (millis < 0 || nanos < 0 || nanos >= NANOS_PER_MILLI) { in join()
768 boolean overflow = millis >= (Long.MAX_VALUE - nanos) / NANOS_PER_MILLI; in join()
781 long nanosToWait = millis * NANOS_PER_MILLI + nanos; in join()
795 millis = nanosRemaining / NANOS_PER_MILLI; in join()
796 nanos = (int) (nanosRemaining - millis * NANOS_PER_MILLI); in join()
1024 long duration = (millis * NANOS_PER_MILLI) + nanos; in sleep()
1042 millis = duration / NANOS_PER_MILLI; in sleep()
1043 nanos = (int) (duration % NANOS_PER_MILLI); in sleep()
1215 long millis = nanos / NANOS_PER_MILLI; in parkFor$()
[all …]
DDaemons.java37 private static final int NANOS_PER_MILLI = 1000 * 1000; field in Daemons
38 private static final int NANOS_PER_SECOND = NANOS_PER_MILLI * 1000;
268 long sleepMills = sleepNanos / NANOS_PER_MILLI; in sleepFor()