Home
last modified time | relevance | path

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

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ads/
DAdPlaybackState.java280 public final AdGroup[] adGroups; field in AdPlaybackState
297 this.adGroups = new AdGroup[count]; in AdPlaybackState()
299 adGroups[i] = new AdGroup(); in AdPlaybackState()
306 long[] adGroupTimesUs, AdGroup[] adGroups, long adResumePositionUs, long contentDurationUs) { in AdPlaybackState() argument
307 adGroupCount = adGroups.length; in AdPlaybackState()
309 this.adGroups = adGroups; in AdPlaybackState()
333 return index >= 0 && adGroups[index].hasUnplayedAds() ? index : C.INDEX_UNSET; in getAdGroupIndexForPositionUs()
357 && (positionUs >= adGroupTimesUs[index] || !adGroups[index].hasUnplayedAds())) { in getAdGroupIndexAfterPositionUs()
370 if (adGroups[adGroupIndex].count == adCount) { in withAdCount()
373 AdGroup[] adGroups = Util.nullSafeArrayCopy(this.adGroups, this.adGroups.length); in withAdCount() local
[all …]
DAdsMediaSource.java206 Assertions.checkNotNull(adPlaybackState.adGroups[adGroupIndex].uris[adIndexInAdGroup]); in createPeriod()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/ads/
DAdPlaybackStateTest.java44 assertThat(state.adGroups[0].count).isEqualTo(C.LENGTH_UNSET); in setAdCount()
46 assertThat(state.adGroups[0].count).isEqualTo(1); in setAdCount()
54 assertThat(state.adGroups[0].uris[0]).isNull(); in setAdUriBeforeAdCount()
55 assertThat(state.adGroups[0].states[0]).isEqualTo(AdPlaybackState.AD_STATE_UNAVAILABLE); in setAdUriBeforeAdCount()
56 assertThat(state.adGroups[0].uris[1]).isSameInstanceAs(TEST_URI); in setAdUriBeforeAdCount()
57 assertThat(state.adGroups[0].states[1]).isEqualTo(AdPlaybackState.AD_STATE_AVAILABLE); in setAdUriBeforeAdCount()
65 assertThat(state.adGroups[0].uris[0]).isNull(); in setAdErrorBeforeAdCount()
66 assertThat(state.adGroups[0].states[0]).isEqualTo(AdPlaybackState.AD_STATE_ERROR); in setAdErrorBeforeAdCount()
67 assertThat(state.adGroups[0].states[1]).isEqualTo(AdPlaybackState.AD_STATE_UNAVAILABLE); in setAdErrorBeforeAdCount()
76 assertThat(state.adGroups[0].getFirstAdIndexToPlay()).isEqualTo(0); in getFirstAdIndexToPlayIsZero()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DTimeline.java520 return adPlaybackState.adGroups[adGroupIndex].getFirstAdIndexToPlay(); in getFirstAdIndexToPlay()
534 return adPlaybackState.adGroups[adGroupIndex].getNextAdIndexToPlay(lastPlayedAdIndex); in getNextAdIndexToPlay()
544 return !adPlaybackState.adGroups[adGroupIndex].hasUnplayedAds(); in hasPlayedAdGroup()
579 return adPlaybackState.adGroups[adGroupIndex].count; in getAdCountInAdGroup()
590 AdPlaybackState.AdGroup adGroup = adPlaybackState.adGroups[adGroupIndex]; in isAdAvailable()
604 AdPlaybackState.AdGroup adGroup = adPlaybackState.adGroups[adGroupIndex]; in getAdDurationUs()
/external/google-java-format/core/src/test/resources/com/google/googlejavaformat/java/testdata/
DB25372815.input8 false /* adGroups */,
DB25372815.output8 false /* adGroups */,
/external/exoplayer/tree/extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/
DImaAdsLoader.java1100 int oldAdCount = adPlaybackState.adGroups[adGroupIndex].count; in handleAdEvent()
1250 int adIndexInAdGroup = adPlaybackState.adGroups[adGroupIndex].getFirstAdIndexToPlay(); in stopAdInternal()
1267 AdPlaybackState.AdGroup adGroup = adPlaybackState.adGroups[adGroupIndex]; in handleAdGroupLoadError()
1271 adGroup = adPlaybackState.adGroups[adGroupIndex]; in handleAdGroupLoadError()
1316 playingAdIndexInAdGroup = adPlaybackState.adGroups[adGroupIndex].getFirstAdIndexToPlay(); in handleAdPrepareError()
1355 @AdState int[] states = adPlaybackState.adGroups[adGroupIndex].states; in getAdIndexInAdGroupToLoad()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DMediaPeriodQueueTest.java484 i == adGroupIndex ? new long[] {AD_DURATION_US} : adPlaybackState.adGroups[i].durationsUs; in setAdGroupLoaded()