Home
last modified time | relevance | path

Searched refs:adPlaybackState (Results 1 – 10 of 10) sorted by relevance

/external/exoplayer/tree/extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/
DImaAdsLoader.java341 private AdPlaybackState adPlaybackState; field in ImaAdsLoader
533 if (adPlaybackState != null || adsManager != null || pendingAdRequestContext != null) { in requestAds()
607 if (adPlaybackState != null) { in start()
609 eventListener.onAdPlaybackState(adPlaybackState); in start()
614 adPlaybackState = new AdPlaybackState(getAdGroupTimesUs(adsManager.getAdCuePoints())); in start()
628 adPlaybackState = in stop()
629 adPlaybackState.withAdResumePositionUs( in stop()
659 adPlaybackState = AdPlaybackState.NONE; in release()
694 adPlaybackState = new AdPlaybackState(getAdGroupTimesUs(adsManager.getAdCuePoints())); in onAdsManagerLoaded()
732 adPlaybackState = new AdPlaybackState(); in onAdError()
[all …]
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeTimeline.java51 public final AdPlaybackState adPlaybackState; field in FakeTimeline.TimelineWindowDefinition
128 AdPlaybackState adPlaybackState) { in TimelineWindowDefinition() argument
139 adPlaybackState); in TimelineWindowDefinition()
168 AdPlaybackState adPlaybackState) { in TimelineWindowDefinition() argument
179 this.adPlaybackState = adPlaybackState; in TimelineWindowDefinition()
199 AdPlaybackState adPlaybackState = new AdPlaybackState(adGroupTimesUs); in createAdPlaybackState() local
202 adPlaybackState = adPlaybackState.withAdCount(/* adGroupIndex= */ i, adsPerAdGroup); in createAdPlaybackState()
204 adPlaybackState = in createAdPlaybackState()
205 adPlaybackState.withAdUri( in createAdPlaybackState()
213 adPlaybackState = adPlaybackState.withAdDurationsUs(adDurationsUs); in createAdPlaybackState()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ads/
DSinglePeriodAdTimeline.java28 private final AdPlaybackState adPlaybackState; field in SinglePeriodAdTimeline
37 public SinglePeriodAdTimeline(Timeline contentTimeline, AdPlaybackState adPlaybackState) { in SinglePeriodAdTimeline() argument
41 this.adPlaybackState = adPlaybackState; in SinglePeriodAdTimeline()
53 adPlaybackState); in getPeriod()
61 window.durationUs = adPlaybackState.contentDurationUs; in getWindow()
DAdsMediaSource.java136 @Nullable private AdPlaybackState adPlaybackState; field in AdsMediaSource
201 AdPlaybackState adPlaybackState = Assertions.checkNotNull(this.adPlaybackState); in createPeriod() local
202 if (adPlaybackState.adGroupCount > 0 && id.isAd()) { in createPeriod()
206 Assertions.checkNotNull(adPlaybackState.adGroups[adGroupIndex].uris[adIndexInAdGroup]); in createPeriod()
253 adPlaybackState = null; in releaseSourceInternal()
283 private void onAdPlaybackState(AdPlaybackState adPlaybackState) { in onAdPlaybackState() argument
284 if (this.adPlaybackState == null) { in onAdPlaybackState()
285 adMediaSourceHolders = new AdMediaSourceHolder[adPlaybackState.adGroupCount][]; in onAdPlaybackState()
288 this.adPlaybackState = adPlaybackState; in onAdPlaybackState()
294 if (adPlaybackState != null && contentTimeline != null) { in maybeUpdateSourceInfo()
[all …]
DAdsLoader.java56 default void onAdPlaybackState(AdPlaybackState adPlaybackState) {} in onAdPlaybackState() argument
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DTimeline.java396 private AdPlaybackState adPlaybackState; field in Timeline.Period
400 adPlaybackState = AdPlaybackState.NONE; in Period()
450 AdPlaybackState adPlaybackState) { in set() argument
456 this.adPlaybackState = adPlaybackState; in set()
496 return adPlaybackState.adGroupCount; in getAdGroupCount()
508 return adPlaybackState.adGroupTimesUs[adGroupIndex]; in getAdGroupTimeUs()
520 return adPlaybackState.adGroups[adGroupIndex].getFirstAdIndexToPlay(); in getFirstAdIndexToPlay()
534 return adPlaybackState.adGroups[adGroupIndex].getNextAdIndexToPlay(lastPlayedAdIndex); in getNextAdIndexToPlay()
544 return !adPlaybackState.adGroups[adGroupIndex].hasUnplayedAds(); in hasPlayedAdGroup()
557 return adPlaybackState.getAdGroupIndexForPositionUs(positionUs, durationUs); in getAdGroupIndexForPositionUs()
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DMediaPeriodQueueTest.java59 private AdPlaybackState adPlaybackState; field in MediaPeriodQueueTest
397 adPlaybackState = in setupAdTimeline()
400 new SinglePeriodAdTimeline(CONTENT_TIMELINE, adPlaybackState); in setupAdTimeline()
432 adPlaybackState = in updateAdPlaybackStateAndTimeline()
439 new SinglePeriodAdTimeline(CONTENT_TIMELINE, adPlaybackState); in updateTimeline()
481 long[][] newDurations = new long[adPlaybackState.adGroupCount][]; in setAdGroupLoaded()
482 for (int i = 0; i < adPlaybackState.adGroupCount; i++) { in setAdGroupLoaded()
484 i == adGroupIndex ? new long[] {AD_DURATION_US} : adPlaybackState.adGroups[i].durationsUs; in setAdGroupLoaded()
486 adPlaybackState = in setAdGroupLoaded()
487 adPlaybackState in setAdGroupLoaded()
[all …]
DExoPlayerTest.java3042 AdPlaybackState adPlaybackState = in contentWithInitialSeekPositionAfterPrerollAdStartsAtSeekPosition() local
3052 adPlaybackState)); in contentWithInitialSeekPositionAfterPrerollAdStartsAtSeekPosition()
3091 AdPlaybackState adPlaybackState = in contentWithoutInitialSeekStartsAtDefaultPositionAfterPrerollAd() local
3105 adPlaybackState)); in contentWithoutInitialSeekStartsAtDefaultPositionAfterPrerollAd()
/external/exoplayer/tree/extensions/ima/src/test/java/com/google/android/exoplayer2/ext/ima/
DImaAdsLoaderTest.java160 assertThat(adsLoaderListener.adPlaybackState) in start_updatesAdPlaybackState()
230 assertThat(adsLoaderListener.adPlaybackState) in playback_withPrerollAd_marksAdAsPlayed()
292 public AdPlaybackState adPlaybackState;
302 public void onAdPlaybackState(AdPlaybackState adPlaybackState) {
303 adPlaybackState = adPlaybackState.withAdDurationsUs(adDurationsUs);
304 this.adPlaybackState = adPlaybackState;
306 new SinglePeriodAdTimeline(contentTimeline, adPlaybackState),
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/analytics/
DAnalyticsCollectorTest.java771 AtomicReference<AdPlaybackState> adPlaybackState = in adPlayback() local
788 adPlaybackState.get())); in adPlayback()
805 adPlaybackState.set( in adPlayback()
806 adPlaybackState in adPlayback()
819 adPlaybackState.get()))); in adPlayback()