Searched refs:NANOS_PER_SECOND (Results 1 – 13 of 13) sorted by relevance
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()2661 * NANOS_PER_SECOND / mSampleRate; in getTimestamp_l()2858 deltaPosition * (long long)NANOS_PER_SECOND / deltaTime; in getTimestamp_l()
451 static const int kDumpLockTimeoutNs = 1 * NANOS_PER_SECOND;
2580 newTimeOut.tv_sec = newTimeOutNs / NANOS_PER_SECOND; in obtainBuffer()2581 newTimeOut.tv_nsec = newTimeOutNs - newTimeOut.tv_sec * NANOS_PER_SECOND; in obtainBuffer()
614 audio_utils_get_real_time_ns() - 10 * 60 * NANOS_PER_SECOND); in dump()
180 static const int kDumpLockTimeoutNs = 1 * NANOS_PER_SECOND;
51 static const int kDumpLockTimeoutNs = 1 * NANOS_PER_SECOND;
103886 Ljava/lang/Daemons;->NANOS_PER_SECOND:I105665 Ljava/nio/file/attribute/FileTime;->NANOS_PER_SECOND:J107187 Ljava/time/LocalTime;->NANOS_PER_SECOND:J