Home
last modified time | relevance | path

Searched refs:periodIndex (Results 1 – 25 of 38) sorted by relevance

12

/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/offline/
DStreamKey.java32 public final int periodIndex; field in StreamKey
51 public StreamKey(int periodIndex, int groupIndex, int trackIndex) { in StreamKey() argument
52 this.periodIndex = periodIndex; in StreamKey()
58 periodIndex = in.readInt(); in StreamKey()
65 return periodIndex + "." + groupIndex + "." + trackIndex; in toString()
78 return periodIndex == that.periodIndex in equals()
85 int result = periodIndex; in hashCode()
95 int result = periodIndex - o.periodIndex; in compareTo()
114 dest.writeInt(periodIndex); in writeToParcel()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/
DDashManifest.java178 for (int periodIndex = 0; periodIndex < getPeriodCount(); periodIndex++) { in copy()
179 if (keys.peek().periodIndex != periodIndex) { in copy()
181 long periodDurationMs = getPeriodDurationMs(periodIndex); in copy()
186 Period period = getPeriod(periodIndex); in copy()
213 int periodIndex = key.periodIndex; in copyAdaptationSets() local
225 } while (key.periodIndex == periodIndex && key.groupIndex == adaptationSetIndex); in copyAdaptationSets()
235 } while(key.periodIndex == periodIndex); in copyAdaptationSets()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/
DDownloadHelper.java599 public TrackGroupArray getTrackGroups(int periodIndex) { in getTrackGroups() argument
601 return trackGroupArrays[periodIndex]; in getTrackGroups()
611 public MappedTrackInfo getMappedTrackInfo(int periodIndex) { in getMappedTrackInfo() argument
613 return mappedTrackInfos[periodIndex]; in getMappedTrackInfo()
624 public List<TrackSelection> getTrackSelections(int periodIndex, int rendererIndex) { in getTrackSelections() argument
626 return immutableTrackSelectionsByPeriodAndRenderer[periodIndex][rendererIndex]; in getTrackSelections()
635 public void clearTrackSelections(int periodIndex) { in clearTrackSelections() argument
638 trackSelectionsByPeriodAndRenderer[periodIndex][i].clear(); in clearTrackSelections()
651 int periodIndex, DefaultTrackSelector.Parameters trackSelectorParameters) { in replaceTrackSelections() argument
652 clearTrackSelections(periodIndex); in replaceTrackSelections()
[all …]
DActionFile.java143 int periodIndex;
150 periodIndex = 0;
154 periodIndex = input.readInt();
158 return new StreamKey(periodIndex, groupIndex, trackIndex);
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DMergingMediaSource.java149 int periodIndex = timelines[0].getIndexOfPeriod(id.periodUid); in createPeriod() local
152 id.copyWithPeriodUid(timelines[i].getUidOfPeriod(periodIndex)); in createPeriod()
155 childMediaPeriodId, allocator, startPositionUs - periodTimeOffsetsUs[periodIndex][i]); in createPeriod()
158 compositeSequenceableLoaderFactory, periodTimeOffsetsUs[periodIndex], periods); in createPeriod()
213 for (int periodIndex = 0; periodIndex < periodCount; periodIndex++) { in computePeriodTimeOffsets()
215 -timelines[0].getPeriod(periodIndex, period).getPositionInWindowUs(); in computePeriodTimeOffsets()
218 -timelines[timelineIndex].getPeriod(periodIndex, period).getPositionInWindowUs(); in computePeriodTimeOffsets()
219 periodTimeOffsetsUs[periodIndex][timelineIndex] = in computePeriodTimeOffsets()
DForwardingTimeline.java70 public Period getPeriod(int periodIndex, Period period, boolean setIds) { in getPeriod() argument
71 return timeline.getPeriod(periodIndex, period, setIds); in getPeriod()
80 public Object getUidOfPeriod(int periodIndex) { in getUidOfPeriod() argument
81 return timeline.getUidOfPeriod(periodIndex); in getUidOfPeriod()
DSinglePeriodTimeline.java220 public Period getPeriod(int periodIndex, Period period, boolean setIds) { in getPeriod() argument
221 Assertions.checkIndex(periodIndex, 0, 1); in getPeriod()
232 public Object getUidOfPeriod(int periodIndex) { in getUidOfPeriod() argument
233 Assertions.checkIndex(periodIndex, 0, 1); in getUidOfPeriod()
DMaskingMediaSource.java324 public Period getPeriod(int periodIndex, Period period, boolean setIds) { in getPeriod() argument
325 timeline.getPeriod(periodIndex, period, setIds); in getPeriod()
341 public Object getUidOfPeriod(int periodIndex) { in getUidOfPeriod() argument
342 Object uid = timeline.getUidOfPeriod(periodIndex); in getUidOfPeriod()
390 public Period getPeriod(int periodIndex, Period period, boolean setIds) { in getPeriod() argument
405 public Object getUidOfPeriod(int periodIndex) { in getUidOfPeriod() argument
DLoopingMediaSource.java165 protected int getChildIndexByPeriodIndex(int periodIndex) { in getChildIndexByPeriodIndex() argument
166 return periodIndex / childPeriodCount; in getChildIndexByPeriodIndex()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DTimeline.java666 public Period getPeriod(int periodIndex, Period period, boolean setIds) {
676 public Object getUidOfPeriod(int periodIndex) {
812 public final int getNextPeriodIndex(int periodIndex, Period period, Window window, in getNextPeriodIndex() argument
814 int windowIndex = getPeriod(periodIndex, period).windowIndex; in getNextPeriodIndex()
815 if (getWindow(windowIndex, window).lastPeriodIndex == periodIndex) { in getNextPeriodIndex()
822 return periodIndex + 1; in getNextPeriodIndex()
836 public final boolean isLastPeriod(int periodIndex, Period period, Window window, in isLastPeriod() argument
838 return getNextPeriodIndex(periodIndex, period, window, repeatMode, shuffleModeEnabled) in isLastPeriod()
882 int periodIndex = window.firstPeriodIndex; in getPeriodPosition() local
884 long periodDurationUs = getPeriod(periodIndex, period, /* setIds= */ true).getDurationUs(); in getPeriodPosition()
[all …]
DAbstractConcatenatedTimeline.java222 public final Period getPeriod(int periodIndex, Period period, boolean setIds) { in getPeriod() argument
223 int childIndex = getChildIndexByPeriodIndex(periodIndex); in getPeriod()
227 .getPeriod(periodIndex - firstPeriodIndexInChild, period, setIds); in getPeriod()
255 public final Object getUidOfPeriod(int periodIndex) { in getUidOfPeriod() argument
256 int childIndex = getChildIndexByPeriodIndex(periodIndex); in getUidOfPeriod()
259 getTimelineByChildIndex(childIndex).getUidOfPeriod(periodIndex - firstPeriodIndexInChild); in getUidOfPeriod()
268 protected abstract int getChildIndexByPeriodIndex(int periodIndex); in getChildIndexByPeriodIndex() argument
DMediaPeriodQueue.java792 int periodIndex = timeline.getIndexOfPeriod(id.periodUid); in isLastInWindow() local
793 return timeline.getWindow(windowIndex, window).lastPeriodIndex == periodIndex; in isLastInWindow()
798 int periodIndex = timeline.getIndexOfPeriod(id.periodUid); in isLastInTimeline() local
799 int windowIndex = timeline.getPeriod(periodIndex, period).windowIndex; in isLastInTimeline()
801 && timeline.isLastPeriod(periodIndex, period, window, repeatMode, shuffleModeEnabled) in isLastInTimeline()
/external/exoplayer/tree/extensions/cast/src/main/java/com/google/android/exoplayer2/ext/cast/
DCastTimeline.java150 public Period getPeriod(int periodIndex, Period period, boolean setIds) { in getPeriod() argument
151 int id = ids[periodIndex]; in getPeriod()
152 return period.set(id, id, periodIndex, durationsUs[periodIndex], 0); in getPeriod()
161 public Integer getUidOfPeriod(int periodIndex) { in getUidOfPeriod() argument
162 return ids[periodIndex]; in getUidOfPeriod()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/
DDashMediaSource.java685 int periodIndex = (Integer) periodId.periodUid - firstPeriodId; in createPeriod() local
687 createEventDispatcher(periodId, manifest.getPeriod(periodIndex).startMs); in createPeriod()
690 firstPeriodId + periodIndex, in createPeriod()
692 periodIndex, in createPeriod()
1016 int periodIndex = lastPeriodIndex; in processManifest() local
1017 while (offsetInPeriodUs < 0 && periodIndex > 0) { in processManifest()
1018 offsetInPeriodUs += manifest.getPeriodDurationUs(--periodIndex); in processManifest()
1020 if (periodIndex == 0) { in processManifest()
1240 public Period getPeriod(int periodIndex, Period period, boolean setIdentifiers) { in getPeriod() argument
1241 Assertions.checkIndex(periodIndex, 0, getPeriodCount()); in getPeriod()
[all …]
DDefaultDashChunkSource.java82 int periodIndex, in createDashChunkSource() argument
98 periodIndex, in createDashChunkSource()
124 private int periodIndex; field in DefaultDashChunkSource
151 int periodIndex, in DefaultDashChunkSource() argument
167 this.periodIndex = periodIndex; in DefaultDashChunkSource()
172 long periodDurationUs = manifest.getPeriodDurationUs(periodIndex); in DefaultDashChunkSource()
212 periodIndex = newPeriodIndex;
213 long periodDurationUs = manifest.getPeriodDurationUs(periodIndex);
261 + C.msToUs(manifest.getPeriod(periodIndex).startMs)
279 representationHolder.getFirstAvailableSegmentNum(manifest, periodIndex, nowUnixTimeUs);
[all …]
DDashMediaPeriod.java95 private int periodIndex; field in DashMediaPeriod
102 int periodIndex, in DashMediaPeriod() argument
115 this.periodIndex = periodIndex; in DashMediaPeriod()
131 Period period = manifest.getPeriod(periodIndex); in DashMediaPeriod()
146 public void updateManifest(DashManifest manifest, int periodIndex) { in updateManifest() argument
148 this.periodIndex = periodIndex; in updateManifest()
152 sampleStream.getChunkSource().updateManifest(manifest, periodIndex); in updateManifest()
156 eventStreams = manifest.getPeriod(periodIndex).eventStreams; in updateManifest()
163 /* eventStreamAppendable= */ manifest.dynamic && periodIndex == lastPeriodIndex); in updateManifest()
209 List<AdaptationSet> manifestAdaptationSets = manifest.getPeriod(periodIndex).adaptationSets; in getStreamKeys()
[all …]
DDashChunkSource.java56 int periodIndex, in createDashChunkSource() argument
72 void updateManifest(DashManifest newManifest, int periodIndex); in updateManifest() argument
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeTimeline.java288 public Period getPeriod(int periodIndex, Period period, boolean setIds) { in getPeriod() argument
289 int windowIndex = Util.binarySearchFloor(periodOffsets, periodIndex, true, false); in getPeriod()
290 int windowPeriodIndex = periodIndex - periodOffsets[windowIndex]; in getPeriod()
328 public Object getUidOfPeriod(int periodIndex) { in getUidOfPeriod() argument
329 Assertions.checkIndex(periodIndex, 0, getPeriodCount()); in getUidOfPeriod()
332 periodOffsets, periodIndex, /* inclusive= */ true, /* stayInBounds= */ false); in getUidOfPeriod()
333 int windowPeriodIndex = periodIndex - periodOffsets[windowIndex]; in getUidOfPeriod()
DNoUidTimeline.java44 public Period getPeriod(int periodIndex, Period period, boolean setIds) { in getPeriod() argument
45 timeline.getPeriod(periodIndex, period, setIds); in getPeriod()
DMediaPeriodAsserts.java52 MediaPeriod createMediaPeriod(T manifest, int periodIndex); in createMediaPeriod() argument
96 int periodIndex, in assertGetStreamKeysAndManifestFilterIntegration() argument
98 MediaPeriod mediaPeriod = mediaPeriodFactory.createMediaPeriod(manifest, periodIndex); in assertGetStreamKeysAndManifestFilterIntegration()
DFakeMediaSource.java156 int periodIndex = Util.castNonNull(timeline).getIndexOfPeriod(id.periodUid); in createPeriod() local
157 Assertions.checkArgument(periodIndex != C.INDEX_UNSET); in createPeriod()
158 Period period = timeline.getPeriod(periodIndex, new Period()); in createPeriod()
/external/protobuf/php/src/Google/Protobuf/Internal/
DGPBUtil.php419 $periodIndex = strpos($timestamp, ".");
420 if ($periodIndex !== false) {
424 for ($i = $periodIndex + 1, $length = strlen($timestamp); $i < $length; $i++) {
426 $nanosecondsLength = $i - ($periodIndex + 1);
437 $nanoseconds = substr($timestamp, $periodIndex + 1, $nanosecondsLength);
441 $date = substr($timestamp, 0, $periodIndex);
442 $timezone = substr($timestamp, $periodIndex + $nanosecondsLength + 1);
/external/exoplayer/tree/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DDownloadTracker.java239 for (int periodIndex = 0; periodIndex < downloadHelper.getPeriodCount(); periodIndex++) { in onClick()
240 downloadHelper.clearTrackSelections(periodIndex); in onClick()
244 periodIndex, in onClick()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ads/
DSinglePeriodAdTimeline.java45 public Period getPeriod(int periodIndex, Period period, boolean setIds) { in getPeriod() argument
46 timeline.getPeriod(periodIndex, period, setIds); in getPeriod()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/
DDefaultPlaybackSessionManager.java378 for (int periodIndex = window.firstPeriodIndex; in resolveWindowIndexToNewTimeline()
379 periodIndex <= window.lastPeriodIndex; in resolveWindowIndexToNewTimeline()
380 periodIndex++) { in resolveWindowIndexToNewTimeline()
381 Object periodUid = oldTimeline.getUidOfPeriod(periodIndex); in resolveWindowIndexToNewTimeline()

12