Searched refs:adGroupTimesUs (Results 1 – 5 of 5) sorted by relevance
278 public final long[] adGroupTimesUs; field in AdPlaybackState293 public AdPlaybackState(long... adGroupTimesUs) { in AdPlaybackState() argument294 int count = adGroupTimesUs.length; in AdPlaybackState()296 this.adGroupTimesUs = Arrays.copyOf(adGroupTimesUs, count); in AdPlaybackState()306 long[] adGroupTimesUs, AdGroup[] adGroups, long adResumePositionUs, long contentDurationUs) { in AdPlaybackState() argument308 this.adGroupTimesUs = adGroupTimesUs; in AdPlaybackState()329 int index = adGroupTimesUs.length - 1; in getAdGroupIndexForPositionUs()355 while (index < adGroupTimesUs.length in getAdGroupIndexAfterPositionUs()356 && adGroupTimesUs[index] != C.TIME_END_OF_SOURCE in getAdGroupIndexAfterPositionUs()357 && (positionUs >= adGroupTimesUs[index] || !adGroups[index].hasUnplayedAds())) { in getAdGroupIndexAfterPositionUs()[all …]
777 long nextAdGroupTimeMs = C.usToMs(adPlaybackState.adGroupTimesUs[nextAdGroupIndex]); in getContentProgress()1042 long[] adGroupTimesUs = getAdGroupTimesUs(adsManager.getAdCuePoints()); in initializeAdsManager() local1054 long adGroupForPositionTimeUs = adGroupTimesUs[adGroupIndexForPosition]; in initializeAdsManager()1055 long adGroupBeforeTimeUs = adGroupTimesUs[adGroupIndexForPosition - 1]; in initializeAdsManager()1062 if (adGroupIndexForPosition == 0 && adGroupTimesUs[0] == 0) { in initializeAdsManager()1073 if (adGroupIndexForPosition != C.INDEX_UNSET && hasMidrollAdGroups(adGroupTimesUs)) { in initializeAdsManager()1178 if (adPlaybackState.adGroupTimesUs[i] != C.TIME_END_OF_SOURCE) { in checkForContentCompleteOrNewAdGroup()1219 fakeContentProgressOffsetMs = C.usToMs(adPlaybackState.adGroupTimesUs[adGroupIndex]); in updateImaStateForPlayerState()1302 fakeContentProgressOffsetMs = C.usToMs(adPlaybackState.adGroupTimesUs[adGroupIndex]); in handleAdPrepareError()1404 long[] adGroupTimesUs = new long[count]; in getAdGroupTimesUs() local[all …]
197 public static AdPlaybackState createAdPlaybackState(int adsPerAdGroup, long... adGroupTimesUs) { in createAdPlaybackState() argument198 int adGroupCount = adGroupTimesUs.length; in createAdPlaybackState()199 AdPlaybackState adPlaybackState = new AdPlaybackState(adGroupTimesUs); in createAdPlaybackState()
396 private void setupAdTimeline(long... adGroupTimesUs) { in setupAdTimeline() argument398 new AdPlaybackState(adGroupTimesUs).withContentDurationUs(CONTENT_DURATION_US); in setupAdTimeline()431 private void updateAdPlaybackStateAndTimeline(long... adGroupTimesUs) { in updateAdPlaybackStateAndTimeline() argument433 new AdPlaybackState(adGroupTimesUs).withContentDurationUs(CONTENT_DURATION_US); in updateAdPlaybackStateAndTimeline()
508 return adPlaybackState.adGroupTimesUs[adGroupIndex]; in getAdGroupTimeUs()