Lines Matching refs:listeners
24 * A view tree observer is used to register listeners that can be notified of global
215 * returned, if there are multiple such listeners in the window.
227 * Merges all the listeners registered on the specified observer with the listeners
231 * @param observer The ViewTreeObserver whose listeners must be added to this observer
521 * Notifies registered listeners that focus has changed.
525 // perform the dispatching. The iterator is a safe guard against listeners that
528 final CopyOnWriteArrayList<OnGlobalFocusChangeListener> listeners = mOnGlobalFocusListeners;
529 if (listeners != null) {
530 for (OnGlobalFocusChangeListener listener : listeners) {
537 * Notifies registered listeners that a global layout happened. This can be called
543 // perform the dispatching. The iterator is a safe guard against listeners that
546 final CopyOnWriteArrayList<OnGlobalLayoutListener> listeners = mOnGlobalLayoutListeners;
547 if (listeners != null) {
548 for (OnGlobalLayoutListener listener : listeners) {
555 * Notifies registered listeners that the drawing pass is about to start. If a
564 // perform the dispatching. The iterator is a safe guard against listeners that
568 final CopyOnWriteArrayList<OnPreDrawListener> listeners = mOnPreDrawListeners;
569 if (listeners != null) {
570 for (OnPreDrawListener listener : listeners) {
578 * Notifies registered listeners that the touch mode has changed.
584 // perform the dispatching. The iterator is a safe guard against listeners that
587 final CopyOnWriteArrayList<OnTouchModeChangeListener> listeners =
589 if (listeners != null) {
590 for (OnTouchModeChangeListener listener : listeners) {
597 * Notifies registered listeners that something has scrolled.
601 // perform the dispatching. The iterator is a safe guard against listeners that
604 final CopyOnWriteArrayList<OnScrollChangedListener> listeners = mOnScrollChangedListeners;
605 if (listeners != null) {
606 for (OnScrollChangedListener listener : listeners) {
613 * Returns whether there are listeners for computing internal insets.
616 final CopyOnWriteArrayList<OnComputeInternalInsetsListener> listeners =
618 return (listeners != null && listeners.size() > 0);
622 * Calls all listeners to compute the current insets.
626 // perform the dispatching. The iterator is a safe guard against listeners that
629 final CopyOnWriteArrayList<OnComputeInternalInsetsListener> listeners =
631 if (listeners != null) {
632 for (OnComputeInternalInsetsListener listener : listeners) {