/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ads/ |
D | AdPlaybackState.java | 368 public AdPlaybackState withAdCount(int adGroupIndex, int adCount) { in withAdCount() argument 370 if (adGroups[adGroupIndex].count == adCount) { in withAdCount() 374 adGroups[adGroupIndex] = this.adGroups[adGroupIndex].withAdCount(adCount); in withAdCount() 380 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 [all …]
|
D | AdsMediaSource.java | 89 public static AdLoadException createForAdGroup(Exception error, int adGroupIndex) { in createForAdGroup() argument 91 TYPE_AD_GROUP, new IOException("Failed to load ad group " + adGroupIndex, error)); in createForAdGroup() 203 int adGroupIndex = id.adGroupIndex; in createPeriod() local 206 Assertions.checkNotNull(adPlaybackState.adGroups[adGroupIndex].uris[adIndexInAdGroup]); in createPeriod() 207 if (adMediaSourceHolders[adGroupIndex].length <= adIndexInAdGroup) { in createPeriod() 209 adMediaSourceHolders[adGroupIndex] = in createPeriod() 210 Arrays.copyOf(adMediaSourceHolders[adGroupIndex], adCount); 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() [all …]
|
D | AdsLoader.java | 149 void handlePrepareError(int adGroupIndex, int adIndexInAdGroup, IOException exception); in handlePrepareError() argument
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | MediaSource.java | 73 public final int adGroupIndex; field in MediaSource.MediaPeriodId 149 Object periodUid, int adGroupIndex, int adIndexInAdGroup, long windowSequenceNumber) { in MediaPeriodId() argument 152 adGroupIndex, in MediaPeriodId() 160 int adGroupIndex, in MediaPeriodId() argument 165 this.adGroupIndex = adGroupIndex; in MediaPeriodId() 176 newPeriodUid, adGroupIndex, adIndexInAdGroup, windowSequenceNumber, nextAdGroupIndex); in copyWithPeriodUid() 183 return adGroupIndex != C.INDEX_UNSET; in isAd() 197 && adGroupIndex == periodId.adGroupIndex in equals() 207 result = 31 * result + adGroupIndex; in hashCode()
|
/external/exoplayer/tree/extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/ |
D | ImaAdsLoader.java | 348 private int adGroupIndex; field in ImaAdsLoader 483 adGroupIndex = C.INDEX_UNSET; in ImaAdsLoader() 664 public void handlePrepareError(int adGroupIndex, int adIndexInAdGroup, IOException exception) { in handlePrepareError() argument 669 handleAdPrepareError(adGroupIndex, adIndexInAdGroup, exception); in handlePrepareError() 832 Log.d(TAG, "loadAd in ad group " + adGroupIndex); in loadAd() 838 if (adGroupIndex == C.INDEX_UNSET) { in loadAd() 843 adGroupIndex = expectedAdGroupIndex; in loadAd() 846 int adIndexInAdGroup = getAdIndexInAdGroupToLoad(adGroupIndex); in loadAd() 852 adPlaybackState.withAdUri(adGroupIndex, adIndexInAdGroup, Uri.parse(adUriString)); in loadAd() 1092 adGroupIndex = in handleAdEvent() [all …]
|
/external/exoplayer/tree/extensions/ima/src/test/java/com/google/android/exoplayer2/ext/ima/ |
D | FakePlayer.java | 38 private int adGroupIndex; field in FakePlayer 63 adGroupIndex = C.INDEX_UNSET; in setPlayingContentPosition() 80 int adGroupIndex, int adIndexInAdGroup, long position, long contentPosition) { in setPlayingAdPosition() argument 83 this.adGroupIndex = adGroupIndex; in setPlayingAdPosition() 180 timeline.getPeriod(0, period).getAdDurationUs(adGroupIndex, adIndexInAdGroup); in getDuration() 199 return adGroupIndex; in getCurrentAdGroupIndex()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | MediaPeriodQueue.java | 361 ? period.getAdDurationUs(id.adGroupIndex, id.adIndexInAdGroup) in getUpdatedMediaPeriodInfo() 415 int adGroupIndex = period.getAdGroupIndexForPositionUs(positionUs); in resolveMediaPeriodIdForAds() local 416 if (adGroupIndex == C.INDEX_UNSET) { in resolveMediaPeriodIdForAds() 420 int adIndexInAdGroup = period.getFirstAdIndexToPlay(adGroupIndex); in resolveMediaPeriodIdForAds() 421 return new MediaPeriodId(periodUid, adGroupIndex, adIndexInAdGroup, windowSequenceNumber); in resolveMediaPeriodIdForAds() 623 int adGroupIndex = currentPeriodId.adGroupIndex; in getFollowingMediaPeriodInfo() local 624 int adCountInCurrentAdGroup = period.getAdCountInAdGroup(adGroupIndex); in getFollowingMediaPeriodInfo() 629 period.getNextAdIndexToPlay(adGroupIndex, currentPeriodId.adIndexInAdGroup); in getFollowingMediaPeriodInfo() 632 return !period.isAdAvailable(adGroupIndex, nextAdIndexInAdGroup) in getFollowingMediaPeriodInfo() 637 adGroupIndex, in getFollowingMediaPeriodInfo() [all …]
|
D | Timeline.java | 507 public long getAdGroupTimeUs(int adGroupIndex) { in getAdGroupTimeUs() argument 508 return adPlaybackState.adGroupTimesUs[adGroupIndex]; in getAdGroupTimeUs() 519 public int getFirstAdIndexToPlay(int adGroupIndex) { in getFirstAdIndexToPlay() argument 520 return adPlaybackState.adGroups[adGroupIndex].getFirstAdIndexToPlay(); in getFirstAdIndexToPlay() 533 public int getNextAdIndexToPlay(int adGroupIndex, int lastPlayedAdIndex) { in getNextAdIndexToPlay() argument 534 return adPlaybackState.adGroups[adGroupIndex].getNextAdIndexToPlay(lastPlayedAdIndex); in getNextAdIndexToPlay() 543 public boolean hasPlayedAdGroup(int adGroupIndex) { in hasPlayedAdGroup() argument 544 return !adPlaybackState.adGroups[adGroupIndex].hasUnplayedAds(); in hasPlayedAdGroup() 578 public int getAdCountInAdGroup(int adGroupIndex) { in getAdCountInAdGroup() argument 579 return adPlaybackState.adGroups[adGroupIndex].count; in getAdCountInAdGroup() [all …]
|
D | ExoPlayerImpl.java | 731 long adDurationUs = period.getAdDurationUs(periodId.adGroupIndex, periodId.adIndexInAdGroup); in getDuration() 770 return isPlayingAd() ? playbackInfo.periodId.adGroupIndex : C.INDEX_UNSET; in getCurrentAdGroupIndex() 804 loadingPeriod.getAdGroupTimeUs(playbackInfo.loadingMediaPeriodId.adGroupIndex); in getContentBufferedPosition()
|
D | ExoPlayerImplInternal.java | 938 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/library/core/src/test/java/com/google/android/exoplayer2/ |
D | MediaPeriodQueueTest.java | 480 private void setAdGroupLoaded(int adGroupIndex) { in setAdGroupLoaded() argument 484 i == adGroupIndex ? new long[] {AD_DURATION_US} : adPlaybackState.adGroups[i].durationsUs; in setAdGroupLoaded() 488 .withAdCount(adGroupIndex, /* adCount= */ 1) in setAdGroupLoaded() 489 .withAdUri(adGroupIndex, /* adIndexInAdGroup= */ 0, AD_URI) in setAdGroupLoaded() 494 private void setAdGroupFailedToLoad(int adGroupIndex) { in setAdGroupFailedToLoad() argument 497 .withAdCount(adGroupIndex, /* adCount= */ 1) in setAdGroupFailedToLoad() 498 .withAdLoadError(adGroupIndex, /* adIndexInAdGroup= */ 0); in setAdGroupFailedToLoad() 524 private void assertNextMediaPeriodInfoIsAd(int adGroupIndex, long contentPositionUs) { in assertNextMediaPeriodInfoIsAd() argument 530 adGroupIndex, in assertNextMediaPeriodInfoIsAd()
|
D | ExoPlayerTest.java | 6639 public void handlePrepareError(int adGroupIndex, int adIndexInAdGroup, IOException exception) {}
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/ |
D | DefaultPlaybackSessionManager.java | 188 || previousSessionDescriptor.adMediaPeriodId.adGroupIndex 189 != eventTime.mediaPeriodId.adGroupIndex 315 && eventMediaPeriodId.adGroupIndex == adMediaPeriodId.adGroupIndex 359 int eventAdGroup = eventTime.mediaPeriodId.adGroupIndex; 362 return eventAdGroup > adMediaPeriodId.adGroupIndex 363 || (eventAdGroup == adMediaPeriodId.adGroupIndex 368 || eventTime.mediaPeriodId.nextAdGroupIndex > adMediaPeriodId.adGroupIndex;
|
D | AnalyticsCollector.java | 649 && player.getCurrentAdGroupIndex() == mediaPeriodId.adGroupIndex in generateEventTime() 959 && mediaPeriodInfo.mediaPeriodId.adGroupIndex == playerAdGroupIndex 962 && mediaPeriodInfo.mediaPeriodId.adGroupIndex == C.INDEX_UNSET
|
D | PlaybackStatsListener.java | 198 .getAdGroupTimeUs(eventTime.mediaPeriodId.adGroupIndex); in onAdPlaybackStarted() 211 eventTime.mediaPeriodId.adGroupIndex), in onAdPlaybackStarted()
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | MediaSourceTestRunner.java | 261 for (int adGroupIndex = 0; adGroupIndex < period.getAdGroupCount(); adGroupIndex++) { in assertPrepareAndReleaseAllPeriods() 262 for (int adIndex = 0; adIndex < period.getAdCountInAdGroup(adGroupIndex); adIndex++) { in assertPrepareAndReleaseAllPeriods() 264 new MediaPeriodId(period.uid, adGroupIndex, adIndex, period.windowIndex)); in assertPrepareAndReleaseAllPeriods() 281 mediaPeriodId.adGroupIndex, in assertPrepareAndReleasePeriod()
|
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/ |
D | PlayerControlView.java | 932 for (int adGroupIndex = 0; adGroupIndex < periodAdGroupCount; adGroupIndex++) { in updateTimeline() 933 long adGroupTimeInPeriodUs = period.getAdGroupTimeUs(adGroupIndex); in updateTimeline() 949 playedAdGroups[adGroupCount] = period.hasPlayedAdGroup(adGroupIndex); in updateTimeline()
|
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/ |
D | ConcatenatingMediaSourceTest.java | 1086 for (int adGroupIndex = 0; adGroupIndex < period.getAdGroupCount(); adGroupIndex++) { in assertCompletedAllMediaPeriodLoads() 1087 for (int adIndex = 0; adIndex < period.getAdCountInAdGroup(adGroupIndex); adIndex++) { in assertCompletedAllMediaPeriodLoads() 1089 new MediaPeriodId(periodUid, adGroupIndex, adIndex, windowIndex)); in assertCompletedAllMediaPeriodLoads()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/ |
D | EventLogger.java | 549 windowPeriodString += ", adGroup=" + eventTime.mediaPeriodId.adGroupIndex; in getEventTimeString()
|