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/ |
D | AdPlaybackStateTest.java | 45 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()
|
D | AdsMediaSourceTest.java | 76 .withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1)
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/analytics/ |
D | DefaultPlaybackSessionManagerTest.java | 614 .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/ |
D | AdPlaybackState.java | 132 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/ |
D | MediaPeriodQueueTest.java | 488 .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/ |
D | FakeTimeline.java | 202 adPlaybackState = adPlaybackState.withAdCount(/* adGroupIndex= */ i, adsPerAdGroup); in createAdPlaybackState()
|
/external/exoplayer/tree/extensions/ima/src/test/java/com/google/android/exoplayer2/ext/ima/ |
D | ImaAdsLoaderTest.java | 234 .withAdCount(/* adGroupIndex= */ 0, /* adCount= */ 1) in playback_withPrerollAd_marksAdAsPlayed()
|
/external/exoplayer/tree/extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/ |
D | ImaAdsLoader.java | 1103 adPlaybackState = adPlaybackState.withAdCount(adGroupIndex, adCount); in handleAdEvent() 1270 adPlaybackState.withAdCount(adGroupIndex, Math.max(1, adGroup.states.length)); in handleAdGroupLoadError()
|