Searched refs:adGroups (Results 1 – 8 of 8) sorted by relevance
280 public final AdGroup[] adGroups; field in AdPlaybackState297 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() argument307 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 …]
206 Assertions.checkNotNull(adPlaybackState.adGroups[adGroupIndex].uris[adIndexInAdGroup]); in createPeriod()
44 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 …]
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()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()
8 false /* adGroups */,
1100 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()
484 i == adGroupIndex ? new long[] {AD_DURATION_US} : adPlaybackState.adGroups[i].durationsUs; in setAdGroupLoaded()