Home
last modified time | relevance | path

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

12

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DEventDispatcher.java48 public void addListener(Handler handler, T eventListener) { in addListener() argument
49 Assertions.checkArgument(handler != null && eventListener != null); in addListener()
50 removeListener(eventListener); in addListener()
51 listeners.add(new HandlerAndListener<>(handler, eventListener)); in addListener()
55 public void removeListener(T eventListener) { in removeListener() argument
57 if (handlerAndListener.listener == eventListener) { in removeListener()
82 public HandlerAndListener(Handler handler, T eventListener) { in HandlerAndListener() argument
84 this.listener = eventListener; in HandlerAndListener()
DMediaSourceEventDispatcher.java116 public <T> void addEventListener(Handler handler, T eventListener, Class<T> listenerClass) { in addEventListener() argument
118 Assertions.checkNotNull(eventListener); in addEventListener()
119 listenerInfos.add(new ListenerInfo(handler, eventListener, listenerClass)); in addEventListener()
133 public <T> void removeEventListener(T eventListener, Class<T> listenerClass) { in removeEventListener() argument
135 if (listenerInfo.listener == eventListener in removeEventListener()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DBaseMediaSource.java136 public final void addEventListener(Handler handler, MediaSourceEventListener eventListener) { in addEventListener() argument
137 addEventListenerInternal(handler, eventListener, MediaSourceEventListener.class); in addEventListener()
141 public final void removeEventListener(MediaSourceEventListener eventListener) { in removeEventListener() argument
142 removeEventListenerInternal(eventListener, MediaSourceEventListener.class); in removeEventListener()
146 public final void addDrmEventListener(Handler handler, DrmSessionEventListener eventListener) { in addDrmEventListener() argument
147 addEventListenerInternal(handler, eventListener, DrmSessionEventListener.class); in addDrmEventListener()
151 public final void removeDrmEventListener(DrmSessionEventListener eventListener) { in removeDrmEventListener() argument
152 removeEventListenerInternal(eventListener, DrmSessionEventListener.class); in removeDrmEventListener()
164 Handler handler, T eventListener, Class<T> listenerClass) { in addEventListenerInternal() argument
165 eventDispatcher.addEventListener(handler, eventListener, listenerClass); in addEventListenerInternal()
[all …]
DExtractorMediaSource.java205 Uri uri, @Nullable Handler eventHandler, @Nullable MediaSourceEventListener eventListener) { in createMediaSource() argument
207 if (eventHandler != null && eventListener != null) { in createMediaSource()
208 mediaSource.addEventListener(eventHandler, eventListener); in createMediaSource()
244 @Nullable EventListener eventListener) { in ExtractorMediaSource() argument
245 this(uri, dataSourceFactory, extractorsFactory, eventHandler, eventListener, null); in ExtractorMediaSource()
266 @Nullable EventListener eventListener, in ExtractorMediaSource() argument
273 eventListener, in ExtractorMediaSource()
298 @Nullable EventListener eventListener, in ExtractorMediaSource() argument
309 if (eventListener != null && eventHandler != null) { in ExtractorMediaSource()
310 addEventListener(eventHandler, new EventListenerWrapper(eventListener)); in ExtractorMediaSource()
[all …]
DSingleSampleMediaSource.java169 @Nullable MediaSourceEventListener eventListener) { in createMediaSource() argument
171 if (eventHandler != null && eventListener != null) { in createMediaSource()
172 mediaSource.addEventListener(eventHandler, eventListener); in createMediaSource()
260 @Nullable EventListener eventListener, in SingleSampleMediaSource() argument
271 if (eventHandler != null && eventListener != null) { in SingleSampleMediaSource()
272 addEventListener(eventHandler, new EventListenerWrapper(eventListener, eventSourceId)); in SingleSampleMediaSource()
351 private final EventListener eventListener; field in SingleSampleMediaSource.EventListenerWrapper
354 public EventListenerWrapper(EventListener eventListener, int eventSourceId) { in EventListenerWrapper() argument
355 this.eventListener = Assertions.checkNotNull(eventListener); in EventListenerWrapper()
367 eventListener.onLoadError(eventSourceId, error); in onLoadError()
DCompositeMediaSource.java83 childSource.mediaSource.removeEventListener(childSource.eventListener); in releaseSourceInternal()
114 ForwardingEventListener eventListener = new ForwardingEventListener(id); in prepareChildSource() local
115 childSources.put(id, new MediaSourceAndListener(mediaSource, caller, eventListener)); in prepareChildSource()
116 mediaSource.addEventListener(Assertions.checkNotNull(eventHandler), eventListener); in prepareChildSource() local
117 mediaSource.addDrmEventListener(Assertions.checkNotNull(eventHandler), eventListener); in prepareChildSource() local
152 removedChild.mediaSource.removeEventListener(removedChild.eventListener); in releaseChildSource()
211 public final MediaSourceEventListener eventListener; field in CompositeMediaSource.MediaSourceAndListener
214 MediaSource mediaSource, MediaSourceCaller caller, MediaSourceEventListener eventListener) { in MediaSourceAndListener() argument
217 this.eventListener = eventListener; in MediaSourceAndListener()
DMediaSource.java222 void addEventListener(Handler handler, MediaSourceEventListener eventListener); in addEventListener() argument
230 void removeEventListener(MediaSourceEventListener eventListener); in removeEventListener() argument
239 void addDrmEventListener(Handler handler, DrmSessionEventListener eventListener); in addDrmEventListener() argument
247 void removeDrmEventListener(DrmSessionEventListener eventListener); in removeDrmEventListener() argument
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/
DCacheDataSourceFactory.java32 @Nullable private final CacheDataSource.EventListener eventListener; field in CacheDataSourceFactory
70 @Nullable CacheDataSource.EventListener eventListener) { in CacheDataSourceFactory() argument
77 eventListener, in CacheDataSourceFactory()
91 @Nullable CacheDataSource.EventListener eventListener, in CacheDataSourceFactory() argument
98 this.eventListener = eventListener; in CacheDataSourceFactory()
110 eventListener, in createDataSource()
DCacheDataSource.java63 @Nullable private CacheDataSource.EventListener eventListener; field in CacheDataSource.Factory
203 public Factory setEventListener(@Nullable EventListener eventListener) { in setEventListener() argument
204 this.eventListener = eventListener; in setEventListener()
273 eventListener); in createDataSourceInternal()
358 @Nullable private final EventListener eventListener; field in CacheDataSource
429 @Nullable EventListener eventListener) { in CacheDataSource() argument
436 eventListener, in CacheDataSource()
462 @Nullable EventListener eventListener, in CacheDataSource() argument
473 eventListener); in CacheDataSource()
485 @Nullable EventListener eventListener) { in CacheDataSource() argument
[all …]
/external/exoplayer/tree/library/smoothstreaming/src/main/java/com/google/android/exoplayer2/source/smoothstreaming/
DSsMediaSource.java263 @Nullable MediaSourceEventListener eventListener) { in createMediaSource() argument
265 if (eventHandler != null && eventListener != null) { in createMediaSource()
266 mediaSource.addEventListener(eventHandler, eventListener); in createMediaSource()
279 @Nullable MediaSourceEventListener eventListener) { in createMediaSource() argument
281 if (eventHandler != null && eventListener != null) { in createMediaSource()
282 mediaSource.addEventListener(eventHandler, eventListener); in createMediaSource()
380 @Nullable MediaSourceEventListener eventListener) { in SsMediaSource() argument
386 eventListener); in SsMediaSource()
405 @Nullable MediaSourceEventListener eventListener) { in SsMediaSource() argument
417 if (eventHandler != null && eventListener != null) { in SsMediaSource()
[all …]
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DTCPChannelClient.java41 private final TCPChannelEvents eventListener; field in TCPChannelClient
64 ExecutorService executor, TCPChannelEvents eventListener, String ip, int port) { in TCPChannelClient() argument
68 this.eventListener = eventListener; in TCPChannelClient()
115 eventListener.onTCPError(message); in reportError()
188 eventListener.onTCPConnected(isServer()); in run()
217 eventListener.onTCPMessage(message); in run()
240 eventListener.onTCPClose(); in disconnect()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DExoPlayerTestRunner.java82 private Player.EventListener eventListener; field in ExoPlayerTestRunner.Builder
285 public Builder setEventListener(Player.EventListener eventListener) { in setEventListener() argument
286 this.eventListener = eventListener; in setEventListener()
337 eventListener, in build()
350 @Nullable private final Player.EventListener eventListener; field in ExoPlayerTestRunner
376 @Nullable Player.EventListener eventListener, in ExoPlayerTestRunner() argument
386 this.eventListener = eventListener; in ExoPlayerTestRunner()
428 if (eventListener != null) { in start()
429 player.addListener(eventListener); in start()
DFakeAudioRenderer.java34 public FakeAudioRenderer(Handler handler, AudioRendererEventListener eventListener) { in FakeAudioRenderer() argument
36 eventDispatcher = new AudioRendererEventListener.EventDispatcher(handler, eventListener); in FakeAudioRenderer()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/video/
DDecoderVideoRendererTest.java65 @Mock private VideoRendererEventListener eventListener; field in DecoderVideoRendererTest
73 eventListener, in setUp()
205 verify(eventListener).onRenderedFirstFrame(any()); in enable_withMayRenderStartOfStream_rendersFirstFrameBeforeStart()
233 verify(eventListener, never()).onRenderedFirstFrame(any()); in enable_withoutMayRenderStartOfStream_doesNotRenderFirstFrameBeforeStart()
261 verify(eventListener).onRenderedFirstFrame(any()); in enable_withoutMayRenderStartOfStream_rendersFirstFrameAfterStart()
305 verify(eventListener, times(2)).onRenderedFirstFrame(any()); in replaceStream_whenStarted_rendersFirstFrameOfNewStream()
348 verify(eventListener).onRenderedFirstFrame(any()); in replaceStream_whenNotStarted_doesNotRenderFirstFrameOfNewStream()
353 verify(eventListener, times(2)).onRenderedFirstFrame(any()); in replaceStream_whenNotStarted_doesNotRenderFirstFrameOfNewStream()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DDefaultRenderersFactory.java257 VideoRendererEventListener eventListener, in buildVideoRenderers() argument
267 eventListener, in buildVideoRenderers()
296 eventListener, in buildVideoRenderers()
323 eventListener, in buildVideoRenderers()
351 eventListener, in buildVideoRenderers()
385 AudioRendererEventListener eventListener, in buildAudioRenderers() argument
393 eventListener, in buildAudioRenderers()
417 (Renderer) constructor.newInstance(eventHandler, eventListener, audioProcessors); in buildAudioRenderers()
438 (Renderer) constructor.newInstance(eventHandler, eventListener, audioProcessors); in buildAudioRenderers()
460 (Renderer) constructor.newInstance(eventHandler, eventListener, audioProcessors); in buildAudioRenderers()
DMediaSourceList.java327 childSource.mediaSource.removeEventListener(childSource.eventListener); in release()
430 ForwardingEventListener eventListener = new ForwardingEventListener(holder); in prepareChildSource() local
431 childSources.put(holder, new MediaSourceAndListener(mediaSource, caller, eventListener)); in prepareChildSource()
432 mediaSource.addEventListener(Util.createHandler(), eventListener); in prepareChildSource() local
433 mediaSource.addDrmEventListener(Util.createHandler(), eventListener); in prepareChildSource() local
443 removedChild.mediaSource.removeEventListener(removedChild.eventListener); in maybeReleaseChildSource()
582 public final MediaSourceEventListener eventListener; field in MediaSourceList.MediaSourceAndListener
587 MediaSourceEventListener eventListener) { in MediaSourceAndListener() argument
590 this.eventListener = eventListener; in MediaSourceAndListener()
/external/exoplayer/tree/extensions/vp9/src/main/java/com/google/android/exoplayer2/ext/vp9/
DLibvpxVideoRenderer.java79 @Nullable VideoRendererEventListener eventListener, in LibvpxVideoRenderer() argument
84 eventListener, in LibvpxVideoRenderer()
109 @Nullable VideoRendererEventListener eventListener, in LibvpxVideoRenderer() argument
114 super(allowedJoiningTimeMs, eventHandler, eventListener, maxDroppedFramesToNotify); in LibvpxVideoRenderer()
/external/exoplayer/tree/extensions/av1/src/main/java/com/google/android/exoplayer2/ext/av1/
DLibgav1VideoRenderer.java70 @Nullable VideoRendererEventListener eventListener, in Libgav1VideoRenderer() argument
75 eventListener, in Libgav1VideoRenderer()
99 @Nullable VideoRendererEventListener eventListener, in Libgav1VideoRenderer() argument
104 super(allowedJoiningTimeMs, eventHandler, eventListener, maxDroppedFramesToNotify); in Libgav1VideoRenderer()
/external/exoplayer/tree/extensions/flac/src/main/java/com/google/android/exoplayer2/ext/flac/
DLibflacAudioRenderer.java55 @Nullable AudioRendererEventListener eventListener, in LibflacAudioRenderer() argument
57 super(eventHandler, eventListener, audioProcessors); in LibflacAudioRenderer()
68 @Nullable AudioRendererEventListener eventListener, in LibflacAudioRenderer() argument
72 eventListener, in LibflacAudioRenderer()
/external/exoplayer/tree/extensions/ffmpeg/src/main/java/com/google/android/exoplayer2/ext/ffmpeg/
DFfmpegAudioRenderer.java61 @Nullable AudioRendererEventListener eventListener, in FfmpegAudioRenderer() argument
65 eventListener, in FfmpegAudioRenderer()
84 @Nullable AudioRendererEventListener eventListener, in FfmpegAudioRenderer() argument
89 eventListener, in FfmpegAudioRenderer()
/external/exoplayer/tree/library/dash/src/main/java/com/google/android/exoplayer2/source/dash/
DDashMediaSource.java287 @Nullable MediaSourceEventListener eventListener) { in createMediaSource() argument
289 if (eventHandler != null && eventListener != null) { in createMediaSource()
290 mediaSource.addEventListener(eventHandler, eventListener); in createMediaSource()
303 @Nullable MediaSourceEventListener eventListener) { in createMediaSource() argument
305 if (eventHandler != null && eventListener != null) { in createMediaSource()
306 mediaSource.addEventListener(eventHandler, eventListener); in createMediaSource()
439 @Nullable MediaSourceEventListener eventListener) { in DashMediaSource() argument
445 eventListener); in DashMediaSource()
464 @Nullable MediaSourceEventListener eventListener) { in DashMediaSource() argument
477 if (eventHandler != null && eventListener != null) { in DashMediaSource()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/
DBandwidthMeter.java63 void addEventListener(Handler eventHandler, EventListener eventListener); in addEventListener() argument
70 void removeEventListener(EventListener eventListener); in removeEventListener() argument
/external/exoplayer/tree/playbacktests/src/androidTest/java/com/google/android/exoplayer2/playbacktests/gts/
DDebugRenderersFactory.java56 VideoRendererEventListener eventListener, in buildVideoRenderers() argument
65 eventListener, in buildVideoRenderers()
91 VideoRendererEventListener eventListener, in DebugMediaCodecVideoRenderer() argument
98 eventListener, in DebugMediaCodecVideoRenderer()
/external/exoplayer/tree/extensions/ima/src/main/java/com/google/android/exoplayer2/ext/ima/
DImaAdsLoader.java329 @Nullable private EventListener eventListener; field in ImaAdsLoader
588 public void start(EventListener eventListener, AdViewProvider adViewProvider) { in start() argument
595 this.eventListener = eventListener; in start()
609 eventListener.onAdPlaybackState(adPlaybackState); in start()
639 eventListener = null; in stop()
1127 if (eventListener != null) { in handleAdEvent()
1128 eventListener.onAdTapped(); in handleAdEvent()
1132 if (eventListener != null) { in handleAdEvent()
1133 eventListener.onAdClicked(); in handleAdEvent()
1345 if (eventListener != null) { in updateAdPlaybackState()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/audio/
DMediaCodecAudioRenderer.java117 @Nullable AudioRendererEventListener eventListener) { in MediaCodecAudioRenderer() argument
122 eventListener, in MediaCodecAudioRenderer()
141 @Nullable AudioRendererEventListener eventListener, in MediaCodecAudioRenderer() argument
148 eventListener, in MediaCodecAudioRenderer()
164 @Nullable AudioRendererEventListener eventListener, in MediaCodecAudioRenderer() argument
171 eventListener, in MediaCodecAudioRenderer()
191 @Nullable AudioRendererEventListener eventListener, in MediaCodecAudioRenderer() argument
200 eventDispatcher = new EventDispatcher(eventHandler, eventListener); in MediaCodecAudioRenderer()

12