/external/antlr/runtime/Ruby/lib/antlr3/debug/ |
D | event-hub.rb | 16 attr_reader :listeners accessor in ANTLR3.Debug.EventHub 18 def initialize( *listeners ) argument 19 @listeners = [ listeners ].flatten! 20 @listeners.compact! 23 def add( *listeners ) argument 24 @listeners.push( *listeners ) 28 for listener in @listeners 34 for listener in @listeners 40 for listener in @listeners 46 for listener in @listeners [all …]
|
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/debug/ |
D | DebugEventHub.java | 36 /** Broadcast debug events to multiple listeners. Lets you debug and still 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() [all …]
|
/external/llvm-project/clang/lib/Frontend/ |
D | MultiplexConsumer.cpp | 25 : Listeners(L) { in MultiplexASTDeserializationListener() 30 for (size_t i = 0, e = Listeners.size(); i != e; ++i) in ReaderInitialized() 31 Listeners[i]->ReaderInitialized(Reader); in ReaderInitialized() 36 for (size_t i = 0, e = Listeners.size(); i != e; ++i) in IdentifierRead() 37 Listeners[i]->IdentifierRead(ID, II); in IdentifierRead() 42 for (auto &Listener : Listeners) in MacroRead() 48 for (size_t i = 0, e = Listeners.size(); i != e; ++i) in TypeRead() 49 Listeners[i]->TypeRead(Idx, T); in TypeRead() 54 for (size_t i = 0, e = Listeners.size(); i != e; ++i) in DeclRead() 55 Listeners[i]->DeclRead(ID, D); in DeclRead() [all …]
|
/external/clang/lib/Frontend/ |
D | MultiplexConsumer.cpp | 26 // child listeners. 45 std::vector<ASTDeserializationListener *> Listeners; member in clang::MultiplexASTDeserializationListener 50 : Listeners(L) { in MultiplexASTDeserializationListener() 55 for (size_t i = 0, e = Listeners.size(); i != e; ++i) in ReaderInitialized() 56 Listeners[i]->ReaderInitialized(Reader); in ReaderInitialized() 61 for (size_t i = 0, e = Listeners.size(); i != e; ++i) in IdentifierRead() 62 Listeners[i]->IdentifierRead(ID, II); in IdentifierRead() 67 for (auto &Listener : Listeners) in MacroRead() 73 for (size_t i = 0, e = Listeners.size(); i != e; ++i) in TypeRead() 74 Listeners[i]->TypeRead(Idx, T); in TypeRead() [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/libcups/scheduler/ |
D | listen.c | 28 * 'cupsdDeleteAllListeners()' - Delete all listeners. 37 for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners); in cupsdDeleteAllListeners() 39 lis = (cupsd_listener_t *)cupsArrayNext(Listeners)) in cupsdDeleteAllListeners() 44 cupsArrayRemove(Listeners, lis); in cupsdDeleteAllListeners() 48 if (cupsArrayCount(Listeners) == 0) in cupsdDeleteAllListeners() 50 cupsArrayDelete(Listeners); in cupsdDeleteAllListeners() 51 Listeners = NULL; in cupsdDeleteAllListeners() 66 if (cupsArrayCount(Listeners) < 1) in cupsdPauseListening() 79 for (lis = (cupsd_listener_t *)cupsArrayFirst(Listeners); in cupsdPauseListening() 81 lis = (cupsd_listener_t *)cupsArrayNext(Listeners)) in cupsdPauseListening() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/analytics/ |
D | AnalyticsCollector.java | 60 * listening to all available ExoPlayer listeners. 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() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/upstream/ |
D | BaseDataSource.java | 28 * inform listeners of data transfers. 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() 57 * Notifies listeners that data transfer for the specified {@link DataSpec} is being initialized. 63 listeners.get(i).onTransferInitializing(/* source= */ this, dataSpec, isNetwork); in transferInitializing() 68 * Notifies listeners that data transfer for the specified {@link DataSpec} started. 75 listeners.get(i).onTransferStart(/* source= */ this, dataSpec, isNetwork); in transferStarted() 80 * Notifies listeners that bytes were transferred. [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | ICUNotifier.java | 19 * Notifiers call notifyChanged when they wish to notify listeners. 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() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | ICUNotifier.java | 20 * Notifiers call notifyChanged when they wish to notify listeners. 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() [all …]
|
/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/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() 109 * Invoke to tell listeners that a test suite is about to start. Runners are strongly 127 * Invoke to tell listeners that a test suite is about to finish. Always invoke 129 * as listeners are likely to expect them to come in pairs. 144 * Invoke to tell listeners that an atomic test is about to start. 162 * Invoke to tell listeners that an atomic test failed. 167 fireTestFailures(listeners, asList(failure)); in fireTestFailure() [all …]
|
/external/guice/core/src/com/google/inject/internal/ |
D | ProvisionListenerStackCallback.java | 27 * Intercepts provisions with a stack of listeners. 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() [all …]
|
D | ProvisionListenerCallbackStore.java | 64 * no listeners 69 // Never notify any listeners for internal bindings. in get() 93 * Creates a new {@link ProvisionListenerStackCallback} with the correct listeners for the key. 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() 107 // no listeners. in create() 110 return new ProvisionListenerStackCallback<T>(binding, listeners); in create()
|
/external/tensorflow/tensorflow/core/framework/ |
D | logging.cc | 27 typedef std::vector<void (*)(const char*)> Listeners; typedef 29 Listeners* GetListeners() { in GetListeners() 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/guice/core/src/com/google/inject/spi/ |
D | ProvisionListenerBinding.java | 26 * Binds keys (picked using a Matcher) to a provision listener. Listeners are created explicitly in 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() 45 /** Returns the registered listeners. */ 47 return listeners; in getListeners() 71 .bindListener(bindingMatcher, listeners.toArray(new ProvisionListener[listeners.size()])); in applyTo()
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | ListenerCallQueue.java | 32 * A list of listeners for implementing a concurrency friendly observable object. 34 * <p>Listeners are registered once via {@link #addListener} and then may be invoked by {@linkplain 41 * <li>Events for the different listeners are dispatched concurrently. 43 * <li>It is easy for the user to ensure that listeners are never invoked while holding locks. 47 * using a lock, however it is dangerous to dispatch listeners while holding a lock because they 52 * the listeners can be delayed slightly so that locks can be dropped. Also, because {@link 61 private final List<PerListenerQueue<L>> listeners = field in ListenerCallQueue 77 listeners.add(new PerListenerQueue<>(listener, executor)); in addListener() 81 * Enqueues an event to be run on currently known listeners. 93 * Enqueues an event to be run on currently known listeners, with a label. [all …]
|
/external/guava/android/guava/src/com/google/common/util/concurrent/ |
D | ListenerCallQueue.java | 32 * A list of listeners for implementing a concurrency friendly observable object. 34 * <p>Listeners are registered once via {@link #addListener} and then may be invoked by {@linkplain 41 * <li>Events for the different listeners are dispatched concurrently. 43 * <li>It is easy for the user to ensure that listeners are never invoked while holding locks. 47 * using a lock, however it is dangerous to dispatch listeners while holding a lock because they 52 * the listeners can be delayed slightly so that locks can be dropped. Also, because {@link 61 private final List<PerListenerQueue<L>> listeners = field in ListenerCallQueue 77 listeners.add(new PerListenerQueue<>(listener, executor)); in addListener() 81 * Enqueues an event to be run on currently known listeners. 93 * Enqueues an event to be run on currently known listeners, with a label. [all …]
|
/external/mockito/src/main/java/org/mockito/ |
D | MockitoFramework.java | 10 import org.mockito.listeners.MockitoListener; 14 …* Mockito framework settings and lifecycle listeners, for advanced users or for integrating with o… 18 * For more info on listeners see {@link #addListener(MockitoListener)}. 27 * For a list of supported listeners, see the interfaces that extend {@link MockitoListener}. 29 * Listeners can be useful for engs that extend Mockito framework. 33 …* Currently the listeners list is thread local so you need to remove listener from the same thread… 35 …* In typical scenarios, it is not a problem, because adding & removing listeners typically happens… 39 …* This is a safeguard to ensure users actually remove the listeners via {@link #removeListener(Moc… 44 * If you have ideas and feature requests about Mockito listeners API 60 …* Currently the listeners list is thread local so you need to remove listener from the same thread… [all …]
|
/external/chromium-trace/catapult/third_party/polymer/components/iron-resizable-behavior/test/ |
D | basic.html | 69 function RemoveListeners(listeners) { 70 listeners.forEach(function(listener) { 86 var listeners = [ 97 RemoveListeners(listeners); 101 var listeners = [ 111 RemoveListeners(listeners); 139 var listeners = [ 155 RemoveListeners(listeners); 168 var listeners = [ 180 RemoveListeners(listeners); [all …]
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/utils/ |
D | BaseLottieAnimator.java | 13 private final Set<AnimatorListener> listeners = new CopyOnWriteArraySet<>(); field in BaseLottieAnimator 43 listeners.add(listener); in addListener() 47 listeners.remove(listener); in removeListener() 51 listeners.clear(); in removeAllListeners() 55 for (Animator.AnimatorListener listener : listeners) { in notifyStart() 65 for (Animator.AnimatorListener listener : listeners) { in notifyRepeat() 71 for (Animator.AnimatorListener listener : listeners) { in notifyEnd() 81 for (Animator.AnimatorListener listener : listeners) { in notifyCancel()
|
/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/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/util/ |
D | EventDispatcher.java | 39 /** The list of listeners and handlers. */ 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() 65 * Dispatches an event to all registered listeners. 70 for (HandlerAndListener<T> handlerAndListener : listeners) { in dispatch()
|
/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() 189 throw methodDoesNotAcceptParameter(method, "null listeners."); in addListeners() 196 public MockSettings verificationStartedListeners(VerificationStartedListener... listeners) { in verificationStartedListeners() argument [all …]
|
/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() 96 /** Propagates the {@code event} to all registered listeners. */ 98 for (SensorEventListener listener : listeners) { in sendSensorEventToListeners()
|