Home
last modified time | relevance | path

Searched refs:cachedDurationUs (Results 1 – 3 of 3) sorted by relevance

/frameworks/av/media/libstagefright/
DAwesomePlayer.cpp741 int64_t cachedDurationUs; in onBufferingUpdate() local
742 if (getCachedDuration_l(&cachedDurationUs, &eos2) && mDurationUs > 0) { in onBufferingUpdate()
743 int percentage = 100.0 * (double)cachedDurationUs / mDurationUs; in onBufferingUpdate()
779 int64_t cachedDurationUs in onBufferingUpdate() local
793 int percentage = 100.0 * (double)cachedDurationUs / mDurationUs; in onBufferingUpdate()
802 int64_t cachedDurationUs; in onBufferingUpdate() local
804 if (getCachedDuration_l(&cachedDurationUs, &eos)) { in onBufferingUpdate()
806 cachedDurationUs / 1E6, eos); in onBufferingUpdate()
809 && (cachedDurationUs < kLowWaterMarkUs)) { in onBufferingUpdate()
812 cachedDurationUs / 1E6); in onBufferingUpdate()
[all …]
/frameworks/base/media/jni/
Dandroid_media_MediaExtractor.cpp740 int64_t cachedDurationUs; in android_media_MediaExtractor_getCachedDurationUs() local
742 if (!extractor->getCachedDuration(&cachedDurationUs, &eos)) { in android_media_MediaExtractor_getCachedDurationUs()
746 return (jlong) cachedDurationUs; in android_media_MediaExtractor_getCachedDurationUs()
758 int64_t cachedDurationUs; in android_media_MediaExtractor_hasCacheReachedEOS() local
760 if (!extractor->getCachedDuration(&cachedDurationUs, &eos)) { in android_media_MediaExtractor_hasCacheReachedEOS()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DGenericSource.cpp654 int64_t cachedDurationUs = -1ll; in onPollBuffering() local
661 cachedDurationUs = in onPollBuffering()
676 cachedDurationUs = cachedDataRemaining * 8000000ll / bitrate; in onPollBuffering()
690 } else if (cachedDurationUs >= 0ll) { in onPollBuffering()
692 int64_t cachedPosUs = getLastReadPosition() + cachedDurationUs; in onPollBuffering()
702 cachedDurationUs / 1000000.0f); in onPollBuffering()
704 if (cachedDurationUs < kLowWaterMarkUs) { in onPollBuffering()
706 } else if (cachedDurationUs > kHighWaterMarkUs) { in onPollBuffering()