Lines Matching refs:nanoTime

53 void IsochronousClockModel::setPositionAndTime(int64_t framePosition, int64_t nanoTime) {  in setPositionAndTime()  argument
54 ALOGV("setPositionAndTime, %lld, %lld", (long long) framePosition, (long long) nanoTime); in setPositionAndTime()
56 mMarkerNanoTime = nanoTime; in setPositionAndTime()
59 void IsochronousClockModel::start(int64_t nanoTime) { in start() argument
60 ALOGV("start(nanos = %lld)\n", (long long) nanoTime); in start()
61 mMarkerNanoTime = nanoTime; in start()
70 void IsochronousClockModel::stop(int64_t nanoTime) { in stop() argument
72 (long long) nanoTime, in stop()
76 setPositionAndTime(convertTimeToPosition(nanoTime), nanoTime); in stop()
92 void IsochronousClockModel::processTimestamp(int64_t framePosition, int64_t nanoTime) { in processTimestamp() argument
98 int64_t nanosDelta = nanoTime - mMarkerNanoTime; in processTimestamp()
121 setPositionAndTime(framePosition, nanoTime); in processTimestamp()
127 setPositionAndTime(framePosition, nanoTime); in processTimestamp()
143 setPositionAndTime(framePosition, nanoTime); in processTimestamp()
163 setPositionAndTime(framePosition, nanoTime); // JUMP! in processTimestamp()
167 if ((nanoTime - mLastJumpWarningTimeNanos) > AAUDIO_NANOS_PER_SECOND) { in processTimestamp()
175 mLastJumpWarningTimeNanos = nanoTime; in processTimestamp()
278 int64_t IsochronousClockModel::convertTimeToPosition(int64_t nanoTime) const { in convertTimeToPosition()
282 int64_t nanosDelta = nanoTime - mMarkerNanoTime; in convertTimeToPosition()
303 int64_t IsochronousClockModel::convertLatestTimeToPosition(int64_t nanoTime) const { in convertLatestTimeToPosition()
304 return convertTimeToPosition(nanoTime - getLateTimeOffsetNanos()); in convertLatestTimeToPosition()