Home
last modified time | relevance | path

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

12

/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/upstream/
DBaseDataSourceTest.java35 TestTransferListener transferListener = new TestTransferListener(); in dataTransfer_withLocalSource_isReported() local
36 testSource.addTransferListener(transferListener); in dataTransfer_withLocalSource_isReported()
43 assertThat(transferListener.lastTransferInitializingSource).isSameInstanceAs(testSource); in dataTransfer_withLocalSource_isReported()
44 assertThat(transferListener.lastTransferStartSource).isSameInstanceAs(testSource); in dataTransfer_withLocalSource_isReported()
45 assertThat(transferListener.lastBytesTransferredSource).isSameInstanceAs(testSource); in dataTransfer_withLocalSource_isReported()
46 assertThat(transferListener.lastTransferEndSource).isSameInstanceAs(testSource); in dataTransfer_withLocalSource_isReported()
48 assertThat(transferListener.lastTransferInitializingDataSpec).isEqualTo(dataSpec); in dataTransfer_withLocalSource_isReported()
49 assertThat(transferListener.lastTransferStartDataSpec).isEqualTo(dataSpec); in dataTransfer_withLocalSource_isReported()
50 assertThat(transferListener.lastBytesTransferredDataSpec).isEqualTo(dataSpec); in dataTransfer_withLocalSource_isReported()
51 assertThat(transferListener.lastTransferEndDataSpec).isEqualTo(dataSpec); in dataTransfer_withLocalSource_isReported()
[all …]
/external/exoplayer/tree/extensions/cronet/src/main/java/com/google/android/exoplayer2/ext/cronet/
DCronetDataSourceFactory.java46 @Nullable private final TransferListener transferListener; field in CronetDataSourceFactory
199 @Nullable TransferListener transferListener, in CronetDataSourceFactory() argument
204 transferListener, in CronetDataSourceFactory()
229 @Nullable TransferListener transferListener, in CronetDataSourceFactory() argument
234 transferListener, in CronetDataSourceFactory()
240 transferListener, in CronetDataSourceFactory()
263 @Nullable TransferListener transferListener, in CronetDataSourceFactory() argument
271 transferListener, in CronetDataSourceFactory()
276 userAgent, transferListener, connectTimeoutMs, readTimeoutMs, resetTimeoutOnRedirects)); in CronetDataSourceFactory()
297 @Nullable TransferListener transferListener, in CronetDataSourceFactory() argument
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DDefaultDataSource.java137 public void addTransferListener(TransferListener transferListener) { in addTransferListener() argument
138 baseDataSource.addTransferListener(transferListener); in addTransferListener()
139 transferListeners.add(transferListener); in addTransferListener()
140 maybeAddListenerToDataSource(fileDataSource, transferListener); in addTransferListener()
141 maybeAddListenerToDataSource(assetDataSource, transferListener); in addTransferListener()
142 maybeAddListenerToDataSource(contentDataSource, transferListener); in addTransferListener()
143 maybeAddListenerToDataSource(rtmpDataSource, transferListener); in addTransferListener()
144 maybeAddListenerToDataSource(udpDataSource, transferListener); in addTransferListener()
145 maybeAddListenerToDataSource(dataSchemeDataSource, transferListener); in addTransferListener()
146 maybeAddListenerToDataSource(rawResourceDataSource, transferListener); in addTransferListener()
DBaseDataSource.java49 public final void addTransferListener(TransferListener transferListener) { in addTransferListener() argument
50 if (!listeners.contains(transferListener)) { in addTransferListener()
51 listeners.add(transferListener); in addTransferListener()
DPriorityDataSource.java57 public void addTransferListener(TransferListener transferListener) { in addTransferListener() argument
58 upstream.addTransferListener(transferListener); in addTransferListener()
DResolvingDataSource.java97 public void addTransferListener(TransferListener transferListener) { in addTransferListener() argument
98 upstreamDataSource.addTransferListener(transferListener); in addTransferListener()
DTeeDataSource.java47 public void addTransferListener(TransferListener transferListener) { in addTransferListener() argument
48 upstream.addTransferListener(transferListener); in addTransferListener()
DStatsDataSource.java74 public void addTransferListener(TransferListener transferListener) { in addTransferListener() argument
75 dataSource.addTransferListener(transferListener); in addTransferListener()
DDummyDataSource.java35 public void addTransferListener(TransferListener transferListener) { in addTransferListener() argument
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DFakeAdaptiveMediaPeriod.java47 @Nullable private final TransferListener transferListener; field in FakeAdaptiveMediaPeriod
60 @Nullable TransferListener transferListener) { in FakeAdaptiveMediaPeriod() argument
64 this.transferListener = transferListener; in FakeAdaptiveMediaPeriod()
147 chunkSourceFactory.createChunkSource(trackSelection, durationUs, transferListener); in createSampleStream()
DFakeAdaptiveMediaSource.java50 @Nullable TransferListener transferListener) { in createFakeMediaPeriod() argument
58 transferListener); in createFakeMediaPeriod()
DFakeMediaSource.java81 @Nullable private TransferListener transferListener; field in FakeMediaSource
138 transferListener = mediaTransferListener; in prepareSourceInternal()
162 createFakeMediaPeriod(id, trackGroupArray, allocator, eventDispatcher, transferListener); in createPeriod()
246 @Nullable TransferListener transferListener) { in createFakeMediaPeriod() argument
DFakeChunkSource.java60 @Nullable TransferListener transferListener) { in createChunkSource() argument
65 if (transferListener != null) { in createChunkSource()
66 dataSource.addTransferListener(transferListener); in createChunkSource()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DSingleSampleMediaPeriod.java56 @Nullable private final TransferListener transferListener; field in SingleSampleMediaPeriod
76 @Nullable TransferListener transferListener, in SingleSampleMediaPeriod() argument
84 this.transferListener = transferListener; in SingleSampleMediaPeriod()
154 if (transferListener != null) { in continueLoading()
155 dataSource.addTransferListener(transferListener); in continueLoading()
DProgressiveMediaSource.java220 @Nullable private TransferListener transferListener; field in ProgressiveMediaSource
252 transferListener = mediaTransferListener; in prepareSourceInternal()
265 if (transferListener != null) { in createPeriod()
266 dataSource.addTransferListener(transferListener); in createPeriod()
DIcyDataSource.java69 public void addTransferListener(TransferListener transferListener) { in addTransferListener() argument
70 upstream.addTransferListener(transferListener); in addTransferListener()
DSingleSampleMediaSource.java188 @Nullable private TransferListener transferListener; field in SingleSampleMediaSource
311 transferListener = mediaTransferListener; in prepareSourceInternal()
325 transferListener, in createPeriod()
/external/exoplayer/tree/library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/
DSsMediaPeriod.java48 @Nullable private final TransferListener transferListener; field in SsMediaPeriod
66 @Nullable TransferListener transferListener, in SsMediaPeriod() argument
75 this.transferListener = transferListener; in SsMediaPeriod()
247 transferListener); in buildSampleStream()
DSsChunkSource.java49 @Nullable TransferListener transferListener); in createChunkSource() argument
DDefaultSsChunkSource.java64 @Nullable TransferListener transferListener) { in createChunkSource() argument
66 if (transferListener != null) { in createChunkSource()
67 dataSource.addTransferListener(transferListener); in createChunkSource()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/crypto/
DAesCipherDataSource.java47 public void addTransferListener(TransferListener transferListener) { in addTransferListener() argument
48 upstream.addTransferListener(transferListener); in addTransferListener()
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/
DAes128DataSource.java68 public final void addTransferListener(TransferListener transferListener) { in addTransferListener() argument
69 upstream.addTransferListener(transferListener); in addTransferListener()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/upstream/
DDataSource.java45 void addTransferListener(TransferListener transferListener); in addTransferListener() argument
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/
DDashChunkSource.java64 @Nullable TransferListener transferListener); in createDashChunkSource() argument
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/
DCacheDataSource.java544 public void addTransferListener(TransferListener transferListener) { in addTransferListener() argument
545 cacheReadDataSource.addTransferListener(transferListener); in addTransferListener()
546 upstreamDataSource.addTransferListener(transferListener); in addTransferListener()

12