/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/debug/ |
D | DebugEventHub.java | 43 protected List<DebugEventListener> listeners = new ArrayList<DebugEventListener>(); field in DebugEventHub 46 listeners.add(listener); in DebugEventHub() 50 listeners.add(a); in DebugEventHub() 51 listeners.add(b); in DebugEventHub() 58 listeners.add(listener); in addListener() 72 for (int i = 0; i < listeners.size(); i++) { in enterRule() 73 DebugEventListener listener = listeners.get(i); in enterRule() 80 for (int i = 0; i < listeners.size(); i++) { in exitRule() 81 DebugEventListener listener = listeners.get(i); in exitRule() 88 for (int i = 0; i < listeners.size(); i++) { in enterAlt() [all …]
|
/external/icu/icu4c/source/common/ |
D | servnotf.cpp | 27 : listeners(NULL) in ICUNotifier() 34 delete listeners; in ~ICUNotifier() 35 listeners = NULL; in ~ICUNotifier() 51 if (listeners == NULL) { in addListener() 52 listeners = new UVector(5, status); in addListener() 54 for (int i = 0, e = listeners->size(); i < e; ++i) { in addListener() 55 const EventListener* el = (const EventListener*)(listeners->elementAt(i)); in addListener() 62 listeners->addElement((void*)l, status); // cast away const in addListener() 84 if (listeners != NULL) { in removeListener() 86 for (int i = 0, e = listeners->size(); i < e; ++i) { in removeListener() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | ICUNotifier.java | 37 private List<EventListener> listeners; field in ICUNotifier 53 if (listeners == null) { in addListener() 54 listeners = new ArrayList<EventListener>(); in addListener() 57 for (EventListener ll : listeners) { in addListener() 64 listeners.add(l); in addListener() 81 if (listeners != null) { in removeListener() 83 Iterator<EventListener> iter = listeners.iterator(); in removeListener() 87 if (listeners.size() == 0) { in removeListener() 88 listeners = null; in removeListener() 104 if (listeners != null) { in notifyChanged() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | ICUNotifier.java | 35 private List<EventListener> listeners; field in ICUNotifier 51 if (listeners == null) { in addListener() 52 listeners = new ArrayList<EventListener>(); in addListener() 55 for (EventListener ll : listeners) { in addListener() 62 listeners.add(l); in addListener() 79 if (listeners != null) { in removeListener() 81 Iterator<EventListener> iter = listeners.iterator(); in removeListener() 85 if (listeners.size() == 0) { in removeListener() 86 listeners = null; in removeListener() 102 if (listeners != null) { in notifyChanged() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/ |
D | AnalyticsCollector.java | 73 private final CopyOnWriteArraySet<AnalyticsListener> listeners; field in AnalyticsCollector 88 listeners = new CopyOnWriteArraySet<>(); in AnalyticsCollector() 99 listeners.add(listener); in addListener() 108 listeners.remove(listener); in removeListener() 133 for (AnalyticsListener listener : listeners) { in notifySeekStarted() 154 for (AnalyticsListener listener : listeners) { in onMetadata() 164 for (AnalyticsListener listener : listeners) { in onAudioEnabled() 173 for (AnalyticsListener listener : listeners) { in onAudioDecoderInitialized() 182 for (AnalyticsListener listener : listeners) { in onAudioInputFormatChanged() 191 for (AnalyticsListener listener : listeners) { in onAudioSinkUnderrun() [all …]
|
/external/guice/core/src/com/google/inject/internal/ |
D | ProvisionListenerStackCallback.java | 39 private final ProvisionListener[] listeners; field in ProvisionListenerStackCallback 47 public ProvisionListenerStackCallback(Binding<T> binding, List<ProvisionListener> listeners) { in ProvisionListenerStackCallback() argument 49 if (listeners.isEmpty()) { in ProvisionListenerStackCallback() 50 this.listeners = EMPTY_LISTENER; in ProvisionListenerStackCallback() 52 Set<ProvisionListener> deDuplicated = Sets.newLinkedHashSet(listeners); in ProvisionListenerStackCallback() 53 this.listeners = deDuplicated.toArray(new ProvisionListener[deDuplicated.size()]); in ProvisionListenerStackCallback() 58 return listeners.length > 0; in hasListeners() 110 if (index == listeners.length) { in provision() 117 } else if (index < listeners.length) { in provision() 120 listeners[index].onProvision(this); in provision() [all …]
|
D | ProvisionListenerCallbackStore.java | 96 List<ProvisionListener> listeners = null; in create() local 99 if (listeners == null) { in create() 100 listeners = Lists.newArrayList(); in create() 102 listeners.addAll(provisionBinding.getListeners()); in create() 105 if (listeners == null || listeners.isEmpty()) { in create() 110 return new ProvisionListenerStackCallback<T>(binding, listeners); in create()
|
/external/apache-harmony/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/ |
D | PropertyChangeSupportTest.java | 81 PropertyChangeListener[] listeners; in testAddPropertyChangeListener_PropertyChangeListener_Normal() local 90 listeners = sup.getPropertyChangeListeners(); in testAddPropertyChangeListener_PropertyChangeListener_Normal() 91 assertEquals(1, listeners.length); in testAddPropertyChangeListener_PropertyChangeListener_Normal() 92 assertSame(l2, unwindProxyListener(listeners[0], 1)); in testAddPropertyChangeListener_PropertyChangeListener_Normal() 93 assertEquals("myProp", getProxyPropertyName(listeners[0])); in testAddPropertyChangeListener_PropertyChangeListener_Normal() 98 listeners = sup.getPropertyChangeListeners(); in testAddPropertyChangeListener_PropertyChangeListener_Normal() 99 assertEquals(1, listeners.length); in testAddPropertyChangeListener_PropertyChangeListener_Normal() 100 assertSame(l2, unwindProxyListener(listeners[0], 2)); in testAddPropertyChangeListener_PropertyChangeListener_Normal() 101 assertEquals("myProp", getProxyPropertyName(listeners[0])); in testAddPropertyChangeListener_PropertyChangeListener_Normal() 113 PropertyChangeListener[] listeners = sup.getPropertyChangeListeners(); in testAddPropertyChangeListener_PropertyChangeListener_Null() local [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/ |
D | BaseDataSource.java | 33 private final ArrayList<TransferListener> listeners; field in BaseDataSource 45 this.listeners = new ArrayList<>(/* initialCapacity= */ 1); in BaseDataSource() 50 if (!listeners.contains(transferListener)) { in addTransferListener() 51 listeners.add(transferListener); in addTransferListener() 63 listeners.get(i).onTransferInitializing(/* source= */ this, dataSpec, isNetwork); in transferInitializing() 75 listeners.get(i).onTransferStart(/* source= */ this, dataSpec, isNetwork); in transferStarted() 88 listeners in bytesTransferred() 98 listeners.get(i).onTransferEnd(/* source= */ this, dataSpec, isNetwork); in transferEnded()
|
/external/guice/core/src/com/google/inject/spi/ |
D | ProvisionListenerBinding.java | 36 private final List<ProvisionListener> listeners; field in ProvisionListenerBinding 39 Object source, Matcher<? super Binding<?>> bindingMatcher, ProvisionListener[] listeners) { in ProvisionListenerBinding() argument 42 this.listeners = ImmutableList.copyOf(listeners); in ProvisionListenerBinding() 47 return listeners; in getListeners() 71 .bindListener(bindingMatcher, listeners.toArray(new ProvisionListener[listeners.size()])); in applyTo()
|
/external/mockito/src/test/java/org/concurrentmockito/ |
D | ThreadsShareAMockTest.java | 27 final Thread[] listeners = new Thread[3]; in performTest() local 28 for (int i = 0; i < listeners.length; i++) { in performTest() 29 listeners[i] = new Thread() { in performTest() 35 listeners[i].start(); in performTest() 37 for (Thread listener : listeners) { in performTest() 40 verify(mock, times(listeners.length)).simpleMethod("foo"); in performTest()
|
D | ThreadVerifiesContinuoslyInteractingMockTest.java | 30 final Thread[] listeners = new Thread[2]; in performTest() local 31 for (int i = 0; i < listeners.length; i++) { in performTest() 33 listeners[i] = new Thread() { in performTest() 44 listeners[i].start(); in performTest() 49 for (Thread listener : listeners) { in performTest()
|
D | ThreadsShareGenerouslyStubbedMockTest.java | 39 final Thread[] listeners = new Thread[100]; in performTest() local 40 for (int i = 0; i < listeners.length; i++) { in performTest() 41 listeners[i] = new Thread() { in performTest() 56 listeners[i].start(); in performTest() 58 for (Thread listener : listeners) { in performTest()
|
/external/mockito/src/main/java/org/mockito/internal/progress/ |
D | MockingProgressImpl.java | 13 import org.mockito.listeners.MockCreationListener; 14 import org.mockito.listeners.MockitoListener; 15 import org.mockito.listeners.VerificationListener; 36 private final Set<MockitoListener> listeners = new LinkedHashSet<MockitoListener>(); field in MockingProgressImpl 64 for (MockitoListener listener : listeners) { 148 for (MockitoListener listener : listeners) { 157 for (MockitoListener existing : listeners) { 162 this.listeners.add(listener); 166 this.listeners.remove(listener); 178 listeners.clear();
|
/external/tensorflow/tensorflow/core/framework/ |
D | logging.cc | 30 static Listeners* listeners = new Listeners; in GetListeners() local 31 return listeners; in GetListeners() 40 auto listeners = logging::GetListeners(); in LogToListeners() local 41 if (listeners->empty()) { in LogToListeners() 47 for (auto& listener : *listeners) { in LogToListeners()
|
/external/mockito/src/main/java/org/mockito/internal/verification/ |
D | MockAwareVerificationMode.java | 9 import org.mockito.listeners.VerificationListener; 17 private final Set<VerificationListener> listeners; field in MockAwareVerificationMode 19 …ockAwareVerificationMode(Object mock, VerificationMode mode, Set<VerificationListener> listeners) { in MockAwareVerificationMode() argument 22 this.listeners = listeners; in MockAwareVerificationMode() 40 for (VerificationListener listener : listeners) { in notifyListeners()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/ |
D | EventDispatcher.java | 40 private final CopyOnWriteArrayList<HandlerAndListener<T>> listeners; field in EventDispatcher 44 listeners = new CopyOnWriteArrayList<>(); in EventDispatcher() 51 listeners.add(new HandlerAndListener<>(handler, eventListener)); in addListener() 56 for (HandlerAndListener<T> handlerAndListener : listeners) { in removeListener() 59 listeners.remove(handlerAndListener); in removeListener() 70 for (HandlerAndListener<T> handlerAndListener : listeners) { in dispatch()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowSensorManager.java | 28 private final ArrayList<SensorEventListener> listeners = new ArrayList<>(); field in ShadowSensorManager 68 if (!listeners.contains(listener)) { in registerListener() 69 listeners.add(listener); in registerListener() 76 listeners.remove(listener); in unregisterListener() 81 listeners.remove(listener); in unregisterListener() 85 return listeners.contains(listener); in hasListener() 93 return Collections.unmodifiableList(listeners); in getListeners() 98 for (SensorEventListener listener : listeners) { in sendSensorEventToListeners()
|
/external/mockito/src/main/java/org/mockito/internal/creation/ |
D | MockSettingsImpl.java | 13 import org.mockito.listeners.InvocationListener; 14 import org.mockito.listeners.VerificationStartedListener; 175 public MockSettings invocationListeners(InvocationListener... listeners) { in invocationListeners() argument 176 if (listeners == null || listeners.length == 0) { in invocationListeners() 179 addListeners(listeners, invocationListeners, "invocationListeners"); in invocationListeners() 183 private static <T> void addListeners(T[] listeners, List<T> container, String method) { in addListeners() argument 184 if (listeners == null) { in addListeners() 187 for (T listener : listeners) { in addListeners() 196 public MockSettings verificationStartedListeners(VerificationStartedListener... listeners) { in verificationStartedListeners() argument 197 addListeners(listeners, this.verificationStartedListeners, "verificationStartedListeners"); in verificationStartedListeners()
|
/external/junit/src/main/java/org/junit/runner/notification/ |
D | RunNotifier.java | 22 private final List<RunListener> listeners = new CopyOnWriteArrayList<RunListener>(); field in RunNotifier 32 listeners.add(wrapIfNotThreadSafe(listener)); in addListener() 42 listeners.remove(wrapIfNotThreadSafe(listener)); in removeListener() 59 this(listeners); in SafeNotifier() 132 fireTestFailures(listeners, asList(failure)); in fireTestFailure() 135 private void fireTestFailures(List<RunListener> listeners, in fireTestFailures() argument 138 new SafeNotifier(listeners) { in fireTestFailures() argument 212 listeners.add(0, wrapIfNotThreadSafe(listener)); in addFirstListener()
|
/external/exoplayer/tree/extensions/ima/src/test/java/com/google/android/exoplayer2/ext/ima/ |
D | FakePlayer.java | 29 private final ArrayList<Player.EventListener> listeners; field in FakePlayer 42 listeners = new ArrayList<>(); in FakePlayer() 51 for (Player.EventListener listener : listeners) { in updateTimeline() 68 for (Player.EventListener listener : listeners) { in setPlayingContentPosition() 88 for (Player.EventListener listener : listeners) { in setPlayingAdPosition() 102 for (Player.EventListener listener : listeners) { in setState() 129 listeners.add(listener); in addListener() 134 listeners.remove(listener); in removeListener()
|
/external/mockito/src/main/java/org/mockito/internal/listeners/ |
D | VerificationStartedNotifier.java | 5 package org.mockito.internal.listeners; 11 import org.mockito.listeners.VerificationStartedEvent; 12 import org.mockito.listeners.VerificationStartedListener; 20 …public static Object notifyVerificationStarted(List<VerificationStartedListener> listeners, Mockin… in notifyVerificationStarted() argument 21 if (listeners.isEmpty()) { in notifyVerificationStarted() 25 for (VerificationStartedListener listener : listeners) { in notifyVerificationStarted()
|
/external/grpc-grpc-java/context/src/main/java/io/grpc/ |
D | Context.java | 188 private ArrayList<ExecutableListener> listeners; field in Context 471 if (listeners == null) { in addListener() 474 listeners = new ArrayList<>(); in addListener() 475 listeners.add(executableListener); in addListener() 480 listeners.add(executableListener); in addListener() 495 if (listeners != null) { in removeListener() 496 for (int i = listeners.size() - 1; i >= 0; i--) { in removeListener() 497 if (listeners.get(i).listener == cancellationListener) { in removeListener() 498 listeners.remove(i); in removeListener() 505 if (listeners.isEmpty()) { in removeListener() [all …]
|
/external/googletest/googletest/test/ |
D | googletest-shuffle-test_.cc | 96 TestEventListeners& listeners = UnitTest::GetInstance()->listeners(); in main() local 97 delete listeners.Release(listeners.default_result_printer()); in main() 98 listeners.Append(new TestNamePrinter); in main()
|
/external/google-breakpad/src/testing/gtest/test/ |
D | gtest_shuffle_test_.cc | 99 TestEventListeners& listeners = UnitTest::GetInstance()->listeners(); in main() local 100 delete listeners.Release(listeners.default_result_printer()); in main() 101 listeners.Append(new TestNamePrinter); in main()
|