Home
last modified time | relevance | path

Searched refs:delayUs (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/wilhelm/src/android/
Dandroid_GenericPlayer.cpp624 int64_t delayUs = -1; in updateOneShot() local
632 delayUs = (mMarkerPositionMs - positionMs) * 1000LL; in updateOneShot()
676 if (trialDelayUs > 0 && (delayUs == -1 || trialDelayUs < delayUs)) { in updateOneShot()
677 delayUs = trialDelayUs; in updateOneShot()
691 if (advancesPositionInRealTime() && delayUs >= 0) { in updateOneShot()
696 delayUs = delayUs * 1000 / mPlaybackRatePermille; in updateOneShot()
700 if (delayUs < 20000LL) { in updateOneShot()
701 delayUs = 20000LL; in updateOneShot()
704 if (delayUs > 60000000LL) { in updateOneShot()
705 delayUs = 60000000LL; in updateOneShot()
[all …]
/frameworks/av/media/libstagefright/foundation/
DALooper.cpp168 void ALooper::post(const sp<AMessage> &msg, int64_t delayUs) { in post() argument
172 if (delayUs > 0) { in post()
173 whenUs = GetNowUs() + delayUs; in post()
210 int64_t delayUs = whenUs - nowUs; in loop() local
211 mQueueChangedCondition.waitRelative(mLock, delayUs * 1000ll); in loop()
DAMessage.cpp357 status_t AMessage::post(int64_t delayUs) { in post() argument
364 looper->post(this, delayUs); in post()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.cpp482 int64_t delayUs = in onMessageReceived() local
486 delayUs /= mPlaybackRate; in onMessageReceived()
491 delayUs /= 2; in onMessageReceived()
495 ALOGD_IF(delayUs > maxDrainDelayUs, "postDrainAudioQueue long delay: %lld > %lld", in onMessageReceived()
496 (long long)delayUs, (long long)maxDrainDelayUs); in onMessageReceived()
498 postDrainAudioQueue_l(delayUs); in onMessageReceived()
683 void NuPlayer::Renderer::postDrainAudioQueue_l(int64_t delayUs) { in postDrainAudioQueue_l() argument
695 if (diffUs > delayUs) { in postDrainAudioQueue_l()
696 delayUs = diffUs; in postDrainAudioQueue_l()
703 msg->post(delayUs); in postDrainAudioQueue_l()
[all …]
DHTTPLiveSource.cpp226 int64_t timeUs, baseUs, delayUs; in pollForRawData() local
229 delayUs = baseUs + timeUs - ALooper::GetNowUs(); in pollForRawData()
233 msg->post(delayUs > 0ll ? delayUs : 0ll); in pollForRawData()
236 if (delayUs < -1000000ll) { // 1 second in pollForRawData()
DNuPlayerRenderer.h220 void postDrainAudioQueue_l(int64_t delayUs = 0);
261 void notifyEOS(bool audio, status_t finalResult, int64_t delayUs = 0);
DGenericSource.cpp764 int64_t delayUs = subTimeUs - timeUs; in fetchTextData() local
767 delayUs -= oneSecUs; in fetchTextData()
771 msg2->post(delayUs < 0 ? 0 : delayUs); in fetchTextData()
803 const int64_t delayUs = nextSubTimeUs - subTimeUs; in sendTextData() local
804 msg->post(delayUs < 0 ? 0 : delayUs); in sendTextData()
/frameworks/av/media/libstagefright/
DHTTPBase.cpp45 size_t numBytes, int64_t delayUs) { in addBandwidthMeasurement() argument
49 entry.mDelayUs = delayUs; in addBandwidthMeasurement()
51 mTotalTransferTimeUs += delayUs; in addBandwidthMeasurement()
DNuCachedSource2.cpp435 int64_t delayUs; in onFetch() local
439 delayUs = 3000000ll; in onFetch()
441 delayUs = 0; in onFetch()
444 delayUs = 100000ll; in onFetch()
447 (new AMessage(kWhatFetchMore, mReflector))->post(delayUs); in onFetch()
/frameworks/av/media/libstagefright/httplive/
DPlaylistFetcher.cpp288 int64_t delayUs = mLastPlaylistFetchTimeUs + minPlaylistAgeUs - nowUs; in delayUsToRefreshPlaylist() local
289 return delayUs > 0ll ? delayUs : 0ll; in delayUsToRefreshPlaylist()
435 void PlaylistFetcher::postMonitorQueue(int64_t delayUs, int64_t minDelayUs) { in postMonitorQueue() argument
440 if (delayUs > maxDelayUs) { in postMonitorQueue()
442 delayUs = maxDelayUs; in postMonitorQueue()
446 msg->post(delayUs); in postMonitorQueue()
844 int64_t delayUs = bufferedDurationUs - kMinBufferedDurationUs + 1000000ll; in onMonitorQueue() local
845 if (delayUs > targetDurationUs / 2) { in onMonitorQueue()
846 delayUs = targetDurationUs / 2; in onMonitorQueue()
850 (long long)delayUs, in onMonitorQueue()
[all …]
DLiveSession.cpp60 void addBandwidthMeasurement(size_t numBytes, int64_t delayUs);
101 size_t numBytes, int64_t delayUs) { in addBandwidthMeasurement() argument
107 entry.mDelayUs = delayUs; in addBandwidthMeasurement()
109 mTotalTransferTimeUs += delayUs; in addBandwidthMeasurement()
532 sp<AMessage> &stopParams, int64_t delayUs, bool *needResumeUntil) { in checkSwitchProgress() argument
553 if (delayUs > 0) { in checkSwitchProgress()
554 lastDequeueMeta = source->getMetaAfterLastDequeued(delayUs); in checkSwitchProgress()
832 int64_t delayUs = switchUp ? (kUnderflowMarkUs + 1000000ll) : 0; in onMessageReceived() local
835 if (checkSwitchProgress(stopParams, delayUs, &needResumeUntil)) { in onMessageReceived()
1314 void LiveSession::addBandwidthMeasurement(size_t numBytes, int64_t delayUs) { in addBandwidthMeasurement() argument
[all …]
DLiveSession.h271 void addBandwidthMeasurement(size_t numBytes, int64_t delayUs);
291 sp<AMessage> &msg, int64_t delayUs, bool *needResumeUntil);
DPlaylistFetcher.h200 void postMonitorQueue(int64_t delayUs = 0, int64_t minDelayUs = 0);
/frameworks/av/media/libstagefright/wifi-display/source/
DRepeaterSource.cpp132 int64_t delayUs = bufferTimeUs - nowUs; in read() local
134 if (delayUs > 0ll) { in read()
135 usleep(delayUs); in read()
DPlaybackSession.cpp826 int64_t delayUs = 1000000; // default delay is 1 sec in schedulePullExtractor() local
839 delayUs = whenUs - nowUs; in schedulePullExtractor()
846 msg->post(delayUs); in schedulePullExtractor()
/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java132 int delayUs, Handler handler, int maxBatchReportLatencyUs, int reservedFlags) { in registerListenerImpl() argument
142 if (maxBatchReportLatencyUs < 0 || delayUs < 0) { in registerListenerImpl()
159 if (!queue.addSensor(sensor, delayUs, maxBatchReportLatencyUs)) { in registerListenerImpl()
166 return queue.addSensor(sensor, delayUs, maxBatchReportLatencyUs); in registerListenerImpl()
530 Sensor sensor, int delayUs, int maxBatchReportLatencyUs) { in addSensor() argument
538 if (enableSensor(sensor, delayUs, maxBatchReportLatencyUs) != 0) { in addSensor()
541 maxBatchReportLatencyUs > 0 && enableSensor(sensor, delayUs, 0) != 0) { in addSensor()
DSensorManager.java846 int delayUs = getDelay(samplingPeriodUs); in registerListener() local
847 return registerListenerImpl(listener, sensor, delayUs, handler, maxReportLatencyUs, 0); in registerListener()
852 int delayUs, Handler handler, int maxReportLatencyUs, int reservedFlags); in registerListenerImpl() argument
/frameworks/av/media/libstagefright/http/
DMediaHTTP.cpp118 int64_t delayUs = ALooper::GetNowUs() - startTimeUs; in readAt() local
120 addBandwidthMeasurement(numBytesRead, delayUs); in readAt()
/frameworks/av/cmds/stagefright/
Dsf2.cpp83 int64_t delayUs = ALooper::GetNowUs() - mStartTimeUs; in printStatistics() local
88 mTotalBytesReceived * 1E6 / 1024 / delayUs); in printStatistics()
93 mNumOutputBuffersReceived * 1E6 / delayUs, in printStatistics()
95 mTotalBytesReceived * 1E6 / 1024 / delayUs); in printStatistics()
DSimplePlayer.cpp633 int64_t delayUs = ALooper::GetNowUs() - startTimeUs; in renderAudio() local
637 if (delayUs > 2000ll) { in renderAudio()
640 (long long)delayUs, numFramesAvailableToWrite, numFramesWritten); in renderAudio()
/frameworks/av/include/media/stagefright/foundation/
DALooper.h91 void post(const sp<AMessage> &msg, int64_t delayUs);
DAMessage.h130 status_t post(int64_t delayUs = 0);
/frameworks/av/media/libstagefright/include/
DHTTPBase.h64 virtual void addBandwidthMeasurement(size_t numBytes, int64_t delayUs);
/frameworks/av/media/libstagefright/mpeg2ts/
DAnotherPacketSource.h80 sp<AMessage> getMetaAfterLastDequeued(int64_t delayUs);
DAnotherPacketSource.cpp479 sp<AMessage> AnotherPacketSource::getMetaAfterLastDequeued(int64_t delayUs) { in getMetaAfterLastDequeued() argument
503 if (durationUs + (lastUs - firstUs) >= delayUs) { in getMetaAfterLastDequeued()

12