Home
last modified time | relevance | path

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

12345678910>>...17

/external/antlr/src/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/dropbear/
Dlistener.c42 struct Listener *listener; in set_listener_fds() local
46 listener = ses.listeners[i]; in set_listener_fds()
47 if (listener != NULL) { in set_listener_fds()
48 for (j = 0; j < listener->nsocks; j++) { in set_listener_fds()
49 FD_SET(listener->socks[j], readfds); in set_listener_fds()
59 struct Listener *listener; in handle_listeners() local
64 listener = ses.listeners[i]; in handle_listeners()
65 if (listener != NULL) { in handle_listeners()
66 for (j = 0; j < listener->nsocks; j++) { in handle_listeners()
67 sock = listener->socks[j]; in handle_listeners()
[all …]
Dtcp-accept.c37 static void cleanup_tcp(struct Listener *listener) { in cleanup_tcp() argument
39 struct TCPListener *tcpinfo = (struct TCPListener*)(listener->typedata); in cleanup_tcp()
46 static void tcp_acceptor(struct Listener *listener, int sock) { in tcp_acceptor() argument
52 struct TCPListener *tcpinfo = (struct TCPListener*)(listener->typedata); in tcp_acceptor()
104 struct Listener *listener = NULL; in listen_tcpfwd() local
132 listener = new_listener(socks, nsocks, CHANNEL_ID_TCPFORWARDED, tcpinfo, in listen_tcpfwd()
135 if (listener == NULL) { in listen_tcpfwd()
/external/chromium/chrome/browser/extensions/
Dextension_event_router.cc99 EventListener listener(process, extension_id); in AddEventListener() local
100 DCHECK_EQ(listeners_[event_name].count(listener), 0u) << event_name; in AddEventListener()
101 listeners_[event_name].insert(listener); in AddEventListener()
116 EventListener listener(process, extension_id); in RemoveEventListener() local
117 DCHECK_EQ(listeners_[event_name].count(listener), 1u) << in RemoveEventListener()
120 listeners_[event_name].erase(listener); in RemoveEventListener()
136 profile_->GetRuntimeId(), listener.extension_id, event_name)); in RemoveEventListener()
151 for (std::set<EventListener>::iterator listener = listeners.begin(); in ExtensionHasEventListener() local
152 listener != listeners.end(); ++listener) { in ExtensionHasEventListener()
153 if (listener->extension_id == extension_id) in ExtensionHasEventListener()
[all …]
/external/webkit/Source/WebCore/inspector/front-end/
DObject.js30 addEventListener: function(eventType, listener, thisObject) argument
36 this._listeners[eventType].push({ thisObject: thisObject, listener: listener }); property
39 removeEventListener: function(eventType, listener, thisObject) argument
45 … if (listener && listeners[i].listener === listener && listeners[i].thisObject === thisObject)
47 else if (!listener && thisObject && listeners[i].thisObject === thisObject)
90 listeners[i].listener.call(listeners[i].thisObject, event);
/external/chromium/chrome/browser/chromeos/
Dsystem_key_event_listener.cc93 SystemKeyEventListener* listener = static_cast<SystemKeyEventListener*>(data); in GdkEventFilter() local
101 if ((keycode == listener->key_f8_) || in GdkEventFilter()
102 (keycode == listener->key_volume_mute_)) { in GdkEventFilter()
103 if (keycode == listener->key_f8_) in GdkEventFilter()
105 listener->OnVolumeMute(); in GdkEventFilter()
107 } else if ((keycode == listener->key_f9_) || in GdkEventFilter()
108 keycode == listener->key_volume_down_) { in GdkEventFilter()
109 if (keycode == listener->key_f9_) in GdkEventFilter()
111 listener->OnVolumeDown(); in GdkEventFilter()
113 } else if ((keycode == listener->key_f10_) || in GdkEventFilter()
[all …]
/external/webkit/Source/WebKit/win/
DDefaultPolicyDelegate.cpp105 /*[in]*/ IWebPolicyDecisionListener* listener) in decidePolicyForNavigationAction() argument
117 listener->use(); in decidePolicyForNavigationAction()
119 listener->use(); in decidePolicyForNavigationAction()
128 listener->ignore(); in decidePolicyForNavigationAction()
140 /*[in]*/ IWebPolicyDecisionListener* listener) in decidePolicyForNewWindowAction() argument
142 listener->use(); in decidePolicyForNewWindowAction()
151 /*[in]*/ IWebPolicyDecisionListener* listener) in decidePolicyForMIMEType() argument
167 listener->ignore(); in decidePolicyForMIMEType()
169 listener->use(); in decidePolicyForMIMEType()
171 listener->ignore(); in decidePolicyForMIMEType()
[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()
/external/chromium/testing/gmock/include/gmock/
Dgmock-matchers.h128 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const = 0;
195 bool MatchAndExplain(T x, MatchResultListener* listener) const { in MatchAndExplain() argument
196 return impl_->MatchAndExplain(x, listener); in MatchAndExplain()
215 StreamMatchResultListener listener(os); in ExplainMatchResultTo()
216 MatchAndExplain(x, &listener); in ExplainMatchResultTo()
348 virtual bool MatchAndExplain(T x, MatchResultListener* listener) const { in MatchAndExplain() argument
349 return impl_.MatchAndExplain(x, listener); in MatchAndExplain()
482 MatchResultListener* listener) { in MatchPrintAndExplain() argument
483 if (!listener->IsInterested()) { in MatchPrintAndExplain()
492 UniversalPrint(value, listener->stream()); in MatchPrintAndExplain()
[all …]
/external/webkit/Source/WebCore/bindings/cpp/
DWebDOMDOMWindowCustom.cpp27 …w::addEventListener(const WebDOMString& type, const WebDOMEventListener& listener, bool useCapture) in addEventListener() argument
32 if (toWebCore(listener)) in addEventListener()
33 impl()->addEventListener(type, toWebCore(listener), useCapture); in addEventListener()
36 …removeEventListener(const WebDOMString& type, const WebDOMEventListener& listener, bool useCapture) in removeEventListener() argument
41 if (toWebCore(listener)) in removeEventListener()
42 impl()->removeEventListener(type, toWebCore(listener), useCapture); in removeEventListener()
/external/webkit/Source/WebCore/dom/
DRegisteredEventListener.h34 RegisteredEventListener(PassRefPtr<EventListener> listener, bool useCapture) in RegisteredEventListener() argument
35 : listener(listener) in RegisteredEventListener()
40 RefPtr<EventListener> listener; variable
46 return *a.listener == *b.listener && a.useCapture == b.useCapture;
DEventTarget.cpp207 …ddEventListener(const AtomicString& eventType, PassRefPtr<EventListener> listener, bool useCapture) in addEventListener() argument
217 RegisteredEventListener registeredListener(listener, useCapture); in addEventListener()
227 bool EventTarget::removeEventListener(const AtomicString& eventType, EventListener* listener, bool … in removeEventListener() argument
238 RegisteredEventListener registeredListener(listener, useCapture); in removeEventListener()
266 …arget::setAttributeEventListener(const AtomicString& eventType, PassRefPtr<EventListener> listener) in setAttributeEventListener() argument
269 if (!listener) in setAttributeEventListener()
271 return addEventListener(eventType, listener, false); in setAttributeEventListener()
278 if (entry[i].listener->isAttribute()) in getAttributeEventListener()
279 return entry[i].listener.get(); in getAttributeEventListener()
286 EventListener* listener = getAttributeEventListener(eventType); in clearAttributeEventListener() local
[all …]
/external/webkit/Source/WebCore/bindings/v8/
DV8EventListener.cpp38 V8EventListener::V8EventListener(v8::Local<v8::Object> listener, bool isAttribute, const WorldConte… in V8EventListener() argument
41 setListenerObject(listener); in V8EventListener()
46 v8::Local<v8::Object> listener = getListenerObject(context); in getListenerFunction() local
49 if (listener.IsEmpty()) in getListenerFunction()
52 if (listener->IsFunction()) in getListenerFunction()
53 return v8::Local<v8::Function>::Cast(listener); in getListenerFunction()
55 if (listener->IsObject()) { in getListenerFunction()
56 v8::Local<v8::Value> property = listener->Get(v8::String::NewSymbol("handleEvent")); in getListenerFunction()
DV8WorkerContextErrorHandler.cpp42 V8WorkerContextErrorHandler::V8WorkerContextErrorHandler(v8::Local<v8::Object> listener, bool isInl… in V8WorkerContextErrorHandler() argument
43 : V8WorkerContextEventListener(listener, isInline, worldContext) in V8WorkerContextErrorHandler()
50 v8::Local<v8::Object> listener = getListenerObject(context); in callListenerFunction() local
52 if (!listener.IsEmpty() && listener->IsFunction()) { in callListenerFunction()
54 v8::Local<v8::Function> callFunction = v8::Local<v8::Function>::Cast(listener); in callListenerFunction()
/external/webkit/Source/WebCore/bindings/objc/
DObjCEventListener.mm43 ObjCEventListener* ObjCEventListener::find(ObjCListener listener)
48 return map->get(listener);
51 PassRefPtr<ObjCEventListener> ObjCEventListener::wrap(ObjCListener listener)
53 RefPtr<ObjCEventListener> wrapper = find(listener);
56 return adoptRef(new ObjCEventListener(listener));
59 ObjCEventListener::ObjCEventListener(ObjCListener listener)
61 , m_listener(listener)
68 map->set(listener, this);
78 ObjCListener listener = m_listener.get();
79 [listener handleEvent:kit(event)];
[all …]
/external/webkit/Source/WebCore/bindings/gobject/
DGObjectEventListener.h38 …RefPtr<GObjectEventListener> listener(adoptRef(new GObjectEventListener(object, target, domEventNa… in addEventListener()
39 return target->addEventListener(domEventName, listener.release(), useCapture); in addEventListener()
48 static void gobjectDestroyedCallback(GObjectEventListener* listener, GObject*) in gobjectDestroyedCallback() argument
50 listener->gobjectDestroyed(); in gobjectDestroyedCallback()
53 static const GObjectEventListener* cast(const EventListener* listener) in cast() argument
55 return listener->type() == GObjectEventListenerType in cast()
56 ? static_cast<const GObjectEventListener*>(listener) in cast()
/external/webkit/Source/WebCore/bindings/js/
DJSEventListener.h33 …static PassRefPtr<JSEventListener> create(JSC::JSObject* listener, JSC::JSObject* wrapper, bool is… in create() argument
35 return adoptRef(new JSEventListener(listener, wrapper, isAttribute, isolatedWorld)); in create()
38 static const JSEventListener* cast(const EventListener* listener) in cast() argument
40 return listener->type() == JSEventListenerType in cast()
41 ? static_cast<const JSEventListener*>(listener) in cast()
94 …ener> createJSAttributeEventListener(JSC::ExecState* exec, JSC::JSValue listener, JSC::JSObject* w… in createJSAttributeEventListener() argument
96 if (!listener.isObject()) in createJSAttributeEventListener()
99 return JSEventListener::create(asObject(listener), wrapper, true, currentWorld(exec)); in createJSAttributeEventListener()
/external/webkit/Source/WebCore/css/
DMediaQueryMatcher.cpp34 MediaQueryMatcher::Listener::Listener(PassRefPtr<MediaQueryListListener> listener, PassRefPtr<Media… in Listener() argument
35 : m_listener(listener) in Listener()
113 void MediaQueryMatcher::addListener(PassRefPtr<MediaQueryListListener> listener, PassRefPtr<MediaQu… in addListener() argument
119 if (*m_listeners[i]->listener() == *listener && m_listeners[i]->query() == query) in addListener()
123 m_listeners.append(new Listener(listener, query)); in addListener()
126 void MediaQueryMatcher::removeListener(MediaQueryListListener* listener, MediaQueryList* query) in removeListener() argument
132 if (*m_listeners[i]->listener() == *listener && m_listeners[i]->query() == query) { in removeListener()
DMediaQueryList.cpp53 void MediaQueryList::addListener(PassRefPtr<MediaQueryListListener> listener) in addListener() argument
55 if (!listener) in addListener()
58 m_matcher->addListener(listener, this); in addListener()
61 void MediaQueryList::removeListener(PassRefPtr<MediaQueryListListener> listener) in removeListener() argument
63 if (!listener) in removeListener()
66 m_matcher->removeListener(listener.get(), this); in removeListener()
/external/webkit/Source/WebCore/platform/win/
DWindowMessageBroadcaster.cpp44 void WindowMessageBroadcaster::addListener(HWND hwnd, WindowMessageListener* listener) in addListener() argument
52 broadcaster->addListener(listener); in addListener()
55 void WindowMessageBroadcaster::removeListener(HWND hwnd, WindowMessageListener* listener) in removeListener() argument
61 broadcaster->removeListener(listener); in removeListener()
75 void WindowMessageBroadcaster::addListener(WindowMessageListener* listener) in addListener() argument
83 m_listeners.add(listener); in addListener()
86 void WindowMessageBroadcaster::removeListener(WindowMessageListener* listener) in removeListener() argument
88 ListenerSet::iterator found = m_listeners.find(listener); in removeListener()
/external/chromium/third_party/libevent/
Devutil.c77 int listener = -1; in evutil_socketpair()
98 listener = socket(AF_INET, type, 0); in evutil_socketpair()
99 if (listener < 0) in evutil_socketpair()
105 if (bind(listener, (struct sockaddr *) &listen_addr, sizeof (listen_addr)) in evutil_socketpair()
108 if (listen(listener, 1) == -1) in evutil_socketpair()
116 if (getsockname(listener, (struct sockaddr *) &connect_addr, &size) == -1) in evutil_socketpair()
125 acceptor = accept(listener, (struct sockaddr *) &listen_addr, &size); in evutil_socketpair()
130 EVUTIL_CLOSESOCKET(listener); in evutil_socketpair()
150 if (listener != -1) in evutil_socketpair()
151 EVUTIL_CLOSESOCKET(listener); in evutil_socketpair()
/external/llvm/include/llvm/Support/
DRegistry.h62 class listener; variable
69 for (listener *Cur = ListenerHead; Cur; Cur = Cur->Next) in Announce()
76 friend class listener; variable
77 static listener *ListenerHead, *ListenerTail;
135 class listener {
136 listener *Prev, *Next;
153 listener() : Prev(ListenerTail), Next(0) { in listener() function
161 virtual ~listener() { in ~listener()
216 typename Registry<T,U>::listener *Registry<T,U>::ListenerHead;
219 typename Registry<T,U>::listener *Registry<T,U>::ListenerTail;
/external/webkit/Source/WebKit/qt/WebCoreSupport/
DGeolocationPermissionClientQt.cpp63 …ermissionClientQt::requestGeolocationPermissionForFrame(QWebFrame* webFrame, Geolocation* listener) in requestGeolocationPermissionForFrame() argument
65 m_pendingPermissionRequests.insert(webFrame, listener); in requestGeolocationPermissionForFrame()
72 …ionClientQt::cancelGeolocationPermissionRequestForFrame(QWebFrame* webFrame, Geolocation* listener) in cancelGeolocationPermissionRequestForFrame() argument
85 Geolocation* listener = m_pendingPermissionRequests.value(webFrame); in setPermission() local
88 listener->setIsAllowed(true); in setPermission()
90 listener->setIsAllowed(false); in setPermission()

12345678910>>...17