Home
last modified time | relevance | path

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

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DExoPlayerFactory.java40 TrackSelector trackSelector, in newSimpleInstance() argument
45 return newSimpleInstance(context, renderersFactory, trackSelector, loadControl); in newSimpleInstance()
53 TrackSelector trackSelector, in newSimpleInstance() argument
61 return newSimpleInstance(context, renderersFactory, trackSelector, loadControl); in newSimpleInstance()
74 public static SimpleExoPlayer newSimpleInstance(Context context, TrackSelector trackSelector) { in newSimpleInstance() argument
75 return newSimpleInstance(context, new DefaultRenderersFactory(context), trackSelector); in newSimpleInstance()
82 Context context, RenderersFactory renderersFactory, TrackSelector trackSelector) { in newSimpleInstance() argument
83 return newSimpleInstance(context, renderersFactory, trackSelector, new DefaultLoadControl()); in newSimpleInstance()
90 Context context, TrackSelector trackSelector, LoadControl loadControl) { in newSimpleInstance() argument
92 return newSimpleInstance(context, renderersFactory, trackSelector, loadControl); in newSimpleInstance()
[all …]
DExoPlayer.java142 private TrackSelector trackSelector; field in ExoPlayer.Builder
207 TrackSelector trackSelector, in Builder() argument
217 this.trackSelector = trackSelector; in Builder()
261 public Builder setTrackSelector(TrackSelector trackSelector) { in setTrackSelector() argument
263 this.trackSelector = trackSelector; in setTrackSelector()
376 trackSelector, in build()
DMediaPeriodHolder.java64 private final TrackSelector trackSelector; field in MediaPeriodHolder
87 TrackSelector trackSelector, in MediaPeriodHolder() argument
94 this.trackSelector = trackSelector; in MediaPeriodHolder()
233 trackSelector.selectTracks(rendererCapabilities, getTrackGroups(), info.id, timeline); in selectTracks()
DExoPlayerImpl.java67 private final TrackSelector trackSelector; field in ExoPlayerImpl
119 TrackSelector trackSelector, in ExoPlayerImpl() argument
131 this.trackSelector = checkNotNull(trackSelector); in ExoPlayerImpl()
162 trackSelector, in ExoPlayerImpl()
965 trackSelector, in updatePlaybackInfo()
1250 private final TrackSelector trackSelector; field in ExoPlayerImpl.PlaybackInfoUpdate
1269 TrackSelector trackSelector, in PlaybackInfoUpdate() argument
1277 this.trackSelector = trackSelector; in PlaybackInfoUpdate()
1314 trackSelector.onSelectionActivated(playbackInfo.trackSelectorResult.info); in run()
DSimpleExoPlayer.java96 private TrackSelector trackSelector; field in SimpleExoPlayer.Builder
182 TrackSelector trackSelector, in Builder() argument
192 this.trackSelector = trackSelector; in Builder()
209 public Builder setTrackSelector(TrackSelector trackSelector) { in setTrackSelector() argument
211 this.trackSelector = trackSelector; in setTrackSelector()
393 builder.trackSelector, in SimpleExoPlayer()
425 TrackSelector trackSelector, in SimpleExoPlayer() argument
463 trackSelector, in SimpleExoPlayer()
DMediaPeriodQueue.java142 TrackSelector trackSelector, in enqueueNextMediaPeriodHolder() argument
157 trackSelector, in enqueueNextMediaPeriodHolder()
DExoPlayerImplInternal.java100 private final TrackSelector trackSelector; field in ExoPlayerImplInternal
142 TrackSelector trackSelector, in ExoPlayerImplInternal() argument
152 this.trackSelector = trackSelector; in ExoPlayerImplInternal()
177 trackSelector.init(/* listener= */ this, bandwidthMeter); in ExoPlayerImplInternal()
1689 trackSelector,
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/trackselection/
DDefaultTrackSelectorTest.java117 private DefaultTrackSelector trackSelector; field in DefaultTrackSelectorTest
130 trackSelector = new DefaultTrackSelector(context); in setUp()
131 trackSelector.init(invalidationListener, bandwidthMeter); in setUp()
211 trackSelector.setParameters( in selectTracksWithNullOverride()
212 trackSelector in selectTracksWithNullOverride()
216 trackSelector.selectTracks(RENDERER_CAPABILITIES, TRACK_GROUPS, periodId, TIMELINE); in selectTracksWithNullOverride()
225 trackSelector.setParameters( in selectTracksWithClearedNullOverride()
226 trackSelector in selectTracksWithClearedNullOverride()
231 trackSelector.selectTracks(RENDERER_CAPABILITIES, TRACK_GROUPS, periodId, TIMELINE); in selectTracksWithClearedNullOverride()
240 trackSelector.setParameters( in selectTracksWithNullOverrideForDifferentTracks()
[all …]
DMappingTrackSelectorTest.java67 FakeMappingTrackSelector trackSelector = new FakeMappingTrackSelector(); in selectTracks_audioAndVideo_sameOrderAsRenderers_mappedToCorrectRenderer() local
72 trackSelector.selectTracks(rendererCapabilities, trackGroups, periodId, TIMELINE); in selectTracks_audioAndVideo_sameOrderAsRenderers_mappedToCorrectRenderer()
74 trackSelector.assertMappedTrackGroups(/* rendererIndex= */ 0, VIDEO_TRACK_GROUP); in selectTracks_audioAndVideo_sameOrderAsRenderers_mappedToCorrectRenderer()
75 trackSelector.assertMappedTrackGroups(/* rendererIndex= */ 1, AUDIO_TRACK_GROUP); in selectTracks_audioAndVideo_sameOrderAsRenderers_mappedToCorrectRenderer()
81 FakeMappingTrackSelector trackSelector = new FakeMappingTrackSelector(); in selectTracks_audioAndVideo_reverseOrderToRenderers_mappedToCorrectRenderer() local
86 trackSelector.selectTracks(reverseOrderRendererCapabilities, trackGroups, periodId, TIMELINE); in selectTracks_audioAndVideo_reverseOrderToRenderers_mappedToCorrectRenderer()
88 trackSelector.assertMappedTrackGroups(/* rendererIndex= */ 0, AUDIO_TRACK_GROUP); in selectTracks_audioAndVideo_reverseOrderToRenderers_mappedToCorrectRenderer()
89 trackSelector.assertMappedTrackGroups(/* rendererIndex= */ 1, VIDEO_TRACK_GROUP); in selectTracks_audioAndVideo_reverseOrderToRenderers_mappedToCorrectRenderer()
95 FakeMappingTrackSelector trackSelector = new FakeMappingTrackSelector(); in selectTracks_multipleVideoAndAudioTracks_mappedToSameRenderer() local
104 trackSelector.selectTracks(rendererCapabilities, trackGroups, periodId, TIMELINE); in selectTracks_multipleVideoAndAudioTracks_mappedToSameRenderer()
[all …]
DTrackSelectorTest.java38 private TrackSelector trackSelector; field in TrackSelectorTest
42 trackSelector = in setUp()
62 trackSelector.getBandwidthMeter(); in getBandwidthMeter_beforeInitialization_throwsException()
73 trackSelector.init(invalidationListener, bandwidthMeter); in getBandwidthMeter_afterInitialization_returnsProvidedBandwidthMeter()
75 assertThat(trackSelector.getBandwidthMeter()).isEqualTo(bandwidthMeter); in getBandwidthMeter_afterInitialization_returnsProvidedBandwidthMeter()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DAction.java75 DefaultTrackSelector trackSelector, in doActionAndScheduleNext() argument
82 doActionAndScheduleNextImpl(player, trackSelector, surface, handler, nextAction); in doActionAndScheduleNext()
99 DefaultTrackSelector trackSelector, in doActionAndScheduleNextImpl() argument
103 doActionImpl(player, trackSelector, surface); in doActionAndScheduleNextImpl()
105 nextAction.schedule(player, trackSelector, surface, handler); in doActionAndScheduleNextImpl()
119 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface); in doActionImpl() argument
159 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument
197 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument
218 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument
243 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument
[all …]
DExoHostedTest.java72 private @MonotonicNonNull DefaultTrackSelector trackSelector; field in ExoHostedTest
123 schedule.start(player, trackSelector, surface, actionHandler, /* callback= */ null); in setSchedule()
133 trackSelector = buildTrackSelector(host); in onStart()
135 player = buildExoPlayer(host, surface, trackSelector); in onStart()
138 player.addAnalyticsListener(new EventLogger(trackSelector, tag)); in onStart()
142 pendingSchedule.start(player, trackSelector, surface, actionHandler, /* callback= */ null); in onStart()
247 HostActivity host, Surface surface, MappingTrackSelector trackSelector) { in buildExoPlayer() argument
253 .setTrackSelector(trackSelector) in buildExoPlayer()
285 Util.castNonNull(trackSelector); in isStarted()
DTestExoPlayer.java77 private DefaultTrackSelector trackSelector; field in TestExoPlayer.Builder
89 trackSelector = new DefaultTrackSelector(context); in Builder()
121 public Builder setTrackSelector(DefaultTrackSelector trackSelector) { in setTrackSelector() argument
122 Assertions.checkNotNull(trackSelector); in setTrackSelector()
123 this.trackSelector = trackSelector; in setTrackSelector()
129 return trackSelector; in getTrackSelector()
293 .setTrackSelector(trackSelector) in build()
DActionSchedule.java100 DefaultTrackSelector trackSelector, in start() argument
105 rootNode.schedule(player, trackSelector, surface, mainHandler); in start()
675 private @MonotonicNonNull DefaultTrackSelector trackSelector; field in ActionSchedule.ActionNode
719 DefaultTrackSelector trackSelector, in schedule() argument
723 this.trackSelector = trackSelector; in schedule()
737 Assertions.checkStateNotNull(trackSelector), in run()
747 player, trackSelector, surface, mainHandler, /* nextAction= */ null); in run()
768 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument
791 DefaultTrackSelector trackSelector, in doActionAndScheduleNextImpl() argument
804 SimpleExoPlayer player, DefaultTrackSelector trackSelector, @Nullable Surface surface) { in doActionImpl() argument
DExoPlayerTestRunner.java216 public Builder setTrackSelector(DefaultTrackSelector trackSelector) { in setTrackSelector() argument
217 testPlayerBuilder.setTrackSelector(trackSelector); in setTrackSelector()
/external/exoplayer/tree/demos/main/src/main/java/com/google/android/exoplayer2/demo/
DPlayerActivity.java97 private DefaultTrackSelector trackSelector; field in PlayerActivity
269 && TrackSelectionDialog.willHaveContent(trackSelector)) { in onClick()
273 trackSelector, in onClick()
321 trackSelector = new DefaultTrackSelector(/* context= */ this, trackSelectionFactory); in initializePlayer()
322 trackSelector.setParameters(trackSelectorParameters); in initializePlayer()
330 .setTrackSelector(trackSelector) in initializePlayer()
335 player.addAnalyticsListener(new EventLogger(trackSelector)); in initializePlayer()
405 trackSelector = null; in releasePlayer()
422 if (trackSelector != null) { in updateTrackSelectorParameters()
423 trackSelectorParameters = trackSelector.getParameters(); in updateTrackSelectorParameters()
[all …]
DTrackSelectionDialog.java61 public static boolean willHaveContent(DefaultTrackSelector trackSelector) { in willHaveContent() argument
62 MappedTrackInfo mappedTrackInfo = trackSelector.getCurrentMappedTrackInfo(); in willHaveContent()
88 DefaultTrackSelector trackSelector, DialogInterface.OnDismissListener onDismissListener) { in createForTrackSelector() argument
90 Assertions.checkNotNull(trackSelector.getCurrentMappedTrackInfo()); in createForTrackSelector()
92 DefaultTrackSelector.Parameters parameters = trackSelector.getParameters(); in createForTrackSelector()
116 trackSelector.setParameters(builder); in createForTrackSelector()
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DTrackSelectionDialogBuilder.java97 Context context, CharSequence title, DefaultTrackSelector trackSelector, int rendererIndex) { in TrackSelectionDialogBuilder() argument
100 this.mappedTrackInfo = Assertions.checkNotNull(trackSelector.getCurrentMappedTrackInfo()); in TrackSelectionDialogBuilder()
104 DefaultTrackSelector.Parameters selectionParameters = trackSelector.getParameters(); in TrackSelectionDialogBuilder()
112 trackSelector.setParameters( in TrackSelectionDialogBuilder()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DEventLogger.java61 @Nullable private final MappingTrackSelector trackSelector; field in EventLogger
73 public EventLogger(@Nullable MappingTrackSelector trackSelector) { in EventLogger() argument
74 this(trackSelector, DEFAULT_TAG); in EventLogger()
84 public EventLogger(@Nullable MappingTrackSelector trackSelector, String tag) { in EventLogger() argument
85 this.trackSelector = trackSelector; in EventLogger()
208 trackSelector != null ? trackSelector.getCurrentMappedTrackInfo() : null; in onTracksChanged()
/external/exoplayer/tree/demos/cast/src/main/java/com/google/android/exoplayer2/castdemo/
DPlayerManager.java67 private final DefaultTrackSelector trackSelector; field in PlayerManager
98 trackSelector = new DefaultTrackSelector(context); in PlayerManager()
99 exoPlayer = new SimpleExoPlayer.Builder(context).setTrackSelector(trackSelector).build(); in PlayerManager()
249 trackSelector.getCurrentMappedTrackInfo(); in onTracksChanged()
/external/exoplayer/tree/playbacktests/src/androidTest/java/com/google/android/exoplayer2/playbacktests/gts/
DDashTestRunner.java205 private final DashTestTrackSelector trackSelector; field in DashTestRunner.DashHostedTest
247 trackSelector = new DashTestTrackSelector(tag, audioFormat, videoFormats, in DashHostedTest()
256 return trackSelector; in buildTrackSelector()
291 HostActivity host, Surface surface, MappingTrackSelector trackSelector) { in buildExoPlayer() argument
294 .setTrackSelector(trackSelector) in buildExoPlayer()
358 if (trackSelector.includedAdditionalVideoFormats) { in assertPassed()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/offline/
DDownloadHelper.java492 private final DefaultTrackSelector trackSelector; field in DownloadHelper
530 this.trackSelector = in DownloadHelper()
534 trackSelector.init(/* listener= */ () -> {}, new DummyBandwidthMeter()); in DownloadHelper()
667 trackSelector.setParameters(trackSelectorParameters); in addTrackSelection()
824 trackSelector.onSelectionActivated(trackSelectorResult.info); in onMediaPrepared()
825 mappedTrackInfos[i] = Assertions.checkNotNull(trackSelector.getCurrentMappedTrackInfo()); in onMediaPrepared()
879 trackSelector.selectTracks( in runTrackSelection()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DMediaPeriodQueueTest.java64 private TrackSelector trackSelector; field in MediaPeriodQueueTest
75 trackSelector = mock(TrackSelector.class); in setUp()
468 trackSelector, in enqueueNext()
DExoPlayerTest.java685 FakeTrackSelector trackSelector = new FakeTrackSelector(); in allActivatedTrackSelectionAreReleasedForSinglePeriod() local
690 .setTrackSelector(trackSelector) in allActivatedTrackSelectionAreReleasedForSinglePeriod()
695 List<FakeTrackSelection> createdTrackSelections = trackSelector.getAllTrackSelections(); in allActivatedTrackSelectionAreReleasedForSinglePeriod()
715 FakeTrackSelector trackSelector = new FakeTrackSelector(); in allActivatedTrackSelectionAreReleasedForMultiPeriods() local
720 .setTrackSelector(trackSelector) in allActivatedTrackSelectionAreReleasedForMultiPeriods()
725 List<FakeTrackSelection> createdTrackSelections = trackSelector.getAllTrackSelections(); in allActivatedTrackSelectionAreReleasedForMultiPeriods()
745 final FakeTrackSelector trackSelector = new FakeTrackSelector(); in allActivatedTrackSelectionAreReleasedWhenTrackSelectionsAreRemade() local
757 .setTrackSelector(trackSelector) in allActivatedTrackSelectionAreReleasedWhenTrackSelectionsAreRemade()
763 List<FakeTrackSelection> createdTrackSelections = trackSelector.getAllTrackSelections(); in allActivatedTrackSelectionAreReleasedWhenTrackSelectionsAreRemade()
784 final FakeTrackSelector trackSelector = in allActivatedTrackSelectionAreReleasedWhenTrackSelectionsAreReused() local
[all …]
/external/exoplayer/tree/extensions/ima/src/androidTest/java/com/google/android/exoplayer2/ext/ima/
DImaPlaybackTest.java161 HostActivity host, Surface surface, MappingTrackSelector trackSelector) { in buildExoPlayer() argument
162 player = super.buildExoPlayer(host, surface, trackSelector); in buildExoPlayer()