Lines Matching defs:nowUs

311     int64_t nowUs = ALooper::GetNowUs();
314 + getPlayedOutAudioDurationMedia_l(nowUs);
320 oldRealTime = getRealTime(mNextBufferItemMediaUs, nowUs);
323 mMediaClock->updateAnchor(nowMediaUs, nowUs, maxMediaTimeUs);
327 int64_t newRealTime = getRealTime(mNextBufferItemMediaUs, nowUs);
463 int64_t MediaSync::getRealTime(int64_t mediaTimeUs, int64_t nowUs) {
468 return nowUs;
477 int64_t MediaSync::getPlayedOutAudioDurationMedia_l(int64_t nowUs) {
491 const int64_t timestampAge = nowUs - numFramesPlayedAt;
500 ALOGV("getTimestamp: returned stale timestamp nowUs(%lld) "
502 (long long)nowUs, (long long)numFramesPlayedAt);
503 numFramesPlayedAt = nowUs - kStaleTimestamp100ms;
510 numFramesPlayedAt = nowUs;
517 numFramesPlayedAt = nowUs;
526 + nowUs - numFramesPlayedAt;
529 // (1) In case 1, the time nowUs is computed before getTimestamp() is
530 // called and numFramesPlayedAt is greater than nowUs by time more
541 ALOGV("getPlayedOutAudioDurationMedia_l(%lld) nowUs(%lld) frames(%u) "
543 (long long)durationUs, (long long)nowUs, numFramesPlayed,
554 int64_t nowUs = ALooper::GetNowUs();
557 int64_t itemRealUs = getRealTime(itemMediaUs, nowUs);
564 if (itemRealUs <= nowUs + twoVsyncsUs) {
571 if (nowUs - itemRealUs <= kMaxAllowedVideoLateTimeUs) {
585 itemMediaUs, nowUs, itemMediaUs + 100000);
594 msg->post(itemRealUs - nowUs - twoVsyncsUs);
801 int64_t nowUs = ALooper::GetNowUs();
802 int64_t itemRealUs = getRealTime(mNextBufferItemMediaUs, nowUs);
808 if (itemRealUs > nowUs) {
809 msg->post(itemRealUs - nowUs);