/frameworks/av/media/libstagefright/foundation/ |
H A D | ALooper.cpp | 168 void ALooper::post(const sp<AMessage> &msg, int64_t delayUs) { argument 172 if (delayUs > 0) { 173 whenUs = GetNowUs() + delayUs; 210 int64_t delayUs = whenUs - nowUs; local 211 mQueueChangedCondition.waitRelative(mLock, delayUs * 1000ll);
|
/frameworks/av/media/libstagefright/ |
H A D | HTTPBase.cpp | 45 size_t numBytes, int64_t delayUs) { 49 entry.mDelayUs = delayUs; 51 mTotalTransferTimeUs += delayUs; 44 addBandwidthMeasurement( size_t numBytes, int64_t delayUs) argument
|
H A D | NuCachedSource2.cpp | 435 int64_t delayUs; local 439 delayUs = 3000000ll; 441 delayUs = 0; 444 delayUs = 100000ll; 447 (new AMessage(kWhatFetchMore, mReflector))->post(delayUs);
|
/frameworks/wilhelm/src/android/ |
H A D | android_GenericPlayer.cpp | 622 // delayUs is the expected delay between current position and marker; 624 int64_t delayUs = -1; local 632 delayUs = (mMarkerPositionMs - positionMs) * 1000LL; 676 if (trialDelayUs > 0 && (delayUs == -1 || trialDelayUs < delayUs)) { 677 delayUs = trialDelayUs; 691 if (advancesPositionInRealTime() && delayUs >= 0) { 696 delayUs = delayUs * 1000 / mPlaybackRatePermille; 700 if (delayUs < 2000 [all...] |
/frameworks/av/media/libstagefright/wifi-display/source/ |
H A D | RepeaterSource.cpp | 132 int64_t delayUs = bufferTimeUs - nowUs; local 134 if (delayUs > 0ll) { 135 usleep(delayUs);
|
/frameworks/av/include/media/stagefright/ |
H A D | HTTPBase.h | 64 virtual void addBandwidthMeasurement(size_t numBytes, int64_t delayUs);
|
/frameworks/av/include/media/stagefright/foundation/ |
H A D | ALooper.h | 91 void post(const sp<AMessage> &msg, int64_t delayUs);
|
H A D | AMessage.h | 136 status_t post(int64_t delayUs = 0);
|
/frameworks/av/media/libstagefright/foundation/include/ |
H A D | HTTPBase.h | 64 virtual void addBandwidthMeasurement(size_t numBytes, int64_t delayUs);
|
/frameworks/av/media/libstagefright/foundation/include/foundation/ |
H A D | ALooper.h | 91 void post(const sp<AMessage> &msg, int64_t delayUs);
|
H A D | AMessage.h | 136 status_t post(int64_t delayUs = 0);
|
/frameworks/av/media/libstagefright/include/ |
H A D | HTTPBase.h | 64 virtual void addBandwidthMeasurement(size_t numBytes, int64_t delayUs);
|
/frameworks/av/media/libstagefright/include/foundation/ |
H A D | ALooper.h | 91 void post(const sp<AMessage> &msg, int64_t delayUs);
|
H A D | AMessage.h | 136 status_t post(int64_t delayUs = 0);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | NuPlayerRenderer.cpp | 556 int64_t delayUs = local 560 delayUs /= mPlaybackRate; 565 delayUs /= 2; 569 ALOGD_IF(delayUs > maxDrainDelayUs, "postDrainAudioQueue long delay: %lld > %lld", 570 (long long)delayUs, (long long)maxDrainDelayUs); 572 postDrainAudioQueue_l(delayUs); 757 void NuPlayer::Renderer::postDrainAudioQueue_l(int64_t delayUs) { argument 769 if (diffUs > delayUs) { 770 delayUs = diffUs; 777 msg->post(delayUs); 1238 int64_t delayUs; local 1410 notifyEOS(bool audio, status_t finalResult, int64_t delayUs) argument 1623 const int delayUs = 2 * 50 * 1000; // (2 full mixer thread cycles at 50ms) local [all...] |
H A D | HTTPLiveSource.cpp | 286 int64_t timeUs, baseUs, delayUs; local 289 delayUs = baseUs + timeUs - ALooper::GetNowUs(); 293 msg->post(delayUs > 0ll ? delayUs : 0ll); 296 if (delayUs < -1000000ll) { // 1 second
|
H A D | NuPlayerRenderer.h | 234 void postDrainAudioQueue_l(int64_t delayUs = 0); 277 void notifyEOS(bool audio, status_t finalResult, int64_t delayUs = 0);
|
/frameworks/av/media/libstagefright/http/ |
H A D | MediaHTTP.cpp | 122 int64_t delayUs = ALooper::GetNowUs() - startTimeUs; local 124 addBandwidthMeasurement(numBytesRead, delayUs);
|
/frameworks/av/media/libstagefright/httplive/ |
H A D | PlaylistFetcher.cpp | 292 int64_t delayUs = mLastPlaylistFetchTimeUs + minPlaylistAgeUs - nowUs; local 293 return delayUs > 0ll ? delayUs : 0ll; 485 void PlaylistFetcher::postMonitorQueue(int64_t delayUs, int64_t minDelayUs) { argument 490 if (delayUs > maxDelayUs) { 492 delayUs = maxDelayUs; 496 msg->post(delayUs); 894 int64_t delayUs = bufferedDurationUs - kMinBufferedDurationUs + 1000000ll; local 895 if (delayUs > targetDurationUs / 2) { 896 delayUs 1129 int64_t delayUs = kMaxMonitorDelayUs; local 1346 int64_t delayUs = ALooper::GetNowUs() - startUs; local [all...] |
H A D | LiveSession.h | 273 void addBandwidthMeasurement(size_t numBytes, int64_t delayUs); 293 sp<AMessage> &msg, int64_t delayUs, bool *needResumeUntil);
|
H A D | LiveSession.cpp | 55 void addBandwidthMeasurement(size_t numBytes, int64_t delayUs); 96 size_t numBytes, int64_t delayUs) { 102 entry.mDelayUs = delayUs; 104 mTotalTransferTimeUs += delayUs; 535 sp<AMessage> &stopParams, int64_t delayUs, bool *needResumeUntil) { 556 if (delayUs > 0) { 557 lastDequeueMeta = source->getMetaAfterLastDequeued(delayUs); 841 int64_t delayUs = local 847 if (checkSwitchProgress(stopParams, delayUs, &needResumeUntil)) { 1326 void LiveSession::addBandwidthMeasurement(size_t numBytes, int64_t delayUs) { argument 95 addBandwidthMeasurement( size_t numBytes, int64_t delayUs) argument 534 checkSwitchProgress( sp<AMessage> &stopParams, int64_t delayUs, bool *needResumeUntil) argument [all...] |
H A D | PlaylistFetcher.h | 204 void postMonitorQueue(int64_t delayUs = 0, int64_t minDelayUs = 0);
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | AnotherPacketSource.h | 83 sp<AMessage> getMetaAfterLastDequeued(int64_t delayUs);
|
/frameworks/base/core/java/android/hardware/ |
H A D | SystemSensorManager.java | 145 int delayUs, Handler handler, int maxBatchReportLatencyUs, int reservedFlags) { 155 if (maxBatchReportLatencyUs < 0 || delayUs < 0) { 156 Log.e(TAG, "maxBatchReportLatencyUs and delayUs should be non-negative"); 177 if (!queue.addSensor(sensor, delayUs, maxBatchReportLatencyUs)) { 184 return queue.addSensor(sensor, delayUs, maxBatchReportLatencyUs); 661 Sensor sensor, int delayUs, int maxBatchReportLatencyUs) { 669 if (enableSensor(sensor, delayUs, maxBatchReportLatencyUs) != 0) { 672 maxBatchReportLatencyUs > 0 && enableSensor(sensor, delayUs, 0) != 0) { 144 registerListenerImpl(SensorEventListener listener, Sensor sensor, int delayUs, Handler handler, int maxBatchReportLatencyUs, int reservedFlags) argument 660 addSensor( Sensor sensor, int delayUs, int maxBatchReportLatencyUs) argument
|
/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 636 int64_t delayUs = ALooper::GetNowUs() - startTimeUs; local 640 if (delayUs > 2000ll) { 643 (long long)delayUs, numFramesAvailableToWrite, numFramesWritten);
|