Home
last modified time | relevance | path

Searched refs:TrackSelection (Results 1 – 25 of 50) sorted by relevance

12

/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/offline/
DDownloadHelperTest.java41 import com.google.android.exoplayer2.trackselection.TrackSelection;
210 List<TrackSelection> selectedText0 = in getTrackSelections_returnsInitialSelection()
212 List<TrackSelection> selectedAudio0 = in getTrackSelections_returnsInitialSelection()
214 List<TrackSelection> selectedVideo0 = in getTrackSelections_returnsInitialSelection()
216 List<TrackSelection> selectedText1 = in getTrackSelections_returnsInitialSelection()
218 List<TrackSelection> selectedAudio1 = in getTrackSelections_returnsInitialSelection()
220 List<TrackSelection> selectedVideo1 = in getTrackSelections_returnsInitialSelection()
238 List<TrackSelection> selectedText0 = in getTrackSelections_afterClearTrackSelections_isEmpty()
240 List<TrackSelection> selectedAudio0 = in getTrackSelections_afterClearTrackSelections_isEmpty()
242 List<TrackSelection> selectedVideo0 = in getTrackSelections_afterClearTrackSelections_isEmpty()
[all …]
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeTrackSelector.java25 import com.google.android.exoplayer2.trackselection.TrackSelection;
55 protected TrackSelection.@NullableType Definition[] selectAllTracks( in selectAllTracks()
61 TrackSelection.@NullableType Definition[] definitions = in selectAllTracks()
62 new TrackSelection.Definition[rendererCount]; in selectAllTracks()
66 definitions[i] = hasTracks ? new TrackSelection.Definition(trackGroupArray.get(0)) : null; in selectAllTracks()
76 private static class FakeTrackSelectionFactory implements TrackSelection.Factory {
87 public TrackSelection[] createTrackSelections( in createTrackSelections()
88 TrackSelection.@NullableType Definition[] definitions, BandwidthMeter bandwidthMeter) { in createTrackSelections()
89 TrackSelection[] selections = new TrackSelection[definitions.length]; in createTrackSelections()
91 TrackSelection.Definition definition = definitions[i]; in createTrackSelections()
[all …]
DMediaPeriodAsserts.java32 import com.google.android.exoplayer2.trackselection.TrackSelection;
105 List<List<TrackSelection>> testSelections = new ArrayList<>(); in assertGetStreamKeysAndManifestFilterIntegration()
115 new TrackSelection[] { in assertGetStreamKeysAndManifestFilterIntegration()
133 new TrackSelection[] { in assertGetStreamKeysAndManifestFilterIntegration()
141 List<TrackSelection> selectionsFromAllGroups = new ArrayList<>(); in assertGetStreamKeysAndManifestFilterIntegration()
150 for (List<TrackSelection> testSelection : testSelections) { in assertGetStreamKeysAndManifestFilterIntegration()
161 for (TrackSelection trackSelection : testSelection) { in assertGetStreamKeysAndManifestFilterIntegration()
DFakeChunkSource.java30 import com.google.android.exoplayer2.trackselection.TrackSelection;
58 TrackSelection trackSelection, in createChunkSource()
73 private final TrackSelection trackSelection;
77 public FakeChunkSource(TrackSelection trackSelection, DataSource dataSource, in FakeChunkSource()
DFakeMediaPeriod.java32 import com.google.android.exoplayer2.trackselection.TrackSelection;
154 @NullableType TrackSelection[] selections, in selectTracks()
167 TrackSelection selection = selections[i]; in selectTracks()
250 long positionUs, TrackSelection selection, EventDispatcher eventDispatcher) { in createSampleStream()
DFakeAdaptiveMediaPeriod.java27 import com.google.android.exoplayer2.trackselection.TrackSelection;
87 @NullableType TrackSelection[] selections, in selectTracks()
145 long positionUs, TrackSelection trackSelection, EventDispatcher eventDispatcher) { in createSampleStream()
DFakeTrackSelection.java26 import com.google.android.exoplayer2.trackselection.TrackSelection;
33 public final class FakeTrackSelection implements TrackSelection {
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/trackselection/
DTrackSelectionUtil.java21 import com.google.android.exoplayer2.trackselection.TrackSelection.Definition;
38 TrackSelection createAdaptiveTrackSelection(Definition trackSelectionDefinition); in createAdaptiveTrackSelection()
51 public static @NullableType TrackSelection[] createTrackSelectionsForDefinitions( in createTrackSelectionsForDefinitions()
54 TrackSelection[] selections = new TrackSelection[definitions.length]; in createTrackSelectionsForDefinitions()
DTrackSelectionArray.java28 private final @NullableType TrackSelection[] trackSelections;
34 public TrackSelectionArray(@NullableType TrackSelection... trackSelections) { in TrackSelectionArray()
46 public TrackSelection get(int index) { in get()
51 public @NullableType TrackSelection[] getAll() { in getAll()
DDefaultTrackSelector.java1411 private final TrackSelection.Factory trackSelectionFactory;
1436 public DefaultTrackSelector(TrackSelection.Factory trackSelectionFactory) { in DefaultTrackSelector()
1449 public DefaultTrackSelector(Context context, TrackSelection.Factory trackSelectionFactory) { in DefaultTrackSelector()
1457 public DefaultTrackSelector(Parameters parameters, TrackSelection.Factory trackSelectionFactory) { in DefaultTrackSelector()
1509 protected final Pair<@NullableType RendererConfiguration[], @NullableType TrackSelection[]>
1517 TrackSelection.@NullableType Definition[] definitions = in selectTracks()
1536 : new TrackSelection.Definition( in selectTracks()
1545 TrackSelection[] rendererTrackSelections = in selectTracks()
1590 protected TrackSelection.@NullableType Definition[] selectAllTracks( in selectAllTracks()
1597 TrackSelection.@NullableType Definition[] definitions = in selectAllTracks()
[all …]
DTrackSelection.java37 public interface TrackSelection { interface
90 TrackSelection[] createTrackSelections( in createTrackSelections()
DFixedTrackSelection.java39 public static final class Factory implements TrackSelection.Factory {
59 public @NullableType TrackSelection[] createTrackSelections( in createTrackSelections()
DRandomTrackSelection.java37 public static final class Factory implements TrackSelection.Factory {
53 public @NullableType TrackSelection[] createTrackSelections( in createTrackSelections()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DMergingMediaPeriodTest.java28 import com.google.android.exoplayer2.trackselection.TrackSelection;
66 TrackSelection selectionForChild1 = in selectTracks_createsSampleStreamsFromChildPeriods()
68 TrackSelection selectionForChild2 = in selectTracks_createsSampleStreamsFromChildPeriods()
72 /* selections= */ new TrackSelection[] {null, selectionForChild1, selectionForChild2, null}, in selectTracks_createsSampleStreamsFromChildPeriods()
102 TrackSelection selectionForChild1 = in selectTracks_withPeriodOffsets_selectTracksWithOffset_andCreatesSampleStreamsCorrectingOffset()
104 TrackSelection selectionForChild2 = in selectTracks_withPeriodOffsets_selectTracksWithOffset_andCreatesSampleStreamsCorrectingOffset()
108 /* selections= */ new TrackSelection[] {selectionForChild1, selectionForChild2}, in selectTracks_withPeriodOffsets_selectTracksWithOffset_andCreatesSampleStreamsCorrectingOffset()
183 @NullableType TrackSelection[] selections, in selectTracks()
/external/exoplayer/tree/library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/
DSsChunkSource.java21 import com.google.android.exoplayer2.trackselection.TrackSelection;
48 TrackSelection trackSelection, in createChunkSource()
64 void updateTrackSelection(TrackSelection trackSelection); in updateTrackSelection()
DSsMediaPeriod.java33 import com.google.android.exoplayer2.trackselection.TrackSelection;
125 @NullableType TrackSelection[] selections, in selectTracks()
158 public List<StreamKey> getStreamKeys(List<TrackSelection> trackSelections) { in getStreamKeys()
161 TrackSelection trackSelection = trackSelections.get(selectionIndex); in getStreamKeys()
238 private ChunkSampleStream<SsChunkSource> buildSampleStream(TrackSelection selection, in buildSampleStream()
DDefaultSsChunkSource.java36 import com.google.android.exoplayer2.trackselection.TrackSelection;
63 TrackSelection trackSelection, in createChunkSource()
80 private TrackSelection trackSelection;
97 TrackSelection trackSelection, in DefaultSsChunkSource()
165 public void updateTrackSelection(TrackSelection trackSelection) {
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/
DDashChunkSource.java24 import com.google.android.exoplayer2.trackselection.TrackSelection;
58 TrackSelection trackSelection, in createDashChunkSource()
79 void updateTrackSelection(TrackSelection trackSelection); in updateTrackSelection()
DDashMediaPeriod.java47 import com.google.android.exoplayer2.trackselection.TrackSelection;
208 public List<StreamKey> getStreamKeys(List<TrackSelection> trackSelections) { in getStreamKeys()
211 for (TrackSelection trackSelection : trackSelections) { in getStreamKeys()
251 @NullableType TrackSelection[] selections, in selectTracks()
355 private int[] getStreamIndexToTrackGroupIndex(TrackSelection[] selections) { in getStreamIndexToTrackGroupIndex()
368 TrackSelection[] selections, boolean[] mayRetainStreamFlags, SampleStream[] streams) { in releaseDisabledStreams()
385 TrackSelection[] selections, SampleStream[] streams, int[] streamIndexToTrackGroupIndex) { in releaseOrphanEmbeddedStreams()
413 TrackSelection[] selections, in selectNewStreams()
420 TrackSelection selection = selections[i]; in selectNewStreams()
721 TrackSelection selection, long positionUs) { in buildSampleStream()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DMediaPeriod.java24 import com.google.android.exoplayer2.trackselection.TrackSelection;
101 default List<StreamKey> getStreamKeys(List<TrackSelection> trackSelections) { in getStreamKeys()
136 @NullableType TrackSelection[] selections, in selectTracks()
DMergingMediaPeriod.java24 import com.google.android.exoplayer2.trackselection.TrackSelection;
101 @NullableType TrackSelection[] selections, in selectTracks()
127 @NullableType TrackSelection[] childSelections = new TrackSelection[selections.length]; in selectTracks()
315 public List<StreamKey> getStreamKeys(List<TrackSelection> trackSelections) { in getStreamKeys()
321 @NullableType TrackSelection[] selections, in selectTracks()
DClippingMediaPeriod.java24 import com.google.android.exoplayer2.trackselection.TrackSelection;
101 @NullableType TrackSelection[] selections, in selectTracks()
253 long startUs, @NullableType TrackSelection[] selections) { in shouldKeepInitialDiscontinuity()
264 for (TrackSelection trackSelection : selections) { in shouldKeepInitialDiscontinuity()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/
DDownloadHelper.java48 import com.google.android.exoplayer2.trackselection.TrackSelection;
503 private List<TrackSelection> @MonotonicNonNull [][] trackSelectionsByPeriodAndRenderer;
504 private List<TrackSelection> @MonotonicNonNull [][] immutableTrackSelectionsByPeriodAndRenderer;
624 public List<TrackSelection> getTrackSelections(int periodIndex, int rendererIndex) { in getTrackSelections()
787 List<TrackSelection> allSelections = new ArrayList<>(); in getDownloadRequest()
809 (List<TrackSelection>[][]) new List<?>[periodCount][rendererCount]; in onMediaPrepared()
811 (List<TrackSelection>[][]) new List<?>[periodCount][rendererCount]; in onMediaPrepared()
885 @Nullable TrackSelection newSelection = trackSelectorResult.selections.get(i); in runTrackSelection()
889 List<TrackSelection> existingSelectionList = in runTrackSelection()
893 TrackSelection existingSelection = existingSelectionList.get(j); in runTrackSelection()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DMediaPeriodHolder.java25 import com.google.android.exoplayer2.trackselection.TrackSelection;
234 for (TrackSelection trackSelection : selectorResult.selections.getAll()) { in selectTracks()
362 TrackSelection trackSelection = trackSelectorResult.selections.get(i); in enableTrackSelectionsInResult()
375 TrackSelection trackSelection = trackSelectorResult.selections.get(i); in disableTrackSelectionsInResult()
/external/exoplayer/tree/playbacktests/src/androidTest/java/com/google/android/exoplayer2/playbacktests/gts/
DDashTestRunner.java51 import com.google.android.exoplayer2.trackselection.TrackSelection;
390 protected TrackSelection.Definition[] selectAllTracks( in selectAllTracks()
403 TrackSelection.Definition[] definitions = in selectAllTracks()
404 new TrackSelection.Definition[mappedTrackInfo.getRendererCount()]; in selectAllTracks()
406 new TrackSelection.Definition( in selectAllTracks()
414 new TrackSelection.Definition( in selectAllTracks()

12