Searched refs:nowUs (Results 1 - 20 of 20) sorted by relevance

/frameworks/av/media/libstagefright/
H A DThrottledSource.cpp45 int64_t nowUs = ALooper::GetNowUs(); local
48 mStartTimeUs = nowUs;
58 if (whenUs > nowUs) {
59 usleep(whenUs - nowUs);
H A DVBRISeeker.cpp158 int64_t nowUs = 0; local
161 while (segmentIndex < mSegments.size() && nowUs < *timeUs) {
162 nowUs += segmentDurationUs;
168 *timeUs = nowUs;
H A DAwesomePlayer.cpp1919 int64_t nowUs = estimateRealTimeUs(ts, systemTimeUs) - mTimeSourceDeltaUs; local
1921 int64_t latenessUs = nowUs - timeUs;
1934 int64_t nowUs = estimateRealTimeUs(ts, systemTimeUs) - mTimeSourceDeltaUs; local
1936 latenessUs = nowUs - timeUs;
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DNuPlayerRenderer.cpp205 int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo) {
211 return getCurrentPositionFromAnchor(mediaUs, nowUs, allowPastQueuedVideo);
225 int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo) {
235 int64_t positionUs = (nowUs - mAnchorTimeRealUs) + mAnchorTimeMediaUs;
238 positionUs -= (nowUs - mPauseStartedTimeRealUs);
645 int64_t nowUs = ALooper::GetNowUs(); local
646 setAnchorTime(mAudioFirstAnchorTimeMediaUs, nowUs - getPlayedOutAudioDurationUs(nowUs));
767 int64_t NuPlayer::Renderer::getPendingAudioPlayoutDurationUs(int64_t nowUs) { argument
770 return writtenAudioDurationUs - getPlayedOutAudioDurationUs(nowUs);
204 getCurrentPositionOnLooper( int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo) argument
224 getCurrentPositionFromAnchor( int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo) argument
773 getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs) argument
791 int64_t nowUs = ALooper::GetNowUs(); local
820 int64_t nowUs = ALooper::GetNowUs(); local
893 int64_t nowUs = -1; local
1312 getPlayedOutAudioDurationUs(int64_t nowUs) argument
[all...]
H A DNuPlayerRenderer.h202 int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo = false);
205 int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo = false);
210 int64_t getPendingAudioPlayoutDurationUs(int64_t nowUs);
211 int64_t getPlayedOutAudioDurationUs(int64_t nowUs);
215 int64_t getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs);
/frameworks/av/media/libstagefright/wifi-display/source/
H A DRepeaterSource.cpp131 int64_t nowUs = ALooper::GetNowUs(); local
132 int64_t delayUs = bufferTimeUs - nowUs;
149 int64_t nowUs = ALooper::GetNowUs(); local
150 if (nowUs - mLastBufferUpdateUs > 1000000ll) {
H A DConverter.cpp350 int64_t nowUs = ALooper::GetNowUs(); local
353 mFirstSilentFrameUs = nowUs;
354 } else if (nowUs >= mFirstSilentFrameUs + 10000000ll) {
383 int64_t nowUs = ALooper::GetNowUs();
385 mIsVideo ? "video" : "audio", nowUs - whenUs);
H A DPlaybackSession.cpp827 int64_t nowUs = ALooper::GetNowUs(); local
830 mFirstSampleTimeRealUs = nowUs;
838 msg->post(whenUs - nowUs);
H A DTSPacketizer.cpp848 int64_t nowUs = ALooper::GetNowUs(); local
850 uint64_t PCR = nowUs * 27; // PCR based on a 27MHz clock
/frameworks/av/media/libstagefright/foundation/
H A DALooper.cpp200 int64_t nowUs = GetNowUs(); local
202 if (whenUs > nowUs) {
203 int64_t delayUs = whenUs - nowUs;
H A DANetworkSession.cpp294 int64_t nowUs = ALooper::GetNowUs(); local
295 buf->meta()->setInt64("arrivalTimeUs", nowUs);
373 int64_t nowUs = ALooper::GetNowUs(); local
374 packet->meta()->setInt64("arrivalTimeUs", nowUs);
407 int64_t nowUs = ALooper::GetNowUs(); local
408 data->meta()->setInt64("arrivalTimeUs", nowUs);
526 int64_t nowUs = ALooper::GetNowUs();
527 int64_t delayMs = (nowUs - frag.mTimeUs) / 1000ll;
673 int64_t nowUs = ALooper::GetNowUs();
676 || nowUs > mLastStallReportU
[all...]
/frameworks/av/media/libstagefright/rtsp/
H A DUDPPusher.cpp105 int64_t nowUs = ALooper::GetNowUs(); local
106 (new AMessage(kWhatPush, id()))->post(whenUs - nowUs);
H A DARTPSource.cpp171 int64_t nowUs = ALooper::GetNowUs(); local
172 if (mLastFIRRequestUs >= 0 && mLastFIRRequestUs + 5000000ll > nowUs) {
177 mLastFIRRequestUs = nowUs;
H A DARTPConnection.cpp308 int64_t nowUs = ALooper::GetNowUs(); local
310 || mLastReceiverReportTimeUs + 5000000ll <= nowUs) {
361 mLastReceiverReportTimeUs = nowUs;
H A DARTPWriter.cpp419 uint64_t nowUs = ALooper::GetNowUs(); local
421 nowUs += ((70ll * 365 + 17) * 24) * 60 * 60 * 1000000ll;
423 uint64_t hi = nowUs / 1000000ll;
424 uint64_t lo = ((1ll << 32) * (nowUs % 1000000ll)) / 1000000ll;
H A DMyTransmitter.h141 uint64_t nowUs = tv.tv_sec * 1000000ll + tv.tv_usec; local
143 nowUs += ((70ll * 365 + 17) * 24) * 60 * 60 * 1000000ll;
145 uint64_t hi = nowUs / 1000000ll;
146 uint64_t lo = ((1ll << 32) * (nowUs % 1000000ll)) / 1000000ll;
/frameworks/av/media/libstagefright/wifi-display/rtp/
H A DRTPSender.cpp272 int64_t nowUs = ALooper::GetNowUs(); local
273 uint32_t rtpTime = (nowUs * 9) / 100ll;
497 uint64_t nowUs = tv.tv_sec * 1000000ll + tv.tv_usec; local
499 nowUs += ((70ll * 365 + 17) * 24) * 60 * 60 * 1000000ll;
501 uint64_t hi = nowUs / 1000000ll;
502 uint64_t lo = ((1ll << 32) * (nowUs % 1000000ll)) / 1000000ll;
/frameworks/base/media/java/android/media/
H A DMediaPlayer.java3315 long nowUs;
3317 nowUs = getCurrentTimeUs(refreshTime, true);
3322 nowUs = getCurrentTimeUs(refreshTime, true);
3324 long nextTimeUs = nowUs;
3334 .append(nowUs).append(") from {");
3356 } else if (mTimes[ix] <= nowUs + MAX_EARLY_CALLBACK_US) {
3360 } else if (nextTimeUs == nowUs || mTimes[ix] < nextTimeUs) {
3365 if (nextTimeUs > nowUs && !mPaused) {
3367 if (DEBUG) Log.d(TAG, "scheduling for " + nextTimeUs + " and " + nowUs);
3368 scheduleNotification(NOTIFY_TIME, nextTimeUs - nowUs);
[all...]
/frameworks/av/cmds/stagefright/
H A DSimplePlayer.cpp512 int64_t nowUs = ALooper::GetNowUs(); local
515 mStartTimeRealUs = nowUs + 1000000ll;
525 int64_t lateByUs = nowUs - whenRealUs;
/frameworks/av/media/libstagefright/httplive/
H A DPlaylistFetcher.cpp123 int64_t nowUs = ALooper::GetNowUs(); local
182 int64_t delayUs = mLastPlaylistFetchTimeUs + minPlaylistAgeUs - nowUs;

Completed in 3541 milliseconds