Searched refs:mediaUs (Results 1 – 6 of 6) sorted by relevance
172 int64_t mediaUs = mAnchorTimeMediaUs in getMediaTime_l() local174 if (mediaUs > mMaxTimeMediaUs && !allowPastMaxTime) { in getMediaTime_l()175 mediaUs = mMaxTimeMediaUs; in getMediaTime_l()177 if (mediaUs < mStartingTimeMediaUs) { in getMediaTime_l()178 mediaUs = mStartingTimeMediaUs; in getMediaTime_l()180 if (mediaUs < 0) { in getMediaTime_l()181 mediaUs = 0; in getMediaTime_l()183 *outMediaUs = mediaUs; in getMediaTime_l()
74 status_t getCurrentPosition(int64_t *mediaUs);231 status_t getCurrentPositionOnLooper(int64_t *mediaUs);233 int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo = false);234 bool getCurrentPositionIfPaused_l(int64_t *mediaUs);236 int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo = false);248 void setAudioFirstAnchorTimeIfNeeded_l(int64_t mediaUs);
91 status_t getCurrentPosition(int64_t *mediaUs);
384 status_t NuPlayer::Renderer::getCurrentPosition(int64_t *mediaUs) { in getCurrentPosition() argument385 status_t result = mMediaClock->getMediaTime(ALooper::GetNowUs(), mediaUs); in getCurrentPosition()407 *mediaUs = mAudioFirstAnchorTimeMediaUs; in getCurrentPosition()414 return mMediaClock->getMediaTime(ALooper::GetNowUs(), mediaUs); in getCurrentPosition()422 void NuPlayer::Renderer::setAudioFirstAnchorTimeIfNeeded_l(int64_t mediaUs) { in setAudioFirstAnchorTimeIfNeeded_l() argument424 mAudioFirstAnchorTimeMediaUs = mediaUs; in setAudioFirstAnchorTimeIfNeeded_l()425 mMediaClock->setStartingTimeMedia(mediaUs); in setAudioFirstAnchorTimeIfNeeded_l()1225 int64_t mediaUs; in getPendingAudioPlayoutDurationUs() local1226 if (mMediaClock->getMediaTime(nowUs, &mediaUs) != OK) { in getPendingAudioPlayoutDurationUs()1229 return writtenAudioDurationUs - (mediaUs - mAudioFirstAnchorTimeMediaUs); in getPendingAudioPlayoutDurationUs()[all …]
2258 status_t NuPlayer::getCurrentPosition(int64_t *mediaUs) { in getCurrentPosition() argument2264 return renderer->getCurrentPosition(mediaUs); in getCurrentPosition()
286 int64_t mediaUs = 0; in android_media_MediaSync_native_getTimestamp() local287 if (mediaClock->getMediaTime(nowUs, &mediaUs) != OK) { in android_media_MediaSync_native_getTimestamp()292 (jlong)mediaUs); in android_media_MediaSync_native_getTimestamp()