/external/antlr/src/org/antlr/runtime/debug/ |
DebugEventRepeater.java | 34 * listener sent into the ctor. Useful if you want to listen in on a few 43 protected DebugEventListener listener; field in class:DebugEventRepeater 45 public DebugEventRepeater(DebugEventListener listener) { 46 this.listener = listener; 49 public void enterRule(String grammarFileName, String ruleName) { listener.enterRule(grammarFileName, ruleName); } 50 public void exitRule(String grammarFileName, String ruleName) { listener.exitRule(grammarFileName, ruleName); } 51 public void enterAlt(int alt) { listener.enterAlt(alt); } 52 public void enterSubRule(int decisionNumber) { listener.enterSubRule(decisionNumber); } 53 public void exitSubRule(int decisionNumber) { listener.exitSubRule(decisionNumber); [all...] |
DebugEventHub.java | 45 public DebugEventHub(DebugEventListener listener) { 46 listeners.add(listener); 54 /** Add another listener to broadcast events too. Not thread-safe. 57 public void addListener(DebugEventListener listener) { 58 listeners.add(listener); 64 public void exec(DebugEventListener listener) {listener.enterRule(ruleName);}} 72 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 73 listener.enterRule(grammarFileName,ruleName); 79 DebugEventListener listener = (DebugEventListener)listeners.get(i) local 86 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 93 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 100 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 107 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 114 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 121 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 128 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 135 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 142 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 149 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 156 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 163 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 170 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 177 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 184 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 191 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 198 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 205 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 212 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 219 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 229 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 236 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 246 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 253 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 260 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 267 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 274 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 281 DebugEventListener listener = (DebugEventListener)listeners.get(i); local 288 DebugEventListener listener = (DebugEventListener)listeners.get(i); local [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
ViewTreeObserverTest.java | 75 MockOnGlobalFocusChangeListener listener = new MockOnGlobalFocusChangeListener(); local 76 mViewTreeObserver.addOnGlobalFocusChangeListener(listener); 77 assertFalse(listener.hasCalledOnGlobalFocusChanged()); 87 assertTrue(listener.hasCalledOnGlobalFocusChanged()); 95 MockOnGlobalLayoutListener listener = new MockOnGlobalLayoutListener(); local 96 assertFalse(listener.hasCalledOnGlobalLayout()); 97 mViewTreeObserver.addOnGlobalLayoutListener(listener); 99 assertTrue(listener.hasCalledOnGlobalLayout()); 106 MockOnPreDrawListener listener = new MockOnPreDrawListener(); local 107 assertFalse(listener.hasCalledOnPreDraw()) 121 MockOnTouchModeChangeListener listener = new MockOnTouchModeChangeListener(); local 140 MockOnComputeInternalInsetsListener listener = new MockOnComputeInternalInsetsListener(); local 148 MockOnComputeInternalInsetsListener listener = new MockOnComputeInternalInsetsListener(); local 156 MockOnGlobalLayoutListener listener = new MockOnGlobalLayoutListener(); local 167 MockOnPreDrawListener listener = new MockOnPreDrawListener(); local 185 MockOnGlobalLayoutListener listener = new MockOnGlobalLayoutListener(); local 204 MockOnGlobalFocusChangeListener listener = new MockOnGlobalFocusChangeListener(); local 233 MockOnPreDrawListener listener = new MockOnPreDrawListener(); local 253 MockOnTouchModeChangeListener listener = new MockOnTouchModeChangeListener(); local 285 MockOnScrollChangedListener listener = new MockOnScrollChangedListener(); local [all...] |
/external/dropbear/ |
listener.c | 26 #include "listener.h" 33 ses.listeners = (struct Listener**)m_malloc(sizeof(struct Listener*)); 42 struct Listener *listener; local 46 listener = ses.listeners[i]; 47 if (listener != NULL) { 48 for (j = 0; j < listener->nsocks; j++) { 49 FD_SET(listener->socks[j], readfds); 59 struct Listener *listener local 139 struct Listener* listener; local [all...] |
listener.h | 31 struct Listener { 38 void (*acceptor)(struct Listener*, int sock); 39 void (*cleanup)(struct Listener*); 53 struct Listener* new_listener(int socks[], unsigned int nsocks, 55 void (*acceptor)(struct Listener* listener, int sock), 56 void (*cleanup)(struct Listener*)); 58 struct Listener * get_listener(int type, void* typedata, 61 void remove_listener(struct Listener* listener); [all...] |
/libcore/luni/src/main/java/java/beans/ |
PropertyChangeListenerProxy.java | 23 * The implementation of this listener proxy just delegates the received events 24 * to its listener. 32 * Creates a new listener proxy that associates a listener with a property 37 * @param listener 38 * the listener to delegate incoming events to. 41 PropertyChangeListener listener) { 42 super(listener); 47 * Returns the name of the property associated with this listener proxy. 56 PropertyChangeListener listener = (PropertyChangeListener) getListener() local [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
MonitoredActivity.java | 50 public void addLifeCycleListener(LifeCycleListener listener) { 51 if (mListeners.contains(listener)) return; 52 mListeners.add(listener); 55 public void removeLifeCycleListener(LifeCycleListener listener) { 56 mListeners.remove(listener); 62 for (LifeCycleListener listener : mListeners) { 63 listener.onActivityCreated(this); 70 for (LifeCycleListener listener : mListeners) { 71 listener.onActivityDestroyed(this); 78 for (LifeCycleListener listener : mListeners) [all...] |
/external/icu4c/common/ |
servnotf.h | 59 * This queues the listener list on the notification thread, which 61 * listener in the list.</p> 65 * true if the listener is of the appropriate type; ICUNotifier 66 * itself will ensure the listener is non-null and that the 67 * identical listener is not already registered with the Notifier. 68 * NotifyListener should cast the listener to the appropriate 69 * type and call the appropriate method on the listener. 82 * Add a listener to be notified when notifyChanged is called. 83 * The listener must not be null. AcceptsListener must return 84 * true for the listener. Attempts to concurrentl [all...] |
/external/webkit/LayoutTests/fast/dom/beforeload/ |
remove-bad-object-in-beforeload-listener-expected.txt | 1 This page tests that you can correctly remove an object element with an invalid data URL in its beforeload listener without causing a crash.
|
remove-flash-in-beforeload-listener-expected.txt | 1 This page tests that you can correctly remove a flash object in a beforeload listener without causing a crash.
|
remove-frame-in-beforeload-listener-expected.txt | 1 This page tests that you can correctly remove an iframe element in its beforeload listener without causing a crash.
|
remove-image-in-beforeload-listener-expected.txt | 1 This page tests that you can correctly remove an img object in a beforeload listener without causing a crash.
|
remove-link-in-beforeload-listener-expected.txt | 1 This page tests that you can correctly remove a stylesheet link element in its beforeload listener without causing a crash.
|
remove-script-in-beforeload-listener-expected.txt | 1 This page tests that you can correctly remove a script element in its beforeload listener without causing a crash.
|
remove-video-in-beforeload-listener-expected.txt | 1 This page tests that you can correctly remove a video object in a beforeload listener without causing a crash.
|
/cts/tests/tests/widget/src/android/widget/cts/ |
RadioGroupTest.java | 105 MockOnHierarchyChangeListener listener = new MockOnHierarchyChangeListener(); local 106 mDefaultRadioGroup.setOnHierarchyChangeListener(listener); 109 listener.reset(); 111 assertSame(mDefaultRadioGroup, listener.getOnChildViewRemovedParentParam()); 112 assertSame(button3, listener.getOnChildViewRemovedChildParam()); 114 listener.reset(); 116 assertSame(mDefaultRadioGroup, listener.getOnChildViewAddedParentParam()); 117 assertSame(button3, listener.getOnChildViewAddedChildParam()); 119 // Set listener to null 157 MockOnCheckedChangeListener listener = new MockOnCheckedChangeListener() local 216 MockOnCheckedChangeListener listener = new MockOnCheckedChangeListener(); local 260 MockOnCheckedChangeListener listener = new MockOnCheckedChangeListener(); local 310 MockOnCheckedChangeListener listener = new MockOnCheckedChangeListener(); local 438 MockOnCheckedChangeListener listener = new MockOnCheckedChangeListener(); local [all...] |
/packages/apps/Contacts/src/com/android/contacts/util/ |
NotifyingAsyncQueryHandler.java | 27 * {@link WeakReference} back to a listener. Will properly close any 28 * {@link Cursor} if the listener ceases to exist. 43 public NotifyingAsyncQueryHandler(Context context, AsyncQueryListener listener) { 45 setQueryListener(listener); 50 * asynchronous calls. Will replace any existing listener. 52 public void setQueryListener(AsyncQueryListener listener) { 53 mListener = new WeakReference<AsyncQueryListener>(listener); 59 final AsyncQueryListener listener = mListener.get(); local 60 if (listener != null) { 61 listener.onQueryComplete(token, cookie, cursor) [all...] |
/frameworks/base/services/java/com/android/server/ |
CountryDetectorService.java | 44 * The class represents the remote listener, it will also removes itself 45 * from listener list when the remote process was died. 51 public Receiver(ICountryListener listener) { 52 mListener = listener; 53 mKey = listener.asBinder(); 102 * Add the ICountryListener into the listener list. 105 public void addCountryListener(ICountryListener listener) throws RemoteException { 109 addListener(listener); 113 * Remove the ICountryListener from the listener list. 116 public void removeCountryListener(ICountryListener listener) throws RemoteException [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/ |
GlobalProjectMonitor.java | 81 * Sent for each opened android project at the time the listener is put in place. 126 * Interface for a listener to be notified when resource change event starts and ends. 134 * Interface for a listener that gets passed the raw delta without processing. 141 * Base listener bundle to associate a listener to an event mask. 159 * Listener bundle for file event. 163 /** The file listener */ 164 IFileListener listener; field in class:GlobalProjectMonitor.FileListenerBundle 168 * Listener bundle for folder event. 171 /** The file listener */ 172 IFolderListener listener; field in class:GlobalProjectMonitor.FolderListenerBundle [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
SearchViewCompat.java | 31 Object newOnQueryTextListener(OnQueryTextListenerCompat listener); 32 void setOnQueryTextListener(Object searchView, Object listener); 43 public Object newOnQueryTextListener(OnQueryTextListenerCompat listener) { 48 public void setOnQueryTextListener(Object searchView, Object listener) { 61 public Object newOnQueryTextListener(final OnQueryTextListenerCompat listener) { 66 return listener.onQueryTextSubmit(query); 70 return listener.onQueryTextChange(newText); 76 public void setOnQueryTextListener(Object searchView, Object listener) { 77 SearchViewCompatHoneycomb.setOnQueryTextListener(searchView, listener); 107 * Sets a listener for user actions within the SearchView [all...] |
/libcore/luni/src/main/java/java/util/ |
EventListenerProxy.java | 26 private final EventListener listener; field in class:EventListenerProxy 31 * @param listener 32 * the listener wrapped by this proxy. 34 public EventListenerProxy(EventListener listener) { 35 this.listener = listener; 44 return listener;
|
/external/webkit/Source/WebCore/bindings/objc/ |
ObjCEventListener.mm | 43 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/guava/src/com/google/common/util/concurrent/ |
ListenableFuture.java | 25 * is useful for asynchronous workflows. Each listener has an associated 27 * computation is {@linkplain Future#isDone() complete}. The listener will be 51 * <p>Adds a listener and executor to the ListenableFuture. 52 * The listener will be {@linkplain Executor#execute(Runnable) passed 58 * but any listener added through this method is guaranteed to be called once 61 * @param listener the listener to run when the computation is complete. 62 * @param exec the executor to run the listener in. 63 * @throws NullPointerException if the executor or listener was null. 64 * @throws RejectedExecutionException if we tried to execute the listener [all...] |
/external/webkit/Source/WebCore/bindings/cpp/ |
WebDOMDOMWindowCustom.cpp | 27 void WebDOMDOMWindow::addEventListener(const WebDOMString& type, const WebDOMEventListener& listener, bool useCapture) 32 if (toWebCore(listener)) 33 impl()->addEventListener(type, toWebCore(listener), useCapture); 36 void WebDOMDOMWindow::removeEventListener(const WebDOMString& type, const WebDOMEventListener& listener, bool useCapture) 41 if (toWebCore(listener)) 42 impl()->removeEventListener(type, toWebCore(listener), useCapture);
|
/external/webkit/Source/WebCore/dom/ |
RegisteredEventListener.h | 34 RegisteredEventListener(PassRefPtr<EventListener> listener, bool useCapture) 35 : listener(listener) 40 RefPtr<EventListener> listener; member in class:WebCore::RegisteredEventListener 46 return *a.listener == *b.listener && a.useCapture == b.useCapture;
|