Home
last modified time | relevance | path

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

/device/generic/goldfish/sensors/
Dmultihal_sensors_qemu.cpp92 const int64_t nowNs = ::android::elapsedRealtimeNano(); in parseQemuSensorEvent() local
106 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 …]
Dmultihal_sensors.cpp292 const int64_t nowNs = ::android::elapsedRealtimeNano(); in batchThread() local
293 while (!m_batchQueue.empty() && (nowNs >= m_batchQueue.top().timestamp)) { in batchThread()
/device/generic/goldfish/audio/
Ddevice_port_source.cpp67 const nsecs_t nowNs = systemTime(SYSTEM_TIME_MONOTONIC); in getCapturePosition() local
68 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() local
227 const uint64_t nowFrames = getCaptureFrames(nowNs); in getCapturePosition()
231 time = nowNs; in getCapturePosition()
[all …]
Ddevice_port_sink.cpp64 const nsecs_t nowNs = systemTime(SYSTEM_TIME_MONOTONIC); in getPresentationPosition() local
65 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() local
244 const nsecs_t deltaNs = nowNs - mTimestamp; in simulatePresentationPosition()
253 mTimestamp = nowNs; in simulatePresentationPosition()
/device/generic/goldfish/gnss/
Dgnss_measurement.cpp118 const int64_t nowNs = util::nowNanos(); in update() local
119 const int64_t fullBiasNs = (nowNs % 15331) * ((nowNs & 1) ? -1 : 1); in update()
120 const int64_t hwTimeNs = nowNs + fullBiasNs; // local hardware clock in update()