Searched refs:nowNs (Results 1 – 5 of 5) sorted by relevance
92 const int64_t nowNs = ::android::elapsedRealtimeNano(); in parseQemuSensorEvent() local106 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEvent()116 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEvent()128 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEvent()138 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEvent()148 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEvent()160 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEvent()170 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEvent()182 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEvent()194 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEvent()[all …]
292 const int64_t nowNs = ::android::elapsedRealtimeNano(); in batchThread() local293 while (!m_batchQueue.empty() && (nowNs >= m_batchQueue.top().timestamp)) { in batchThread()
67 const nsecs_t nowNs = systemTime(SYSTEM_TIME_MONOTONIC); in getCapturePosition() local68 const uint64_t nowFrames = getCaptureFrames(nowNs); in getCapturePosition()73 time = nowNs; in getCapturePosition()77 uint64_t getCaptureFrames(const nsecs_t nowNs) const { in getCaptureFrames()78 return uint64_t(mSampleRateHz) * ns2us(nowNs - mStartNs) / 1000000; in getCaptureFrames()81 uint64_t getAvailableFrames(const nsecs_t nowNs) const { in getAvailableFrames()82 return getCaptureFrames(nowNs) - mSentFrames; in getAvailableFrames()226 const nsecs_t nowNs = systemTime(SYSTEM_TIME_MONOTONIC); in getCapturePosition() local227 const uint64_t nowFrames = getCaptureFrames(nowNs); in getCapturePosition()231 time = nowNs; in getCapturePosition()[all …]
64 const nsecs_t nowNs = systemTime(SYSTEM_TIME_MONOTONIC); in getPresentationPosition() local65 const uint64_t nowFrames = getPresentationFrames(nowNs); in getPresentationPosition()70 ts = util::nsecs2TimeSpec(nowNs); in getPresentationPosition()74 uint64_t getPresentationFrames(const nsecs_t nowNs) const { in getPresentationFrames()75 return uint64_t(mSampleRateHz) * ns2us(nowNs - mStartNs) / 1000000; in getPresentationFrames()78 uint64_t getAvailableFrames(const nsecs_t nowNs) const { in getAvailableFrames()79 return getPresentationFrames(nowNs) - mReceivedFrames; in getAvailableFrames()243 const nsecs_t nowNs = systemTime(SYSTEM_TIME_MONOTONIC); in simulatePresentationPosition() local244 const nsecs_t deltaNs = nowNs - mTimestamp; in simulatePresentationPosition()253 mTimestamp = nowNs; in simulatePresentationPosition()
118 const int64_t nowNs = util::nowNanos(); in update() local119 const int64_t fullBiasNs = (nowNs % 15331) * ((nowNs & 1) ? -1 : 1); in update()120 const int64_t hwTimeNs = nowNs + fullBiasNs; // local hardware clock in update()