Home
last modified time | relevance | path

Searched refs:INDEX_UNSET (Results 1 – 25 of 102) sorted by relevance

12345

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DAbstractConcatenatedTimeline.java93 if (nextWindowIndexInChild != C.INDEX_UNSET) { in getNextWindowIndex()
98 while (nextChildIndex != C.INDEX_UNSET && getTimelineByChildIndex(nextChildIndex).isEmpty()) { in getNextWindowIndex()
101 if (nextChildIndex != C.INDEX_UNSET) { in getNextWindowIndex()
109 return C.INDEX_UNSET; in getNextWindowIndex()
129 if (previousWindowIndexInChild != C.INDEX_UNSET) { in getPreviousWindowIndex()
134 while (previousChildIndex != C.INDEX_UNSET in getPreviousWindowIndex()
138 if (previousChildIndex != C.INDEX_UNSET) { in getPreviousWindowIndex()
146 return C.INDEX_UNSET; in getPreviousWindowIndex()
152 return C.INDEX_UNSET; in getLastWindowIndex()
161 if (lastChildIndex == C.INDEX_UNSET) { in getLastWindowIndex()
[all …]
DBasePlayer.java50 mediaItems, /* startWindowIndex= */ C.INDEX_UNSET, /* startPositionMs= */ C.TIME_UNSET); in setMediaItems()
114 return getPreviousWindowIndex() != C.INDEX_UNSET; in hasPrevious()
120 if (previousWindowIndex != C.INDEX_UNSET) { in previous()
127 return getNextWindowIndex() != C.INDEX_UNSET; in hasNext()
133 if (nextWindowIndex != C.INDEX_UNSET) { in next()
147 ? C.INDEX_UNSET in getNextWindowIndex()
156 ? C.INDEX_UNSET in getPreviousWindowIndex()
DTimeline.java672 return C.INDEX_UNSET;
706 return windowIndex == getLastWindowIndex(shuffleModeEnabled) ? C.INDEX_UNSET in getNextWindowIndex()
731 return windowIndex == getFirstWindowIndex(shuffleModeEnabled) ? C.INDEX_UNSET in getPreviousWindowIndex()
752 return isEmpty() ? C.INDEX_UNSET : getWindowCount() - 1; in getLastWindowIndex()
764 return isEmpty() ? C.INDEX_UNSET : 0; in getFirstWindowIndex()
817 if (nextWindowIndex == C.INDEX_UNSET) { in getNextPeriodIndex()
818 return C.INDEX_UNSET; in getNextPeriodIndex()
839 == C.INDEX_UNSET; in isLastPeriod()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DMediaSource.java101 this(periodUid, /* windowSequenceNumber= */ C.INDEX_UNSET); in MediaPeriodId()
114 /* adGroupIndex= */ C.INDEX_UNSET, in MediaPeriodId()
115 /* adIndexInAdGroup= */ C.INDEX_UNSET, in MediaPeriodId()
117 /* nextAdGroupIndex= */ C.INDEX_UNSET); in MediaPeriodId()
132 /* adGroupIndex= */ C.INDEX_UNSET, in MediaPeriodId()
133 /* adIndexInAdGroup= */ C.INDEX_UNSET, in MediaPeriodId()
155 /* nextAdGroupIndex= */ C.INDEX_UNSET); in MediaPeriodId()
183 return adGroupIndex != C.INDEX_UNSET; in isAd()
DShuffleOrder.java90 return ++shuffledIndex < shuffled.length ? shuffled[shuffledIndex] : C.INDEX_UNSET; in getNextIndex()
96 return --shuffledIndex >= 0 ? shuffled[shuffledIndex] : C.INDEX_UNSET; in getPreviousIndex()
101 return shuffled.length > 0 ? shuffled[shuffled.length - 1] : C.INDEX_UNSET; in getLastIndex()
106 return shuffled.length > 0 ? shuffled[0] : C.INDEX_UNSET; in getFirstIndex()
193 return ++index < length ? index : C.INDEX_UNSET; in getNextIndex()
198 return --index >= 0 ? index : C.INDEX_UNSET; in getPreviousIndex()
203 return length > 0 ? length - 1 : C.INDEX_UNSET; in getLastIndex()
208 return length > 0 ? 0 : C.INDEX_UNSET; in getFirstIndex()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/ssa/
DSsaDialogueFormat.java57 int startTimeIndex = C.INDEX_UNSET; in fromFormatLine()
58 int endTimeIndex = C.INDEX_UNSET; in fromFormatLine()
59 int styleIndex = C.INDEX_UNSET; in fromFormatLine()
60 int textIndex = C.INDEX_UNSET; in fromFormatLine()
79 return (startTimeIndex != C.INDEX_UNSET && endTimeIndex != C.INDEX_UNSET) in fromFormatLine()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DShuffleOrderTest.java18 import static com.google.android.exoplayer2.C.INDEX_UNSET;
66 assertThat(shuffleOrder.getNextIndex(3)).isEqualTo(C.INDEX_UNSET); in defaultShuffleOrderSideloaded()
71 assertThat(shuffleOrder.getPreviousIndex(2)).isEqualTo(C.INDEX_UNSET); in defaultShuffleOrderSideloaded()
110 assertThat(shuffleOrder.getFirstIndex()).isEqualTo(INDEX_UNSET); in assertShuffleOrderCorrectness()
111 assertThat(shuffleOrder.getLastIndex()).isEqualTo(INDEX_UNSET); in assertShuffleOrderCorrectness()
115 assertThat(shuffleOrder.getPreviousIndex(indices[0])).isEqualTo(INDEX_UNSET); in assertShuffleOrderCorrectness()
124 assertThat(shuffleOrder.getNextIndex(indices[length - 1])).isEqualTo(INDEX_UNSET); in assertShuffleOrderCorrectness()
138 if (expectedNextIndex != C.INDEX_UNSET && expectedNextIndex >= position) {
163 if (expectedNextIndex != C.INDEX_UNSET && expectedNextIndex >= indexFrom) {
DConcatenatingMediaSourceTest.java144 timeline, Player.REPEAT_MODE_OFF, false, 1, 2, C.INDEX_UNSET); in playlistChangesAfterPreparation()
148 timeline, Player.REPEAT_MODE_OFF, false, C.INDEX_UNSET, 0, 1); in playlistChangesAfterPreparation()
154 timeline, Player.REPEAT_MODE_OFF, true, C.INDEX_UNSET, 0, 1); in playlistChangesAfterPreparation()
158 timeline, Player.REPEAT_MODE_OFF, true, 1, 2, C.INDEX_UNSET); in playlistChangesAfterPreparation()
205 timeline, Player.REPEAT_MODE_OFF, false, 1, 2, C.INDEX_UNSET); in playlistChangesBeforePreparation()
207 timeline, Player.REPEAT_MODE_OFF, false, C.INDEX_UNSET, 0, 1); in playlistChangesBeforePreparation()
209 timeline, Player.REPEAT_MODE_OFF, true, C.INDEX_UNSET, 0, 1); in playlistChangesBeforePreparation()
211 timeline, Player.REPEAT_MODE_OFF, true, 1, 2, C.INDEX_UNSET); in playlistChangesBeforePreparation()
335 timeline, Player.REPEAT_MODE_OFF, false, C.INDEX_UNSET, 0, 1); in emptyTimelineMediaSource()
339 timeline, Player.REPEAT_MODE_OFF, false, 1, 2, C.INDEX_UNSET); in emptyTimelineMediaSource()
[all …]
DLoopingMediaSourceTest.java56 timeline, Player.REPEAT_MODE_OFF, shuffled, C.INDEX_UNSET, 0, 1); in singleLoopTimeline()
62 timeline, Player.REPEAT_MODE_OFF, shuffled, 1, 2, C.INDEX_UNSET); in singleLoopTimeline()
75 timeline, Player.REPEAT_MODE_OFF, shuffled, C.INDEX_UNSET, 0, 1, 2, 3, 4, 5, 6, 7, 8); in multiLoopTimeline()
81 timeline, Player.REPEAT_MODE_OFF, shuffled, 1, 2, 3, 4, 5, 6, 7, 8, C.INDEX_UNSET); in multiLoopTimeline()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeShuffleOrder.java40 return index > 0 ? index - 1 : C.INDEX_UNSET; in getNextIndex()
45 return index < length - 1 ? index + 1 : C.INDEX_UNSET; in getPreviousIndex()
50 return length > 0 ? 0 : C.INDEX_UNSET; in getLastIndex()
55 return length > 0 ? length - 1 : C.INDEX_UNSET; in getFirstIndex()
DTimelineAsserts.java42 assertThat(timeline.getFirstWindowIndex(shuffled)).isEqualTo(C.INDEX_UNSET); in assertEmpty()
43 assertThat(timeline.getLastWindowIndex(shuffled)).isEqualTo(C.INDEX_UNSET); in assertEmpty()
156 nextWindow == C.INDEX_UNSET ? C.INDEX_UNSET : accumulatedPeriodCounts[nextWindow]; in assertPeriodCounts()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DDefaultPlaybackSessionManager.java111 currentSession.windowSequenceNumber == C.INDEX_UNSET in updateSessions()
231 if (windowSequenceNumber == C.INDEX_UNSET
283 mediaPeriodId == null ? C.INDEX_UNSET : mediaPeriodId.windowSequenceNumber;
291 if (windowIndex == C.INDEX_UNSET) {
298 return newPeriodIndex != C.INDEX_UNSET;
321 if (windowSequenceNumber == C.INDEX_UNSET
330 if (windowSequenceNumber == C.INDEX_UNSET) {
367 return eventTime.mediaPeriodId.nextAdGroupIndex == C.INDEX_UNSET
375 return windowIndex < newTimeline.getWindowCount() ? windowIndex : C.INDEX_UNSET; in resolveWindowIndexToNewTimeline()
383 if (newPeriodIndex != C.INDEX_UNSET) { in resolveWindowIndexToNewTimeline()
[all …]
/external/exoplayer/tree/extensions/mediasession/src/main/java/com/google/android/exoplayer2/ext/mediasession/
DTimelineQueueNavigator.java192 while ((firstWindowIndex != C.INDEX_UNSET || lastWindowIndex != C.INDEX_UNSET) in publishFloatingQueueWindow()
195 if (lastWindowIndex != C.INDEX_UNSET) { in publishFloatingQueueWindow()
199 if (lastWindowIndex != C.INDEX_UNSET) { in publishFloatingQueueWindow()
205 if (firstWindowIndex != C.INDEX_UNSET && queue.size() < queueSize) { in publishFloatingQueueWindow()
209 if (firstWindowIndex != C.INDEX_UNSET) { in publishFloatingQueueWindow()
DTimelineQueueEditor.java199 int from = extras.getInt(EXTRA_FROM_INDEX, C.INDEX_UNSET); in onCommand()
200 int to = extras.getInt(EXTRA_TO_INDEX, C.INDEX_UNSET); in onCommand()
201 if (from != C.INDEX_UNSET && to != C.INDEX_UNSET) { in onCommand()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DMp4Extractor.java145 sampleTrackIndex = C.INDEX_UNSET; in Mp4Extractor()
162 sampleTrackIndex = C.INDEX_UNSET; in seek()
224 if (firstVideoTrackIndex != C.INDEX_UNSET) { in getSeekPoints()
227 if (sampleIndex == C.INDEX_UNSET) { in getSeekPoints()
235 if (secondSampleIndex != C.INDEX_UNSET && secondSampleIndex != sampleIndex) { in getSeekPoints()
388 int firstVideoTrackIndex = C.INDEX_UNSET; in processMoovAtom()
437 if (track.type == C.TRACK_TYPE_VIDEO && firstVideoTrackIndex == C.INDEX_UNSET) { in processMoovAtom()
502 if (sampleTrackIndex == C.INDEX_UNSET) { in readSample()
504 if (sampleTrackIndex == C.INDEX_UNSET) { in readSample()
580 sampleTrackIndex = C.INDEX_UNSET; in readSample()
[all …]
/external/exoplayer/tree/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/
DMainActivity.java162 if (previousIndex != C.INDEX_UNSET) { in onQueuePositionChanged()
165 if (newIndex != C.INDEX_UNSET) { in onQueuePositionChanged()
236 draggingFromPosition = C.INDEX_UNSET; in RecyclerViewCallback()
237 draggingToPosition = C.INDEX_UNSET; in RecyclerViewCallback()
247 if (draggingFromPosition == C.INDEX_UNSET) { in onMove()
270 if (draggingFromPosition != C.INDEX_UNSET) { in clearView()
279 draggingFromPosition = C.INDEX_UNSET; in clearView()
280 draggingToPosition = C.INDEX_UNSET; in clearView()
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/flac/
DFlacExtractorSeekTest.java74 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_seekTable_handlesSeekToZero()
91 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_seekTable_handlesSeekToEoF()
110 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_seekTable_handlesSeekingBackward()
129 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_seekTable_handlesSeekingForward()
157 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_binarySearch_handlesSeekToZero()
174 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_binarySearch_handlesSeekToEoF()
193 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_binarySearch_handlesSeekingBackward()
212 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_binarySearch_handlesSeekingForward()
/external/exoplayer/tree/extensions/flac/src/androidTest/java/com/google/android/exoplayer2/ext/flac/
DFlacExtractorSeekTest.java74 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_seekTable_handlesSeekToZero()
91 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_seekTable_handlesSeekToEoF()
110 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_seekTable_handlesSeekingBackward()
129 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_seekTable_handlesSeekingForward()
157 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_binarySearch_handlesSeekToZero()
174 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_binarySearch_handlesSeekToEoF()
193 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_binarySearch_handlesSeekingBackward()
212 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_binarySearch_handlesSeekingForward()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/
DDashMediaPeriod.java361 streamIndexToTrackGroupIndex[i] = C.INDEX_UNSET; in getStreamIndexToTrackGroupIndex()
391 if (primaryStreamIndex == C.INDEX_UNSET) { in releaseOrphanEmbeddedStreams()
452 if (primaryStreamIndex == C.INDEX_UNSET) { in selectNewStreams()
468 if (embeddedTrackGroupIndex == C.INDEX_UNSET) { in getPrimaryStreamIndex()
469 return C.INDEX_UNSET; in getPrimaryStreamIndex()
480 return C.INDEX_UNSET; in getPrimaryStreamIndex()
675 primaryGroupHasEventMessageTrackFlags[i] ? trackGroupCount++ : C.INDEX_UNSET; in buildPrimaryAndEmbeddedTrackGroupInfos()
677 primaryGroupCea608TrackFormats[i].length != 0 ? trackGroupCount++ : C.INDEX_UNSET; in buildPrimaryAndEmbeddedTrackGroupInfos()
687 if (eventMessageTrackGroupIndex != C.INDEX_UNSET) { in buildPrimaryAndEmbeddedTrackGroupInfos()
697 if (cea608TrackGroupIndex != C.INDEX_UNSET) { in buildPrimaryAndEmbeddedTrackGroupInfos()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DMediaPeriodQueueTest.java90 /* nextAdGroupIndex= */ C.INDEX_UNSET); in getNextMediaPeriodInfo_withoutAds_returnsLastMediaPeriodInfo()
107 /* nextAdGroupIndex= */ C.INDEX_UNSET); in getNextMediaPeriodInfo_withPrerollAd_returnsCorrectMediaPeriodInfos()
151 /* nextAdGroupIndex= */ C.INDEX_UNSET); in getNextMediaPeriodInfo_withMidrollAds_returnsCorrectMediaPeriodInfos()
193 /* nextAdGroupIndex= */ C.INDEX_UNSET); in getNextMediaPeriodInfo_withMidrollAndPostroll_returnsCorrectMediaPeriodInfos()
218 /* nextAdGroupIndex= */ C.INDEX_UNSET); in getNextMediaPeriodInfo_withPostrollLoadError_returnsEmptyFinalMediaPeriodInfo()
241 /* nextAdGroupIndex= */ C.INDEX_UNSET); in getNextMediaPeriodInfo_inMultiPeriodWindow_returnsCorrectMediaPeriodInfos()
251 /* nextAdGroupIndex= */ C.INDEX_UNSET); in getNextMediaPeriodInfo_inMultiPeriodWindow_returnsCorrectMediaPeriodInfos()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ogg/
DOggPacket.java34 private int currentSegmentIndex = C.INDEX_UNSET;
44 currentSegmentIndex = C.INDEX_UNSET; in reset()
96 currentSegmentIndex = segmentIndex == pageHeader.pageSegmentCount ? C.INDEX_UNSET in populate()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/audio/
DAacUtil.java263 int sampleRateIndex = C.INDEX_UNSET; in buildAacLcAudioSpecificConfig()
269 int channelConfig = C.INDEX_UNSET; in buildAacLcAudioSpecificConfig()
275 if (sampleRate == C.INDEX_UNSET || channelConfig == C.INDEX_UNSET) { in buildAacLcAudioSpecificConfig()
/external/exoplayer/tree/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/
DCastPlayer.java148 pendingSeekWindowIndex = C.INDEX_UNSET; in CastPlayer()
191 || currentTimeline.getIndexOfPeriod(periodId) != C.INDEX_UNSET) { in addItems()
201 if (currentTimeline.getIndexOfPeriod(periodId) != C.INDEX_UNSET) { in removeItem()
213 if (fromIndex != C.INDEX_UNSET && fromIndex != newIndex) { in moveItem()
231 return mediaStatus != null && currentTimeline.getIndexOfPeriod(periodId) != C.INDEX_UNSET in getItem()
579 return pendingSeekWindowIndex != C.INDEX_UNSET ? pendingSeekWindowIndex : currentWindowIndex; in getCurrentWindowIndex()
619 return C.INDEX_UNSET; in getCurrentAdGroupIndex()
624 return C.INDEX_UNSET; in getCurrentAdIndexInAdGroup()
659 int currentWindowIndex = C.INDEX_UNSET; in updateInternalStateAndNotifyIfChanged()
664 if (currentWindowIndex == C.INDEX_UNSET) { in updateInternalStateAndNotifyIfChanged()
[all …]
/external/exoplayer/tree/library/extractor/src/test/java/com/google/android/exoplayer2/extractor/mp3/
DConstantBitrateSeekerTest.java82 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_handlesSeekToZero()
99 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_handlesSeekToEoF()
118 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_handlesSeekingBackward()
137 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_handlesSeekingForward()
154 assertThat(extractedFrameIndex).isNotEqualTo(C.INDEX_UNSET); in seeking_variableFrameSize_seeksNearlyExactlyToCorrectFrame()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/cea/
DCea608Decoder.java971 int underlineStartPosition = C.INDEX_UNSET; in buildCurrentLine()
972 int italicStartPosition = C.INDEX_UNSET; in buildCurrentLine()
998 if (underlineStartPosition != C.INDEX_UNSET && !underline) { in buildCurrentLine()
1000 underlineStartPosition = C.INDEX_UNSET; in buildCurrentLine()
1001 } else if (underlineStartPosition == C.INDEX_UNSET && underline) { in buildCurrentLine()
1005 if (italicStartPosition != C.INDEX_UNSET && !nextItalic) { in buildCurrentLine()
1007 italicStartPosition = C.INDEX_UNSET; in buildCurrentLine()
1008 } else if (italicStartPosition == C.INDEX_UNSET && nextItalic) { in buildCurrentLine()
1020 if (underlineStartPosition != C.INDEX_UNSET && underlineStartPosition != length) { in buildCurrentLine()
1023 if (italicStartPosition != C.INDEX_UNSET && italicStartPosition != length) { in buildCurrentLine()

12345