Home
last modified time | relevance | path

Searched refs:listener (Results 1 – 25 of 602) sorted by relevance

12345678910>>...25

/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/debug/
Devent-hub.rb28 for listener in @listeners
29 listener.add_child( root, child )
34 for listener in @listeners
35 listener.backtrack( level )
40 for listener in @listeners
41 listener.become_root( new_root, old_root )
46 for listener in @listeners
47 listener.begin_backtrack( level )
52 for listener in @listeners
53 listener.begin_resync()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/
DDebugEventHub.cs59 public virtual void AddListener(IDebugEventListener listener) { in AddListener() argument
60 _listeners.Add(listener); in AddListener()
74 IDebugEventListener listener = _listeners[i]; in EnterRule()
75 listener.EnterRule(grammarFileName, ruleName); in EnterRule()
81 IDebugEventListener listener = _listeners[i]; in ExitRule()
82 listener.ExitRule(grammarFileName, ruleName); in ExitRule()
88 IDebugEventListener listener = _listeners[i]; in EnterAlt()
89 listener.EnterAlt(alt); in EnterAlt()
95 IDebugEventListener listener = _listeners[i]; in EnterSubRule()
96 listener.EnterSubRule(decisionNumber); in EnterSubRule()
[all …]
DRemoteDebugEventSocketListener.cs49 IDebugEventListener listener; field in Antlr.Runtime.Debug.RemoteDebugEventSocketListener
238 public RemoteDebugEventSocketListener(IDebugEventListener listener, in RemoteDebugEventSocketListener() argument
241 this.listener = listener; in RemoteDebugEventSocketListener()
327 listener.Commence(); // inform listener after handshake in Handshake()
343 listener.EnterRule(elements[1], elements[2]); in Dispatch()
345 listener.ExitRule(elements[1], elements[2]); in Dispatch()
347 listener.EnterAlt(int.Parse(elements[1])); in Dispatch()
349 listener.EnterSubRule(int.Parse(elements[1])); in Dispatch()
351 listener.ExitSubRule(int.Parse(elements[1])); in Dispatch()
353 listener.EnterDecision(int.Parse(elements[1]), elements[2].Equals("true")); in Dispatch()
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DDebugEventHub.cs63 public virtual void AddListener( IDebugEventListener listener ) in AddListener() argument
65 _listeners.Add( listener ); in AddListener()
81 IDebugEventListener listener = _listeners[i]; in EnterRule()
82 listener.EnterRule( grammarFileName, ruleName ); in EnterRule()
90 IDebugEventListener listener = _listeners[i]; in ExitRule()
91 listener.ExitRule( grammarFileName, ruleName ); in ExitRule()
99 IDebugEventListener listener = _listeners[i]; in EnterAlt()
100 listener.EnterAlt( alt ); in EnterAlt()
108 IDebugEventListener listener = _listeners[i]; in EnterSubRule()
109 listener.EnterSubRule( decisionNumber ); in EnterSubRule()
[all …]
DRemoteDebugEventSocketListener.cs52 IDebugEventListener listener; field in Antlr.Runtime.Debug.RemoteDebugEventSocketListener
290 public RemoteDebugEventSocketListener( IDebugEventListener listener, in RemoteDebugEventSocketListener() argument
294 this.listener = listener; in RemoteDebugEventSocketListener()
408 listener.Commence(); // inform listener after handshake in Handshake()
428 listener.EnterRule( elements[1], elements[2] ); in Dispatch()
432 listener.ExitRule( elements[1], elements[2] ); in Dispatch()
436 listener.EnterAlt( int.Parse( elements[1] ) ); in Dispatch()
440 listener.EnterSubRule( int.Parse( elements[1] ) ); in Dispatch()
444 listener.ExitSubRule( int.Parse( elements[1] ) ); in Dispatch()
448 listener.EnterDecision(int.Parse(elements[1]), elements[2].Equals("true")); in Dispatch()
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/
DDebugEventHub.java45 public DebugEventHub(DebugEventListener listener) { in DebugEventHub() argument
46 listeners.add(listener); in DebugEventHub()
57 public void addListener(DebugEventListener listener) { in addListener() argument
58 listeners.add(listener); in addListener()
72 DebugEventListener listener = (DebugEventListener)listeners.get(i); in enterRule() local
73 listener.enterRule(grammarFileName,ruleName); in enterRule()
79 DebugEventListener listener = (DebugEventListener)listeners.get(i); in exitRule() local
80 listener.exitRule(grammarFileName, ruleName); in exitRule()
86 DebugEventListener listener = (DebugEventListener)listeners.get(i); in enterAlt() local
87 listener.enterAlt(alt); in enterAlt()
[all …]
DDebugEventRepeater.java43 protected DebugEventListener listener; field in DebugEventRepeater
45 public DebugEventRepeater(DebugEventListener listener) { in DebugEventRepeater() argument
46 this.listener = listener; in DebugEventRepeater()
49 …public void enterRule(String grammarFileName, String ruleName) { listener.enterRule(grammarFileNam… in enterRule()
50 …public void exitRule(String grammarFileName, String ruleName) { listener.exitRule(grammarFileName,… in exitRule()
51 public void enterAlt(int alt) { listener.enterAlt(alt); } in enterAlt()
52 public void enterSubRule(int decisionNumber) { listener.enterSubRule(decisionNumber); } in enterSubRule()
53 public void exitSubRule(int decisionNumber) { listener.exitSubRule(decisionNumber); } in exitSubRule()
54 …public void enterDecision(int decisionNumber, boolean couldBacktrack) { listener.enterDecision(dec… in enterDecision()
55 public void exitDecision(int decisionNumber) { listener.exitDecision(decisionNumber); } in exitDecision()
[all …]
DRemoteDebugEventSocketListener.java43 DebugEventListener listener; field in RemoteDebugEventSocketListener
158 public RemoteDebugEventSocketListener(DebugEventListener listener, in RemoteDebugEventSocketListener() argument
162 this.listener = listener; in RemoteDebugEventSocketListener()
244 listener.commence(); // inform listener after handshake in handshake()
260 listener.enterRule(elements[1], elements[2]); in dispatch()
263 listener.exitRule(elements[1], elements[2]); in dispatch()
266 listener.enterAlt(Integer.parseInt(elements[1])); in dispatch()
269 listener.enterSubRule(Integer.parseInt(elements[1])); in dispatch()
272 listener.exitSubRule(Integer.parseInt(elements[1])); in dispatch()
275 listener.enterDecision(Integer.parseInt(elements[1]), elements[2].equals("true")); in dispatch()
[all …]
/external/v8/src/compiler/
Dgraph-unittest.cc105 MatchResultListener* listener) { in PrintMatchAndExplain() argument
108 *listener << "whose " << value_name << " " << value << " doesn't match"; in PrintMatchAndExplain()
110 *listener << ", " << value_listener.str(); in PrintMatchAndExplain()
126 virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const in MatchAndExplain()
129 *listener << "which is NULL"; in MatchAndExplain()
133 *listener << "whose opcode is " << IrOpcode::Mnemonic(node->opcode()) in MatchAndExplain()
162 virtual bool MatchAndExplain(Node* node, MatchResultListener* listener) const in MatchAndExplain()
164 return (NodeMatcher::MatchAndExplain(node, listener) && in MatchAndExplain()
166 "value", value_matcher_, listener) && in MatchAndExplain()
168 "control", control_matcher_, listener)); in MatchAndExplain()
[all …]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DAnimationTest.java22 private TestAnimationListener listener; field in AnimationTest
28 listener = new TestAnimationListener(); in setUp()
29 animation.setAnimationListener(listener); in setUp()
34 assertThat(listener.wasStartCalled, equalTo(false)); in startShouldInvokeStartCallback()
36 assertThat(listener.wasStartCalled, equalTo(true)); in startShouldInvokeStartCallback()
37 assertThat(listener.wasEndCalled, equalTo(false)); in startShouldInvokeStartCallback()
38 assertThat(listener.wasRepeatCalled, equalTo(false)); in startShouldInvokeStartCallback()
43 assertThat(listener.wasEndCalled, equalTo(false)); in cancelShouldInvokeEndCallback()
45 assertThat(listener.wasStartCalled, equalTo(false)); in cancelShouldInvokeEndCallback()
46 assertThat(listener.wasEndCalled, equalTo(true)); in cancelShouldInvokeEndCallback()
[all …]
DSensorManagerTest.java38 SensorEventListener listener = registerListener(); in shouldReturnHasListenerAfterRegisteringListener() local
40 assertTrue(shadow.hasListener(listener)); in shouldReturnHasListenerAfterRegisteringListener()
44 SensorEventListener listener = new TestSensorEventListener(); in registerListener() local
46 sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL); in registerListener()
48 return listener; in registerListener()
53 SensorEventListener listener = registerListener(); in shouldReturnHasNoListenerAfterUnregisterListener() local
54 …sensorManager.unregisterListener(listener, sensorManager.getDefaultSensor(SensorManager.SENSOR_ACC… in shouldReturnHasNoListenerAfterUnregisterListener()
56 assertFalse(shadow.hasListener(listener)); in shouldReturnHasNoListenerAfterUnregisterListener()
61 SensorEventListener listener = new TestSensorEventListener(); in shouldReturnHasNoListenerByDefault() local
63 assertFalse(shadow.hasListener(listener)); in shouldReturnHasNoListenerByDefault()
DGalleryTest.java19 private TestOnKeyListener listener; field in GalleryTest
25 listener = new TestOnKeyListener(); in setUp()
26 gallery.setOnKeyListener(listener); in setUp()
33 assertThat(listener.keyCode, equalTo(KeyEvent.KEYCODE_DPAD_RIGHT)); in onKeyDown_dPadRightShouldTriggerKeyEventDPadRight()
34 assertThat((Gallery) listener.view, sameInstance(gallery)); in onKeyDown_dPadRightShouldTriggerKeyEventDPadRight()
35 assertThat(listener.event, sameInstance(event)); in onKeyDown_dPadRightShouldTriggerKeyEventDPadRight()
41 assertThat(listener.keyCode, equalTo(KeyEvent.KEYCODE_DPAD_RIGHT)); in onKeyDown_dPadLeftShouldTriggerKeyEventListener()
42 assertThat((Gallery)listener.view, sameInstance(gallery)); in onKeyDown_dPadLeftShouldTriggerKeyEventListener()
43 assertThat(listener.event, sameInstance(event)); in onKeyDown_dPadLeftShouldTriggerKeyEventListener()
/external/antlr/antlr-3.4/runtime/Python/tests/
Dt059debug.py74 def execParser(self, grammar, grammarEntry, input, listener, argument
76 if listener is None:
92 parser = parserCls(tStream, dbg=listener, port=port, **parser_args)
96 if listener is None:
112 listener = antlr3.debug.RecordDebugEventListener()
117 listener=listener)
122 lt_events = [event for event in listener.events
133 found = [event for event in listener.events
152 listener=None)
187 listener=None)
[all …]
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowAlertDialog.java102 …blic void setButton(int whichButton, CharSequence text, DialogInterface.OnClickListener listener) { in setButton() argument
105 … positiveButton = createButton(context, realAlertDialog, whichButton, text, listener); in setButton()
108 … negativeButton = createButton(context, realAlertDialog, whichButton, text, listener); in setButton()
111 neutralButton = createButton(context, realAlertDialog, whichButton, text, listener); in setButton()
117 …rface dialog, final int which, CharSequence text, final DialogInterface.OnClickListener listener) { in createButton() argument
118 if (text == null && listener == null) { in createButton()
127 if (listener != null) { in createButton()
128 listener.onClick(dialog, which); in createButton()
282 … public AlertDialog.Builder setItems(int itemsId, final DialogInterface.OnClickListener listener) { in setItems() argument
286 this.clickListener = listener; in setItems()
[all …]
DShadowAnimation.java18 private Animation.AnimationListener listener; field in ShadowAnimation
33 listener = l; in setAnimationListener()
39 if (listener != null) { in start()
40 listener.onAnimationStart(realAnimation); in start()
47 if (listener != null) { in cancel()
48 listener.onAnimationEnd(realAnimation); in cancel()
123 return listener; in getAnimationListener()
130 if (listener != null) { in invokeRepeat()
131 listener.onAnimationRepeat(realAnimation); in invokeRepeat()
139 if (listener != null) { in invokeEnd()
[all …]
DShadowSeekBar.java15 private SeekBar.OnSeekBarChangeListener listener; field in ShadowSeekBar
18 public void setOnSeekBarChangeListener(SeekBar.OnSeekBarChangeListener listener) { in setOnSeekBarChangeListener() argument
19 this.listener = listener; in setOnSeekBarChangeListener()
26 if(listener != null) { in setProgress()
27 listener.onProgressChanged( realSeekBar, progress, true); in setProgress()
32 return this.listener; in getOnSeekBarChangeListener()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DServiceManagerTest.java125 RecordingListener listener = new RecordingListener(); in testServiceStartStop() local
126 manager.addListener(listener); in testServiceStartStop()
132 assertTrue(listener.healthyCalled); in testServiceStartStop()
133 assertFalse(listener.stoppedCalled); in testServiceStartStop()
134 assertTrue(listener.failedServices.isEmpty()); in testServiceStartStop()
138 assertTrue(listener.stoppedCalled); in testServiceStartStop()
139 assertTrue(listener.failedServices.isEmpty()); in testServiceStartStop()
149 RecordingListener listener = new RecordingListener(); in testFailStart() local
150 manager.addListener(listener); in testFailStart()
157 assertFalse(listener.healthyCalled); in testFailStart()
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DNullCacheTest.java35 QueuingRemovalListener<Object, Object> listener; field in NullCacheTest
39 listener = queuingRemovalListener(); in setUp()
46 .removalListener(listener) in testGet()
51 RemovalNotification<Object, Object> notification = listener.remove(); in testGet()
55 assertTrue(listener.isEmpty()); in testGet()
63 .removalListener(listener) in testGet_expireAfterWrite()
68 RemovalNotification<Object, Object> notification = listener.remove(); in testGet_expireAfterWrite()
72 assertTrue(listener.isEmpty()); in testGet_expireAfterWrite()
80 .removalListener(listener) in testGet_expireAfterAccess()
85 RemovalNotification<Object, Object> notification = listener.remove(); in testGet_expireAfterAccess()
[all …]
/external/jetty/src/java/org/eclipse/jetty/util/component/
DAbstractLifeCycle.java137 public void addLifeCycleListener(LifeCycle.Listener listener) in addLifeCycleListener() argument
139 _listeners.add(listener); in addLifeCycleListener()
142 public void removeLifeCycleListener(LifeCycle.Listener listener) in removeLifeCycleListener() argument
144 _listeners.remove(listener); in removeLifeCycleListener()
173 for (Listener listener : _listeners) in setStarted()
174 listener.lifeCycleStarted(this); in setStarted()
181 for (Listener listener : _listeners) in setStarting()
182 listener.lifeCycleStarting(this); in setStarting()
189 for (Listener listener : _listeners) in setStopping()
190 listener.lifeCycleStopping(this); in setStopping()
[all …]
/external/lldb/source/Core/
DBroadcaster.cpp109 Broadcaster::AddInitialEventsToListener (Listener *listener, uint32_t requested_events) in AddInitialEventsToListener() argument
115 Broadcaster::AddListener (Listener* listener, uint32_t event_mask) in AddListener() argument
117 if (listener == NULL) in AddListener()
128 if (pos->first == listener) in AddListener()
145 m_listeners.push_back(std::make_pair(listener, available_event_types)); in AddListener()
156 AddInitialEventsToListener (listener, available_event_types); in AddListener()
184 Broadcaster::RemoveListener (Listener* listener, uint32_t event_mask) in RemoveListener() argument
191 if (pos->first == listener) in RemoveListener()
293 Broadcaster::HijackBroadcaster (Listener *listener, uint32_t event_mask) in HijackBroadcaster() argument
303 listener->m_name.c_str(), in HijackBroadcaster()
[all …]
/external/jmonkeyengine/engine/src/networking/com/jme3/network/
DClient.java97 public void addClientStateListener( ClientStateListener listener ); in addClientStateListener() argument
102 public void removeClientStateListener( ClientStateListener listener ); in removeClientStateListener() argument
108 public void addMessageListener( MessageListener<? super Client> listener ); in addMessageListener() argument
114 public void addMessageListener( MessageListener<? super Client> listener, Class... classes ); in addMessageListener() argument
120 public void removeMessageListener( MessageListener<? super Client> listener ); in removeMessageListener() argument
126 … public void removeMessageListener( MessageListener<? super Client> listener, Class... classes ); in removeMessageListener() argument
135 public void addErrorListener( ErrorListener<? super Client> listener ); in addErrorListener() argument
140 public void removeErrorListener( ErrorListener<? super Client> listener ); in removeErrorListener() argument
/external/lldb/test/python_api/default-constructor/
Dsb_broadcaster.py11 listener = lldb.SBListener("fuzz_testing")
12 obj.AddInitialEventsToListener(listener, 0xffffffff)
13 obj.AddInitialEventsToListener(listener, 0)
14 obj.AddListener(listener, 0xffffffff)
15 obj.AddListener(listener, 0)
18 obj.RemoveListener(listener, 0xffffffff)
19 obj.RemoveListener(listener, 0)
/external/okhttp/okhttp-ws-tests/src/test/java/com/squareup/okhttp/ws/
DWebSocketCallTest.java41 private final WebSocketRecorder listener = new WebSocketRecorder(); field in WebSocketCallTest
46 listener.assertExhausted(); in tearDown()
55 listener.assertPong(new Buffer().writeUtf8("Hello, WebSockets!")); in clientPingPong()
77 listener.assertTextMessage("Hello, WebSockets!"); in serverMessage()
106 listener.assertTextMessage("Hello, WebSockets!"); in serverStreamingMessage()
112 listener.assertFailure(ProtocolException.class, "Expected HTTP 101 response but was '200 OK'"); in okButNotOk()
118 listener.assertFailure(ProtocolException.class, in notFound()
128 listener.assertFailure(ProtocolException.class, in missingConnectionHeader()
138 listener.assertFailure(ProtocolException.class, in wrongConnectionHeader()
148 listener.assertFailure(ProtocolException.class, in missingUpgradeHeader()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/input/
DInputManager.java166 InputListener listener = listeners.get(j); in invokeActions() local
167 if (listener instanceof ActionListener) { in invokeActions()
168 ((ActionListener) listener).onAction(mapping.name, pressed, frameTPF); in invokeActions()
241 InputListener listener = listeners.get(j); in invokeAnalogs() local
242 if (listener instanceof AnalogListener) { in invokeAnalogs()
244 ((AnalogListener) listener).onAnalog(mapping.name, value, frameTPF); in invokeAnalogs()
272 InputListener listener = listeners.get(j); in invokeAnalogsAndActions() local
274 if (listener instanceof ActionListener && valueChanged) { in invokeAnalogsAndActions()
275 ((ActionListener) listener).onAction(mapping.name, true, frameTPF); in invokeAnalogsAndActions()
278 if (listener instanceof AnalogListener) { in invokeAnalogsAndActions()
[all …]
/external/embunit/src/
DTestResult.c43 self->listener = listner; in TestResult_init()
49 if (self->listener) { in TestResult_startTest()
50 TestListner_startTest(self->listener, test); in TestResult_startTest()
56 if (self->listener) { in TestResult_endTest()
57 TestListner_endTest(self->listener, test); in TestResult_endTest()
64 if (self->listener) { in TestResult_addFailure()
65 TestListner_addFailure(self->listener, test, msg, line, file); in TestResult_addFailure()

12345678910>>...25