Home
last modified time | relevance | path

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

12

/frameworks/av/media/libstagefright/foundation/
DALooper.cpp161 void ALooper::post(const sp<AMessage> &msg, int64_t delayUs) { in post() argument
165 if (delayUs > 0) { in post()
166 whenUs = GetNowUs() + delayUs; in post()
203 int64_t delayUs = whenUs - nowUs; in loop() local
204 mQueueChangedCondition.waitRelative(mLock, delayUs * 1000ll); in loop()
DALooperRoster.cpp101 const sp<AMessage> &msg, int64_t delayUs) { in postMessage() argument
108 looper->post(msg, delayUs); in postMessage()
DAMessage.cpp325 void AMessage::post(int64_t delayUs) { in post() argument
326 gLooperRoster.postMessage(this, delayUs); in post()
/frameworks/av/media/libstagefright/timedtext/
DTimedTextPlayer.cpp169 int64_t delayUs = delayUsFromCurrentTime(fireTimeUs); in onMessageReceived() local
170 if (delayUs > 0) { in onMessageReceived()
171 msg->post(delayUs); in onMessageReceived()
261 int64_t delayUs = delayUsFromCurrentTime(timeUs); in postTextEvent() local
268 msg->post(delayUs); in postTextEvent()
286 int64_t delayUs = fireTimeUs - positionUs - kAdjustmentProcessingTimeUs; in delayUsFromCurrentTime() local
287 if (delayUs > kMaxDelayUs) { in delayUsFromCurrentTime()
290 return delayUs; in delayUsFromCurrentTime()
/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/
DHTTPBase.cpp43 size_t numBytes, int64_t delayUs) { in addBandwidthMeasurement() argument
47 entry.mDelayUs = delayUs; in addBandwidthMeasurement()
49 mTotalTransferTimeUs += delayUs; in addBandwidthMeasurement()
DNuCachedSource2.cpp424 int64_t delayUs; in onFetch() local
428 delayUs = 3000000ll; in onFetch()
430 delayUs = 0; in onFetch()
433 delayUs = 100000ll; in onFetch()
436 (new AMessage(kWhatFetchMore, mReflector->id()))->post(delayUs); in onFetch()
DAwesomePlayer.cpp2048 int64_t delayUs = nextTimeUs - estimateRealTimeUs(ts, systemTimeUs) + mTimeSourceDeltaUs; in onVideoEvent() local
2050 ALOGV("next frame in %" PRId64, delayUs); in onVideoEvent()
2052 postVideoEvent_l(delayUs > 60000 ? 30000 : (delayUs < 30000 ? 0 : delayUs - 30000)); in onVideoEvent()
2067 void AwesomePlayer::postVideoEvent_l(int64_t delayUs) { in postVideoEvent_l() argument
2075 mQueue.postEventWithDelay(mVideoEvent, delayUs < 0 ? 10000 : delayUs); in postVideoEvent_l()
2104 void AwesomePlayer::postCheckAudioStatusEvent(int64_t delayUs) { in postCheckAudioStatusEvent() argument
2112 delayUs = 0; in postCheckAudioStatusEvent()
2114 mQueue.postEventWithDelay(mCheckAudioStatusEvent, delayUs); in postCheckAudioStatusEvent()
2117 void AwesomePlayer::postAudioTearDownEvent(int64_t delayUs) { in postAudioTearDownEvent() argument
2123 mQueue.postEventWithDelay(mAudioTearDownEvent, delayUs); in postAudioTearDownEvent()
[all …]
/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java96 int delayUs, Handler handler, int maxBatchReportLatencyUs, int reservedFlags) { in registerListenerImpl() argument
106 if (maxBatchReportLatencyUs < 0 || delayUs < 0) { in registerListenerImpl()
120 if (!queue.addSensor(sensor, delayUs, maxBatchReportLatencyUs, reservedFlags)) { in registerListenerImpl()
127 return queue.addSensor(sensor, delayUs, maxBatchReportLatencyUs, reservedFlags); in registerListenerImpl()
251 Sensor sensor, int delayUs, int maxBatchReportLatencyUs, int reservedFlags) { in addSensor() argument
259 if (enableSensor(sensor, delayUs, maxBatchReportLatencyUs, reservedFlags) != 0) { in addSensor()
262 maxBatchReportLatencyUs > 0 && enableSensor(sensor, delayUs, 0, 0) != 0) { in addSensor()
DSensorManager.java802 int delayUs = getDelay(rateUs); in registerListener() local
803 return registerListenerImpl(listener, sensor, delayUs, handler, maxBatchReportLatencyUs, 0); in registerListener()
808 int delayUs, Handler handler, int maxBatchReportLatencyUs, int reservedFlags); in registerListenerImpl() argument
/frameworks/av/media/libmediaplayerservice/nuplayer/
DHTTPLiveSource.cpp186 int64_t timeUs, baseUs, durationUs, delayUs; in onMessageReceived() local
190 delayUs = baseUs + timeUs - ALooper::GetNowUs(); in onMessageReceived()
192 msg->post(delayUs > 0ll ? delayUs : 0ll); in onMessageReceived()
DNuPlayerRenderer.cpp350 int64_t delayUs = in onMessageReceived() local
359 postDrainAudioQueue_l(delayUs / 2); in onMessageReceived()
467 void NuPlayer::Renderer::postDrainAudioQueue_l(int64_t delayUs) { in postDrainAudioQueue_l() argument
480 msg->post(delayUs); in postDrainAudioQueue_l()
747 int64_t delayUs; in postDrainVideoQueue() local
772 delayUs = realTimeUs - nowUs; in postDrainVideoQueue()
773 if (delayUs > 500000) { in postDrainVideoQueue()
782 (int)(delayUs / 1000), (int)(postDelayUs / 1000)); in postDrainVideoQueue()
791 delayUs = realTimeUs - nowUs; in postDrainVideoQueue()
793 ALOGW_IF(delayUs > 500000, "unusually high delayUs: %" PRId64, delayUs); in postDrainVideoQueue()
[all …]
DNuPlayerRenderer.h187 void postDrainAudioQueue_l(int64_t delayUs = 0);
214 void notifyEOS(bool audio, status_t finalResult, int64_t delayUs = 0);
DGenericSource.cpp748 int64_t delayUs = subTimeUs - timeUs; in fetchTextData() local
751 delayUs -= oneSecUs; in fetchTextData()
755 msg2->post(delayUs < 0 ? 0 : delayUs); in fetchTextData()
787 const int64_t delayUs = nextSubTimeUs - subTimeUs; in sendTextData() local
788 msg->post(delayUs < 0 ? 0 : delayUs); in sendTextData()
/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()
/frameworks/av/media/libstagefright/httplive/
DPlaylistFetcher.cpp181 int64_t delayUs = mLastPlaylistFetchTimeUs + minPlaylistAgeUs - nowUs; in delayUsToRefreshPlaylist() local
182 return delayUs > 0ll ? delayUs : 0ll; in delayUsToRefreshPlaylist()
319 void PlaylistFetcher::postMonitorQueue(int64_t delayUs, int64_t minDelayUs) { in postMonitorQueue() argument
324 if (delayUs > maxDelayUs) { in postMonitorQueue()
326 delayUs = maxDelayUs; in postMonitorQueue()
330 msg->post(delayUs); in postMonitorQueue()
679 int64_t delayUs = mPrepared ? kMaxMonitorDelayUs : targetDurationUs / 2; in onMonitorQueue() local
681 delayUs, bufferedDurationUs, durationToBufferUs); in onMonitorQueue()
684 postMonitorQueue(delayUs, mPrepared ? targetDurationUs * 2 : 0); in onMonitorQueue()
799 int64_t delayUs = mPlaylist->size() * targetDurationSecs * in onDownloadNext() local
[all …]
DPlaylistFetcher.h175 void postMonitorQueue(int64_t delayUs = 0, int64_t minDelayUs = 0);
/frameworks/av/media/libstagefright/include/
DAwesomePlayer.h104 void postAudioEOS(int64_t delayUs = 0ll);
229 void postVideoEvent_l(int64_t delayUs = -1);
232 void postCheckAudioStatusEvent(int64_t delayUs);
234 void postAudioTearDownEvent(int64_t delayUs);
DHTTPBase.h58 void addBandwidthMeasurement(size_t numBytes, int64_t delayUs);
/frameworks/av/media/libstagefright/http/
DMediaHTTP.cpp110 int64_t delayUs = ALooper::GetNowUs() - startTimeUs; in readAt() local
112 addBandwidthMeasurement(numBytesRead, delayUs); in readAt()
/frameworks/av/include/media/stagefright/foundation/
DALooper.h78 void post(const sp<AMessage> &msg, int64_t delayUs);
DALooperRoster.h35 status_t postMessage(const sp<AMessage> &msg, int64_t delayUs = 0);
DAMessage.h79 void post(int64_t delayUs = 0);
/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.cpp636 int64_t delayUs = ALooper::GetNowUs() - startTimeUs; in renderAudio() local
640 if (delayUs > 2000ll) { in renderAudio()
643 delayUs, numFramesAvailableToWrite, numFramesWritten); in renderAudio()

12