/external/antlr/antlr-3.4/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 listeners = new ArrayList(); 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() 71 for (int i = 0; i < listeners.size(); i++) { in enterRule() 72 DebugEventListener listener = (DebugEventListener)listeners.get(i); in enterRule() 78 for (int i = 0; i < listeners.size(); i++) { in exitRule() 79 DebugEventListener listener = (DebugEventListener)listeners.get(i); in exitRule() [all …]
|
/external/antlr/antlr-3.4/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/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/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 | 117 PropertyChangeListener[] listeners = sup.getPropertyChangeListeners(); in testAddPropertyChangeListener_PropertyChangeListener_Null() local 118 assertEquals(0, listeners.length); in testAddPropertyChangeListener_PropertyChangeListener_Null() 133 PropertyChangeListener[] listeners = sup.getPropertyChangeListeners(); in testAddPropertyChangeListener_PropertyChangeListener_Duplicate() local 134 assertEquals(2, listeners.length); in testAddPropertyChangeListener_PropertyChangeListener_Duplicate() 135 assertSame(l1, listeners[0]); in testAddPropertyChangeListener_PropertyChangeListener_Duplicate() 136 assertSame(l1, listeners[1]); in testAddPropertyChangeListener_PropertyChangeListener_Duplicate() 150 PropertyChangeListener[] listeners; in testAddPropertyChangeListener_PropertyChangeListener_String_Normal() local 154 listeners = sup.getPropertyChangeListeners(); in testAddPropertyChangeListener_PropertyChangeListener_String_Normal() 155 assertEquals(1, listeners.length); in testAddPropertyChangeListener_PropertyChangeListener_String_Normal() 156 assertSame(l1, ((PropertyChangeListenerProxy) listeners[0]) in testAddPropertyChangeListener_PropertyChangeListener_String_Normal() [all …]
|
/external/mockito/src/main/java/org/mockito/ |
D | MockitoFramework.java | 8 import org.mockito.listeners.MockitoListener; 11 …* Mockito framework settings and lifecycle listeners, for advanced users or for integrating with o… 15 * For more info on listeners see {@link #addListener(MockitoListener)}. 24 * For a list of supported listeners, see the interfaces that extend {@link MockitoListener}. 26 * Listeners can be useful for engs that extend Mockito framework. 30 …* Currently the listeners list is thread local so you need to remove listener from the same thread… 32 …* In typical scenarios, it is not a problem, because adding & removing listeners typically happens… 36 …* This is a safeguard to ensure users actually remove the listeners via {@link #removeListener(Moc… 41 * If you have ideas and feature requests about Mockito listeners API 56 …* Currently the listeners list is thread local so you need to remove listener from the same thread… [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 an atomic test is about to start. 127 * Invoke to tell listeners that an atomic test failed. 132 fireTestFailures(listeners, asList(failure)); in fireTestFailure() 135 private void fireTestFailures(List<RunListener> listeners, in fireTestFailures() argument 138 new SafeNotifier(listeners) { in fireTestFailures() argument 150 * Invoke to tell listeners that an atomic test flagged that it assumed [all …]
|
/external/guice/core/src/com/google/inject/internal/ |
D | ProvisionListenerStackCallback.java | 30 * Intercepts provisions with a stack of listeners. 41 private final ProvisionListener[] listeners; field in ProvisionListenerStackCallback 49 public ProvisionListenerStackCallback(Binding<T> binding, List<ProvisionListener> listeners) { in ProvisionListenerStackCallback() argument 51 if (listeners.isEmpty()) { in ProvisionListenerStackCallback() 52 this.listeners = EMPTY_LISTENER; in ProvisionListenerStackCallback() 54 Set<ProvisionListener> deDuplicated = Sets.newLinkedHashSet(listeners); in ProvisionListenerStackCallback() 55 this.listeners = deDuplicated.toArray(new ProvisionListener[deDuplicated.size()]); in ProvisionListenerStackCallback() 60 return listeners.length > 0; in hasListeners() 113 if (index == listeners.length) { in provision() 123 } else if (index < listeners.length) { in provision() [all …]
|
D | ProvisionListenerCallbackStore.java | 66 // Never notify any listeners for internal bindings. in get() 88 * Creates a new {@link ProvisionListenerStackCallback} with the correct listeners 92 List<ProvisionListener> listeners = null; in create() local 95 if (listeners == null) { in create() 96 listeners = Lists.newArrayList(); in create() 98 listeners.addAll(provisionBinding.getListeners()); in create() 101 if (listeners == null || listeners.isEmpty()) { in create() 103 // no listeners. in create() 106 return new ProvisionListenerStackCallback<T>(binding, listeners); in create()
|
/external/guice/core/src/com/google/inject/spi/ |
D | ProvisionListenerBinding.java | 27 * Binds keys (picked using a Matcher) to a provision listener. Listeners are created explicitly in 37 private final List<ProvisionListener> listeners; field in ProvisionListenerBinding 41 ProvisionListener[] listeners) { in ProvisionListenerBinding() argument 44 this.listeners = ImmutableList.copyOf(listeners); in ProvisionListenerBinding() 47 /** Returns the registered listeners. */ 49 return listeners; in getListeners() 69 listeners.toArray(new ProvisionListener[listeners.size()])); in applyTo()
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | ExecutionList.java | 30 * <p>A list of listeners, each with an associated {@code Executor}, that 34 * guarantee, however, that listeners will be executed in the order that they 65 * listeners to execute. If execution has already begun, the listener is 68 * <p>Note: For fast, lightweight listeners that would be safe to execute in 70 * listeners, {@code directExecutor()} carries some caveats: First, the 73 * listeners may run in the thread that calls {@code add}. Second, the thread 75 * as an RPC network thread, and {@code directExecutor()} listeners may 78 * listeners are prevented from running, even if those listeners are to run 106 * were added. However, note that listeners added after this point may be 108 * of all listeners is ultimately chosen by the implementations of the [all …]
|
D | ServiceManager.java | 82 * services are started by some mechanism besides {@link #startAsync}, the listeners will be invoked 143 * listeners} to each individual service. 176 * service listeners}. This is extracted into its own object so that {@link ServiceListener} 195 // Having no services causes the manager to behave strangely. Notably, listeners are never in ServiceManager() 212 // We have installed all of our listeners and after this point any state transition should be in ServiceManager() 220 * suggested that listeners are added before any of the managed services are 224 * across calls to multiple listeners. Specifically, a given listener will have its callbacks 226 * one of the listener's callbacks will execute at once. However, multiple listeners' callbacks 227 * may execute concurrently, and listeners may execute in an order different from the one in which 234 * <p> For fast, lightweight listeners that would be safe to execute in any thread, consider [all …]
|
D | AbstractService.java | 124 * The listeners to notify during a state transition. 127 private final List<ListenerCallQueue<Listener>> listeners = 313 // We don't call listeners here because we already did that when we set the 414 listeners.add(new ListenerCallQueue<Listener>(listener, executor)); 426 * Attempts to execute all the listeners in {@link #listeners} while not holding the 432 for (int i = 0; i < listeners.size(); i++) { 433 listeners.get(i).execute(); 440 STARTING_CALLBACK.enqueueOn(listeners); 445 RUNNING_CALLBACK.enqueueOn(listeners); 451 STOPPING_FROM_STARTING_CALLBACK.enqueueOn(listeners); [all …]
|
/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/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/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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/content/ |
D | TestSharedPreferences.java | 13 private ArrayList<OnSharedPreferenceChangeListener> listeners; field in TestSharedPreferences 24 listeners = new ArrayList<OnSharedPreferenceChangeListener>(); in TestSharedPreferences() 81 if(!listeners.contains(listener)) in registerOnSharedPreferenceChangeListener() 82 listeners.add(listener); in registerOnSharedPreferenceChangeListener() 88 if(listeners.contains(listener)) in unregisterOnSharedPreferenceChangeListener() 89 listeners.remove(listener); in unregisterOnSharedPreferenceChangeListener() 93 return listeners.contains(listener); in hasListener()
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowSensorManager.java | 20 private ArrayList<SensorEventListener> listeners = new ArrayList<SensorEventListener>(); field in ShadowSensorManager 30 if(!listeners.contains(listener)) in registerListener() 31 listeners.add(listener); in registerListener() 38 listeners.remove(listener); in unregisterListener() 42 return listeners.contains(listener); in hasListener()
|
/external/guava/guava/src/com/google/common/eventbus/ |
D | package-info.java | 34 * <h3>For Listeners</h3> 61 * listeners of any supertype, allowing listeners for interface types 62 * or "wildcard listeners" for Object.</li> 65 * <p>To listen for and detect events that were dispatched without listeners... 76 * <p>To keep track of listeners to your events... 79 * a list of listeners to your object, including synchronization, or use a 84 * <p>To dispatch an event to listeners... 107 * <em>listeners</em> through the EventBus.</dt> 173 * listeners. This runs into issues with Java's use of type erasure, not to 193 * places no restrictions on the types of either your event listeners (as in [all …]
|
/external/testng/src/test/java/test/listeners/ |
D | SuiteAndInvokedMethodListenerTest.java | 1 package test.listeners; 9 import org.testng.annotations.Listeners; 12 import test.listeners.SuiteAndInvokedMethodListenerTest.MyListener; 16 * and ISuiteListener, both listeners get invoked. 20 @Listeners(MyListener.class)
|
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/ |
D | PlotTest.java | 380 ArrayList<PlotListener> listeners = Deencapsulation.getField(plot, "listeners"); in testAddListener() local 383 assertEquals(0, listeners.size()); in testAddListener() 390 assertEquals(1, listeners.size()); in testAddListener() 396 assertEquals(1, listeners.size()); in testAddListener() 400 assertEquals(2, listeners.size()); in testAddListener() 408 ArrayList<PlotListener> listeners = Deencapsulation.getField(plot, "listeners"); in testRemoveListener() local 411 assertEquals(0, listeners.size()); in testRemoveListener() 420 assertEquals(2, listeners.size()); in testRemoveListener() 426 assertEquals(1, listeners.size()); in testRemoveListener() 430 assertEquals(1, listeners.size()); in testRemoveListener() [all …]
|