Home
last modified time | relevance | path

Searched refs:listenerClass (Results 1 – 8 of 8) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/
DMediaSourceEventDispatcher.java116 public <T> void addEventListener(Handler handler, T eventListener, Class<T> listenerClass) { in addEventListener() argument
119 listenerInfos.add(new ListenerInfo(handler, eventListener, listenerClass)); in addEventListener()
133 public <T> void removeEventListener(T eventListener, Class<T> listenerClass) { in removeEventListener() argument
136 && listenerInfo.listenerClass.equals(listenerClass)) { in removeEventListener()
145 public <T> void dispatch(EventWithPeriodId<T> event, Class<T> listenerClass) { in dispatch() argument
147 if (listenerInfo.listenerClass.equals(listenerClass)) { in dispatch()
173 public final Class<?> listenerClass; field in MediaSourceEventDispatcher.ListenerInfo
175 public ListenerInfo(Handler handler, Object listener, Class<?> listenerClass) { in ListenerInfo() argument
178 this.listenerClass = listenerClass; in ListenerInfo()
194 return listener.equals(that.listener) && listenerClass.equals(that.listenerClass); in equals()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DBaseMediaSource.java164 Handler handler, T eventListener, Class<T> listenerClass) { in addEventListenerInternal() argument
165 eventDispatcher.addEventListener(handler, eventListener, listenerClass); in addEventListenerInternal()
173 protected final <T> void removeEventListenerInternal(T eventListener, Class<T> listenerClass) { in removeEventListenerInternal() argument
174 eventDispatcher.removeEventListener(eventListener, listenerClass); in removeEventListenerInternal()
/external/testng/src/test/java/test/verify/
DVerify2SampleTest.java45 public ITestNGListener createListener(Class<? extends ITestNGListener> listenerClass) { in createListener() argument
46 log("Creating a listener of type " + listenerClass); in createListener()
/external/testng/src/main/java/org/testng/internal/invokers/
DInvokedMethodListenerSubtype.java22 private InvokedMethodListenerSubtype(Class<? extends IInvokedMethodListener> listenerClass) { in InvokedMethodListenerSubtype() argument
23 m_matchingInterface = listenerClass; in InvokedMethodListenerSubtype()
/external/testng/src/test/java/test/listeners/
DExecutionListenerTest.java48 private void runTest(Class<?> listenerClass, boolean addListener, boolean expected) { in runTest() argument
50 XmlTest t = createXmlTest(s, "Test", listenerClass.getName()); in runTest()
DAlterSuiteListenerTest.java37 private XmlSuite runTest(Class<?> listenerClass, String listenerName) { in runTest() argument
39 createXmlTest(s, "Test", listenerClass.getName()); in runTest()
/external/testng/src/main/java/org/testng/
DITestNGListenerFactory.java13 ITestNGListener createListener(Class<? extends ITestNGListener> listenerClass); in createListener() argument
DTestNG.java922 Class<?> listenerClass = ClassHelper.forName(listenerName); in initializeConfiguration() local
925 if(listenerClass == null) { in initializeConfiguration()
930 Object listener = ClassHelper.newInstance(listenerClass); in initializeConfiguration()