Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/view/
DViewTreeObserver.java756 final CopyOnWriteArrayList<OnWindowAttachListener> listeners in dispatchOnWindowAttachedChange() local
758 if (listeners != null && listeners.size() > 0) { in dispatchOnWindowAttachedChange()
759 for (OnWindowAttachListener listener : listeners) { in dispatchOnWindowAttachedChange()
774 final CopyOnWriteArrayList<OnWindowFocusChangeListener> listeners in dispatchOnWindowFocusChange() local
776 if (listeners != null && listeners.size() > 0) { in dispatchOnWindowFocusChange()
777 for (OnWindowFocusChangeListener listener : listeners) { in dispatchOnWindowFocusChange()
791 final CopyOnWriteArrayList<OnGlobalFocusChangeListener> listeners = mOnGlobalFocusListeners; in dispatchOnGlobalFocusChange() local
792 if (listeners != null && listeners.size() > 0) { in dispatchOnGlobalFocusChange()
793 for (OnGlobalFocusChangeListener listener : listeners) { in dispatchOnGlobalFocusChange()
809 final CopyOnWriteArray<OnGlobalLayoutListener> listeners = mOnGlobalLayoutListeners; in dispatchOnGlobalLayout() local
[all …]
DView.java12588 final CopyOnWriteArrayList<OnAttachStateChangeListener> listeners =
12590 if (listeners != null && listeners.size() > 0) {
12595 for (OnAttachStateChangeListener listener : listeners) {
12623 final CopyOnWriteArrayList<OnAttachStateChangeListener> listeners =
12625 if (listeners != null && listeners.size() > 0) {
12630 for (OnAttachStateChangeListener listener : listeners) {
/frameworks/testing/androidtestlib/src/com/android/test/runner/
DAndroidJUnitRunner.java200 List<RunListener> listeners = new ArrayList<RunListener>(); in onStart() local
204 addListeners(listeners, testRunner, writer); in onStart()
220 reportRunEnded(listeners, writer, results); in onStart()
230 private void addListeners(List<RunListener> listeners, JUnitCore testRunner, in addListeners() argument
233 addListener(listeners, testRunner, new SuiteAssignmentPrinter(writer)); in addListeners()
235 addListener(listeners, testRunner, new TextListener(writer)); in addListeners()
236 addListener(listeners, testRunner, new InstrumentationResultPrinter(this)); in addListeners()
237 addDelayListener(listeners, testRunner); in addListeners()
238 addCoverageListener(listeners, testRunner); in addListeners()
241 addExtraListeners(listeners, testRunner, writer); in addListeners()
[all …]
/frameworks/support/v4/java/android/support/v4/media/
DTransportMediator.java215 TransportStateListener listeners[] = new TransportStateListener[mListeners.size()]; in getListeners() local
216 mListeners.toArray(listeners); in getListeners()
217 return listeners; in getListeners()
221 TransportStateListener[] listeners = getListeners(); in reportPlayingChanged() local
222 if (listeners != null) { in reportPlayingChanged()
223 for (TransportStateListener listener : listeners) { in reportPlayingChanged()
230 TransportStateListener[] listeners = getListeners(); in reportTransportControlsChanged() local
231 if (listeners != null) { in reportTransportControlsChanged()
232 for (TransportStateListener listener : listeners) { in reportTransportControlsChanged()
/frameworks/base/core/java/android/gesture/
DGestureOverlayView.java467 final ArrayList<OnGestureListener> listeners = mOnGestureListeners; in cancelGesture() local
468 int count = listeners.size(); in cancelGesture()
470 listeners.get(i).onGestureCancelled(this, event); in cancelGesture()
592 final ArrayList<OnGestureListener> listeners = mOnGestureListeners; in touchDown() local
593 final int count = listeners.size(); in touchDown()
595 listeners.get(i).onGestureStarted(this, event); in touchDown()
657 final ArrayList<OnGesturingListener> listeners = mOnGesturingListeners; in touchMove() local
658 int count = listeners.size(); in touchMove()
660 listeners.get(i).onGesturingStarted(this); in touchMove()
667 final ArrayList<OnGestureListener> listeners = mOnGestureListeners; in touchMove() local
[all …]
/frameworks/base/services/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.java223 Object[] listeners; in reportPrimaryClipChanged() local
230 listeners = mPrimaryClipChangedListeners.toArray(); in reportPrimaryClipChanged()
233 for (int i=0; i<listeners.length; i++) { in reportPrimaryClipChanged()
234 ((OnPrimaryClipChangedListener)listeners[i]).onPrimaryClipChanged(); in reportPrimaryClipChanged()
/frameworks/av/services/camera/libcameraservice/common/
DFrameProcessorBase.cpp166 List<sp<FilteredListener> > listeners; in processListeners() local
180 listeners.push_back(listener); in processListeners()
186 ALOGV("Got %d range listeners out of %d", listeners.size(), mRangeListeners.size()); in processListeners()
187 List<sp<FilteredListener> >::iterator item = listeners.begin(); in processListeners()
188 for (; item != listeners.end(); item++) { in processListeners()
/frameworks/base/core/java/android/animation/
DLayoutTransition.java968 ArrayList<TransitionListener> listeners = in setupChangeAnimation()
970 for (TransitionListener listener : listeners) { in setupChangeAnimation()
989 ArrayList<TransitionListener> listeners = in setupChangeAnimation()
991 for (TransitionListener listener : listeners) { in setupChangeAnimation()
1161 ArrayList<TransitionListener> listeners = in runAppearingTransition() local
1163 for (TransitionListener listener : listeners) { in runAppearingTransition()
1184 ArrayList<TransitionListener> listeners = in runAppearingTransition()
1186 for (TransitionListener listener : listeners) { in runAppearingTransition()
1209 ArrayList<TransitionListener> listeners = in runDisappearingTransition() local
1211 for (TransitionListener listener : listeners) { in runDisappearingTransition()
[all …]
/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/core/java/android/app/
DSharedPreferencesImpl.java292 public Set<OnSharedPreferenceChangeListener> listeners; // may be null field in SharedPreferencesImpl.MemoryCommitResult
408 mcr.listeners = in commitToMemory()
466 if (mcr.listeners == null || mcr.keysModified == null || in notifyListeners()
473 for (OnSharedPreferenceChangeListener listener : mcr.listeners) { in notifyListeners()
DActivityThread.java3057 ArrayList<OnActivityPausedListener> listeners; in performPauseActivity() local
3059 listeners = mOnPauseListeners.remove(r.activity); in performPauseActivity()
3061 int size = (listeners != null ? listeners.size() : 0); in performPauseActivity()
3063 listeners.get(i).onPaused(r.activity); in performPauseActivity()
/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 …]
Dcustom-components.jd136 You will probably want to create your own event listeners,
388 You can also create listeners for events that your contained views might
/frameworks/base/docs/html/guide/topics/graphics/
Dprop-animation.jd19 <li><a href="#listeners">Animation Listeners</a></li>
221 animation repeats, listeners that receive update events, and the ability to set custom
418 …this by defining listeners in the {@link android.animation.ValueAnimator} to appropriately handle …
419 during the animation's lifespan, such as frame updates. When implementing the listeners, you can
421 …id.animation.ValueAnimator#getAnimatedValue getAnimatedValue()}. For more information on listeners,
422 see the section about <a href="#listeners">Animation Listeners</a>.
488 …methods with new values. For more information on listeners, see the section about <a href="#listen…
533 <h2 id="listeners">Animation Listeners</h2>
535 You can listen for important events during an animation's duration with the listeners described bel…
/frameworks/base/docs/html/training/custom-views/
Dcreate-view.jd245 <p>Custom views should also support event listeners to communicate important events. For
247 exposes a custom event called {@code OnCurrentItemChanged} to notify listeners that the
/frameworks/base/tools/layoutlib/create/
DREADME.txt146 listeners from these overridden method calls based on the method signatures.
148 The listeners are currently pretty basic: we only pass the signature of the
/frameworks/base/docs/html/training/managing-audio/
Daudio-focus.jd133 playback, removing media button listeners&mdash;allowing the new audio player to exclusively handle
/frameworks/base/docs/html/training/connect-devices-wirelessly/
Dnsd-wifi-direct.jd150 listeners are implemented, add them to the {@link
/frameworks/base/services/java/com/android/server/
DLocationManagerService.java1171 int listeners = 0; in updateProviderListenersLocked() local
1191 listeners++; in updateProviderListenersLocked()
1204 if (listeners > 0) { in updateProviderListenersLocked()
/frameworks/base/docs/html/training/monetization/
Dads-and-ux.jd225 <p>Where available, you should consider implementing ad event listeners, which provide callbacks on
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_overview.jd92 <li>Register and unregister sensor event listeners that monitor sensor changes.</li>
230 listeners, and acquiring orientation information. This class also provides several sensor constants
762 <h4>Unregister sensor listeners</h4>
/frameworks/base/docs/html/training/gestures/
Dscale.jd53 listeners with {@link android.view.View.OnDragListener}, as described in
/frameworks/base/docs/html/guide/topics/search/
Dsearch-dialog.jd109 search widget yourself, using various callback methods and listeners. This document, however,
737 with some callback methods and event listeners. For more information, see the reference
739 appropriate event listeners.</p>

12