Home
last modified time | relevance | path

Searched refs:trackIndex (Results 1 – 19 of 19) sorted by relevance

/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/offline/
DStreamKey.java36 public final int trackIndex; field in StreamKey
42 public StreamKey(int groupIndex, int trackIndex) { in StreamKey() argument
43 this(0, groupIndex, trackIndex); in StreamKey()
51 public StreamKey(int periodIndex, int groupIndex, int trackIndex) { in StreamKey() argument
54 this.trackIndex = trackIndex; in StreamKey()
60 trackIndex = in.readInt(); in StreamKey()
65 return periodIndex + "." + groupIndex + "." + trackIndex; in toString()
80 && trackIndex == that.trackIndex; in equals()
87 result = 31 * result + trackIndex; in hashCode()
99 result = trackIndex - o.trackIndex; in compareTo()
[all …]
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DTrackSelectionView.java262 for (int trackIndex = 0; trackIndex < group.length; trackIndex++) { in updateViews()
263 if (trackIndex == 0) { in updateViews()
273 trackView.setText(trackNameProvider.getTrackName(group.getFormat(trackIndex))); in updateViews()
274 if (mappedTrackInfo.getTrackSupport(rendererIndex, groupIndex, trackIndex) in updateViews()
277 trackView.setTag(Pair.create(groupIndex, trackIndex)); in updateViews()
283 trackViews[groupIndex][trackIndex] = trackView; in updateViews()
331 int trackIndex = tag.second; in onTrackViewClicked() local
340 overrides.put(groupIndex, new SelectionOverride(groupIndex, trackIndex)); in onTrackViewClicked()
354 int[] tracks = getTracksRemoving(overrideTracks, trackIndex); in onTrackViewClicked()
360 int[] tracks = getTracksAdding(overrideTracks, trackIndex); in onTrackViewClicked()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/trackselection/
DMappingTrackSelector.java230 public int getTrackFormatSupport(int rendererIndex, int groupIndex, int trackIndex) { in getTrackFormatSupport() argument
231 return getTrackSupport(rendererIndex, groupIndex, trackIndex); in getTrackFormatSupport()
243 public int getTrackSupport(int rendererIndex, int groupIndex, int trackIndex) { in getTrackSupport() argument
245 rendererFormatSupports[rendererIndex][groupIndex][trackIndex]); in getTrackSupport()
301 int trackIndex = trackIndices[i]; in getAdaptiveSupport() local
303 rendererTrackGroups[rendererIndex].get(groupIndex).getFormat(trackIndex).sampleMimeType; in getAdaptiveSupport()
500 for (int trackIndex = 0; trackIndex < group.length; trackIndex++) { in findRenderer()
504 rendererCapability.supportsFormat(group.getFormat(trackIndex))); in findRenderer()
DDefaultTrackSelector.java1791 int trackIndex = selectedTrackIndices.get(i); in getAdaptiveVideoTracksForGroup() local
1792 String sampleMimeType = group.getFormat(trackIndex).sampleMimeType; in getAdaptiveVideoTracksForGroup()
1840 int trackIndex = selectedTrackIndices.get(i); in getAdaptiveVideoTrackCountForMimeType() local
1842 group.getFormat(trackIndex), in getAdaptiveVideoTrackCountForMimeType()
1844 formatSupport[trackIndex], in getAdaptiveVideoTrackCountForMimeType()
1867 int trackIndex = selectedTrackIndices.get(i); in filterAdaptiveVideoTrackCountForMimeType() local
1869 group.getFormat(trackIndex), in filterAdaptiveVideoTrackCountForMimeType()
1871 formatSupport[trackIndex], in filterAdaptiveVideoTrackCountForMimeType()
1917 for (int trackIndex = 0; trackIndex < trackGroup.length; trackIndex++) { in selectFixedVideoTrack()
1918 Format format = trackGroup.getFormat(trackIndex); in selectFixedVideoTrack()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DEventLogger.java231 for (int trackIndex = 0; trackIndex < trackGroup.length; trackIndex++) { in onTracksChanged()
232 String status = getTrackStatusString(trackSelection, trackGroup, trackIndex); in onTracksChanged()
235 mappedTrackInfo.getTrackSupport(rendererIndex, groupIndex, trackIndex)); in onTracksChanged()
240 + trackIndex in onTracksChanged()
242 + Format.toLogString(trackGroup.getFormat(trackIndex)) in onTracksChanged()
270 for (int trackIndex = 0; trackIndex < trackGroup.length; trackIndex++) { in onTracksChanged()
279 + trackIndex in onTracksChanged()
281 + Format.toLogString(trackGroup.getFormat(trackIndex)) in onTracksChanged()
601 @Nullable TrackSelection selection, TrackGroup group, int trackIndex) { in getTrackStatusString() argument
603 && selection.indexOf(trackIndex) != C.INDEX_UNSET); in getTrackStatusString()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/
DActionFile.java145 int trackIndex;
152 trackIndex = input.readInt();
156 trackIndex = input.readInt();
158 return new StreamKey(periodIndex, groupIndex, trackIndex);
DDefaultDownloadIndex.java385 .append(streamKey.trackIndex) in encodeStreamKeys()
/external/exoplayer/tree/library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/
DDefaultSsChunkSource.java229 int trackIndex = trackSelection.getIndexInTrackGroup(i);
230 chunkIterators[i] = new StreamElementIterator(streamElement, trackIndex, chunkIndex);
322 private final int trackIndex;
331 public StreamElementIterator(StreamElement streamElement, int trackIndex, int chunkIndex) {
334 this.trackIndex = trackIndex;
340 Uri uri = streamElement.buildRequestUri(trackIndex, (int) getCurrentIndex());
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/chunk/
DBaseMediaChunk.java91 public final int getFirstSampleIndex(int trackIndex) { in getFirstSampleIndex() argument
92 return Assertions.checkStateNotNull(firstSampleIndices)[trackIndex]; in getFirstSampleIndex()
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DMp4Extractor.java608 for (int trackIndex = 0; trackIndex < tracks.length; trackIndex++) { in getTrackIndexOfNextReadSample()
609 Mp4Track track = tracks[trackIndex]; in getTrackIndexOfNextReadSample()
615 long sampleAccumulatedBytes = accumulatedSampleSizes[trackIndex][sampleIndex]; in getTrackIndexOfNextReadSample()
622 preferredTrackIndex = trackIndex; in getTrackIndexOfNextReadSample()
628 minAccumulatedBytesTrackIndex = trackIndex; in getTrackIndexOfNextReadSample()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeAdaptiveDataSet.java160 public String getUri(int trackIndex) { in getUri() argument
161 return "fake://adaptive.media/" + trackIndex; in getUri()
/external/exoplayer/tree/playbacktests/src/androidTest/java/com/google/android/exoplayer2/playbacktests/gts/
DDashTestRunner.java430 int trackIndex = getTrackIndex(trackGroup, formatId); in getVideoTrackIndices() local
432 + Format.toLogString(trackGroup.getFormat(trackIndex))); in getVideoTrackIndices()
433 trackIndices.add(trackIndex); in getVideoTrackIndices()
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/
DHlsChunkSource.java427 int trackIndex = trackSelection.getIndexInTrackGroup(i); in createMediaChunkIterators() local
428 Uri playlistUrl = playlistUrls[trackIndex]; in createMediaChunkIterators()
439 boolean switchingTrack = trackIndex != oldTrackIndex; in createMediaChunkIterators()
DHlsMediaPeriod.java229 for (int trackIndex = 0; trackIndex < trackSelection.length(); trackIndex++) { in getStreamKeys()
231 selectedWrapperUrlIndices[trackSelection.getIndexInTrackGroup(trackIndex)]; in getStreamKeys()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/manifest/
DDashManifest.java222 Representation representation = representations.get(key.trackIndex); in copyAdaptationSets()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/
DDefaultDashChunkSource.java396 int trackIndex = trackSelection.indexOf(initializationChunk.trackFormat);
397 RepresentationHolder representationHolder = representationHolders[trackIndex];
404 representationHolders[trackIndex] =
DDashMediaPeriod.java229 for (int trackIndex : trackIndices) { in getStreamKeys()
230 while (trackIndex >= totalTracksInPreviousAdaptationSets + tracksInCurrentAdaptationSet) { in getStreamKeys()
243 trackIndex - totalTracksInPreviousAdaptationSets)); in getStreamKeys()
/external/exoplayer/tree/library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/manifest/
DSsManifest.java329 copiedFormats.add(streamElement.formats[key.trackIndex]);
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/playlist/
DHlsMasterPlaylist.java312 if (streamKey.groupIndex == groupIndex && streamKey.trackIndex == i) { in copyStreams()