/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/ |
D | TimestampAdjuster.java | 48 lastSampleTimestampUs = C.TIME_UNSET; in TimestampAdjuster() 60 Assertions.checkState(lastSampleTimestampUs == C.TIME_UNSET); in setFirstSampleTimestampUs() 76 return lastSampleTimestampUs != C.TIME_UNSET in getLastAdjustedTimestampUs() 78 : firstSampleTimestampUs != DO_NOT_OFFSET ? firstSampleTimestampUs : C.TIME_UNSET; in getLastAdjustedTimestampUs() 93 : lastSampleTimestampUs == C.TIME_UNSET ? C.TIME_UNSET : timestampOffsetUs; in getTimestampOffsetUs() 100 lastSampleTimestampUs = C.TIME_UNSET; in reset() 110 if (pts90Khz == C.TIME_UNSET) { in adjustTsTimestamp() 111 return C.TIME_UNSET; in adjustTsTimestamp() 113 if (lastSampleTimestampUs != C.TIME_UNSET) { in adjustTsTimestamp() 135 if (timeUs == C.TIME_UNSET) { [all …]
|
/external/exoplayer/tree/extensions/cast/src/test/java/com/google/android/exoplayer2/ext/cast/ |
D | CastTimelineTrackerTest.java | 52 C.TIME_UNSET, in getCastTimelinePersistsDuration() 54 C.TIME_UNSET, in getCastTimelinePersistsDuration() 55 C.TIME_UNSET, in getCastTimelinePersistsDuration() 56 C.TIME_UNSET); in getCastTimelinePersistsDuration() 65 C.TIME_UNSET, in getCastTimelinePersistsDuration() 75 tracker.getCastTimeline(remoteMediaClient), C.TIME_UNSET, C.msToUs(DURATION_3_MS)); in getCastTimelinePersistsDuration() 84 C.TIME_UNSET, in getCastTimelinePersistsDuration() 85 C.TIME_UNSET, in getCastTimelinePersistsDuration() 88 C.TIME_UNSET); in getCastTimelinePersistsDuration() 97 C.TIME_UNSET, in getCastTimelinePersistsDuration() [all …]
|
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/ |
D | PsDurationReader.java | 57 firstScrValue = C.TIME_UNSET; in PsDurationReader() 58 lastScrValue = C.TIME_UNSET; in PsDurationReader() 59 durationUs = C.TIME_UNSET; in PsDurationReader() 90 if (lastScrValue == C.TIME_UNSET) { in readDuration() 96 if (firstScrValue == C.TIME_UNSET) { in readDuration() 119 return C.TIME_UNSET; in readScrValueFromPack() 125 return C.TIME_UNSET; in readScrValueFromPack() 165 if (scrValue != C.TIME_UNSET) { in readFirstScrValueFromBuffer() 170 return C.TIME_UNSET; in readFirstScrValueFromBuffer() 202 if (scrValue != C.TIME_UNSET) { in readLastScrValueFromBuffer() [all …]
|
D | TsDurationReader.java | 54 firstPcrValue = C.TIME_UNSET; in TsDurationReader() 55 lastPcrValue = C.TIME_UNSET; in TsDurationReader() 56 durationUs = C.TIME_UNSET; in TsDurationReader() 86 if (lastPcrValue == C.TIME_UNSET) { in readDuration() 92 if (firstPcrValue == C.TIME_UNSET) { in readDuration() 152 if (pcrValue != C.TIME_UNSET) { in readFirstPcrValueFromBuffer() 156 return C.TIME_UNSET; in readFirstPcrValueFromBuffer() 188 if (pcrValue != C.TIME_UNSET) { in readLastPcrValueFromBuffer() 192 return C.TIME_UNSET; in readLastPcrValueFromBuffer()
|
D | TsUtil.java | 50 return C.TIME_UNSET; in readPcrFromPacket() 56 return C.TIME_UNSET; in readPcrFromPacket() 60 return C.TIME_UNSET; in readPcrFromPacket() 64 return C.TIME_UNSET; in readPcrFromPacket() 77 return C.TIME_UNSET; in readPcrFromPacket()
|
D | TsBinarySearchSeeker.java | 93 long lastPcrTimeUsInRange = C.TIME_UNSET; in searchForPcrValueInBuffer() 103 if (pcrValue != C.TIME_UNSET) { in searchForPcrValueInBuffer() 106 if (lastPcrTimeUsInRange == C.TIME_UNSET) { in searchForPcrValueInBuffer() 126 if (lastPcrTimeUsInRange != C.TIME_UNSET) { in searchForPcrValueInBuffer()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/ |
D | SinglePeriodTimelineTest.java | 46 C.TIME_UNSET, /* isSeekable= */ false, /* isDynamic= */ true, /* isLive= */ true); in getPeriodPositionDynamicWindowUnknownDuration() 48 Pair<Object, Long> position = timeline.getPeriodPosition(window, period, 0, C.TIME_UNSET, 1); in getPeriodPositionDynamicWindowUnknownDuration() 51 position = timeline.getPeriodPosition(window, period, 0, C.TIME_UNSET, 0); in getPeriodPositionDynamicWindowUnknownDuration() 72 timeline.getPeriodPosition(window, period, 0, C.TIME_UNSET, windowDurationUs + 1); in getPeriodPositionDynamicWindowKnownDuration() 75 position = timeline.getPeriodPosition(window, period, 0, C.TIME_UNSET, windowDurationUs); in getPeriodPositionDynamicWindowKnownDuration() 79 position = timeline.getPeriodPosition(window, period, 0, C.TIME_UNSET, 0); in getPeriodPositionDynamicWindowKnownDuration() 88 /* durationUs= */ C.TIME_UNSET, in setNullTag_returnsNullTag_butUsesDefaultUid() 108 /* durationUs= */ C.TIME_UNSET, in getWindow_setsTag() 122 /* durationUs= */ C.TIME_UNSET, in getIndexOfPeriod_returnsPeriod()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/ |
D | MediaPeriodQueueTest.java | 85 /* requestedContentPositionUs= */ C.TIME_UNSET, in getNextMediaPeriodInfo_withoutAds_returnsLastMediaPeriodInfo() 86 /* endPositionUs= */ C.TIME_UNSET, in getNextMediaPeriodInfo_withoutAds_returnsLastMediaPeriodInfo() 97 assertNextMediaPeriodInfoIsAd(/* adGroupIndex= */ 0, /* contentPositionUs= */ C.TIME_UNSET); in getNextMediaPeriodInfo_withPrerollAd_returnsCorrectMediaPeriodInfos() 102 /* requestedContentPositionUs= */ C.TIME_UNSET, in getNextMediaPeriodInfo_withPrerollAd_returnsCorrectMediaPeriodInfos() 103 /* endPositionUs= */ C.TIME_UNSET, in getNextMediaPeriodInfo_withPrerollAd_returnsCorrectMediaPeriodInfos() 116 /* requestedContentPositionUs= */ C.TIME_UNSET, in getNextMediaPeriodInfo_withMidrollAds_returnsCorrectMediaPeriodInfos() 147 /* endPositionUs= */ C.TIME_UNSET, in getNextMediaPeriodInfo_withMidrollAds_returnsCorrectMediaPeriodInfos() 160 /* requestedContentPositionUs= */ C.TIME_UNSET, in getNextMediaPeriodInfo_withMidrollAndPostroll_returnsCorrectMediaPeriodInfos() 189 /* endPositionUs= */ C.TIME_UNSET, in getNextMediaPeriodInfo_withMidrollAndPostroll_returnsCorrectMediaPeriodInfos() 202 /* requestedContentPositionUs= */ C.TIME_UNSET, in getNextMediaPeriodInfo_withPostrollLoadError_returnsEmptyFinalMediaPeriodInfo() [all …]
|
D | TimelineTest.java | 78 otherWindow.presentationStartTimeMs = C.TIME_UNSET; in windowEquals() 82 otherWindow.windowStartTimeMs = C.TIME_UNSET; in windowEquals() 102 otherWindow.defaultPositionUs = C.TIME_UNSET; in windowEquals() 106 otherWindow.durationUs = C.TIME_UNSET; in windowEquals() 118 otherWindow.positionInFirstPeriodUs = C.TIME_UNSET; in windowEquals() 124 window.presentationStartTimeMs = C.TIME_UNSET; in windowEquals() 125 window.windowStartTimeMs = C.TIME_UNSET; in windowEquals() 129 window.defaultPositionUs = C.TIME_UNSET; in windowEquals() 130 window.durationUs = C.TIME_UNSET; in windowEquals() 133 window.positionInFirstPeriodUs = C.TIME_UNSET; in windowEquals()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | ClippingMediaSource.java | 284 if (mediaTimeMs == C.TIME_UNSET) { in getMediaTimeForChildMediaTime() 285 return C.TIME_UNSET; in getMediaTimeForChildMediaTime() 326 if (window.durationUs != C.TIME_UNSET) { in ClippingTimeline() 336 durationUs = resolvedEndUs == C.TIME_UNSET ? C.TIME_UNSET : (resolvedEndUs - startUs); in ClippingTimeline() 339 && (resolvedEndUs == C.TIME_UNSET in ClippingTimeline() 340 || (window.durationUs != C.TIME_UNSET && resolvedEndUs == window.durationUs)); in ClippingTimeline() 349 if (window.defaultPositionUs != C.TIME_UNSET) { in getWindow() 351 window.defaultPositionUs = endUs == C.TIME_UNSET ? window.defaultPositionUs in getWindow() 356 if (window.presentationStartTimeMs != C.TIME_UNSET) { in getWindow() 359 if (window.windowStartTimeMs != C.TIME_UNSET) { in getWindow() [all …]
|
D | SinglePeriodTimeline.java | 112 /* presentationStartTimeMs= */ C.TIME_UNSET, in SinglePeriodTimeline() 113 /* windowStartTimeMs= */ C.TIME_UNSET, in SinglePeriodTimeline() 114 /* elapsedRealtimeEpochOffsetMs= */ C.TIME_UNSET, in SinglePeriodTimeline() 186 if (windowDurationUs == C.TIME_UNSET) { in getWindow() 188 windowDefaultStartPositionUs = C.TIME_UNSET; in getWindow() 193 windowDefaultStartPositionUs = C.TIME_UNSET; in getWindow()
|
D | MediaSourceEventListener.java | 207 /* mediaStartTimeUs= */ C.TIME_UNSET, in loadStarted() 208 /* mediaEndTimeUs= */ C.TIME_UNSET); in loadStarted() 247 /* mediaStartTimeUs= */ C.TIME_UNSET, in loadCompleted() 248 /* mediaEndTimeUs= */ C.TIME_UNSET); in loadCompleted() 287 /* mediaStartTimeUs= */ C.TIME_UNSET, in loadCanceled() 288 /* mediaEndTimeUs= */ C.TIME_UNSET); in loadCanceled() 328 /* mediaStartTimeUs= */ C.TIME_UNSET, in loadError() 329 /* mediaEndTimeUs= */ C.TIME_UNSET, in loadError() 412 /* mediaEndTimeMs= */ C.TIME_UNSET)); in downstreamFormatChanged()
|
D | ClippingMediaPeriod.java | 66 pendingInitialDiscontinuityPositionUs = enableInitialDiscontinuity ? startUs : C.TIME_UNSET; in ClippingMediaPeriod() 120 : C.TIME_UNSET; in selectTracks() 150 pendingInitialDiscontinuityPositionUs = C.TIME_UNSET; in readDiscontinuity() 153 return childDiscontinuityUs != C.TIME_UNSET ? childDiscontinuityUs : initialDiscontinuityUs; in readDiscontinuity() 156 if (discontinuityUs == C.TIME_UNSET) { in readDiscontinuity() 157 return C.TIME_UNSET; in readDiscontinuity() 176 pendingInitialDiscontinuityPositionUs = C.TIME_UNSET; in seekToUs() 232 return pendingInitialDiscontinuityPositionUs != C.TIME_UNSET; in isPendingInitialDiscontinuity()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/ |
D | PlaybackStats.java | 239 long firstReportedTimeMs = C.TIME_UNSET; in merge() 244 long totalValidJoinTimeMs = C.TIME_UNSET; in merge() 250 long maxRebufferTimeMs = C.TIME_UNSET; in merge() 276 if (firstReportedTimeMs == C.TIME_UNSET) { in merge() 278 } else if (stats.firstReportedTimeMs != C.TIME_UNSET) { in merge() 285 if (totalValidJoinTimeMs == C.TIME_UNSET) { in merge() 287 } else if (stats.totalValidJoinTimeMs != C.TIME_UNSET) { in merge() 295 if (maxRebufferTimeMs == C.TIME_UNSET) { in merge() 297 } else if (stats.maxRebufferTimeMs != C.TIME_UNSET) { in merge() 658 return C.TIME_UNSET; in getMediaTimeMsAtRealtimeMs() [all …]
|
/external/exoplayer/tree/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/ |
D | CastTimeline.java | 47 /* durationUs= */ C.TIME_UNSET, /* defaultPositionUs */ in ItemData() 48 C.TIME_UNSET, in ItemData() 111 defaultPositionsUs[i] = data.defaultPositionUs == C.TIME_UNSET ? 0 : data.defaultPositionUs; in CastTimeline() 126 boolean isDynamic = durationUs == C.TIME_UNSET; in getWindow() 131 /* presentationStartTimeMs= */ C.TIME_UNSET, in getWindow() 132 /* windowStartTimeMs= */ C.TIME_UNSET, in getWindow() 133 /* elapsedRealtimeEpochOffsetMs= */ C.TIME_UNSET, in getWindow()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | BasePlayer.java | 50 mediaItems, /* startWindowIndex= */ C.INDEX_UNSET, /* startPositionMs= */ C.TIME_UNSET); in setMediaItems() 104 seekTo(windowIndex, /* positionMs= */ C.TIME_UNSET); in seekToDefaultPosition() 179 return position == C.TIME_UNSET || duration == C.TIME_UNSET in getBufferedPercentage() 200 return C.TIME_UNSET; in getCurrentLiveOffset() 203 if (windowStartTimeMs == C.TIME_UNSET) { in getCurrentLiveOffset() 204 return C.TIME_UNSET; in getCurrentLiveOffset() 219 ? C.TIME_UNSET in getContentDuration()
|
D | MediaPeriodQueue.java | 108 && loading.info.durationUs != C.TIME_UNSET in shouldLoadNextMediaPeriod() 149 ? (info.id.isAd() && info.requestedContentPositionUs != C.TIME_UNSET in enqueueNextMediaPeriodHolder() 327 newPeriodInfo.durationUs == C.TIME_UNSET in updateQueuedPeriods() 362 : (info.endPositionUs == C.TIME_UNSET || info.endPositionUs == C.TIME_END_OF_SOURCE in getUpdatedMediaPeriodInfo() 488 return previousDurationUs == C.TIME_UNSET || previousDurationUs == newDurationUs; in areDurationsCompatible() 589 contentPositionUs = C.TIME_UNSET; in getFollowingMediaPeriodInfo() 596 /* windowPositionUs= */ C.TIME_UNSET, in getFollowingMediaPeriodInfo() 644 if (startPositionUs == C.TIME_UNSET) { in getFollowingMediaPeriodInfo() 653 /* windowPositionUs= */ C.TIME_UNSET, in getFollowingMediaPeriodInfo() 733 if (durationUs != C.TIME_UNSET && startPositionUs >= durationUs) { in getMediaPeriodInfoForAd() [all …]
|
D | DefaultControlDispatcher.java | 76 player.seekTo(previousWindowIndex, C.TIME_UNSET); in dispatchPrevious() 92 player.seekTo(nextWindowIndex, C.TIME_UNSET); in dispatchNext() 94 player.seekTo(windowIndex, C.TIME_UNSET); in dispatchNext() 176 if (durationMs != C.TIME_UNSET) { in seekToOffset()
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | FakeTimeline.java | 67 /* durationUs= */ C.TIME_UNSET, in createDummy() 169 Assertions.checkArgument(durationUs != C.TIME_UNSET || periodCount == 1); in TimelineWindowDefinition() 267 /* presentationStartTimeMs= */ C.TIME_UNSET, in getWindow() 268 /* windowStartTimeMs= */ C.TIME_UNSET, in getWindow() 269 /* elapsedRealtimeEpochOffsetMs= */ C.TIME_UNSET, in getWindow() 296 windowDefinition.durationUs == C.TIME_UNSET in getPeriod() 297 ? C.TIME_UNSET in getPeriod() 301 if (windowDefinition.durationUs != C.TIME_UNSET) { in getPeriod()
|
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/ |
D | EventSampleStream.java | 51 pendingSeekPositionUs = C.TIME_UNSET; in EventSampleStream() 61 long lastReadPositionUs = currentIndex == 0 ? C.TIME_UNSET : eventTimesUs[currentIndex - 1]; in updateEventStream() 66 if (pendingSeekPositionUs != C.TIME_UNSET) { in updateEventStream() 68 } else if (lastReadPositionUs != C.TIME_UNSET) { in updateEventStream() 85 pendingSeekPositionUs = isPendingSeek ? positionUs : C.TIME_UNSET; in seekToUs()
|
D | PlayerEmsgHandler.java | 110 lastLoadedChunkEndTimeUs = C.TIME_UNSET; in PlayerEmsgHandler() 111 lastLoadedChunkEndTimeBeforeRefreshUs = C.TIME_UNSET; in PlayerEmsgHandler() 121 expiredManifestPublishTimeUs = C.TIME_UNSET; in updateManifest() 167 lastLoadedChunkEndTimeUs != C.TIME_UNSET && lastLoadedChunkEndTimeUs < chunk.startTimeUs; in maybeRefreshManifestOnLoadingError() 184 if (lastLoadedChunkEndTimeUs != C.TIME_UNSET || chunk.endTimeUs > lastLoadedChunkEndTimeUs) { 261 if (lastLoadedChunkEndTimeBeforeRefreshUs != C.TIME_UNSET 276 return C.TIME_UNSET; 397 if (manifestPublishTimeMsInEmsg == C.TIME_UNSET) {
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/ |
D | AudioTrackPositionTracker.java | 202 bufferSizeUs = isOutputPcm ? framesToDurationUs(bufferSize / outputPcmFrameSize) : C.TIME_UNSET; in setAudioTrack() 207 stopTimestampUs = C.TIME_UNSET; in setAudioTrack() 208 forceResetWorkaroundTimeMs = C.TIME_UNSET; in setAudioTrack() 309 return forceResetWorkaroundTimeMs != C.TIME_UNSET in isStalled() 345 if (stopTimestampUs == C.TIME_UNSET) { in pause() 496 if (stopTimestampUs != C.TIME_UNSET) { in getPlaybackHeadPosition() 529 if (forceResetWorkaroundTimeMs == C.TIME_UNSET) { in getPlaybackHeadPosition() 534 forceResetWorkaroundTimeMs = C.TIME_UNSET; in getPlaybackHeadPosition()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/video/ |
D | VideoFrameReleaseTimeHelper.java | 88 vsyncDurationNs = C.TIME_UNSET; in VideoFrameReleaseTimeHelper() 89 vsyncOffsetNs = C.TIME_UNSET; in VideoFrameReleaseTimeHelper() 175 if (vsyncSampler == null || vsyncDurationNs == C.TIME_UNSET) { in adjustReleaseTime() 179 if (sampledVsyncTimeNs == C.TIME_UNSET) { in adjustReleaseTime() 289 sampledVsyncTimeNs = C.TIME_UNSET; in VSyncSampler() 354 sampledVsyncTimeNs = C.TIME_UNSET; in removeObserverInternal()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/ |
D | SimpleCacheSpan.java | 61 return new SimpleCacheSpan(key, position, C.LENGTH_UNSET, C.TIME_UNSET, null); in createLookup() 72 return new SimpleCacheSpan(key, position, C.LENGTH_UNSET, C.TIME_UNSET, null); in createOpenHole() 84 return new SimpleCacheSpan(key, position, length, C.TIME_UNSET, null); in createClosedHole() 100 return createCacheEntry(file, length, /* lastTouchTimestamp= */ C.TIME_UNSET, index); in createCacheEntry() 148 if (lastTouchTimestamp == C.TIME_UNSET) { in createCacheEntry()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/chunk/ |
D | InitializationChunk.java | 62 trackSelectionData, C.TIME_UNSET, C.TIME_UNSET); in InitializationChunk() 89 trackOutputProvider, /* startTimeUs= */ C.TIME_UNSET, /* endTimeUs= */ C.TIME_UNSET); in load()
|