Home
last modified time | relevance | path

Searched refs:withAdCount (Results 1 – 8 of 8) sorted by relevance

/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/ads/
DAdPlaybackStateTest.java45 state = state.withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1); in setAdCount()
52 state = state.withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 2); in setAdUriBeforeAdCount()
63 state = state.withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 2); in setAdErrorBeforeAdCount()
72 state = state.withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 3); in getFirstAdIndexToPlayIsZero()
81 state = state.withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 3); in getFirstAdIndexToPlaySkipsPlayedAd()
94 state = state.withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 3); in getFirstAdIndexToPlaySkipsSkippedAd()
107 state = state.withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 3); in getFirstAdIndexToPlaySkipsErrorAds()
119 state = state.withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 3); in getNextAdIndexToPlaySkipsErrorAds()
129 state = state.withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1); in setAdStateTwiceThrows()
DAdsMediaSourceTest.java76 .withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1)
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/analytics/
DDefaultPlaybackSessionManagerTest.java614 .withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1))); in timelineUpdate_withContent_doesNotFinishFuturePostrollAd()
825 .withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1) in positionDiscontinuity_fromAdToContent_finishesAd()
826 .withAdCount(/* adGroupIndex= */ 1, /* adCount= */ 1))); in positionDiscontinuity_fromAdToContent_finishesAd()
886 .withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1) in positionDiscontinuity_fromContentToAd_doesNotFinishSessions()
887 .withAdCount(/* adGroupIndex= */ 1, /* adCount= */ 1))); in positionDiscontinuity_fromContentToAd_doesNotFinishSessions()
937 .withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1) in positionDiscontinuity_fromAdToAd_finishesPastAds_andNotifiesAdPlaybackStated()
938 .withAdCount(/* adGroupIndex= */ 1, /* adCount= */ 1))); in positionDiscontinuity_fromAdToAd_finishesPastAds_andNotifiesAdPlaybackStated()
1009 .withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1) in updateSessions_withNewAd_afterDiscontinuitiesFromContentToAdAndBack_doesNotActivateNewAd()
1010 .withAdCount(/* adGroupIndex= */ 1, /* adCount= */ 1))); in updateSessions_withNewAd_afterDiscontinuitiesFromContentToAdAndBack_doesNotActivateNewAd()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ads/
DAdPlaybackState.java132 public AdGroup withAdCount(int count) { in withAdCount() method in AdPlaybackState.AdGroup
368 public AdPlaybackState withAdCount(int adGroupIndex, int adCount) { in withAdCount() method in AdPlaybackState
374 adGroups[adGroupIndex] = this.adGroups[adGroupIndex].withAdCount(adCount); in withAdCount()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DMediaPeriodQueueTest.java488 .withAdCount(adGroupIndex, /* adCount= */ 1) in setAdGroupLoaded()
497 .withAdCount(adGroupIndex, /* adCount= */ 1) in setAdGroupFailedToLoad()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeTimeline.java202 adPlaybackState = adPlaybackState.withAdCount(/* adGroupIndex= */ i, adsPerAdGroup); in createAdPlaybackState()
/external/exoplayer/tree/extensions/ima/src/test/java/com/google/android/exoplayer2/ext/ima/
DImaAdsLoaderTest.java234 .withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1) in playback_withPrerollAd_marksAdAsPlayed()
/external/exoplayer/tree/extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/
DImaAdsLoader.java1103 adPlaybackState = adPlaybackState.withAdCount(adGroupIndex, adCount); in handleAdEvent()
1270 adPlaybackState.withAdCount(adGroupIndex, Math.max(1, adGroup.states.length)); in handleAdGroupLoadError()