Home
last modified time | relevance | path

Searched refs:listeners (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/core/java/android/view/
DViewTreeObserver.java853 final CopyOnWriteArrayList<OnWindowAttachListener> listeners in dispatchOnWindowAttachedChange() local
855 if (listeners != null && listeners.size() > 0) { in dispatchOnWindowAttachedChange()
856 for (OnWindowAttachListener listener : listeners) { in dispatchOnWindowAttachedChange()
871 final CopyOnWriteArrayList<OnWindowFocusChangeListener> listeners in dispatchOnWindowFocusChange() local
873 if (listeners != null && listeners.size() > 0) { in dispatchOnWindowFocusChange()
874 for (OnWindowFocusChangeListener listener : listeners) { in dispatchOnWindowFocusChange()
888 final CopyOnWriteArrayList<OnGlobalFocusChangeListener> listeners = mOnGlobalFocusListeners; in dispatchOnGlobalFocusChange() local
889 if (listeners != null && listeners.size() > 0) { in dispatchOnGlobalFocusChange()
890 for (OnGlobalFocusChangeListener listener : listeners) { in dispatchOnGlobalFocusChange()
906 final CopyOnWriteArray<OnGlobalLayoutListener> listeners = mOnGlobalLayoutListeners; in dispatchOnGlobalLayout() local
[all …]
DRenderNodeAnimator.java225 final ArrayList<AnimatorListener> listeners = cloneListeners(); in notifyStartListeners() local
226 final int numListeners = listeners == null ? 0 : listeners.size(); in notifyStartListeners()
228 listeners.get(i).onAnimationStart(this); in notifyStartListeners()
240 final ArrayList<AnimatorListener> listeners = cloneListeners(); in cancel() local
241 final int numListeners = listeners == null ? 0 : listeners.size(); in cancel()
243 listeners.get(i).onAnimationCancel(this); in cancel()
378 final ArrayList<AnimatorListener> listeners = cloneListeners(); in onFinished() local
379 final int numListeners = listeners == null ? 0 : listeners.size(); in onFinished()
381 listeners.get(i).onAnimationEnd(this); in onFinished()
399 ArrayList<AnimatorListener> listeners = getListeners(); in cloneListeners() local
[all …]
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DListenerUtil.java62 WeakHashMap<View, WeakReference<?>> listeners = sListeners.get(listenerResourceId); in trackListener() local
63 if (listeners == null) { in trackListener()
64 listeners = new WeakHashMap<View, WeakReference<?>>(); in trackListener()
65 sListeners.put(listenerResourceId, listeners); in trackListener()
69 oldValue = (WeakReference<T>) listeners.remove(view); in trackListener()
71 oldValue = (WeakReference<T>) listeners.put(view, new WeakReference(listener)); in trackListener()
96 WeakHashMap<View, WeakReference<?>> listeners = sListeners.get(listenerResourceId); in getListener() local
97 if (listeners == null) { in getListener()
100 final WeakReference<T> oldValue = (WeakReference<T>) listeners.get(view); in getListener()
/frameworks/base/media/java/android/media/
DAudioPortEventHandler.java61 ArrayList<AudioManager.OnAudioPortUpdateListener> listeners; in init()
64 listeners = new ArrayList<AudioManager.OnAudioPortUpdateListener>(); in init()
66 listeners.add((AudioManager.OnAudioPortUpdateListener)msg.obj); in init()
69 listeners = mListeners; in init()
80 if (listeners.isEmpty()) { in init()
97 for (int i = 0; i < listeners.size(); i++) { in init()
98 listeners.get(i).onAudioPortListUpdate(portList); in init()
107 for (int i = 0; i < listeners.size(); i++) { in init()
108 listeners.get(i).onAudioPatchListUpdate(patchList); in init()
113 for (int i = 0; i < listeners.size(); i++) { in init()
[all …]
/frameworks/support/media-compat/java/android/support/v4/media/
DTransportMediator.java217 TransportStateListener listeners[] = new TransportStateListener[mListeners.size()]; in getListeners() local
218 mListeners.toArray(listeners); in getListeners()
219 return listeners; in getListeners()
223 TransportStateListener[] listeners = getListeners(); in reportPlayingChanged() local
224 if (listeners != null) { in reportPlayingChanged()
225 for (TransportStateListener listener : listeners) { in reportPlayingChanged()
232 TransportStateListener[] listeners = getListeners(); in reportTransportControlsChanged() local
233 if (listeners != null) { in reportTransportControlsChanged()
234 for (TransportStateListener listener : listeners) { in reportTransportControlsChanged()
/frameworks/base/core/java/android/gesture/
DGestureOverlayView.java475 final ArrayList<OnGestureListener> listeners = mOnGestureListeners; in cancelGesture() local
476 int count = listeners.size(); in cancelGesture()
478 listeners.get(i).onGestureCancelled(this, event); in cancelGesture()
600 final ArrayList<OnGestureListener> listeners = mOnGestureListeners; in touchDown() local
601 final int count = listeners.size(); in touchDown()
603 listeners.get(i).onGestureStarted(this, event); in touchDown()
665 final ArrayList<OnGesturingListener> listeners = mOnGesturingListeners; in touchMove() local
666 int count = listeners.size(); in touchMove()
668 listeners.get(i).onGesturingStarted(this); in touchMove()
675 final ArrayList<OnGestureListener> listeners = mOnGestureListeners; in touchMove() local
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DDiscoveryListenerMultiplexer.java82 for (DiscoveryListenerSet listeners : sListeners.values()) { in removeListener()
83 synchronized (listeners) { in removeListener()
84 wasRemoved = listeners.subListeners.remove(listener); in removeListener()
87 if (listeners.subListeners.isEmpty()) { in removeListener()
88 nsdManager.stopServiceDiscovery(listeners.mainListener); in removeListener()
127 public MultiListener(@NonNull ArrayList<NsdManager.DiscoveryListener> listeners) { in MultiListener() argument
128 mListeners = listeners; in MultiListener()
/frameworks/base/services/core/java/com/android/server/wm/
DPointerEventDispatcher.java44 PointerEventListener[] listeners; in onInputEvent() local
50 listeners = mListenersArray; in onInputEvent()
52 for (int i = 0; i < listeners.length; ++i) { in onInputEvent()
53 listeners[i].onPointerEvent(motionEvent); in onInputEvent()
/frameworks/base/core/java/android/content/
DClipboardManager.java224 Object[] listeners; in reportPrimaryClipChanged() local
231 listeners = mPrimaryClipChangedListeners.toArray(); in reportPrimaryClipChanged()
234 for (int i=0; i<listeners.length; i++) { in reportPrimaryClipChanged()
235 ((OnPrimaryClipChangedListener)listeners[i]).onPrimaryClipChanged(); in reportPrimaryClipChanged()
/frameworks/base/core/java/android/animation/
DLayoutTransition.java961 ArrayList<TransitionListener> listeners = in setupChangeAnimation()
963 for (TransitionListener listener : listeners) { in setupChangeAnimation()
982 ArrayList<TransitionListener> listeners = in setupChangeAnimation()
984 for (TransitionListener listener : listeners) { in setupChangeAnimation()
1154 ArrayList<TransitionListener> listeners = in runAppearingTransition() local
1156 for (TransitionListener listener : listeners) { in runAppearingTransition()
1177 ArrayList<TransitionListener> listeners = in runAppearingTransition()
1179 for (TransitionListener listener : listeners) { in runAppearingTransition()
1202 ArrayList<TransitionListener> listeners = in runDisappearingTransition() local
1204 for (TransitionListener listener : listeners) { in runDisappearingTransition()
[all …]
DAnimatorSet.java769 ArrayList<AnimatorListener> listeners = mAnimatorSet.mListeners; in onAnimationCancel() local
770 if (listeners != null) { in onAnimationCancel()
771 int numListeners = listeners.size(); in onAnimationCancel()
773 listeners.get(i).onAnimationCancel(mAnimatorSet); in onAnimationCancel()
/frameworks/av/services/camera/libcameraservice/common/
DFrameProcessorBase.cpp198 List<sp<FilteredListener> > listeners; in processListeners() local
212 listeners.push_back(listener); in processListeners()
219 device->getId(), listeners.size(), mRangeListeners.size()); in processListeners()
221 List<sp<FilteredListener> >::iterator item = listeners.begin(); in processListeners()
222 for (; item != listeners.end(); item++) { in processListeners()
/frameworks/base/core/tests/coretests/src/android/animation/
DAnimatorSetActivityTest.java326 ArrayList<MyListener> listeners = new ArrayList<>(animators.size());
329 listeners.add(listener);
336 for (int i = 0; i < listeners.size(); i++) {
363 for (int i = 0; i < listeners.size(); i++) {
364 assertTrue(listeners.get(i).startIsCalled);
365 assertTrue(listeners.get(i).endIsCalled);
380 final ArrayList<MyListener> listeners = new ArrayList<>(5);
383 listeners.add(listener);
391 for (int i = 0; i < listeners.size(); i++) {
420 for (int i = 0; i < listeners.size(); i++) {
[all …]
/frameworks/base/location/java/android/location/
DLocalListenerHelper.java112 Collection<Map.Entry<TListener, Handler>> listeners; in foreach() local
114 listeners = new ArrayList<>(mListeners.entrySet()); in foreach()
116 for (final Map.Entry<TListener, Handler> listener : listeners) { in foreach()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationBasedCountryDetectorTest.java128 LocationListener[] listeners = new LocationListener[mListeners.size()]; in notifyLocationFound() local
129 mLocationListeners.toArray(listeners); in notifyLocationFound()
130 for (LocationListener listener :listeners) { in notifyLocationFound()
197 Map<String, LocationListener> listeners = detector.getListeners(); in testFindingCountryCommon() local
199 assertTrue(listeners.containsKey(acceptableProvider)); in testFindingCountryCommon()
/frameworks/base/services/core/java/com/android/server/vr/
DEnabledComponentsObserver.java81 @NonNull Collection<EnabledComponentChangeListener> listeners) { in EnabledComponentsObserver() argument
87 mEnabledComponentListeners.addAll(listeners); in EnabledComponentsObserver()
106 @NonNull Collection<EnabledComponentChangeListener> listeners) { in build() argument
111 servicePermission, serviceName, lock, listeners); in build()
DVrManagerService.java418 ArrayList<EnabledComponentChangeListener> listeners = new ArrayList<>(); in onBootPhase() local
419 listeners.add(this); in onBootPhase()
423 VrListenerService.SERVICE_INTERFACE, mLock, listeners); in onBootPhase()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java294 public Set<OnSharedPreferenceChangeListener> listeners; // may be null field in SharedPreferencesImpl.MemoryCommitResult
410 mcr.listeners = in commitToMemory()
470 if (mcr.listeners == null || mcr.keysModified == null || in notifyListeners()
477 for (OnSharedPreferenceChangeListener listener : mcr.listeners) { in notifyListeners()
/frameworks/data-binding/samples/BindingDemo/app/src/test/java/com/android/example/bindingdemo/vo/
DUnitTest.java33 public void listeners() throws Exception { in listeners() method in UnitTest
/frameworks/base/docs/html/guide/topics/ui/
Dui-events.jd30 called <a href="#EventListeners">event listeners</a>, are your ticket to capturing the user interac…
32 <p>While you will more commonly use the event listeners to listen for user interaction, there may
128 on-click listeners.</li>
133 on-key listeners.</li>
160 … the class definition second. As such, returning <em>true</em> from these event listeners will stop
161 the propagation of the event to other event listeners and will also block the callback to the
209 simply fire their on-click listeners when pressed.
276 handles the event and notifies any listeners.</li>
Ddrag-drop.jd117 The framework includes a drag event class, drag listeners, and helper methods and classes.
136 You create a drag event listener object (&quot;listeners&quot;) from a class that implements
152 drag event listeners or callback methods of each View in the layout. The listeners or callback
197 {@link android.view.DragEvent#ACTION_DRAG_STARTED} to the drag event listeners for
200 This registers the listener with the system. Only registered listeners continue to
201 receive drag events. At this point, listeners can also change the appearance of their
690 During the drag operation, the system dispatches drag events to the drag event listeners
691 of the View objects in the current layout. The listeners should react
726 During the drag, listeners that returned <code>true</code> in response to
732 During the drag, listeners primarily use drag events to decide if they should change the
[all …]
/frameworks/base/docs/html/training/wearables/data-layer/
Devents.jd19 the call ends up making with listeners.
318 <li>In {@link android.app.Activity#onStop onStop()}, unregister any listeners with
327 <p>An alternative to adding listeners in
410 API-based listeners manifest-based listeners.
417 Implementing listeners in this fashion allows your application to more selectively receive events,
/frameworks/base/docs/html/training/system-ui/
Dimmersive.jd71 "sticky" version of the flag doesn't trigger any listeners, as system bars temporarily
118 system UI visibility change listeners, because the transient appearance of the system bars isn't
221 Simple click listeners aren't the best solution for this because they get triggered even
238 system UI visibility change listeners are not triggered. The bars
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java108 EthernetNetworkFactory(RemoteCallbackList<IEthernetServiceListener> listeners) { in EthernetNetworkFactory() argument
112 mListeners = listeners; in EthernetNetworkFactory()
/frameworks/base/docs/html/training/game-controllers/
Dcompatibility.jd384 objects. You will use the listeners to update the connection status of tracked
409 disconnected and notifies registered listeners.</p>
436 // Notify the registered listeners
476 new device ID. If the device ID is new, notify registered listeners.</p>
485 // Notify the registered listeners that a game controller is added
495 <p>Notification of listeners is implemented by using the

123