Home
last modified time | relevance | path

Searched refs:periodId (Results 1 – 13 of 13) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DPlaybackInfo.java40 public final MediaPeriodId periodId; field in PlaybackInfo
126 MediaPeriodId periodId, in PlaybackInfo() argument
140 this.periodId = periodId; in PlaybackInfo()
175 MediaPeriodId periodId, in copyWithNewPosition() argument
183 periodId, in copyWithNewPosition()
208 periodId, in copyWithTimeline()
233 periodId, in copyWithPlaybackState()
258 periodId, in copyWithPlaybackError()
283 periodId, in copyWithIsLoading()
308 periodId, in copyWithLoadingMediaPeriodId()
[all …]
DExoPlayerImplInternal.java702 MediaPeriodId periodId = queue.getPlayingPeriod().info.id; in seekToCurrentPosition() local
705 periodId, in seekToCurrentPosition()
712 periodId, newPositionUs, playbackInfo.requestedContentPositionUs); in seekToCurrentPosition()
756 playbackInfo.periodId, in updatePlaybackPositions()
903 MediaPeriodId periodId; in seekToInternal() local
922 periodId = firstPeriodAndPosition.first; in seekToInternal()
932 periodId = in seekToInternal()
935 if (periodId.isAd()) { in seekToInternal()
936 playbackInfo.timeline.getPeriodByUid(periodId.periodUid, period); in seekToInternal()
938 period.getFirstAdIndexToPlay(periodId.adGroupIndex) == periodId.adIndexInAdGroup in seekToInternal()
[all …]
DExoPlayerImpl.java716 return playbackInfo.timeline.getIndexOfPeriod(playbackInfo.periodId.periodUid); in getCurrentPeriodIndex()
729 MediaPeriodId periodId = playbackInfo.periodId; in getDuration() local
730 playbackInfo.timeline.getPeriodByUid(periodId.periodUid, period); in getDuration()
731 long adDurationUs = period.getAdDurationUs(periodId.adGroupIndex, periodId.adIndexInAdGroup); in getDuration()
741 } else if (playbackInfo.periodId.isAd()) { in getCurrentPosition()
744 return periodPositionUsToWindowPositionMs(playbackInfo.periodId, playbackInfo.positionUs); in getCurrentPosition()
751 return playbackInfo.loadingMediaPeriodId.equals(playbackInfo.periodId) in getBufferedPosition()
765 return !shouldMaskPosition() && playbackInfo.periodId.isAd(); in isPlayingAd()
770 return isPlayingAd() ? playbackInfo.periodId.adGroupIndex : C.INDEX_UNSET; in getCurrentAdGroupIndex()
775 return isPlayingAd() ? playbackInfo.periodId.adIndexInAdGroup : C.INDEX_UNSET; in getCurrentAdIndexInAdGroup()
[all …]
DMediaPeriodQueue.java541 playbackInfo.periodId, in getFirstMediaPeriodInfo()
614 MediaPeriodId periodId = in getFollowingMediaPeriodInfo() local
617 return getMediaPeriodInfo(timeline, periodId, contentPositionUs, startPositionUs); in getFollowingMediaPeriodInfo()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/trackselection/
DDefaultTrackSelectorTest.java111 private static MediaPeriodId periodId; field in DefaultTrackSelectorTest
121 periodId = new MediaPeriodId(TIMELINE.getUidOfPeriod(/* periodIndex= */ 0)); in setUpBeforeClass()
216 trackSelector.selectTracks(RENDERER_CAPABILITIES, TRACK_GROUPS, periodId, TIMELINE); in selectTracksWithNullOverride()
231 trackSelector.selectTracks(RENDERER_CAPABILITIES, TRACK_GROUPS, periodId, TIMELINE); in selectTracksWithClearedNullOverride()
248 periodId, in selectTracksWithNullOverrideForDifferentTracks()
260 trackSelector.selectTracks(RENDERER_CAPABILITIES, TRACK_GROUPS, periodId, TIMELINE); in selectTracksWithDisabledRenderer()
275 trackSelector.selectTracks(RENDERER_CAPABILITIES, TRACK_GROUPS, periodId, TIMELINE); in selectTracksWithClearedDisabledRenderer()
286 RENDERER_CAPABILITIES_WITH_NO_SAMPLE_RENDERER, TRACK_GROUPS, periodId, TIMELINE); in selectTracksWithNoSampleRenderer()
298 RENDERER_CAPABILITIES_WITH_NO_SAMPLE_RENDERER, TRACK_GROUPS, periodId, TIMELINE); in selectTracksWithDisabledNoSampleRenderer()
355 periodId, in selectTracksSelectTrackWithSelectionFlag()
[all …]
DMappingTrackSelectorTest.java57 private static MediaPeriodId periodId; field in MappingTrackSelectorTest
61 periodId = new MediaPeriodId(TIMELINE.getUidOfPeriod(/* periodIndex= */ 0)); in setUpBeforeClass()
72 trackSelector.selectTracks(rendererCapabilities, trackGroups, periodId, TIMELINE); in selectTracks_audioAndVideo_sameOrderAsRenderers_mappedToCorrectRenderer()
86 trackSelector.selectTracks(reverseOrderRendererCapabilities, trackGroups, periodId, TIMELINE); in selectTracks_audioAndVideo_reverseOrderToRenderers_mappedToCorrectRenderer()
104 trackSelector.selectTracks(rendererCapabilities, trackGroups, periodId, TIMELINE); in selectTracks_multipleVideoAndAudioTracks_mappedToSameRenderer()
121 trackSelector.selectTracks(rendererCapabilities, trackGroups, periodId, TIMELINE); in selectTracks_multipleMetadataTracks_mappedToDifferentRenderers()
DTrackSelectorTest.java48 MediaPeriodId periodId, in setUp()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DMediaSource.java195 MediaPeriodId periodId = (MediaPeriodId) obj; in equals() local
196 return periodUid.equals(periodId.periodUid) in equals()
197 && adGroupIndex == periodId.adGroupIndex in equals()
198 && adIndexInAdGroup == periodId.adIndexInAdGroup in equals()
199 && windowSequenceNumber == periodId.windowSequenceNumber in equals()
200 && nextAdGroupIndex == periodId.nextAdGroupIndex; in equals()
/external/exoplayer/tree/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/
DCastPlayer.java189 public PendingResult<MediaChannelResult> addItems(int periodId, MediaQueueItem... items) { in addItems() argument
190 if (periodId == MediaQueueItem.INVALID_ITEM_ID in addItems()
191 || currentTimeline.getIndexOfPeriod(periodId) != C.INDEX_UNSET) { in addItems()
192 return addMediaItemsInternal(items, periodId); in addItems()
200 public PendingResult<MediaChannelResult> removeItem(int periodId) { in removeItem() argument
201 if (currentTimeline.getIndexOfPeriod(periodId) != C.INDEX_UNSET) { in removeItem()
202 return removeMediaItemsInternal(new int[] {periodId}); in removeItem()
210 public PendingResult<MediaChannelResult> moveItem(int periodId, int newIndex) { in moveItem() argument
212 int fromIndex = currentTimeline.getIndexOfPeriod(periodId); in moveItem()
214 return moveMediaItemsInternal(new int[] {periodId}, fromIndex, newIndex); in moveItem()
[all …]
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DMediaSourceTestRunner.java147 public MediaPeriod createPeriod(final MediaPeriodId periodId) { in createPeriod() argument
148 return createPeriod(periodId, /* startPositionUs= */ 0); in createPeriod()
158 public MediaPeriod createPeriod(final MediaPeriodId periodId, long startPositionUs) { in createPeriod() argument
161 () -> holder[0] = mediaSource.createPeriod(periodId, allocator, startPositionUs)); in createPeriod()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/trackselection/
DTrackSelector.java128 MediaPeriodId periodId, in selectTracks() argument
DMappingTrackSelector.java354 MediaPeriodId periodId, in selectTracks() argument
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/
DDashMediaSource.java684 MediaPeriodId periodId, Allocator allocator, long startPositionUs) { in createPeriod() argument
685 int periodIndex = (Integer) periodId.periodUid - firstPeriodId; in createPeriod()
687 createEventDispatcher(periodId, manifest.getPeriod(periodIndex).startMs); in createPeriod()
1281 int periodId = (int) uid; in getIndexOfPeriod() local
1282 int periodIndex = periodId - firstPeriodId; in getIndexOfPeriod()