Home
last modified time | relevance | path

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

/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()
174 whenUs = (delayUs > INT64_MAX - nowUs ? INT64_MAX : nowUs + delayUs); in post()
212 int64_t delayUs = whenUs - nowUs; in loop() local
213 if (delayUs > INT64_MAX / 1000) { in loop()
214 delayUs = INT64_MAX / 1000; in loop()
216 mQueueChangedCondition.waitRelative(mLock, delayUs * 1000ll); in loop()
DAMessage.cpp409 status_t AMessage::post(int64_t delayUs) { in post() argument
416 looper->post(this, delayUs); in post()
/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/libdatasource/
DHTTPBase.cpp43 size_t numBytes, int64_t delayUs) { in addBandwidthMeasurement() argument
47 entry.mDelayUs = delayUs; in addBandwidthMeasurement()
49 mTotalTransferTimeUs += delayUs; in addBandwidthMeasurement()
DMediaHTTP.cpp123 int64_t delayUs = ALooper::GetNowUs() - startTimeUs; in readAt() local
125 addBandwidthMeasurement(numBytesRead, delayUs); in readAt()
DNuCachedSource2.cpp439 int64_t delayUs; in onFetch() local
443 delayUs = 3000000LL; in onFetch()
445 delayUs = 0; in onFetch()
448 delayUs = 100000LL; in onFetch()
451 (new AMessage(kWhatFetchMore, mReflector))->post(delayUs); in onFetch()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.cpp585 int64_t delayUs = in onMessageReceived() local
589 delayUs /= mPlaybackRate; in onMessageReceived()
594 delayUs /= 2; in onMessageReceived()
598 ALOGD_IF(delayUs > maxDrainDelayUs, "postDrainAudioQueue long delay: %lld > %lld", in onMessageReceived()
599 (long long)delayUs, (long long)maxDrainDelayUs); in onMessageReceived()
601 postDrainAudioQueue_l(delayUs); in onMessageReceived()
786 void NuPlayer::Renderer::postDrainAudioQueue_l(int64_t delayUs) { in postDrainAudioQueue_l() argument
798 if (diffUs > delayUs) { in postDrainAudioQueue_l()
799 delayUs = diffUs; in postDrainAudioQueue_l()
806 msg->post(delayUs); in postDrainAudioQueue_l()
[all …]
DHTTPLiveSource.cpp267 int64_t timeUs, baseUs, delayUs; in pollForRawData() local
270 delayUs = baseUs + timeUs - ALooper::GetNowUs(); in pollForRawData()
274 msg->post(delayUs > 0LL ? delayUs : 0LL); in pollForRawData()
277 if (delayUs < -1000000LL) { // 1 second in pollForRawData()
DNuPlayerRenderer.h236 void postDrainAudioQueue_l(int64_t delayUs = 0);
279 void notifyEOS(bool audio, status_t finalResult, int64_t delayUs = 0);
280 void notifyEOS_l(bool audio, status_t finalResult, int64_t delayUs = 0);
/frameworks/av/media/libstagefright/httplive/
DPlaylistFetcher.cpp299 int64_t delayUs = mLastPlaylistFetchTimeUs + minPlaylistAgeUs - nowUs; in delayUsToRefreshPlaylist() local
300 return delayUs > 0LL ? delayUs : 0LL; in delayUsToRefreshPlaylist()
502 void PlaylistFetcher::postMonitorQueue(int64_t delayUs, int64_t minDelayUs) { in postMonitorQueue() argument
507 if (delayUs > maxDelayUs) { in postMonitorQueue()
509 delayUs = maxDelayUs; in postMonitorQueue()
513 msg->post(delayUs); in postMonitorQueue()
921 int64_t delayUs = bufferedDurationUs - kMinBufferedDurationUs + 1000000LL; in onMonitorQueue() local
922 if (delayUs > targetDurationUs / 2) { in onMonitorQueue()
923 delayUs = targetDurationUs / 2; in onMonitorQueue()
927 (long long)delayUs, in onMonitorQueue()
[all …]
DLiveSession.h273 void addBandwidthMeasurement(size_t numBytes, int64_t delayUs);
293 sp<AMessage> &msg, int64_t delayUs, bool *needResumeUntil);
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()
540 sp<AMessage> &stopParams, int64_t delayUs, bool *needResumeUntil) { in checkSwitchProgress() argument
561 if (delayUs > 0) { in checkSwitchProgress()
562 lastDequeueMeta = source->getMetaAfterLastDequeued(delayUs); in checkSwitchProgress()
846 int64_t delayUs = in onMessageReceived() local
852 if (checkSwitchProgress(stopParams, delayUs, &needResumeUntil)) { in onMessageReceived()
1332 void LiveSession::addBandwidthMeasurement(size_t numBytes, int64_t delayUs) { in addBandwidthMeasurement() argument
[all …]
DPlaylistFetcher.h205 void postMonitorQueue(int64_t delayUs = 0, int64_t minDelayUs = 0);
/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java146 int delayUs, Handler handler, int maxBatchReportLatencyUs, int reservedFlags) { in registerListenerImpl() argument
156 if (maxBatchReportLatencyUs < 0 || delayUs < 0) { in registerListenerImpl()
179 if (!queue.addSensor(sensor, delayUs, maxBatchReportLatencyUs)) { in registerListenerImpl()
186 return queue.addSensor(sensor, delayUs, maxBatchReportLatencyUs); in registerListenerImpl()
664 Sensor sensor, int delayUs, int maxBatchReportLatencyUs) { in addSensor() argument
672 if (enableSensor(sensor, delayUs, maxBatchReportLatencyUs) != 0) { in addSensor()
675 || maxBatchReportLatencyUs > 0 && enableSensor(sensor, delayUs, 0) != 0) { in addSensor()
DSensorManager.java853 int delayUs = getDelay(samplingPeriodUs); in registerListener() local
854 return registerListenerImpl(listener, sensor, delayUs, handler, maxReportLatencyUs, 0); in registerListener()
859 int delayUs, Handler handler, int maxReportLatencyUs, int reservedFlags); in registerListenerImpl() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DAsyncSensorManager.java90 Sensor sensor, int delayUs, Handler handler, int maxReportLatencyUs, in registerListenerImpl() argument
93 if (!mInner.registerListener(listener, sensor, delayUs, maxReportLatencyUs, handler)) { in registerListenerImpl()
/frameworks/av/media/libdatasource/include/datasource/
DHTTPBase.h59 virtual void addBandwidthMeasurement(size_t numBytes, int64_t delayUs);
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DALooper.h91 void post(const sp<AMessage> &msg, int64_t delayUs);
DAMessage.h139 status_t post(int64_t delayUs = 0);
/frameworks/av/media/libstagefright/mpeg2ts/
DAnotherPacketSource.h83 sp<AMessage> getMetaAfterLastDequeued(int64_t delayUs);
DAnotherPacketSource.cpp548 sp<AMessage> AnotherPacketSource::getMetaAfterLastDequeued(int64_t delayUs) { in getMetaAfterLastDequeued() argument
572 if (durationUs + (lastUs - firstUs) >= delayUs) { in getMetaAfterLastDequeued()
/frameworks/av/cmds/stagefright/
DSimplePlayer.cpp636 int64_t delayUs = ALooper::GetNowUs() - startTimeUs; in renderAudio() local
640 if (delayUs > 2000ll) { in renderAudio()
643 (long long)delayUs, numFramesAvailableToWrite, numFramesWritten); in renderAudio()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/utils/hardware/
DFakeSensorManager.java125 int delayUs, in registerListenerImpl() argument
/frameworks/native/libs/binder/tests/
DbinderLibTest.cpp1166 int32_t delayUs = data.readInt32(); in onTransact() local
1172 usleep(delayUs); in onTransact()
/frameworks/base/media/java/android/media/
DMediaPlayer.java5544 private void scheduleNotification(int type, long delayUs) { in scheduleNotification() argument
5550 if (DEBUG) Log.v(TAG, "scheduleNotification " + type + " in " + delayUs); in scheduleNotification()
5553 mEventHandler.sendMessageDelayed(msg, (int) (delayUs / 1000)); in scheduleNotification()