Home
last modified time | relevance | path

Searched full:listeners (Results 1 – 25 of 525) sorted by relevance

12345678910>>...21

/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/
DDebugEventHub.java36 /** 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/
Devent-hub.rb16 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/
DMultiplexConsumer.cpp26 // 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/
Dservnotf.cpp25 : listeners(NULL) in ICUNotifier()
32 delete listeners; in ~ICUNotifier()
33 listeners = NULL; in ~ICUNotifier()
49 if (listeners == NULL) { in addListener()
50 listeners = new UVector(5, status); in addListener()
52 for (int i = 0, e = listeners->size(); i < e; ++i) { in addListener()
53 const EventListener* el = (const EventListener*)(listeners->elementAt(i)); in addListener()
60 listeners->addElement((void*)l, status); // cast away const in addListener()
82 if (listeners != NULL) { in removeListener()
84 for (int i = 0, e = listeners->size(); i < e; ++i) { in removeListener()
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/ec2/elb/
D__init__.py137 def create_load_balancer(self, name, zones, listeners=None, subnets=None, argument
153 :type listeners: List of tuples
154 :param listeners: Each tuple contains three or four values,
201 if not listeners and not complex_listeners:
208 # Handle legacy listeners
209 if listeners:
210 for index, listener in enumerate(listeners):
213 params['Listeners.member.%d.LoadBalancerPort' % i] = listener[0]
214 params['Listeners.member.%d.InstancePort' % i] = listener[1]
215 params['Listeners.member.%d.Protocol' % i] = listener[2]
[all …]
/external/jetty/src/java/org/eclipse/jetty/io/nio/
DNetworkTrafficSelectChannelEndPoint.java36 private final List<NetworkTrafficListener> listeners; field in NetworkTrafficSelectChannelEndPoint
38 …ectSet, SelectionKey key, int maxIdleTime, List<NetworkTrafficListener> listeners) throws IOExcept… in NetworkTrafficSelectChannelEndPoint() argument
41 this.listeners = listeners; in NetworkTrafficSelectChannelEndPoint()
75 if (listeners != null && !listeners.isEmpty()) in notifyOpened()
77 for (NetworkTrafficListener listener : listeners) in notifyOpened()
93 if (listeners != null && !listeners.isEmpty() && read > 0) in notifyIncoming()
95 for (NetworkTrafficListener listener : listeners) in notifyIncoming()
112 if (listeners != null && !listeners.isEmpty() && written > 0) in notifyOutgoing()
114 for (NetworkTrafficListener listener : listeners) in notifyOutgoing()
133 if (listeners != null && !listeners.isEmpty()) in notifyClosed()
[all …]
/external/apache-harmony/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/
DPropertyChangeSupportTest.java117 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/icu/android_icu4j/src/main/java/android/icu/impl/
DICUNotifier.java18 * 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/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUNotifier.java17 * Notifiers call notifyChanged when they wish to notify listeners.
33 private List<EventListener> listeners; field in ICUNotifier
49 if (listeners == null) { in addListener()
50 listeners = new ArrayList<EventListener>(); in addListener()
53 for (EventListener ll : listeners) { in addListener()
60 listeners.add(l); in addListener()
77 if (listeners != null) { in removeListener()
79 Iterator<EventListener> iter = listeners.iterator(); in removeListener()
83 if (listeners.size() == 0) { in removeListener()
84 listeners = null; in removeListener()
[all …]
/external/guice/core/src/com/google/inject/internal/
DProvisionListenerStackCallback.java30 * 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 …]
DProvisionListenerCallbackStore.java66 // 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/
DProvisionListenerBinding.java27 * 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/
DExecutionList.java30 * <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 …]
DServiceManager.java82 * 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 …]
DAbstractService.java124 * 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 …]
DListenableFuture.java26 * A {@link Future} that accepts completion listeners. Each listener has an
93 * <p>There is no guaranteed ordering of execution of listeners, but any
103 * <p>Note: For fast, lightweight listeners that would be safe to execute in
105 * listeners, {@code directExecutor()} carries some caveats. For
119 * listeners are prevented from running during its execution, even if those
120 * listeners are to run in other executors.
123 * performed using listeners, see {@link
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/tests/integration/ec2/elb/
Dtest_connection.py43 self.listeners = [(80, 8000, 'HTTP')]
45 self.name, self.availability_zones, self.listeners)
84 self.assertEqual(self.balancer.listeners, self.listeners)
95 sorted(l.get_tuple() for l in balancers[0].listeners),
96 sorted(self.listeners + more_listeners)
109 sorted([l.get_tuple() for l in mod_balancers[0].listeners]),
116 self.assertEqual([l.get_tuple() for l in mod_balancers[0].listeners],
128 self.name, self.listeners[0][0], lb_policy_name)
140 sorted(l.get_tuple() for l in balancers[0].listeners),
141 sorted(self.listeners + more_listeners)
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/bin/
Delbadmin37 addl <name> Add listeners (specified by -l) to the ELB
99 print "Listeners"
102 for l in b.listeners:
147 def create(elb, name, zones, listeners): argument
150 for l in listeners:
212 def add_listener(elb, name, listeners): argument
213 """Add listeners to a given load balancer"""
215 for l in listeners:
225 """Remove listeners from a given load balancer"""
247 action="append", default=[], dest="listeners")
[all …]
/external/guava/guava/src/com/google/common/eventbus/
Dpackage-info.java34 * <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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/content/
DTestSharedPreferences.java13 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/
DShadowSensorManager.java20 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/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/
DPlotTest.java380 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 …]
/external/testng/src/test/java/test/listeners/
DSuiteAndInvokedMethodListenerTest.java1 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/testng/src/test/resources/
Dlistener-in-xml.xml4 <listeners>
5 <listener class-name="test.listeners.LListener" />
6 </listeners>
11 <class name="test.listeners.LSampleTest" />
/external/junit/src/org/junit/runner/notification/
DRunNotifier.java77 * Invoke to tell listeners that an atomic test is about to start.
93 * Invoke to tell listeners that an atomic test failed.
106 * Invoke to tell listeners that an atomic test flagged that it assumed
123 * Invoke to tell listeners that an atomic test was ignored.
136 * Invoke to tell listeners that an atomic test finished. Always invoke
138 * as listeners are likely to expect them to come in pairs.

12345678910>>...21