Home
last modified time | relevance | path

Searched refs:nowNs (Results 1 – 4 of 4) sorted by relevance

/device/generic/goldfish/sensors/
Dmultihal_sensors_qemu.cpp121 const int64_t nowNs = ::android::elapsedRealtimeNano(); in parseQemuSensorEventLocked() local
133 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEventLocked()
146 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEventLocked()
156 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEventLocked()
173 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEventLocked()
183 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEventLocked()
193 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEventLocked()
206 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEventLocked()
216 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEventLocked()
228 event.timestamp = nowNs + state->timeBiasNs; in parseQemuSensorEventLocked()
[all …]
Dmultihal_sensors.cpp460 const int64_t nowNs = ::android::elapsedRealtimeNano(); in batchThread() local
461 while (!m_batchQueue.empty() && (nowNs >= m_batchQueue.top().timestamp)) { in batchThread()
/device/generic/goldfish/audio/
Ddevice_port_sink.cpp91 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()
[all …]
Ddevice_port_source.cpp82 const nsecs_t nowNs = systemTime(SYSTEM_TIME_MONOTONIC); in getCapturePosition() local
83 const uint64_t nowFrames = getCaptureFramesLocked(nowNs); in getCapturePosition()
88 time = nowNs; in getCapturePosition()
92 uint64_t getCaptureFramesLocked(const nsecs_t nowNs) const { in getCaptureFramesLocked()
93 return uint64_t(mSampleRateHz) * ns2us(nowNs - mStartNs) / 1000000; in getCaptureFramesLocked()
96 uint64_t getAvailableFramesLocked(const nsecs_t nowNs) const { in getAvailableFramesLocked()
97 return getCaptureFramesLocked(nowNs) - mSentFrames; in getAvailableFramesLocked()
246 const nsecs_t nowNs = systemTime(SYSTEM_TIME_MONOTONIC); in getCapturePosition() local
247 const uint64_t nowFrames = getCaptureFramesLocked(nowNs); in getCapturePosition()
251 time = nowNs; in getCapturePosition()
[all …]