/frameworks/av/media/libstagefright/ |
H A D | ThrottledSource.cpp | 45 int64_t nowUs = ALooper::GetNowUs(); local 48 mStartTimeUs = nowUs; 58 if (whenUs > nowUs) { 59 usleep(whenUs - nowUs);
|
H A D | MediaClock.cpp | 64 int64_t nowUs = ALooper::GetNowUs(); local 66 anchorTimeMediaUs + (nowUs - anchorTimeRealUs) * (double)mPlaybackRate; 77 mAnchorTimeMediaUs + (nowUs - mAnchorTimeRealUs) * (double)mPlaybackRate; 83 mAnchorTimeRealUs = nowUs; 100 int64_t nowUs = ALooper::GetNowUs(); local 101 mAnchorTimeMediaUs += (nowUs - mAnchorTimeRealUs) * (double)mPlaybackRate; 106 mAnchorTimeRealUs = nowUs; 157 int64_t nowUs = ALooper::GetNowUs(); local 160 getMediaTime_l(nowUs, &nowMediaUs, true /* allowPastMaxTime */); 164 *outRealUs = (targetMediaUs - nowMediaUs) / (double)mPlaybackRate + nowUs; [all...] |
H A D | MediaSync.cpp | 311 int64_t nowUs = ALooper::GetNowUs(); local 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) { argument 468 return nowUs; 477 int64_t MediaSync::getPlayedOutAudioDurationMedia_l(int64_t nowUs) { argument 491 const int64_t timestampAge = nowUs - numFramesPlayedAt; 500 ALOGV("getTimestamp: returned stale timestamp nowUs( 554 int64_t nowUs = ALooper::GetNowUs(); local 801 int64_t nowUs = ALooper::GetNowUs(); local [all...] |
H A D | VBRISeeker.cpp | 158 int64_t nowUs = 0; local 161 while (segmentIndex < mSegments.size() && nowUs < *timeUs) { 162 nowUs += segmentDurationUs; 168 *timeUs = nowUs;
|
/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | RepeaterSource.cpp | 131 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 D | Converter.cpp | 350 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 D | PlaybackSession.cpp | 831 int64_t nowUs = ALooper::GetNowUs(); local 834 mFirstSampleTimeRealUs = nowUs; 839 delayUs = whenUs - nowUs;
|
/frameworks/av/media/libstagefright/foundation/ |
H A D | ALooper.cpp | 207 int64_t nowUs = GetNowUs(); local 209 if (whenUs > nowUs) { 210 int64_t delayUs = whenUs - nowUs;
|
H A D | ANetworkSession.cpp | 294 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/base/core/java/com/android/internal/os/ |
H A D | KernelUidCpuTimeReader.java | 70 long nowUs = SystemClock.elapsedRealtime() * 1000; 98 final long timeDiffUs = nowUs - mLastTimeReadUs; 143 mLastTimeReadUs = nowUs;
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerRenderer.cpp | 356 int64_t nowUs = ALooper::GetNowUs(); local 357 int64_t nowMediaUs = mAudioSink->getPlayedOutDurationUs(nowUs) 359 mMediaClock->updateAnchor(nowMediaUs, nowUs, -1); 834 int64_t nowUs = ALooper::GetNowUs(); local 836 mAudioFirstAnchorTimeMediaUs + mAudioSink->getPlayedOutDurationUs(nowUs); 838 mMediaClock->updateAnchor(nowMediaUs, nowUs, INT64_MAX); 1062 int64_t NuPlayer::Renderer::getPendingAudioPlayoutDurationUs(int64_t nowUs) { argument 1065 int64_t nowUs = ALooper::GetNowUs(); local 1067 if (mMediaClock->getMediaTime(nowUs, &mediaUs) != OK) { 1073 return writtenAudioDurationUs - mAudioSink->getPlayedOutDurationUs(nowUs); 1076 getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs) argument 1102 int64_t nowUs = ALooper::GetNowUs(); local 1157 int64_t nowUs = ALooper::GetNowUs(); local 1254 int64_t nowUs = ALooper::GetNowUs(); local [all...] |
H A D | NuPlayerRenderer.h | 210 int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo = false); 213 int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo = false); 220 int64_t getPendingAudioPlayoutDurationUs(int64_t nowUs); 229 int64_t getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs);
|
/frameworks/av/include/media/stagefright/ |
H A D | MediaSync.h | 236 int64_t getRealTime(int64_t mediaTimeUs, int64_t nowUs); 238 int64_t getPlayedOutAudioDurationMedia_l(int64_t nowUs);
|
/frameworks/av/media/libstagefright/rtsp/ |
H A D | UDPPusher.cpp | 105 int64_t nowUs = ALooper::GetNowUs(); local 106 (new AMessage(kWhatPush, this))->post(whenUs - nowUs);
|
H A D | ARTPSource.cpp | 178 int64_t nowUs = ALooper::GetNowUs(); local 179 if (mLastFIRRequestUs >= 0 && mLastFIRRequestUs + 5000000ll > nowUs) { 184 mLastFIRRequestUs = nowUs;
|
H A D | ARTPConnection.cpp | 308 int64_t nowUs = ALooper::GetNowUs(); local 310 || mLastReceiverReportTimeUs + 5000000ll <= nowUs) { 361 mLastReceiverReportTimeUs = nowUs;
|
H A D | ARTPWriter.cpp | 419 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 D | MyTransmitter.h | 144 uint64_t nowUs = tv.tv_sec * 1000000ll + tv.tv_usec; local 146 nowUs += ((70ll * 365 + 17) * 24) * 60 * 60 * 1000000ll; 148 uint64_t hi = nowUs / 1000000ll; 149 uint64_t lo = ((1ll << 32) * (nowUs % 1000000ll)) / 1000000ll;
|
/frameworks/av/media/libstagefright/wifi-display/rtp/ |
H A D | RTPSender.cpp | 270 int64_t nowUs = ALooper::GetNowUs(); local 271 uint32_t rtpTime = (nowUs * 9) / 100ll; 495 uint64_t nowUs = tv.tv_sec * 1000000ll + tv.tv_usec; local 497 nowUs += ((70ll * 365 + 17) * 24) * 60 * 60 * 1000000ll; 499 uint64_t hi = nowUs / 1000000ll; 500 uint64_t lo = ((1ll << 32) * (nowUs % 1000000ll)) / 1000000ll;
|
/frameworks/base/media/java/android/media/ |
H A D | MediaPlayer.java | 3782 long nowUs; 3784 nowUs = getCurrentTimeUs(refreshTime, true); 3789 nowUs = getCurrentTimeUs(refreshTime, true); 3791 long nextTimeUs = nowUs; 3801 .append(nowUs).append(") from {"); 3823 } else if (mTimes[ix] <= nowUs + MAX_EARLY_CALLBACK_US) { 3827 } else if (nextTimeUs == nowUs || mTimes[ix] < nextTimeUs) { 3832 if (nextTimeUs > nowUs && !mPaused) { 3834 if (DEBUG) Log.d(TAG, "scheduling for " + nextTimeUs + " and " + nowUs); 3835 scheduleNotification(NOTIFY_TIME, nextTimeUs - nowUs); [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 509 int64_t nowUs = ALooper::GetNowUs(); local 512 mStartTimeRealUs = nowUs + 1000000ll; 522 int64_t lateByUs = nowUs - whenRealUs;
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaSync.cpp | 285 int64_t nowUs = ALooper::GetNowUs(); local 287 if (mediaClock->getMediaTime(nowUs, &mediaUs) != OK) { 294 (jlong)(nowUs * 1000));
|
/frameworks/av/include/media/ |
H A D | MediaPlayerInterface.h | 102 virtual int64_t getPlayedOutDurationUs(int64_t nowUs) const = 0;
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | MediaPlayerService.cpp | 1508 int64_t MediaPlayerService::AudioOutput::getPlayedOutDurationUs(int64_t nowUs) const 1524 const int64_t timestampAge = nowUs - numFramesPlayedAt; 1532 ALOGV("getTimestamp: returned stale timestamp nowUs(%lld) numFramesPlayedAt(%lld)", 1533 (long long)nowUs, (long long)numFramesPlayedAt); 1534 numFramesPlayedAt = nowUs - kStaleTimestamp100ms; 1539 numFramesPlayedAt = nowUs; 1545 numFramesPlayedAt = nowUs; 1553 + nowUs - numFramesPlayedAt; 1556 // (1) In case 1, the time nowUs is computed before getTimestamp() is called and 1557 // numFramesPlayedAt is greater than nowUs b [all...] |
H A D | MediaPlayerService.h | 91 virtual int64_t getPlayedOutDurationUs(int64_t nowUs) const;
|