Lines Matching refs:nowUs
314 int64_t nowUs = ALooper::GetNowUs();
317 + getPlayedOutAudioDurationMedia_l(nowUs);
323 oldRealTime = getRealTime(mNextBufferItemMediaUs, nowUs);
326 mMediaClock->updateAnchor(nowMediaUs, nowUs, maxMediaTimeUs);
330 int64_t newRealTime = getRealTime(mNextBufferItemMediaUs, nowUs);
466 int64_t MediaSync::getRealTime(int64_t mediaTimeUs, int64_t nowUs) {
471 return nowUs;
480 int64_t MediaSync::getPlayedOutAudioDurationMedia_l(int64_t nowUs) {
497 numFramesPlayedAtUs = nowUs;
504 numFramesPlayedAtUs = nowUs;
513 + nowUs - numFramesPlayedAtUs;
516 // (1) In case 1, the time nowUs is computed before getTimestamp() is
517 // called and numFramesPlayedAtUs is greater than nowUs by time more
528 ALOGV("getPlayedOutAudioDurationMedia_l(%lld) nowUs(%lld) frames(%u) "
530 (long long)durationUs, (long long)nowUs, numFramesPlayed,
541 int64_t nowUs = ALooper::GetNowUs();
544 int64_t itemRealUs = getRealTime(itemMediaUs, nowUs);
551 if (itemRealUs <= nowUs + twoVsyncsUs) {
558 if (nowUs - itemRealUs <= kMaxAllowedVideoLateTimeUs) {
572 itemMediaUs, nowUs, itemMediaUs + 100000);
581 msg->post(itemRealUs - nowUs - twoVsyncsUs);
788 int64_t nowUs = ALooper::GetNowUs();
789 int64_t itemRealUs = getRealTime(mNextBufferItemMediaUs, nowUs);
795 if (itemRealUs > nowUs) {
796 msg->post(itemRealUs - nowUs);