Home
last modified time | relevance | path

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

12

/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.cpp422 status_t AMessage::post(int64_t delayUs) { in post() argument
429 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/base/core/java/android/hardware/input/
DInputDeviceSensorManager.java264 int delayUs, int maxBatchReportLatencyUs, Handler handler) { in InputSensorEventListenerDelegate() argument
267 mDelayUs = delayUs; in InputSensorEventListenerDelegate()
424 int delayUs, int maxBatchReportLatencyUs, Handler handler) { in registerListenerInternal() argument
427 + " delayUs=" + delayUs in registerListenerInternal()
445 if (maxBatchReportLatencyUs < 0 || delayUs < 0) { in registerListenerInternal()
458 if (!mInputManager.enableSensor(deviceId, sensor.getType(), delayUs, in registerListenerInternal()
479 new InputSensorEventListenerDelegate(listener, sensor, delayUs, in registerListenerInternal()
592 int delayUs, Handler handler, int maxBatchReportLatencyUs, int reservedFlags) { in registerListenerImpl() argument
593 return registerListenerInternal(listener, sensor, delayUs, in registerListenerImpl()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DNuPlayerRenderer.cpp605 int64_t delayUs = in onMessageReceived() local
609 delayUs /= mPlaybackRate; in onMessageReceived()
614 delayUs /= 2; in onMessageReceived()
618 ALOGD_IF(delayUs > maxDrainDelayUs, "postDrainAudioQueue long delay: %lld > %lld", in onMessageReceived()
619 (long long)delayUs, (long long)maxDrainDelayUs); in onMessageReceived()
621 postDrainAudioQueue_l(delayUs); in onMessageReceived()
811 void NuPlayer::Renderer::postDrainAudioQueue_l(int64_t delayUs) { in postDrainAudioQueue_l() argument
823 if (diffUs > delayUs) { in postDrainAudioQueue_l()
824 delayUs = diffUs; in postDrainAudioQueue_l()
831 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.h243 void postDrainAudioQueue_l(int64_t delayUs = 0);
286 void notifyEOS(bool audio, status_t finalResult, int64_t delayUs = 0);
287 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()
503 void PlaylistFetcher::postMonitorQueue(int64_t delayUs, int64_t minDelayUs) { in postMonitorQueue() argument
508 if (delayUs > maxDelayUs) { in postMonitorQueue()
510 delayUs = maxDelayUs; in postMonitorQueue()
514 msg->post(delayUs); in postMonitorQueue()
922 int64_t delayUs = bufferedDurationUs - kMinBufferedDurationUs + 1000000LL; in onMonitorQueue() local
923 if (delayUs > targetDurationUs / 2) { in onMonitorQueue()
924 delayUs = targetDurationUs / 2; in onMonitorQueue()
928 (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.java176 int delayUs, Handler handler, int maxBatchReportLatencyUs, int reservedFlags) { in registerListenerImpl() argument
186 if (maxBatchReportLatencyUs < 0 || delayUs < 0) { in registerListenerImpl()
209 if (!queue.addSensor(sensor, delayUs, maxBatchReportLatencyUs)) { in registerListenerImpl()
216 return queue.addSensor(sensor, delayUs, maxBatchReportLatencyUs); in registerListenerImpl()
704 Sensor sensor, int delayUs, int maxBatchReportLatencyUs) { in addSensor() argument
712 if (enableSensor(sensor, delayUs, maxBatchReportLatencyUs) != 0) { in addSensor()
715 || maxBatchReportLatencyUs > 0 && enableSensor(sensor, delayUs, 0) != 0) { in addSensor()
DSensorManager.java862 int delayUs = getDelay(samplingPeriodUs); in registerListener() local
863 return registerListenerImpl(listener, sensor, delayUs, handler, maxReportLatencyUs, 0); in registerListener()
868 int delayUs, Handler handler, int maxReportLatencyUs, int reservedFlags); in registerListenerImpl() argument
/frameworks/av/media/libdatasource/include/datasource/
DHTTPBase.h60 virtual void addBandwidthMeasurement(size_t numBytes, int64_t delayUs);
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/
DAsyncSensorManager.java87 Sensor sensor, int delayUs, Handler handler, int maxReportLatencyUs, in registerListenerImpl() argument
90 if (!mInner.registerListener(listener, sensor, delayUs, maxReportLatencyUs, handler)) { in registerListenerImpl()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DALooper.h91 void post(const sp<AMessage> &msg, int64_t delayUs);
DAMessage.h142 status_t post(int64_t delayUs = 0);
/frameworks/av/media/libstagefright/mpeg2ts/
DAnotherPacketSource.h83 sp<AMessage> getMetaAfterLastDequeued(int64_t delayUs);
DAnotherPacketSource.cpp550 sp<AMessage> AnotherPacketSource::getMetaAfterLastDequeued(int64_t delayUs) { in getMetaAfterLastDequeued() argument
574 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/util/sensors/
DFakeSensorManager.java125 int delayUs, in registerListenerImpl() argument
/frameworks/native/libs/binder/tests/
DbinderLibTest.cpp1260 int32_t delayUs = data.readInt32(); in onTransact() local
1266 usleep(delayUs); in onTransact()

12