/frameworks/av/media/libstagefright/ |
H A D | HTTPBase.cpp | 44 size_t numBytes, int64_t delayUs) { 48 entry.mDelayUs = delayUs; 50 mTotalTransferTimeUs += delayUs; 43 addBandwidthMeasurement( size_t numBytes, int64_t delayUs) argument
|
H A D | NuCachedSource2.cpp | 424 int64_t delayUs; local 428 delayUs = 3000000ll; 430 delayUs = 0; 433 delayUs = 100000ll; 436 (new AMessage(kWhatFetchMore, mReflector))->post(delayUs);
|
H A D | AwesomePlayer.cpp | 2065 int64_t delayUs = nextTimeUs - estimateRealTimeUs(ts, systemTimeUs) + mTimeSourceDeltaUs; local 2067 ALOGV("next frame in %" PRId64, delayUs); 2069 postVideoEvent_l(delayUs > 60000 ? 30000 : (delayUs < 30000 ? 0 : delayUs - 30000)); 2084 void AwesomePlayer::postVideoEvent_l(int64_t delayUs) { argument 2092 mQueue.postEventWithDelay(mVideoEvent, delayUs < 0 ? 10000 : delayUs); 2121 void AwesomePlayer::postCheckAudioStatusEvent(int64_t delayUs) { argument 2129 delayUs 2134 postAudioTearDownEvent(int64_t delayUs) argument 2548 postAudioEOS(int64_t delayUs) argument [all...] |
/frameworks/av/media/libstagefright/http/ |
H A D | MediaHTTP.cpp | 112 int64_t delayUs = ALooper::GetNowUs() - startTimeUs; local 114 addBandwidthMeasurement(numBytesRead, delayUs);
|
/frameworks/av/media/libstagefright/timedtext/ |
H A D | TimedTextPlayer.cpp | 169 int64_t delayUs = delayUsFromCurrentTime(fireTimeUs); local 170 if (delayUs > 0) { 171 msg->post(delayUs); 261 int64_t delayUs = delayUsFromCurrentTime(timeUs); local 268 msg->post(delayUs); 286 int64_t delayUs = fireTimeUs - positionUs - kAdjustmentProcessingTimeUs; local 287 if (delayUs > kMaxDelayUs) { 290 return delayUs;
|
/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);
|
H A D | PlaybackSession.cpp | 826 int64_t delayUs = 1000000; // default delay is 1 sec local 839 delayUs = whenUs - nowUs; 846 msg->post(delayUs);
|
/frameworks/av/cmds/stagefright/ |
H A D | SimplePlayer.cpp | 633 int64_t delayUs = ALooper::GetNowUs() - startTimeUs; local 637 if (delayUs > 2000ll) { 640 (long long)delayUs, numFramesAvailableToWrite, numFramesWritten);
|
H A D | sf2.cpp | 83 int64_t delayUs = ALooper::GetNowUs() - mStartTimeUs; local 88 mTotalBytesReceived * 1E6 / 1024 / delayUs); 93 mNumOutputBuffersReceived * 1E6 / delayUs, 95 mTotalBytesReceived * 1E6 / 1024 / delayUs);
|
/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | HTTPLiveSource.cpp | 221 int64_t timeUs, baseUs, delayUs; local 224 delayUs = baseUs + timeUs - ALooper::GetNowUs(); 228 msg->post(delayUs > 0ll ? delayUs : 0ll); 231 if (delayUs < -1000000ll) { // 1 second
|
H A D | GenericSource.cpp | 901 int64_t delayUs = subTimeUs - timeUs; local 904 delayUs -= oneSecUs; 908 msg2->post(delayUs < 0 ? 0 : delayUs); 940 const int64_t delayUs = nextSubTimeUs - subTimeUs; local 941 msg->post(delayUs < 0 ? 0 : delayUs);
|
H A D | NuPlayerRenderer.cpp | 445 int64_t delayUs = local 449 delayUs /= mPlaybackRate; 455 postDrainAudioQueue_l(delayUs / 2); 624 void NuPlayer::Renderer::postDrainAudioQueue_l(int64_t delayUs) { argument 636 msg->post(delayUs); 1005 int64_t delayUs; local 1035 delayUs = realTimeUs - nowUs; 1036 if (delayUs > 500000) { 1045 (int)(delayUs / 1000), (int)(postDelayUs / 1000)); 1054 delayUs 1147 notifyEOS(bool audio, status_t finalResult, int64_t delayUs) argument [all...] |
/frameworks/av/media/libstagefright/foundation/ |
H A D | ALooper.cpp | 164 void ALooper::post(const sp<AMessage> &msg, int64_t delayUs) { argument 168 if (delayUs > 0) { 169 whenUs = GetNowUs() + delayUs; 206 int64_t delayUs = whenUs - nowUs; local 207 mQueueChangedCondition.waitRelative(mLock, delayUs * 1000ll);
|
H A D | AMessage.cpp | 357 status_t AMessage::post(int64_t delayUs) { argument 364 looper->post(this, delayUs); 382 looper->post(this, 0 /* delayUs */);
|
/frameworks/av/media/libstagefright/mpeg2ts/ |
H A D | AnotherPacketSource.cpp | 470 * returns the sample meta that's delayUs after queue head 473 sp<AMessage> AnotherPacketSource::getMetaAfterLastDequeued(int64_t delayUs) { argument 497 if (durationUs + (lastUs - firstUs) >= 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/base/core/java/android/hardware/ |
H A D | SystemSensorManager.java | 103 int delayUs, Handler handler, int maxBatchReportLatencyUs, int reservedFlags) { 113 if (maxBatchReportLatencyUs < 0 || delayUs < 0) { 114 Log.e(TAG, "maxBatchReportLatencyUs and delayUs should be non-negative"); 130 if (!queue.addSensor(sensor, delayUs, maxBatchReportLatencyUs)) { 137 return queue.addSensor(sensor, delayUs, maxBatchReportLatencyUs); 322 Sensor sensor, int delayUs, int maxBatchReportLatencyUs) { 330 if (enableSensor(sensor, delayUs, maxBatchReportLatencyUs) != 0) { 333 maxBatchReportLatencyUs > 0 && enableSensor(sensor, delayUs, 0) != 0) { 102 registerListenerImpl(SensorEventListener listener, Sensor sensor, int delayUs, Handler handler, int maxBatchReportLatencyUs, int reservedFlags) argument 321 addSensor( Sensor sensor, int delayUs, int maxBatchReportLatencyUs) argument
|
H A D | SensorManager.java | 808 int delayUs = getDelay(samplingPeriodUs); 809 return registerListenerImpl(listener, sensor, delayUs, handler, maxReportLatencyUs, 0); 814 int delayUs, Handler handler, int maxReportLatencyUs, int reservedFlags); 813 registerListenerImpl(SensorEventListener listener, Sensor sensor, int delayUs, Handler handler, int maxReportLatencyUs, int reservedFlags) argument
|
/frameworks/av/media/libstagefright/httplive/ |
H A D | LiveSession.cpp | 60 void addBandwidthMeasurement(size_t numBytes, int64_t delayUs); 101 size_t numBytes, int64_t delayUs) { 107 entry.mDelayUs = delayUs; 109 mTotalTransferTimeUs += delayUs; 532 sp<AMessage> &stopParams, int64_t delayUs, bool *needResumeUntil) { 553 if (delayUs > 0) { 554 lastDequeueMeta = source->getMetaAfterLastDequeued(delayUs); 832 int64_t delayUs = switchUp ? (kUnderflowMarkUs + 1000000ll) : 0; local 835 if (checkSwitchProgress(stopParams, delayUs, &needResumeUntil)) { 1314 void LiveSession::addBandwidthMeasurement(size_t numBytes, int64_t delayUs) { argument 100 addBandwidthMeasurement( size_t numBytes, int64_t delayUs) argument 531 checkSwitchProgress( sp<AMessage> &stopParams, int64_t delayUs, bool *needResumeUntil) argument [all...] |
H A D | PlaylistFetcher.cpp | 288 int64_t delayUs = mLastPlaylistFetchTimeUs + minPlaylistAgeUs - nowUs; local 289 return delayUs > 0ll ? delayUs : 0ll; 427 void PlaylistFetcher::postMonitorQueue(int64_t delayUs, int64_t minDelayUs) { argument 432 if (delayUs > maxDelayUs) { 434 delayUs = maxDelayUs; 438 msg->post(delayUs); 836 int64_t delayUs = bufferedDurationUs - kMinBufferedDurationUs + 1000000ll; local 837 if (delayUs > targetDurationUs / 2) { 838 delayUs 1042 int64_t delayUs = kMaxMonitorDelayUs; local 1253 int64_t delayUs = ALooper::GetNowUs() - startUs; local [all...] |
/frameworks/av/media/libstagefright/omx/ |
H A D | OMXNodeInstance.cpp | 1332 int64_t delayUs = *(int64_t *)data; local 1333 CLOG_CONFIG(setInternalOption, "delayUs=%lld", (long long)delayUs); 1334 return bufferSource->setRepeatPreviousFrameDelayUs(delayUs);
|
/frameworks/base/media/java/android/media/ |
H A D | MediaPlayer.java | 3516 private void scheduleNotification(int type, long delayUs) { argument 3523 if (DEBUG) Log.v(TAG, "scheduleNotification " + type + " in " + delayUs); 3526 mEventHandler.sendMessageDelayed(msg, (int) (delayUs / 1000));
|