• Home
  • Raw
  • Download

Lines Matching refs:nowUs

380         int64_t nowUs = ALooper::GetNowUs();  in getCurrentPosition()  local
381 int64_t playedOutDurationUs = mAudioSink->getPlayedOutDurationUs(nowUs); in getCurrentPosition()
387 mMediaClock->updateAnchor(nowMediaUs, nowUs, -1); in getCurrentPosition()
926 int64_t nowUs = ALooper::GetNowUs(); in fillAudioBuffer() local
928 mAudioFirstAnchorTimeMediaUs + mAudioSink->getPlayedOutDurationUs(nowUs); in fillAudioBuffer()
930 mMediaClock->updateAnchor(nowMediaUs, nowUs, INT64_MAX); in fillAudioBuffer()
1173 int64_t NuPlayer::Renderer::getPendingAudioPlayoutDurationUs(int64_t nowUs) { in getPendingAudioPlayoutDurationUs() argument
1176 int64_t nowUs = ALooper::GetNowUs(); in getPendingAudioPlayoutDurationUs() local
1178 if (mMediaClock->getMediaTime(nowUs, &mediaUs) != OK) { in getPendingAudioPlayoutDurationUs()
1185 const int64_t audioSinkPlayedUs = mAudioSink->getPlayedOutDurationUs(nowUs); in getPendingAudioPlayoutDurationUs()
1198 int64_t NuPlayer::Renderer::getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs) { in getRealTimeUs() argument
1203 return nowUs; in getRealTimeUs()
1224 int64_t nowUs = ALooper::GetNowUs(); in onNewAudioMediaTime() local
1226 if (nowUs >= mNextAudioClockUpdateTimeUs) { in onNewAudioMediaTime()
1227 int64_t nowMediaUs = mediaTimeUs - getPendingAudioPlayoutDurationUs(nowUs); in onNewAudioMediaTime()
1228 mMediaClock->updateAnchor(nowMediaUs, nowUs, mediaTimeUs); in onNewAudioMediaTime()
1230 mNextAudioClockUpdateTimeUs = nowUs + kMinimumAudioClockUpdatePeriodUs; in onNewAudioMediaTime()
1234 if ((mMediaClock->getMediaTime(nowUs, &unused) != OK) in onNewAudioMediaTime()
1245 mMediaClock->updateAnchor(mAudioFirstAnchorTimeMediaUs, nowUs, mediaTimeUs); in onNewAudioMediaTime()
1277 int64_t nowUs = ALooper::GetNowUs(); in postDrainVideoQueue() local
1286 int64_t delayUs = realTimeUs - nowUs; in postDrainVideoQueue()
1302 mMediaClock->updateAnchor(mediaTimeUs, nowUs, mediaTimeUs); in postDrainVideoQueue()
1343 int64_t nowUs = ALooper::GetNowUs(); in onDrainVideoQueue() local
1351 realTimeUs = getRealTimeUs(mediaTimeUs, nowUs); in onDrainVideoQueue()
1358 setVideoLateByUs(nowUs - realTimeUs); in onDrainVideoQueue()
1390 realTimeUs = nowUs; in onDrainVideoQueue()
1443 int64_t nowUs = ALooper::GetNowUs(); in notifyEOS_l() local
1444 status_t result = mMediaClock->getMediaTime(nowUs, &mediaUs); in notifyEOS_l()
1451 mNextVideoTimeMediaUs, nowUs, in notifyEOS_l()
1608 int64_t nowUs = ALooper::GetNowUs(); in onFlush() local
1610 mNextVideoTimeMediaUs, nowUs, in onFlush()