Searched refs:NANOS_PER_SECOND (Results 1 – 13 of 13) sorted by relevance
37 import static com.google.protobuf.util.Timestamps.NANOS_PER_SECOND;80 if (nanos < -999999999L || nanos >= NANOS_PER_SECOND) { in isValid()216 nanoseconds / NANOS_PER_SECOND, (int) (nanoseconds % NANOS_PER_SECOND)); in fromNanos()223 return duration.getSeconds() * NANOS_PER_SECOND + duration.getNanos(); in toNanos()241 if (nanos <= -NANOS_PER_SECOND || nanos >= NANOS_PER_SECOND) { in normalizedDuration()242 seconds += nanos / NANOS_PER_SECOND; in normalizedDuration()243 nanos %= NANOS_PER_SECOND; in normalizedDuration()246 nanos += NANOS_PER_SECOND; in normalizedDuration()250 nanos -= NANOS_PER_SECOND; in normalizedDuration()
54 private static final long NANOS_PER_SECOND = 1000000000; field in TimeUtil364 new BigInteger(String.valueOf(NANOS_PER_SECOND));377 long seconds = value.divide(new BigInteger(String.valueOf(NANOS_PER_SECOND))).longValue(); in createDurationFromBigInteger()378 int nanos = value.remainder(new BigInteger(String.valueOf(NANOS_PER_SECOND))).intValue(); in createDurationFromBigInteger()383 if (nanos <= -NANOS_PER_SECOND || nanos >= NANOS_PER_SECOND) { in normalizedDuration()384 seconds += nanos / NANOS_PER_SECOND; in normalizedDuration()385 nanos %= NANOS_PER_SECOND; in normalizedDuration()388 nanos += NANOS_PER_SECOND; in normalizedDuration()392 nanos -= NANOS_PER_SECOND; in normalizedDuration()
52 static final long NANOS_PER_SECOND = 1000000000; field in Timestamps104 if (nanos < 0 || nanos >= NANOS_PER_SECOND) { in isValid()264 nanoseconds / NANOS_PER_SECOND, (int) (nanoseconds % NANOS_PER_SECOND)); in fromNanos()271 return timestamp.getSeconds() * NANOS_PER_SECOND + timestamp.getNanos(); in toNanos()299 if (nanos <= -NANOS_PER_SECOND || nanos >= NANOS_PER_SECOND) { in normalizedTimestamp()300 seconds += nanos / NANOS_PER_SECOND; in normalizedTimestamp()301 nanos %= NANOS_PER_SECOND; in normalizedTimestamp()304 nanos += NANOS_PER_SECOND; in normalizedTimestamp()
33 #define NANOS_PER_BURST (NANOS_PER_SECOND * HW_FRAMES_PER_BURST / SAMPLE_RATE)67 double elapsedTimeSeconds = startTimeNanos / (double) NANOS_PER_SECOND; in checkDriftingClock()70 const double timeDelaySeconds = 10.0 * drand48() * NANOS_PER_BURST / NANOS_PER_SECOND; in checkDriftingClock()72 const int64_t elapsedTimeNanos = (int64_t)(elapsedTimeSeconds * NANOS_PER_SECOND); in checkDriftingClock()98 int64_t position = model.convertDeltaTimeToPosition(NANOS_PER_SECOND); in TEST_F()103 constexpr int64_t kNanosPerBurst = HW_FRAMES_PER_BURST * NANOS_PER_SECOND / SAMPLE_RATE; in TEST_F()104 position = model.convertDeltaTimeToPosition(NANOS_PER_SECOND + (kNanosPerBurst / 2)); in TEST_F()108 ASSERT_EQ(NANOS_PER_SECOND, time); in TEST_F()112 ASSERT_EQ(NANOS_PER_SECOND + (kNanosPerBurst / 2), time); in TEST_F()
29 #define DEFAULT_TIMEOUT_NANOS (1 * NANOS_PER_SECOND)
33 #define NANOS_PER_SECOND (NANOS_PER_MILLISECOND * 1000) macro86 time->tv_sec = nanoseconds / NANOS_PER_SECOND; in convertNanosecondsToTimespec()88 time->tv_nsec = nanoseconds - (time->tv_sec * NANOS_PER_SECOND); in convertNanosecondsToTimespec()98 return (time.tv_sec * NANOS_PER_SECOND) + time.tv_nsec;126 (NANOS_PER_SECOND * deltaFrames / sampleRate); in calculateLatencyMillis()
229 ¤tState, NANOS_PER_SECOND); in waitUntilPaused()
77 .tv_nsec = NANOS_PER_SECOND / displayRateHz }; in main()113 .tv_nsec = NANOS_PER_SECOND / displayRateHz }; in main()
119 myData.waker.wait(AAUDIO_OK, NANOS_PER_SECOND); in testOpenPlayClose()
75 tv.tv_sec = static_cast<time_t>(ns / NANOS_PER_SECOND); in convertNsToTimespec()76 tv.tv_nsec = static_cast<long>(ns % NANOS_PER_SECOND); in convertNsToTimespec()2655 * NANOS_PER_SECOND / mSampleRate; in getTimestamp_l()2852 deltaPosition * (long long)NANOS_PER_SECOND / deltaTime; in getTimestamp_l()
439 static const int kDumpLockTimeoutNs = 1 * NANOS_PER_SECOND;
561 audio_utils_get_real_time_ns() - 10 * 60 * NANOS_PER_SECOND); in dump()
154 static const int kDumpLockTimeoutNs = 1 * NANOS_PER_SECOND;