Lines Matching refs:nowNs
91 nsecs_t nowNs = systemTime(SYSTEM_TIME_MONOTONIC); in getPresentationPosition() local
92 const uint64_t nowFrames = getPresentationFramesLocked(nowNs); in getPresentationPosition()
99 nowNs -= delta * 1000000000 / mSampleRateHz; in getPresentationPosition()
104 ts = util::nsecs2TimeSpec(nowNs); in getPresentationPosition()
108 uint64_t getPresentationFramesLocked(const nsecs_t nowNs) const { in getPresentationFramesLocked()
109 return uint64_t(mSampleRateHz) * ns2us(nowNs - mStartNs) / 1000000; in getPresentationFramesLocked()
113 const nsecs_t nowNs = systemTime(SYSTEM_TIME_MONOTONIC); in calcAvailableFramesNowLocked() local
114 auto presentationFrames = getPresentationFramesLocked(nowNs); in calcAvailableFramesNowLocked()
275 nsecs_t nowNs = systemTime(SYSTEM_TIME_MONOTONIC); in getPresentationPosition() local
276 const uint64_t nowFrames = getPresentationFramesLocked(nowNs); in getPresentationPosition()
283 nowNs -= delta * 1000000000 / mSampleRateHz; in getPresentationPosition()
288 ts = util::nsecs2TimeSpec(nowNs); in getPresentationPosition()
292 uint64_t getPresentationFramesLocked(const nsecs_t nowNs) const { in getPresentationFramesLocked()
293 return uint64_t(mSampleRateHz) * ns2us(nowNs - mStartNs) / 1000000; in getPresentationFramesLocked()
297 const nsecs_t nowNs = systemTime(SYSTEM_TIME_MONOTONIC); in calcAvailableFramesNowLocked() local
298 auto presentationFrames = getPresentationFramesLocked(nowNs); in calcAvailableFramesNowLocked()