/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/util/ |
D | MediaSourceEventDispatcherTest.java | 56 private MediaSourceEventDispatcher eventDispatcher; field in MediaSourceEventDispatcherTest 60 eventDispatcher = new MediaSourceEventDispatcher(); in setupEventDispatcher() 61 eventDispatcher = in setupEventDispatcher() 62 eventDispatcher.withParameters(WINDOW_INDEX, MEDIA_PERIOD_ID, MEDIA_TIME_OFFSET_MS); in setupEventDispatcher() 67 eventDispatcher.addEventListener( in listenerReceivesEventPopulatedWithMediaPeriodInfo() 70 eventDispatcher.dispatch( in listenerReceivesEventPopulatedWithMediaPeriodInfo() 78 eventDispatcher.addEventListener( in sameListenerObjectRegisteredTwiceOnlyReceivesEventsOnce() 80 eventDispatcher.addEventListener( in sameListenerObjectRegisteredTwiceOnlyReceivesEventsOnce() 83 eventDispatcher.dispatch( in sameListenerObjectRegisteredTwiceOnlyReceivesEventsOnce() 91 eventDispatcher.addEventListener( in sameListenerInstanceCanBeRegisteredWithTwoTypes() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/drm/ |
D | OfflineLicenseHelper.java | 42 private final MediaSourceEventDispatcher eventDispatcher; field in OfflineLicenseHelper 58 MediaSourceEventDispatcher eventDispatcher) { in newWidevineInstance() argument 63 eventDispatcher); in newWidevineInstance() 83 MediaSourceEventDispatcher eventDispatcher) { in newWidevineInstance() argument 89 eventDispatcher); in newWidevineInstance() 112 MediaSourceEventDispatcher eventDispatcher) { in newWidevineInstance() argument 119 eventDispatcher); in newWidevineInstance() 132 MediaSourceEventDispatcher eventDispatcher) { in OfflineLicenseHelper() argument 138 eventDispatcher); in OfflineLicenseHelper() 150 MediaSourceEventDispatcher eventDispatcher) { in OfflineLicenseHelper() argument [all …]
|
D | DefaultDrmSession.java | 260 public void acquire(@Nullable MediaSourceEventDispatcher eventDispatcher) { in acquire() argument 262 if (eventDispatcher != null) { in acquire() 263 eventDispatchers.add(eventDispatcher); in acquire() 276 if (eventDispatcher != null) { in acquire() 277 eventDispatcher.dispatch( in acquire() 285 public void release(@Nullable MediaSourceEventDispatcher eventDispatcher) { in release() argument 305 if (eventDispatcher != null) { in release() 306 eventDispatchers.remove(eventDispatcher); in release() 512 for (MediaSourceEventDispatcher eventDispatcher : eventDispatchers.elementSet()) { in dispatchEvent() 513 eventDispatcher.dispatch(event, DrmSessionEventListener.class); in dispatchEvent()
|
D | ErrorStateDrmSession.java | 67 public void acquire(@Nullable MediaSourceEventDispatcher eventDispatcher) { in acquire() argument 72 public void release(@Nullable MediaSourceEventDispatcher eventDispatcher) { in release() argument
|
D | DrmSessionManager.java | 44 @Nullable MediaSourceEventDispatcher eventDispatcher, 117 @Nullable MediaSourceEventDispatcher eventDispatcher, in acquireSession() argument
|
D | DrmSession.java | 142 void acquire(@Nullable MediaSourceEventDispatcher eventDispatcher); in acquire() argument 152 void release(@Nullable MediaSourceEventDispatcher eventDispatcher); in release() argument
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | CompositeMediaSource.java | 225 private EventDispatcher eventDispatcher; field in CompositeMediaSource.ForwardingEventListener 228 this.eventDispatcher = createEventDispatcher(/* mediaPeriodId= */ null); in ForwardingEventListener() 238 Assertions.checkNotNull(eventDispatcher.mediaPeriodId))) { in onMediaPeriodCreated() 239 eventDispatcher.mediaPeriodCreated(); in onMediaPeriodCreated() 248 Assertions.checkNotNull(eventDispatcher.mediaPeriodId))) { in onMediaPeriodReleased() 249 eventDispatcher.mediaPeriodReleased(); in onMediaPeriodReleased() 261 eventDispatcher.loadStarted(loadEventData, maybeUpdateMediaLoadData(mediaLoadData)); in onLoadStarted() 272 eventDispatcher.loadCompleted(loadEventData, maybeUpdateMediaLoadData(mediaLoadData)); in onLoadCompleted() 283 eventDispatcher.loadCanceled(loadEventData, maybeUpdateMediaLoadData(mediaLoadData)); in onLoadCanceled() 296 eventDispatcher.loadError( in onLoadError() [all …]
|
D | BaseMediaSource.java | 40 private final MediaSourceEventListener.EventDispatcher eventDispatcher; field in BaseMediaSource 48 eventDispatcher = new MediaSourceEventListener.EventDispatcher(); in BaseMediaSource() 97 return eventDispatcher.withParameters( in createEventDispatcher() 112 return eventDispatcher.withParameters(/* windowIndex= */ 0, mediaPeriodId, mediaTimeOffsetMs); in createEventDispatcher() 127 return eventDispatcher.withParameters(windowIndex, mediaPeriodId, mediaTimeOffsetMs); in createEventDispatcher() 165 eventDispatcher.addEventListener(handler, eventListener, listenerClass); in addEventListenerInternal() 174 eventDispatcher.removeEventListener(eventListener, listenerClass); in removeEventListenerInternal()
|
D | SingleSampleMediaPeriod.java | 58 private final EventDispatcher eventDispatcher; field in SingleSampleMediaPeriod 80 EventDispatcher eventDispatcher, in SingleSampleMediaPeriod() argument 88 this.eventDispatcher = eventDispatcher; in SingleSampleMediaPeriod() 93 eventDispatcher.mediaPeriodCreated(); in SingleSampleMediaPeriod() 98 eventDispatcher.mediaPeriodReleased(); in release() 162 eventDispatcher.loadStarted( in continueLoading() 182 eventDispatcher.readingStarted(); in readDiscontinuity() 220 eventDispatcher.loadCompleted( in onLoadCompleted() 241 eventDispatcher.loadCanceled( in onLoadCanceled() 284 eventDispatcher.loadError( in onLoadError() [all …]
|
D | ProgressiveMediaPeriod.java | 102 private final EventDispatcher eventDispatcher; field in ProgressiveMediaPeriod 166 EventDispatcher eventDispatcher, in ProgressiveMediaPeriod() argument 175 this.eventDispatcher = eventDispatcher; in ProgressiveMediaPeriod() 198 eventDispatcher.mediaPeriodCreated(); in ProgressiveMediaPeriod() 213 eventDispatcher.mediaPeriodReleased(); in release() 368 eventDispatcher.readingStarted(); in readDiscontinuity() 510 eventDispatcher.downstreamFormatChanged( in maybeNotifyDownstreamFormat() 556 eventDispatcher.loadCompleted( in onLoadCompleted() 580 eventDispatcher.loadCanceled( in onLoadCanceled() 629 eventDispatcher.loadError( in onLoadError() [all …]
|
D | SampleQueue.java | 60 private final MediaSourceEventDispatcher eventDispatcher; field in SampleQueue 108 MediaSourceEventDispatcher eventDispatcher) { in SampleQueue() argument 111 this.eventDispatcher = eventDispatcher; in SampleQueue() 665 currentDrmSession.release(eventDispatcher); in releaseDrmSessionReferences() 808 ? drmSessionManager.acquireSession(playbackLooper, eventDispatcher, newDrmInitData) in onFormatResult() 814 previousSession.release(eventDispatcher); in onFormatResult()
|
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/ |
D | FakeVideoRenderer.java | 33 private final VideoRendererEventListener.EventDispatcher eventDispatcher; field in FakeVideoRenderer 43 eventDispatcher = new VideoRendererEventListener.EventDispatcher(handler, eventListener); in FakeVideoRenderer() 51 eventDispatcher.enabled(decoderCounters); in onEnabled() 68 eventDispatcher.droppedFrames(/* droppedFrameCount= */ 0, /* elapsedMs= */ 0); in onStopped() 69 eventDispatcher.reportVideoFrameProcessingOffset( in onStopped() 78 eventDispatcher.disabled(decoderCounters); in onDisabled() 89 eventDispatcher.inputFormatChanged(format); in onFormatChanged() 90 eventDispatcher.decoderInitialized( in onFormatChanged() 107 eventDispatcher.videoSizeChanged( in shouldProcessBuffer() 109 eventDispatcher.renderedFirstFrame(/* surface= */ null); in shouldProcessBuffer()
|
D | FakeMediaPeriod.java | 52 private final EventDispatcher eventDispatcher; field in FakeMediaPeriod 67 public FakeMediaPeriod(TrackGroupArray trackGroupArray, EventDispatcher eventDispatcher) { in FakeMediaPeriod() argument 68 this(trackGroupArray, eventDispatcher, /* deferOnPrepared */ false); in FakeMediaPeriod() 79 TrackGroupArray trackGroupArray, EventDispatcher eventDispatcher, boolean deferOnPrepared) { in FakeMediaPeriod() argument 81 this.eventDispatcher = eventDispatcher; in FakeMediaPeriod() 85 eventDispatcher.mediaPeriodCreated(); in FakeMediaPeriod() 119 eventDispatcher.mediaPeriodReleased(); in release() 124 eventDispatcher.loadStarted( in prepare() 174 streams[i] = createSampleStream(positionUs, selection, eventDispatcher); in selectTracks() 196 eventDispatcher.readingStarted(); in readDiscontinuity() [all …]
|
D | FakeAudioRenderer.java | 30 private final AudioRendererEventListener.EventDispatcher eventDispatcher; field in FakeAudioRenderer 36 eventDispatcher = new AudioRendererEventListener.EventDispatcher(handler, eventListener); in FakeAudioRenderer() 44 eventDispatcher.enabled(decoderCounters); in onEnabled() 51 eventDispatcher.disabled(decoderCounters); in onDisabled() 56 eventDispatcher.inputFormatChanged(format); in onFormatChanged() 57 eventDispatcher.decoderInitialized( in onFormatChanged() 67 eventDispatcher.audioSessionId(/* audioSessionId= */ 1); in shouldProcessBuffer()
|
D | FakeSampleStream.java | 91 @Nullable private final EventDispatcher eventDispatcher; field in FakeSampleStream 107 Format format, @Nullable EventDispatcher eventDispatcher, boolean shouldOutputSample) { in FakeSampleStream() argument 110 eventDispatcher, in FakeSampleStream() 132 @Nullable EventDispatcher eventDispatcher, in FakeSampleStream() argument 137 this.eventDispatcher = eventDispatcher; in FakeSampleStream() 219 if (eventDispatcher != null) { in notifyEventDispatcher() 220 eventDispatcher.downstreamFormatChanged( in notifyEventDispatcher()
|
D | FakeMediaSource.java | 159 EventDispatcher eventDispatcher = in createPeriod() local 162 createFakeMediaPeriod(id, trackGroupArray, allocator, eventDispatcher, transferListener); in createPeriod() 245 EventDispatcher eventDispatcher, in createFakeMediaPeriod() argument 247 return new FakeMediaPeriod(trackGroupArray, eventDispatcher); in createFakeMediaPeriod() 263 EventDispatcher eventDispatcher = createEventDispatcher(/* mediaPeriodId= */ null); in finishSourcePreparation() local 264 eventDispatcher.loadStarted( in finishSourcePreparation() 273 eventDispatcher.loadCompleted( in finishSourcePreparation()
|
D | FakeAdaptiveMediaPeriod.java | 56 EventDispatcher eventDispatcher, in FakeAdaptiveMediaPeriod() argument 61 super(trackGroupArray, eventDispatcher); in FakeAdaptiveMediaPeriod() 145 long positionUs, TrackSelection trackSelection, EventDispatcher eventDispatcher) { in createSampleStream() argument 158 eventDispatcher); in createSampleStream()
|
D | FakeAdaptiveMediaSource.java | 49 EventDispatcher eventDispatcher, in createFakeMediaPeriod() argument 54 eventDispatcher, in createFakeMediaPeriod()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | MediaSourceList.java | 72 private final MediaSourceEventListener.EventDispatcher eventDispatcher; field in MediaSourceList 88 eventDispatcher = new MediaSourceEventListener.EventDispatcher(); in MediaSourceList() 251 eventDispatcher.addEventListener(handler, analyticsCollector, MediaSourceEventListener.class); in setAnalyticsCollector() 252 eventDispatcher.addEventListener(handler, analyticsCollector, DrmSessionEventListener.class); in setAnalyticsCollector() 598 private EventDispatcher eventDispatcher; field in MediaSourceList.ForwardingEventListener 601 eventDispatcher = MediaSourceList.this.eventDispatcher; in ForwardingEventListener() 610 eventDispatcher.mediaPeriodCreated(); in onMediaPeriodCreated() 617 eventDispatcher.mediaPeriodReleased(); in onMediaPeriodReleased() 628 eventDispatcher.loadStarted(loadEventData, mediaLoadData); in onLoadStarted() 639 eventDispatcher.loadCompleted(loadEventData, mediaLoadData); in onLoadCompleted() [all …]
|
/external/exoplayer/tree/library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/ |
D | SsMediaPeriod.java | 52 private final EventDispatcher eventDispatcher; field in SsMediaPeriod 70 EventDispatcher eventDispatcher, in SsMediaPeriod() argument 79 this.eventDispatcher = eventDispatcher; in SsMediaPeriod() 86 eventDispatcher.mediaPeriodCreated(); in SsMediaPeriod() 102 eventDispatcher.mediaPeriodReleased(); in release() 200 eventDispatcher.readingStarted(); in readDiscontinuity() 258 eventDispatcher); in buildSampleStream()
|
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/playlist/ |
D | DefaultHlsPlaylistTracker.java | 62 @Nullable private EventDispatcher eventDispatcher; field in DefaultHlsPlaylistTracker 120 EventDispatcher eventDispatcher, in start() argument 123 this.eventDispatcher = eventDispatcher; in start() 138 eventDispatcher.loadStarted( in start() 244 eventDispatcher.loadCompleted( in onLoadCompleted() 261 eventDispatcher.loadCanceled( in onLoadCanceled() 283 eventDispatcher.loadError( in onLoadError() 526 eventDispatcher.loadCompleted( in onLoadCompleted() 546 eventDispatcher.loadCanceled( in onLoadCanceled() 589 eventDispatcher.loadError( in onLoadError() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/chunk/ |
D | ChunkSampleStream.java | 72 private final EventDispatcher eventDispatcher; field in ChunkSampleStream 117 EventDispatcher eventDispatcher) { in ChunkSampleStream() argument 123 this.eventDispatcher = eventDispatcher; in ChunkSampleStream() 141 eventDispatcher); in ChunkSampleStream() 151 eventDispatcher); in ChunkSampleStream() 408 eventDispatcher.loadCompleted( in onLoadCompleted() 429 eventDispatcher.loadCanceled( in onLoadCanceled() 498 eventDispatcher.loadError( in onLoadError() 570 eventDispatcher.loadStarted( in continueLoading() 625 eventDispatcher.upstreamDiscarded(primaryTrackType, firstRemovedChunk.startTimeUs, endTimeUs); in reevaluateBuffer() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/video/ |
D | DecoderVideoRenderer.java | 92 private final EventDispatcher eventDispatcher; field in DecoderVideoRenderer 158 eventDispatcher = new EventDispatcher(eventHandler, eventListener); in DecoderVideoRenderer() 257 eventDispatcher.enabled(decoderCounters); in onEnabled() 303 eventDispatcher.disabled(decoderCounters); in onDisabled() 329 eventDispatcher.decoderInitialized(name, initializedTimestampMs, initializationDurationMs); in onDecoderInitialized() 395 eventDispatcher.inputFormatChanged(inputFormat); in onInputFormatChanged() 920 eventDispatcher.renderedFirstFrame(surface); in maybeNotifyRenderedFirstFrame() 926 eventDispatcher.renderedFirstFrame(surface); in maybeRenotifyRenderedFirstFrame() 939 eventDispatcher.videoSizeChanged( in maybeNotifyVideoSizeChanged() 946 eventDispatcher.videoSizeChanged( in maybeRenotifyVideoSizeChanged() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/ |
D | DecoderAudioRenderer.java | 99 private final EventDispatcher eventDispatcher; field in DecoderAudioRenderer 176 eventDispatcher = new EventDispatcher(eventHandler, eventListener); in DecoderAudioRenderer() 508 eventDispatcher.enabled(decoderCounters); in onEnabled() 551 eventDispatcher.disabled(decoderCounters); in onDisabled() 609 eventDispatcher.decoderInitialized(decoder.getName(), codecInitializedTimestamp, in maybeInitDecoder() 661 eventDispatcher.inputFormatChanged(inputFormat); in onInputFormatChanged() 691 eventDispatcher.audioSessionId(audioSessionId); in onAudioSessionId() 704 eventDispatcher.audioTrackUnderrun(bufferSize, bufferSizeMs, elapsedSinceLastFeedMs); in onUnderrun() 710 eventDispatcher.skipSilenceEnabledChanged(skipSilenceEnabled); in onSkipSilenceEnabledChanged()
|
D | MediaCodecAudioRenderer.java | 81 private final EventDispatcher eventDispatcher; field in MediaCodecAudioRenderer 200 eventDispatcher = new EventDispatcher(eventHandler, eventListener); in MediaCodecAudioRenderer() 386 eventDispatcher.decoderInitialized(name, initializedTimestampMs, initializationDurationMs); in onCodecInitialized() 393 eventDispatcher.inputFormatChanged(inputFormat); in onInputFormatChanged() 501 eventDispatcher.enabled(decoderCounters); in onEnabled() 540 eventDispatcher.disabled(decoderCounters); in onDisabled() 839 eventDispatcher.audioSessionId(audioSessionId); in onAudioSessionId() 852 eventDispatcher.audioTrackUnderrun(bufferSize, bufferSizeMs, elapsedSinceLastFeedMs); in onUnderrun() 858 eventDispatcher.skipSilenceEnabledChanged(skipSilenceEnabled); in onSkipSilenceEnabledChanged()
|