/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 | 99 int64_t nowUs = ALooper::GetNowUs(); local 101 anchorTimeMediaUs + (nowUs - anchorTimeRealUs) * (double)mPlaybackRate; 112 mAnchorTimeMediaUs + (nowUs - mAnchorTimeRealUs) * (double)mPlaybackRate; 118 updateAnchorTimesAndPlaybackRate_l(nowMediaUs, nowUs, mPlaybackRate); 137 int64_t nowUs = ALooper::GetNowUs(); local 138 int64_t nowMediaUs = mAnchorTimeMediaUs + (nowUs - mAnchorTimeRealUs) * (double)mPlaybackRate; 143 updateAnchorTimesAndPlaybackRate_l(nowMediaUs, nowUs, rate); 198 int64_t nowUs = ALooper::GetNowUs(); local 201 getMediaTime_l(nowUs, &nowMediaUs, true /* allowPastMaxTime */); 205 *outRealUs = (targetMediaUs - nowMediaUs) / (double)mPlaybackRate + nowUs; [all...] |
H A D | MediaSync.cpp | 314 int64_t nowUs = ALooper::GetNowUs(); local 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) { argument 471 return nowUs; 480 int64_t MediaSync::getPlayedOutAudioDurationMedia_l(int64_t nowUs) { argument 497 numFramesPlayedAtUs = nowUs; 504 numFramesPlayedAtUs = nowUs; 541 int64_t nowUs = ALooper::GetNowUs(); local 788 int64_t nowUs = ALooper::GetNowUs(); local [all...] |
/frameworks/av/media/extractors/mp3/ |
H A D | VBRISeeker.cpp | 172 int64_t nowUs = 0; local 175 while (segmentIndex < mSegments.size() && nowUs < *timeUs) { 176 nowUs += segmentDurationUs; 182 *timeUs = 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 | 283 int64_t nowUs = ALooper::GetNowUs(); local 284 buf->meta()->setInt64("arrivalTimeUs", nowUs); 362 int64_t nowUs = ALooper::GetNowUs(); local 363 packet->meta()->setInt64("arrivalTimeUs", nowUs); 396 int64_t nowUs = ALooper::GetNowUs(); local 397 data->meta()->setInt64("arrivalTimeUs", nowUs); 515 int64_t nowUs = ALooper::GetNowUs(); 516 int64_t delayMs = (nowUs - frag.mTimeUs) / 1000ll; 662 int64_t nowUs = ALooper::GetNowUs(); 665 || nowUs > mLastStallReportU [all...] |
/frameworks/av/media/libmediaplayer2/nuplayer2/ |
H A D | NuPlayer2Renderer.h | 225 int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo = false); 228 int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo = false); 235 int64_t getPendingAudioPlayoutDurationUs(int64_t nowUs); 244 int64_t getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs);
|
H A D | NuPlayer2Renderer.cpp | 359 int64_t nowUs = ALooper::GetNowUs(); local 360 int64_t nowMediaUs = mAudioSink->getPlayedOutDurationUs(nowUs) 362 mMediaClock->updateAnchor(nowMediaUs, nowUs, -1); 901 int64_t nowUs = ALooper::GetNowUs(); local 903 mAudioFirstAnchorTimeMediaUs + mAudioSink->getPlayedOutDurationUs(nowUs); 905 mMediaClock->updateAnchor(nowMediaUs, nowUs, INT64_MAX); 1148 int64_t NuPlayer2::Renderer::getPendingAudioPlayoutDurationUs(int64_t nowUs) { argument 1151 int64_t nowUs = ALooper::GetNowUs(); local 1153 if (mMediaClock->getMediaTime(nowUs, &mediaUs) != OK) { 1160 const int64_t audioSinkPlayedUs = mAudioSink->getPlayedOutDurationUs(nowUs); 1173 getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs) argument 1199 int64_t nowUs = ALooper::GetNowUs(); local 1252 int64_t nowUs = ALooper::GetNowUs(); local 1318 int64_t nowUs = ALooper::GetNowUs(); local [all...] |
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerRenderer.h | 225 int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo = false); 228 int64_t *mediaUs, int64_t nowUs, bool allowPastQueuedVideo = false); 235 int64_t getPendingAudioPlayoutDurationUs(int64_t nowUs); 244 int64_t getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs);
|
H A D | NuPlayerRenderer.cpp | 360 int64_t nowUs = ALooper::GetNowUs(); local 361 int64_t nowMediaUs = mAudioSink->getPlayedOutDurationUs(nowUs) 363 mMediaClock->updateAnchor(nowMediaUs, nowUs, -1); 902 int64_t nowUs = ALooper::GetNowUs(); local 904 mAudioFirstAnchorTimeMediaUs + mAudioSink->getPlayedOutDurationUs(nowUs); 906 mMediaClock->updateAnchor(nowMediaUs, nowUs, INT64_MAX); 1149 int64_t NuPlayer::Renderer::getPendingAudioPlayoutDurationUs(int64_t nowUs) { argument 1152 int64_t nowUs = ALooper::GetNowUs(); local 1154 if (mMediaClock->getMediaTime(nowUs, &mediaUs) != OK) { 1161 const int64_t audioSinkPlayedUs = mAudioSink->getPlayedOutDurationUs(nowUs); 1174 getRealTimeUs(int64_t mediaTimeUs, int64_t nowUs) argument 1200 int64_t nowUs = ALooper::GetNowUs(); local 1253 int64_t nowUs = ALooper::GetNowUs(); local 1319 int64_t nowUs = ALooper::GetNowUs(); local [all...] |
/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/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 | 182 int64_t nowUs = ALooper::GetNowUs(); local 183 if (mLastFIRRequestUs >= 0 && mLastFIRRequestUs + 5000000ll > nowUs) { 188 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/base/core/java/com/android/internal/os/ |
H A D | KernelUidCpuTimeReader.java | 73 long nowUs = SystemClock.elapsedRealtime() * 1000; 94 final long timeDiffUs = nowUs - mLastTimeReadUs; 134 mLastTimeReadUs = nowUs;
|
/frameworks/av/media/libmediaplayer2/ |
H A D | MediaPlayer2AudioOutput.cpp | 196 int64_t MediaPlayer2AudioOutput::getPlayedOutDurationUs(int64_t nowUs) const { 213 numFramesPlayedAtUs = nowUs; 219 numFramesPlayedAtUs = nowUs; 227 + nowUs - numFramesPlayedAtUs; 230 // (1) In case 1, the time nowUs is computed before getTimestamp() is called and 231 // numFramesPlayedAtUs is greater than nowUs by time more than numFramesPlayed. 239 ALOGV("getPlayedOutDurationUs(%lld) nowUs(%lld) frames(%u) framesAt(%lld)", 240 (long long)durationUs, (long long)nowUs,
|
/frameworks/av/media/libmediaplayer2/include/mediaplayer2/ |
H A D | MediaPlayer2AudioOutput.h | 53 virtual int64_t getPlayedOutDurationUs(int64_t nowUs) const;
|
H A D | MediaPlayer2Interface.h | 89 virtual int64_t getPlayedOutDurationUs(int64_t nowUs) const = 0;
|
/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 512 int64_t nowUs = ALooper::GetNowUs(); local 515 mStartTimeRealUs = nowUs + 1000000ll; 525 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 | 106 virtual int64_t getPlayedOutDurationUs(int64_t nowUs) const = 0;
|
/frameworks/av/media/libmediaplayerservice/include/ |
H A D | MediaPlayerInterface.h | 106 virtual int64_t getPlayedOutDurationUs(int64_t nowUs) const = 0;
|