Searched refs:NANOS_PER_SECOND (Results 1 – 4 of 4) sorted by relevance
50 static final int NANOS_PER_SECOND = 1_000_000_000; field in Timestamp64149 return (int) ((fractionBitsLong * NANOS_PER_SECOND) >>> 32); in fractionBitsToNanos()153 if (nanos > NANOS_PER_SECOND) { in nanosToFractionBits()156 return (int) ((nanos << 32) / NANOS_PER_SECOND); in nanosToFractionBits()
18 import static android.net.sntp.Timestamp64.NANOS_PER_SECOND;51 long expectedNanos = maxDuration64Seconds * NANOS_PER_SECOND; in testBetween_rangeChecks()66 long expectedNanos = maxDuration64Seconds * NANOS_PER_SECOND + 999_999_999; in testBetween_rangeChecks()80 long expectedNanos = 5L * NANOS_PER_SECOND; in testBetween_smallSecondsOnly()96 long expectedNanos = 5L * NANOS_PER_SECOND + 500_000_000L; in testBetween_smallSecondsAndFraction()109 long expectedNanos = 5L * NANOS_PER_SECOND + 250_000_000L; in testBetween_smallSecondsAndFraction()
18 import static android.net.sntp.Timestamp64.NANOS_PER_SECOND;191 for (int i = 0; i < NANOS_PER_SECOND; i++) { in testFromInstant_fractionHandling()
44 static constexpr int64_t kWaitTimeBeforeCloseNs = 9 * NANOS_PER_SECOND;