Home
last modified time | relevance | path

Searched refs:MediaPeriodId (Results 1 – 25 of 53) sorted by relevance

123

/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/analytics/
DDefaultPlaybackSessionManagerTest.java34 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
75 MediaPeriodId mediaPeriodId = in updateSessions_withMediaPeriodId_createsNewSession()
76 new MediaPeriodId( in updateSessions_withMediaPeriodId_createsNewSession()
94 MediaPeriodId mediaPeriodId = in updateSessions_ofSameWindow_withMediaPeriodId_afterWithoutMediaPeriodId_doesNotCreateNewSession()
95 new MediaPeriodId( in updateSessions_ofSameWindow_withMediaPeriodId_afterWithoutMediaPeriodId_doesNotCreateNewSession()
115 MediaPeriodId mediaPeriodId = in updateSessions_ofSameWindow_withAd_afterWithoutMediaPeriodId_createsNewSession()
116 new MediaPeriodId( in updateSessions_ofSameWindow_withAd_afterWithoutMediaPeriodId_createsNewSession()
143 MediaPeriodId mediaPeriodId = in updateSessions_ofSameWindow_withoutMediaPeriodId_afterMediaPeriodId_doesNotCreateNewSession()
144 new MediaPeriodId( in updateSessions_ofSameWindow_withoutMediaPeriodId_afterMediaPeriodId_doesNotCreateNewSession()
164 MediaPeriodId mediaPeriodId = in updateSessions_ofSameWindow_withoutMediaPeriodId_afterAd_doesNotCreateNewSession()
[all …]
DAnalyticsCollectorTest.java39 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
481 new MediaPeriodId( in prepareNewSource()
718 new MediaPeriodId( in playlistOperations()
855 new MediaPeriodId( in adPlayback()
863 new MediaPeriodId( in adPlayback()
871 new MediaPeriodId( in adPlayback()
879 new MediaPeriodId(periodUid, /* windowSequenceNumber= */ 0, /* nextAdGroupIndex= */ 1)); in adPlayback()
883 new MediaPeriodId(periodUid, /* windowSequenceNumber= */ 0, /* nextAdGroupIndex= */ 2)); in adPlayback()
887 new MediaPeriodId( in adPlayback()
1053 new MediaPeriodId( in seekAfterMidroll()
[all …]
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DMediaSourceTestRunner.java32 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
61 private final CopyOnWriteArrayList<Pair<Integer, MediaPeriodId>> completedLoads;
62 private final AtomicReference<MediaPeriodId> lastCreatedMediaPeriod;
63 private final AtomicReference<MediaPeriodId> lastReleasedMediaPeriod;
147 public MediaPeriod createPeriod(final MediaPeriodId periodId) { in createPeriod()
158 public MediaPeriod createPeriod(final MediaPeriodId periodId, long startPositionUs) { in createPeriod()
260 assertPrepareAndReleasePeriod(new MediaPeriodId(period.uid, period.windowIndex)); in assertPrepareAndReleaseAllPeriods()
264 new MediaPeriodId(period.uid, adGroupIndex, adIndex, period.windowIndex)); in assertPrepareAndReleaseAllPeriods()
270 private void assertPrepareAndReleasePeriod(MediaPeriodId mediaPeriodId) in assertPrepareAndReleasePeriod()
278 MediaPeriodId secondMediaPeriodId = in assertPrepareAndReleasePeriod()
[all …]
DFakeMediaSource.java75 private final ArrayList<MediaPeriodId> createdMediaPeriods;
153 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
221 public void assertMediaPeriodCreated(MediaPeriodId mediaPeriodId) { in assertMediaPeriodCreated()
226 public List<MediaPeriodId> getCreatedMediaPeriods() { in getCreatedMediaPeriods()
242 MediaPeriodId id, in createFakeMediaPeriod()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DMediaSource.java64 final class MediaPeriodId { class
100 public MediaPeriodId(Object periodUid) { in MediaPeriodId() method in MediaSource.MediaPeriodId
111 public MediaPeriodId(Object periodUid, long windowSequenceNumber) { in MediaPeriodId() method in MediaSource.MediaPeriodId
129 public MediaPeriodId(Object periodUid, long windowSequenceNumber, int nextAdGroupIndex) { in MediaPeriodId() method in MediaSource.MediaPeriodId
148 public MediaPeriodId( in MediaPeriodId() method in MediaSource.MediaPeriodId
158 private MediaPeriodId( in MediaPeriodId() method in MediaSource.MediaPeriodId
172 public MediaPeriodId copyWithPeriodUid(Object newPeriodUid) { in copyWithPeriodUid()
175 : new MediaPeriodId( in copyWithPeriodUid()
195 MediaPeriodId periodId = (MediaPeriodId) obj; in equals()
334 MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs); in createPeriod()
DCompositeMediaSource.java178 protected MediaPeriodId getMediaPeriodIdForChildMediaPeriodId( in getMediaPeriodIdForChildMediaPeriodId()
179 @UnknownNull T id, MediaPeriodId mediaPeriodId) { in getMediaPeriodIdForChildMediaPeriodId()
203 protected boolean shouldDispatchCreateOrReleaseEvent(MediaPeriodId mediaPeriodId) { in shouldDispatchCreateOrReleaseEvent()
235 public void onMediaPeriodCreated(int windowIndex, MediaPeriodId mediaPeriodId) { in onMediaPeriodCreated()
245 public void onMediaPeriodReleased(int windowIndex, MediaPeriodId mediaPeriodId) { in onMediaPeriodReleased()
257 @Nullable MediaPeriodId mediaPeriodId, in onLoadStarted()
268 @Nullable MediaPeriodId mediaPeriodId, in onLoadCompleted()
279 @Nullable MediaPeriodId mediaPeriodId, in onLoadCanceled()
290 @Nullable MediaPeriodId mediaPeriodId, in onLoadError()
302 public void onReadingStarted(int windowIndex, MediaPeriodId mediaPeriodId) { in onReadingStarted()
[all …]
DMediaSourceEventListener.java22 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
37 default void onMediaPeriodCreated(int windowIndex, MediaPeriodId mediaPeriodId) {} in onMediaPeriodCreated()
45 default void onMediaPeriodReleased(int windowIndex, MediaPeriodId mediaPeriodId) {} in onMediaPeriodReleased()
60 @Nullable MediaPeriodId mediaPeriodId, in onLoadStarted()
78 @Nullable MediaPeriodId mediaPeriodId, in onLoadCompleted()
96 @Nullable MediaPeriodId mediaPeriodId, in onLoadCanceled()
127 @Nullable MediaPeriodId mediaPeriodId, in onLoadError()
139 default void onReadingStarted(int windowIndex, MediaPeriodId mediaPeriodId) {} in onReadingStarted()
150 int windowIndex, MediaPeriodId mediaPeriodId, MediaLoadData mediaLoadData) {} in onUpstreamDiscarded()
161 int windowIndex, @Nullable MediaPeriodId mediaPeriodId, MediaLoadData mediaLoadData) {} in onDownstreamFormatChanged()
[all …]
DLoopingMediaSource.java41 private final Map<MediaPeriodId, MediaPeriodId> childMediaPeriodIdToMediaPeriodId;
42 private final Map<MediaPeriod, MediaPeriodId> mediaPeriodToChildMediaPeriodId;
94 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
99 MediaPeriodId childMediaPeriodId = id.copyWithPeriodUid(childPeriodUid); in createPeriod()
111 MediaPeriodId childMediaPeriodId = mediaPeriodToChildMediaPeriodId.remove(mediaPeriod); in releasePeriod()
128 protected MediaPeriodId getMediaPeriodIdForChildMediaPeriodId( in getMediaPeriodIdForChildMediaPeriodId()
129 Void id, MediaPeriodId mediaPeriodId) { in getMediaPeriodIdForChildMediaPeriodId()
DMaskingMediaPeriod.java23 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
43 void onPrepareError(MediaPeriodId mediaPeriodId, IOException exception); in onPrepareError()
49 public final MediaPeriodId id;
69 MediaSource mediaSource, MediaPeriodId id, Allocator allocator, long preparePositionUs) { in MaskingMediaPeriod()
115 public void createPeriod(MediaPeriodId id) { in createPeriod()
DMergingMediaSource.java147 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
151 MediaPeriodId childMediaPeriodId = in createPeriod()
206 protected MediaPeriodId getMediaPeriodIdForChildMediaPeriodId( in getMediaPeriodIdForChildMediaPeriodId()
207 Integer id, MediaPeriodId mediaPeriodId) { in getMediaPeriodIdForChildMediaPeriodId()
DMaskingMediaSource.java102 MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
106 MediaPeriodId idInSource = id.copyWithPeriodUid(getInternalPeriodUid(id.periodUid)); in createPeriod()
144 @Nullable MediaPeriodId idForMaskingPeriodPreparation = null; in onChildSourceInfoRefreshed()
207 protected MediaPeriodId getMediaPeriodIdForChildMediaPeriodId( in getMediaPeriodIdForChildMediaPeriodId()
208 Void id, MediaPeriodId mediaPeriodId) { in getMediaPeriodIdForChildMediaPeriodId()
213 protected boolean shouldDispatchCreateOrReleaseEvent(MediaPeriodId mediaPeriodId) { in shouldDispatchCreateOrReleaseEvent()
DBaseMediaSource.java96 @Nullable MediaPeriodId mediaPeriodId) { in createEventDispatcher()
110 MediaPeriodId mediaPeriodId, long mediaTimeOffsetMs) { in createEventDispatcher()
126 int windowIndex, @Nullable MediaPeriodId mediaPeriodId, long mediaTimeOffsetMs) { in createEventDispatcher()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DPlaybackInfo.java21 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
34 private static final MediaPeriodId DUMMY_MEDIA_PERIOD_ID =
35 new MediaPeriodId(/* periodUid= */ new Object());
40 public final MediaPeriodId periodId;
61 public final MediaPeriodId loadingMediaPeriodId;
126 MediaPeriodId periodId, in PlaybackInfo()
133 MediaPeriodId loadingMediaPeriodId, in PlaybackInfo()
156 public static MediaPeriodId getDummyPeriodForEmptyTimeline() { in getDummyPeriodForEmptyTimeline()
175 MediaPeriodId periodId, in copyWithNewPosition()
305 public PlaybackInfo copyWithLoadingMediaPeriodId(MediaPeriodId loadingMediaPeriodId) { in copyWithLoadingMediaPeriodId()
DMediaPeriodQueue.java22 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
354 MediaPeriodId id = info.id; in getUpdatedMediaPeriodInfo()
386 public MediaPeriodId resolveMediaPeriodIdForAds( in resolveMediaPeriodIdForAds()
408 private static MediaPeriodId resolveMediaPeriodIdForAds( in resolveMediaPeriodIdForAds()
418 return new MediaPeriodId(periodUid, windowSequenceNumber, nextAdGroupIndex); in resolveMediaPeriodIdForAds()
421 return new MediaPeriodId(periodUid, adGroupIndex, adIndexInAdGroup, windowSequenceNumber); in resolveMediaPeriodIdForAds()
614 MediaPeriodId periodId = in getFollowingMediaPeriodInfo()
620 MediaPeriodId currentPeriodId = mediaPeriodInfo.id; in getFollowingMediaPeriodInfo()
693 Timeline timeline, MediaPeriodId id, long requestedContentPositionUs, long startPositionUs) { in getMediaPeriodInfo()
723 MediaPeriodId id = in getMediaPeriodInfoForAd()
[all …]
DMediaSourceList.java293 MediaSource.MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
295 MediaSource.MediaPeriodId childMediaPeriodId = in createPeriod()
407 private static MediaSource.MediaPeriodId getMediaPeriodIdForChildMediaPeriodId( in getMediaPeriodIdForChildMediaPeriodId()
408 MediaSourceHolder mediaSourceHolder, MediaSource.MediaPeriodId mediaPeriodId) { in getMediaPeriodIdForChildMediaPeriodId()
477 public final List<MediaSource.MediaPeriodId> activeMediaPeriodIds;
608 public void onMediaPeriodCreated(int windowIndex, MediaSource.MediaPeriodId mediaPeriodId) { in onMediaPeriodCreated()
615 public void onMediaPeriodReleased(int windowIndex, MediaSource.MediaPeriodId mediaPeriodId) { in onMediaPeriodReleased()
624 @Nullable MediaSource.MediaPeriodId mediaPeriodId, in onLoadStarted()
635 @Nullable MediaSource.MediaPeriodId mediaPeriodId, in onLoadCompleted()
646 @Nullable MediaSource.MediaPeriodId mediaPeriodId, in onLoadCanceled()
[all …]
DMediaPeriodInfo.java20 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
27 public final MediaPeriodId id;
65 MediaPeriodId id, in MediaPeriodInfo()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ads/
DAdsMediaSource.java32 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
57 public final class AdsMediaSource extends CompositeMediaSource<MediaPeriodId> {
123 private static final MediaPeriodId DUMMY_CONTENT_MEDIA_PERIOD_ID =
124 new MediaPeriodId(/* periodUid= */ new Object());
200 public MediaPeriod createPeriod(MediaPeriodId id, Allocator allocator, long startPositionUs) { in createPeriod()
233 MediaPeriodId id = maskingMediaPeriod.id; in releasePeriod()
260 MediaPeriodId mediaPeriodId, MediaSource mediaSource, Timeline timeline) { in onChildSourceInfoRefreshed()
274 protected @Nullable MediaPeriodId getMediaPeriodIdForChildMediaPeriodId( in getMediaPeriodIdForChildMediaPeriodId()
275 MediaPeriodId childId, MediaPeriodId mediaPeriodId) { in getMediaPeriodIdForChildMediaPeriodId()
378 public void onPrepareError(MediaPeriodId mediaPeriodId, final IOException exception) { in onPrepareError()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/ads/
DAdsMediaSourceTest.java33 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
119 new MediaPeriodId( in createPeriod_preparesChildAdMediaSourceAndRefreshesSourceInfo()
138 new MediaPeriodId( in createPeriod_preparesChildAdMediaSourceAndRefreshesSourceInfoWithAdMediaSourceInfo()
160 new MediaPeriodId( in createPeriod_createsChildPrerollAdMediaPeriod()
171 new MediaPeriodId(PREROLL_AD_PERIOD_UID, /* windowSequenceNumber= */ 0)); in createPeriod_createsChildPrerollAdMediaPeriod()
179 new MediaPeriodId(CONTENT_PERIOD_UID, /* windowSequenceNumber= */ 0), in createPeriod_createsChildContentMediaPeriod()
184 new MediaPeriodId(CONTENT_PERIOD_UID, /* windowSequenceNumber= */ 0)); in createPeriod_createsChildContentMediaPeriod()
192 new MediaPeriodId( in releasePeriod_releasesChildMediaPeriodsAndSources()
203 new MediaPeriodId(CONTENT_PERIOD_UID, /* windowSequenceNumber= */ 0), in releasePeriod_releasesChildMediaPeriodsAndSources()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DConcatenatingMediaSourceTest.java26 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
276 new MediaPeriodId( in playlistWithLazyMediaSource()
687 new MediaPeriodId(timelineContentOnlyPeriodUid0, /* windowSequenceNumber= */ 0)); in periodCreationWithAds()
689 new MediaPeriodId(timelineContentOnlyPeriodUid1, /* windowSequenceNumber= */ 0)); in periodCreationWithAds()
691 new MediaPeriodId(timelineWithAdsPeriodUid0, /* windowSequenceNumber= */ 1)); in periodCreationWithAds()
693 new MediaPeriodId(timelineWithAdsPeriodUid1, /* windowSequenceNumber= */ 1)); in periodCreationWithAds()
695 new MediaPeriodId( in periodCreationWithAds()
701 new MediaPeriodId( in periodCreationWithAds()
805 new MediaPeriodId( in removeChildSourceWithActiveMediaPeriod()
831 new MediaPeriodId(childPeriodUid0, /* windowSequenceNumber= */ 0), in duplicateMediaSources()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DMediaSourceEventDispatcher.java23 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
44 void sendTo(T listener, int windowIndex, @Nullable MediaPeriodId mediaPeriodId); in sendTo()
50 @Nullable public final MediaPeriodId mediaPeriodId;
69 @Nullable MediaPeriodId mediaPeriodId, in MediaSourceEventDispatcher()
88 int windowIndex, @Nullable MediaPeriodId mediaPeriodId, long mediaTimeOffsetMs) { in withParameters()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DAnalyticsCollector.java39 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
327 public final void onMediaPeriodCreated(int windowIndex, MediaPeriodId mediaPeriodId) { in onMediaPeriodCreated()
337 public final void onMediaPeriodReleased(int windowIndex, MediaPeriodId mediaPeriodId) { in onMediaPeriodReleased()
350 @Nullable MediaPeriodId mediaPeriodId, in onLoadStarted()
362 @Nullable MediaPeriodId mediaPeriodId, in onLoadCompleted()
374 @Nullable MediaPeriodId mediaPeriodId, in onLoadCanceled()
386 @Nullable MediaPeriodId mediaPeriodId, in onLoadError()
398 public final void onReadingStarted(int windowIndex, MediaPeriodId mediaPeriodId) { in onReadingStarted()
408 int windowIndex, @Nullable MediaPeriodId mediaPeriodId, MediaLoadData mediaLoadData) { in onUpstreamDiscarded()
417 int windowIndex, @Nullable MediaPeriodId mediaPeriodId, MediaLoadData mediaLoadData) { in onDownstreamFormatChanged()
[all …]
DDefaultPlaybackSessionManager.java25 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
86 Timeline timeline, MediaPeriodId mediaPeriodId) { in getSessionForMediaPeriodId()
193 MediaPeriodId contentMediaPeriodId =
194 new MediaPeriodId(
220 int windowIndex, @Nullable MediaPeriodId mediaPeriodId) {
273 private @MonotonicNonNull MediaPeriodId adMediaPeriodId;
279 String sessionId, int windowIndex, @Nullable MediaPeriodId mediaPeriodId) {
302 int eventWindowIndex, @Nullable MediaPeriodId eventMediaPeriodId) {
320 int eventWindowIndex, @Nullable MediaPeriodId eventMediaPeriodId) {
DPlaybackSessionManager.java21 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
88 String getSessionForMediaPeriodId(Timeline timeline, MediaPeriodId mediaPeriodId); in getSessionForMediaPeriodId()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/util/
DMediaSourceEventDispatcherTest.java32 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
46 private static final MediaSource.MediaPeriodId MEDIA_PERIOD_ID =
47 new MediaSource.MediaPeriodId("test uid");
161 MediaSource.MediaPeriodId newPeriodId = new MediaSource.MediaPeriodId("different uid"); in listenersAreCopiedToNewDispatcher()
220 void subclassMethod(int windowIndex, @Nullable MediaPeriodId mediaPeriodId); in subclassMethod()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/trackselection/
DTrackSelector.java25 import com.google.android.exoplayer2.source.MediaSource.MediaPeriodId;
128 MediaPeriodId periodId, in selectTracks()

123