/external/chromium_org/third_party/WebKit/Source/web/tests/data/ |
content_listeners.html | 10 function listener() { 14 <body onclick="listener()"> 15 <span id="clickListener" onclick="listener()"> 16 This has a click listener. 18 <span id="touchstartListener" ontouchstart="listener()"> 19 This has a touchstart listener. 21 <span id="mousedownListener" onmousedown="listener()"> 22 This has a mousedown listener. 25 This has no specific listener (the body listener should be ignored) [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/debug/ |
event-hub.rb | 8 A special event listener that intercepts debug events and forwards them to other 10 information to only one listener, EventHubs provide a simple solution in 28 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 [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowSeekBar.java | 15 private SeekBar.OnSeekBarChangeListener listener; field in class:ShadowSeekBar 18 public void setOnSeekBarChangeListener(SeekBar.OnSeekBarChangeListener listener) { 19 this.listener = listener; 26 if(listener != null) { 27 listener.onProgressChanged( realSeekBar, progress, true); 32 return this.listener;
|
ShadowZoomButtonsController.java | 10 * events on the registered listener. 15 private ZoomButtonsController.OnZoomListener listener; field in class:ShadowZoomButtonsController 21 public void setOnZoomListener(ZoomButtonsController.OnZoomListener listener) { 22 this.listener = listener; 26 listener.onZoom(true); 30 listener.onZoom(false);
|
ShadowSensorManager.java | 25 public boolean registerListener(SensorEventListener listener, Sensor sensor, int rate) { 30 if(!listeners.contains(listener)) 31 listeners.add(listener); 37 public void unregisterListener(SensorEventListener listener, Sensor sensor) { 38 listeners.remove(listener); 41 public boolean hasListener(SensorEventListener listener) { 42 return listeners.contains(listener);
|
ShadowViewTreeObserver.java | 17 public void addOnGlobalLayoutListener(ViewTreeObserver.OnGlobalLayoutListener listener) { 18 this.globalLayoutListeners.add(listener); 22 public void removeGlobalOnLayoutListener(ViewTreeObserver.OnGlobalLayoutListener listener) { 23 this.globalLayoutListeners.remove(listener); 27 for (ViewTreeObserver.OnGlobalLayoutListener listener : new ArrayList<ViewTreeObserver.OnGlobalLayoutListener>(globalLayoutListeners)) { 28 listener.onGlobalLayout();
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/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...] |
/external/chromium_org/base/android/ |
activity_status.cc | 15 ActivityStatus::Listener::Listener( 21 ActivityStatus::Listener::~Listener() { 25 void ActivityStatus::Listener::Notify(ActivityState state) { 46 : observers_(new ObserverListThreadSafe<Listener>()) { 53 void ActivityStatus::RegisterListener(Listener* listener) { 54 observers_->AddObserver(listener); 57 void ActivityStatus::UnregisterListener(Listener* listener) [all...] |
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Debug/ |
DebugEventHub.cs | 55 * Add another listener to broadcast events too. Not thread-safe. 59 public virtual void AddListener(IDebugEventListener listener) { 60 _listeners.Add(listener); 66 public void exec(DebugEventListener listener) {listener.enterRule(ruleName);}} 74 IDebugEventListener listener = _listeners[i]; 75 listener.EnterRule(grammarFileName, ruleName); 81 IDebugEventListener listener = _listeners[i]; 82 listener.ExitRule(grammarFileName, ruleName); 88 IDebugEventListener listener = _listeners[i] [all...] |
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/ |
DebugEventHub.cs | 59 * Add another listener to broadcast events too. Not thread-safe. 63 public virtual void AddListener( IDebugEventListener listener ) 65 _listeners.Add( listener ); 71 public void exec(DebugEventListener listener) {listener.enterRule(ruleName);}} 81 IDebugEventListener listener = _listeners[i]; 82 listener.EnterRule( grammarFileName, ruleName ); 90 IDebugEventListener listener = _listeners[i]; 91 listener.ExitRule( grammarFileName, ruleName ); 99 IDebugEventListener listener = _listeners[i] [all...] |
/external/chromium_org/remoting/client/plugin/ |
delegating_signal_strategy.cc | 30 ObserverListBase<Listener>::Iterator it(listeners_); 31 Listener* listener; local 32 while ((listener = it.GetNext()) != NULL) { 33 if (listener->OnSignalStrategyIncomingStanza(stanza.get())) 56 void DelegatingSignalStrategy::AddListener(Listener* listener) { 57 listeners_.AddObserver(listener); 60 void DelegatingSignalStrategy::RemoveListener(Listener* listener) { [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...] |
/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...] |
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/ |
PositionObserver.java | 11 public interface Listener { 29 * Register a listener to be called when the position of the underlying view changes. 31 void addListener(Listener listener); 34 * Remove a previously installed listener. 36 void removeListener(Listener listener);
|
VSyncManager.java | 10 * Listener.onVSync() to notify about vsync. The number of registrations and unregistrations of 11 * a given listener must be balanced. 14 void registerVSyncListener(Listener listener); 15 void unregisterVSyncListener(Listener listener); 22 public static interface Listener {
|
/external/chromium_org/sync/android/java/src/org/chromium/sync/signin/ |
ChromeSigninController.java | 19 public interface Listener { 37 private final ObserverList<Listener> mListeners = new ObserverList<Listener>(); 82 for (Listener listener : mListeners) { 83 listener.onClearSignedInUser(); 93 * Adds a Listener. 94 * @param listener Listener to add. 96 public void addListener(Listener listener) [all...] |
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/ |
event_emitter.cc | 23 void EventEmitter::RegisterListener(EventListener* listener, uint32_t events) { 25 RegisterListener_Locked(listener, events); 28 void EventEmitter::UnregisterListener(EventListener* listener) { 30 UnregisterListener_Locked(listener); 33 void EventEmitter::RegisterListener_Locked(EventListener* listener, 35 assert(listeners_.count(listener) == 0); 36 listeners_[listener] = events; 39 void EventEmitter::UnregisterListener_Locked(EventListener* listener) { 40 assert(listeners_.count(listener) == 1); 41 listeners_.erase(listener); [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
SensorManagerTest.java | 38 SensorEventListener listener = registerListener(); local 40 assertTrue(shadow.hasListener(listener)); 44 SensorEventListener listener = new TestSensorEventListener(); local 46 sensorManager.registerListener(listener, sensor, SensorManager.SENSOR_DELAY_NORMAL); 48 return listener; 53 SensorEventListener listener = registerListener(); local 54 sensorManager.unregisterListener(listener, sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER)); 56 assertFalse(shadow.hasListener(listener)); 61 SensorEventListener listener = new TestSensorEventListener(); local 63 assertFalse(shadow.hasListener(listener)); [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
ViewTreeObserverTest.java | 88 final MockOnGlobalFocusChangeListener listener = new MockOnGlobalFocusChangeListener(); local 89 mViewTreeObserver.addOnGlobalFocusChangeListener(listener); 90 assertFalse(listener.hasCalledOnGlobalFocusChanged()); 102 return listener.hasCalledOnGlobalFocusChanged() 103 && listener.oldFocus == view1 && listener.newFocus == view2; 113 MockOnGlobalLayoutListener listener = new MockOnGlobalLayoutListener(); local 114 assertFalse(listener.hasCalledOnGlobalLayout()); 115 mViewTreeObserver.addOnGlobalLayoutListener(listener); 117 assertTrue(listener.hasCalledOnGlobalLayout()) 124 MockOnPreDrawListener listener = new MockOnPreDrawListener(); local 139 final MockOnTouchModeChangeListener listener = new MockOnTouchModeChangeListener(); local 163 MockOnComputeInternalInsetsListener listener = new MockOnComputeInternalInsetsListener(); local 171 MockOnComputeInternalInsetsListener listener = new MockOnComputeInternalInsetsListener(); local 179 MockOnGlobalLayoutListener listener = new MockOnGlobalLayoutListener(); local 190 MockOnPreDrawListener listener = new MockOnPreDrawListener(); local 208 MockOnGlobalLayoutListener listener = new MockOnGlobalLayoutListener(); local 234 final MockOnGlobalFocusChangeListener listener = new MockOnGlobalFocusChangeListener(); local 274 MockOnPreDrawListener listener = new MockOnPreDrawListener(); local 294 MockOnTouchModeChangeListener listener = new MockOnTouchModeChangeListener(); local 336 final MockOnScrollChangedListener listener = new MockOnScrollChangedListener(); 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/smack/src/org/xbill/DNS/ |
ResolveThread.java | 16 private ResolverListener listener; field in class:ResolveThread 22 ResolverListener listener) 27 this.listener = listener; 38 listener.receiveMessage(id, response); 41 listener.handleException(id, e);
|
/external/chromium_org/content/renderer/gpu/ |
stream_texture_host_android.h | 24 class StreamTextureHost : public IPC::Listener { 31 // Listener class that is listening to the stream texture updates. It is 33 class Listener { 37 virtual ~Listener() {} 40 void SetListener(Listener* listener) { listener_ = listener; } 46 // IPC::Channel::Listener implementation: 57 Listener* listener_;
|
/external/chromium_org/third_party/icu/source/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/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. 81 * Add a listener to be notified when notifyChanged is called. 82 * The listener must not be null. AcceptsListener must return 83 * true for the listener. Attempts to concurrentl [all...] |