Home
last modified time | relevance | path

Searched refs:adIndexInAdGroup (Results 1 – 15 of 15) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DMediaSource.java79 public final int adIndexInAdGroup; field in MediaSource.MediaPeriodId
149 Object periodUid, int adGroupIndex, int adIndexInAdGroup, long windowSequenceNumber) { in MediaPeriodId() argument
153 adIndexInAdGroup, in MediaPeriodId()
161 int adIndexInAdGroup, in MediaPeriodId() argument
166 this.adIndexInAdGroup = adIndexInAdGroup; in MediaPeriodId()
176 newPeriodUid, adGroupIndex, adIndexInAdGroup, windowSequenceNumber, nextAdGroupIndex); in copyWithPeriodUid()
198 && adIndexInAdGroup == periodId.adIndexInAdGroup in equals()
208 result = 31 * result + adIndexInAdGroup; in hashCode()
/external/exoplayer/tree/extensions/ima/src/test/java/com/google/android/exoplayer2/ext/ima/
DFakePlayer.java39 private int adIndexInAdGroup; field in FakePlayer
64 adIndexInAdGroup = C.INDEX_UNSET; in setPlayingContentPosition()
80 int adGroupIndex, int adIndexInAdGroup, long position, long contentPosition) { in setPlayingAdPosition() argument
81 boolean notify = !isPlayingAd || this.adIndexInAdGroup != adIndexInAdGroup; in setPlayingAdPosition()
84 this.adIndexInAdGroup = adIndexInAdGroup; in setPlayingAdPosition()
180 timeline.getPeriod(0, period).getAdDurationUs(adGroupIndex, adIndexInAdGroup); in getDuration()
204 return adIndexInAdGroup; in getCurrentAdIndexInAdGroup()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ads/
DAdsMediaSource.java204 int adIndexInAdGroup = id.adIndexInAdGroup; in createPeriod() local
206 Assertions.checkNotNull(adPlaybackState.adGroups[adGroupIndex].uris[adIndexInAdGroup]); in createPeriod()
207 if (adMediaSourceHolders[adGroupIndex].length <= adIndexInAdGroup) { in createPeriod()
208 int adCount = adIndexInAdGroup + 1; in createPeriod()
214 adMediaSourceHolders[adGroupIndex][adIndexInAdGroup]; in createPeriod()
218 adMediaSourceHolders[adGroupIndex][adIndexInAdGroup] = adMediaSourceHolder; in createPeriod()
236 Assertions.checkNotNull(adMediaSourceHolders[id.adGroupIndex][id.adIndexInAdGroup]); in releasePeriod()
240 adMediaSourceHolders[id.adGroupIndex][id.adIndexInAdGroup] = null; in releasePeriod()
263 int adIndexInAdGroup = mediaPeriodId.adIndexInAdGroup; in onChildSourceInfoRefreshed() local
264 Assertions.checkNotNull(adMediaSourceHolders[adGroupIndex][adIndexInAdGroup]) in onChildSourceInfoRefreshed()
[all …]
DAdPlaybackState.java380 public AdPlaybackState withAdUri(int adGroupIndex, int adIndexInAdGroup, Uri uri) { in withAdUri() argument
382 adGroups[adGroupIndex] = adGroups[adGroupIndex].withAdUri(uri, adIndexInAdGroup); in withAdUri()
388 public AdPlaybackState withPlayedAd(int adGroupIndex, int adIndexInAdGroup) { in withPlayedAd() argument
390 adGroups[adGroupIndex] = adGroups[adGroupIndex].withAdState(AD_STATE_PLAYED, adIndexInAdGroup); in withPlayedAd()
396 public AdPlaybackState withSkippedAd(int adGroupIndex, int adIndexInAdGroup) { in withSkippedAd() argument
398 adGroups[adGroupIndex] = adGroups[adGroupIndex].withAdState(AD_STATE_SKIPPED, adIndexInAdGroup); in withSkippedAd()
404 public AdPlaybackState withAdLoadError(int adGroupIndex, int adIndexInAdGroup) { in withAdLoadError() argument
406 adGroups[adGroupIndex] = adGroups[adGroupIndex].withAdState(AD_STATE_ERROR, adIndexInAdGroup); in withAdLoadError()
DAdsLoader.java149 void handlePrepareError(int adGroupIndex, int adIndexInAdGroup, IOException exception); in handlePrepareError() argument
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DMediaPeriodQueue.java361 ? period.getAdDurationUs(id.adGroupIndex, id.adIndexInAdGroup) in getUpdatedMediaPeriodInfo()
420 int adIndexInAdGroup = period.getFirstAdIndexToPlay(adGroupIndex); in resolveMediaPeriodIdForAds() local
421 return new MediaPeriodId(periodUid, adGroupIndex, adIndexInAdGroup, windowSequenceNumber); in resolveMediaPeriodIdForAds()
629 period.getNextAdIndexToPlay(adGroupIndex, currentPeriodId.adIndexInAdGroup); in getFollowingMediaPeriodInfo()
679 int adIndexInAdGroup = period.getFirstAdIndexToPlay(nextAdGroupIndex); in getFollowingMediaPeriodInfo() local
680 return !period.isAdAvailable(nextAdGroupIndex, adIndexInAdGroup) in getFollowingMediaPeriodInfo()
686 adIndexInAdGroup, in getFollowingMediaPeriodInfo()
696 if (!period.isAdAvailable(id.adGroupIndex, id.adIndexInAdGroup)) { in getMediaPeriodInfo()
703 id.adIndexInAdGroup, in getMediaPeriodInfo()
720 int adIndexInAdGroup, in getMediaPeriodInfoForAd() argument
[all …]
DTimeline.java589 public boolean isAdAvailable(int adGroupIndex, int adIndexInAdGroup) { in isAdAvailable() argument
592 && adGroup.states[adIndexInAdGroup] != AdPlaybackState.AD_STATE_UNAVAILABLE; in isAdAvailable()
603 public long getAdDurationUs(int adGroupIndex, int adIndexInAdGroup) { in getAdDurationUs() argument
605 return adGroup.count != C.LENGTH_UNSET ? adGroup.durationsUs[adIndexInAdGroup] : C.TIME_UNSET; in getAdDurationUs()
DExoPlayerImpl.java731 long adDurationUs = period.getAdDurationUs(periodId.adGroupIndex, periodId.adIndexInAdGroup); in getDuration()
775 return isPlayingAd() ? playbackInfo.periodId.adIndexInAdGroup : C.INDEX_UNSET; in getCurrentAdIndexInAdGroup()
DExoPlayerImplInternal.java938 period.getFirstAdIndexToPlay(periodId.adGroupIndex) == periodId.adIndexInAdGroup in seekToInternal()
1255 firstPeriodId.adIndexInAdGroup == period.getFirstAdIndexToPlay(firstPeriodId.adGroupIndex) in getDummyFirstMediaPeriodPosition()
2260 newPeriodId.adIndexInAdGroup == period.getFirstAdIndexToPlay(newPeriodId.adGroupIndex)
/external/exoplayer/tree/extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/
DImaAdsLoader.java664 public void handlePrepareError(int adGroupIndex, int adIndexInAdGroup, IOException exception) { in handlePrepareError() argument
669 handleAdPrepareError(adGroupIndex, adIndexInAdGroup, exception); in handlePrepareError()
846 int adIndexInAdGroup = getAdIndexInAdGroupToLoad(adGroupIndex); in loadAd() local
847 if (adIndexInAdGroup == C.INDEX_UNSET) { in loadAd()
852 adPlaybackState.withAdUri(adGroupIndex, adIndexInAdGroup, Uri.parse(adUriString)); in loadAd()
1250 int adIndexInAdGroup = adPlaybackState.adGroups[adGroupIndex].getFirstAdIndexToPlay(); in stopAdInternal() local
1253 adPlaybackState.withPlayedAd(adGroupIndex, adIndexInAdGroup).withAdResumePositionUs(0); in stopAdInternal()
1289 private void handleAdPrepareError(int adGroupIndex, int adIndexInAdGroup, Exception exception) { in handleAdPrepareError() argument
1292 TAG, "Prepare error for ad " + adIndexInAdGroup + " in group " + adGroupIndex, exception); in handleAdPrepareError()
1309 if (adIndexInAdGroup > playingAdIndexInAdGroup) { in handleAdPrepareError()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DDefaultPlaybackSessionManager.java190 || previousSessionDescriptor.adMediaPeriodId.adIndexInAdGroup
191 != eventTime.mediaPeriodId.adIndexInAdGroup)) {
316 && eventMediaPeriodId.adIndexInAdGroup == adMediaPeriodId.adIndexInAdGroup;
360 int eventAdIndex = eventTime.mediaPeriodId.adIndexInAdGroup;
364 && eventAdIndex > adMediaPeriodId.adIndexInAdGroup);
DAnalyticsCollector.java650 && player.getCurrentAdIndexInAdGroup() == mediaPeriodId.adIndexInAdGroup; in generateEventTime()
960 && mediaPeriodInfo.mediaPeriodId.adIndexInAdGroup == playerAdIndexInAdGroup)
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DMediaSourceTestRunner.java282 mediaPeriodId.adIndexInAdGroup, in assertPrepareAndReleasePeriod()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DEventLogger.java550 windowPeriodString += ", ad=" + eventTime.mediaPeriodId.adIndexInAdGroup; in getEventTimeString()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DExoPlayerTest.java6639 public void handlePrepareError(int adGroupIndex, int adIndexInAdGroup, IOException exception) {}