Home
last modified time | relevance | path

Searched refs:listener (Results 1 – 25 of 258) sorted by relevance

1234567891011

/packages/apps/Gallery/src/com/android/camera/
DMonitoredActivity.java50 public void addLifeCycleListener(LifeCycleListener listener) { in addLifeCycleListener() argument
51 if (mListeners.contains(listener)) return; in addLifeCycleListener()
52 mListeners.add(listener); in addLifeCycleListener()
55 public void removeLifeCycleListener(LifeCycleListener listener) { in removeLifeCycleListener() argument
56 mListeners.remove(listener); in removeLifeCycleListener()
62 for (LifeCycleListener listener : mListeners) { in onCreate()
63 listener.onActivityCreated(this); in onCreate()
70 for (LifeCycleListener listener : mListeners) { in onDestroy()
71 listener.onActivityDestroyed(this); in onDestroy()
78 for (LifeCycleListener listener : mListeners) { in onStart()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMediaSet.java151 public void addContentListener(ContentListener listener) { in addContentListener() argument
152 if (mListeners.containsKey(listener)) { in addContentListener()
155 mListeners.put(listener, null); in addContentListener()
158 public void removeContentListener(ContentListener listener) { in removeContentListener() argument
159 if (!mListeners.containsKey(listener)) { in removeContentListener()
162 mListeners.remove(listener); in removeContentListener()
167 for (ContentListener listener : mListeners.keySet()) { in notifyContentChanged()
168 listener.onContentDirty(); in notifyContentChanged()
240 public Future<Integer> requestSync(SyncListener listener) { in requestSync() argument
241 listener.onSyncDone(this, SYNC_RESULT_SUCCESS); in requestSync()
[all …]
DMtpClient.java82 for (Listener listener : mListeners) {
83 listener.deviceAdded(mtpDevice);
91 for (Listener listener : mListeners) {
92 listener.deviceRemoved(mtpDevice);
105 for (Listener listener : mListeners) {
106 listener.deviceAdded(mtpDevice);
224 public void addListener(Listener listener) { in addListener() argument
226 if (!mListeners.contains(listener)) { in addListener()
227 mListeners.add(listener); in addListener()
237 public void removeListener(Listener listener) { in removeListener() argument
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DJobLimiter.java48 public JobWrapper(Job<T> job, FutureListener<T> listener) { in JobWrapper() argument
50 mListener = listener; in JobWrapper()
60 FutureListener<T> listener = null; in cancel() local
63 listener = mListener; in cancel()
75 if (listener != null) listener.onFutureDone(this); in cancel()
116 FutureListener<T> listener = null; in run() local
120 listener = mListener; in run()
126 if (listener != null) listener.onFutureDone(this); in run()
136 public synchronized <T> Future<T> submit(Job<T> job, FutureListener<T> listener) { in submit() argument
137 JobWrapper<T> future = new JobWrapper<T>(Utils.checkNotNull(job), listener); in submit()
DThreadPool.java47 void setCancelListener(CancelListener listener); in setCancelListener() argument
58 public void setCancelListener(CancelListener listener) { in setCancelListener() argument
90 public <T> Future<T> submit(Job<T> job, FutureListener<T> listener) { in submit() argument
91 Worker<T> w = new Worker<T>(job, listener); in submit()
111 public Worker(Job<T> job, FutureListener<T> listener) { in Worker() argument
113 mListener = listener; in Worker()
179 public synchronized void setCancelListener(CancelListener listener) { in setCancelListener() argument
180 mCancelListener = listener; in setCancelListener()
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/
DFlipView.java42 private OnFlipChangeListener listener; field in FlipView
57 public void setOnFlipChangeListener(OnFlipChangeListener listener) { in setOnFlipChangeListener() argument
58 this.listener = listener; in setOnFlipChangeListener()
104 if (listener != null) { in onTouchEvent()
105 listener.onStartTrackingTouch(); in onTouchEvent()
131 if (listener != null) { in onTouchEvent()
132 listener.onStopTrackingTouch(); in onTouchEvent()
143 if (listener != null) { in refreshAngle()
144 listener.onAngleChanged(horizontalDegrees, verticalDegrees, fromUser); in refreshAngle()
DRotateView.java57 private OnRotateChangeListener listener; field in RotateView
95 public void setOnRotateChangeListener(OnRotateChangeListener listener) { in setOnRotateChangeListener() argument
96 this.listener = listener; in setOnRotateChangeListener()
181 if (listener != null) { in onTouchEvent()
182 listener.onStartTrackingTouch(); in onTouchEvent()
202 if (listener != null) { in onTouchEvent()
203 listener.onStopTrackingTouch(); in onTouchEvent()
213 if (listener != null) { in refreshAngle()
214 listener.onAngleChanged(degrees, fromUser); in refreshAngle()
DDoodleView.java56 private OnDoodleChangeListener listener; field in DoodleView
62 public void setOnDoodleChangeListener(OnDoodleChangeListener listener) { in setOnDoodleChangeListener() argument
63 this.listener = listener; in setOnDoodleChangeListener()
105 if (listener != null) { in finishDoodle()
106 listener.onDoodleFinished(doodle); in finishDoodle()
116 if (listener != null) { in addLastPointIntoDoodle()
117 listener.onDoodleChanged(doodle); in addLastPointIntoDoodle()
DEffectAction.java54 private ActionListener listener; field in EffectAction
60 public void begin(View root, FilterStack filterStack, ActionListener listener) { in begin() argument
65 this.listener = listener; in begin()
143 listener.onOk(); in notifyOk()
/packages/apps/Contacts/src/com/android/contacts/util/
DNotifyingAsyncQueryHandler.java43 public NotifyingAsyncQueryHandler(Context context, AsyncQueryListener listener) { in NotifyingAsyncQueryHandler() argument
45 setQueryListener(listener); in NotifyingAsyncQueryHandler()
52 public void setQueryListener(AsyncQueryListener listener) { in setQueryListener() argument
53 mListener = new WeakReference<AsyncQueryListener>(listener); in setQueryListener()
59 final AsyncQueryListener listener = mListener.get(); in onQueryComplete() local
60 if (listener != null) { in onQueryComplete()
61 listener.onQueryComplete(token, cookie, cursor); in onQueryComplete()
DSchedulingUtils.java29 final OnGlobalLayoutListener listener = new OnGlobalLayoutListener() { in doAfterLayout() local
37 view.getViewTreeObserver().addOnGlobalLayoutListener(listener); in doAfterLayout()
42 final OnDrawListener listener = new OnDrawListener() { in doAfterDraw() local
49 view.getViewTreeObserver().addOnDrawListener(listener); in doAfterDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DMenuExecutor.java99 ProgressListener listener = (ProgressListener) message.obj; in MenuExecutor()
100 listener.onProgressComplete(message.arg1); in MenuExecutor()
108 ProgressListener listener = (ProgressListener) message.obj; in MenuExecutor()
109 listener.onProgressUpdate(message.arg1); in MenuExecutor()
136 private void onProgressUpdate(int index, ProgressListener listener) { in onProgressUpdate() argument
138 mHandler.obtainMessage(MSG_TASK_UPDATE, index, 0, listener)); in onProgressUpdate()
141 private void onProgressComplete(int result, ProgressListener listener) { in onProgressComplete() argument
142 mHandler.sendMessage(mHandler.obtainMessage(MSG_TASK_COMPLETE, result, 0, listener)); in onProgressComplete()
188 private void onMenuClicked(int action, ProgressListener listener) { in onMenuClicked() argument
189 onMenuClicked(action, listener, false, true); in onMenuClicked()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
DEffectsMenu.java53 public void setOnToggleListener(OnToggleListener listener) { in setOnToggleListener() argument
54 setToggleRunnable(listener, R.id.exposure_button, R.layout.photoeditor_effects_exposure); in setOnToggleListener()
55 setToggleRunnable(listener, R.id.artistic_button, R.layout.photoeditor_effects_artistic); in setOnToggleListener()
56 setToggleRunnable(listener, R.id.color_button, R.layout.photoeditor_effects_color); in setOnToggleListener()
57 setToggleRunnable(listener, R.id.fix_button, R.layout.photoeditor_effects_fix); in setOnToggleListener()
60 private void setToggleRunnable(final OnToggleListener listener, final int toggleId, in setToggleRunnable() argument
67 setViewSelected(toggleId, listener.onToggle(selected, effectsId)); in setToggleRunnable()
DSpinnerProgressDialog.java47 private final OnTouchListener listener; field in SpinnerProgressDialog
49 public SpinnerProgressDialog(Context context, List<View> tools, OnTouchListener listener) { in SpinnerProgressDialog() argument
60 this.listener = listener; in SpinnerProgressDialog()
83 return listener.onTouch(this, event); in onTouchEvent()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherViewPropertyAnimator.java62 public void addListener(Animator.AnimatorListener listener) { in addListener() argument
63 mListeners.add(listener); in addListener()
101 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationCancel() local
102 listener.onAnimationCancel(this); in onAnimationCancel()
110 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationEnd() local
111 listener.onAnimationEnd(this); in onAnimationEnd()
119 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationRepeat() local
120 listener.onAnimationRepeat(this); in onAnimationRepeat()
127 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationStart() local
128 listener.onAnimationStart(this); in onAnimationStart()
[all …]
DFolderInfo.java88 void addListener(FolderListener listener) { in addListener() argument
89 listeners.add(listener); in addListener()
92 void removeListener(FolderListener listener) { in removeListener() argument
93 if (listeners.contains(listener)) { in removeListener()
94 listeners.remove(listener); in removeListener()
/packages/apps/Mms/src/com/android/mms/dom/events/
DEventTargetImpl.java40 EventListenerEntry(String type, EventListener listener, boolean useCapture) in EventListenerEntry() argument
43 mListener = listener; in EventListenerEntry()
52 public void addEventListener(String type, EventListener listener, boolean useCapture) { in addEventListener() argument
53 if ((type == null) || type.equals("") || (listener == null)) { in addEventListener()
58 removeEventListener(type, listener, useCapture); in addEventListener()
63 mListenerEntries.add(new EventListenerEntry(type, listener, useCapture)); in addEventListener()
115 public void removeEventListener(String type, EventListener listener, in removeEventListener() argument
123 && (listenerEntry.mListener == listener) in removeEventListener()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListFilterController.java49 public abstract void addListener(ContactListFilterListener listener); in addListener() argument
51 public abstract void removeListener(ContactListFilterListener listener); in removeListener() argument
95 public void addListener(ContactListFilterListener listener) { in addListener() argument
96 mListeners.add(listener); in addListener()
100 public void removeListener(ContactListFilterListener listener) { in removeListener() argument
101 mListeners.remove(listener); in removeListener()
138 for (ContactListFilterListener listener : mListeners) { in notifyContactListFilterChanged()
139 listener.onContactListFilterChanged(); in notifyContactListFilterChanged()
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DTimelineHorizontalScrollView.java68 for (ScrollViewListener listener : mScrollListenerList) {
69 listener.onScrollEnd(TimelineHorizontalScrollView.this, getScrollX(),
154 public void setScaleListener(ScaleGestureDetector.SimpleOnScaleGestureListener listener) { in setScaleListener() argument
155 mScaleDetector = new ScaleGestureDetector(getContext(), listener); in setScaleListener()
161 public void addScrollListener(ScrollViewListener listener) { in addScrollListener() argument
162 mScrollListenerList.add(listener); in addScrollListener()
168 public void removeScrollListener(ScrollViewListener listener) { in removeScrollListener() argument
169 mScrollListenerList.remove(listener); in removeScrollListener()
231 for (ScrollViewListener listener : mScrollListenerList) { in computeScroll()
232 listener.onScrollProgress(this, scrollX, scrollY, mAppScroll); in computeScroll()
[all …]
/packages/apps/Camera/src/com/android/camera/ui/
DPopupManager.java42 for (OnOtherPopupShowedListener listener : mListeners) { in notifyShowPopup()
43 if ((View) listener != view) { in notifyShowPopup()
44 listener.onOtherPopupShowed(); in notifyShowPopup()
49 public void setOnOtherPopupShowedListener(OnOtherPopupShowedListener listener) { in setOnOtherPopupShowedListener() argument
50 mListeners.add(listener); in setOnOtherPopupShowedListener()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DPopupManager.java42 for (OnOtherPopupShowedListener listener : mListeners) { in notifyShowPopup()
43 if ((View) listener != view) { in notifyShowPopup()
44 listener.onOtherPopupShowed(); in notifyShowPopup()
49 public void setOnOtherPopupShowedListener(OnOtherPopupShowedListener listener) { in setOnOtherPopupShowedListener() argument
50 mListeners.add(listener); in setOnOtherPopupShowedListener()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DMovieControllerOverlay.java59 private Listener listener; field in MovieControllerOverlay
143 public void setListener(Listener listener) { in setListener() argument
144 this.listener = listener; in setListener()
197 if (listener != null && wasHidden != hidden) { in hide()
198 listener.onHidden(); in hide()
217 if (listener != null && wasHidden != hidden) { in show()
218 listener.onShown(); in show()
262 if (listener != null) { in onClick()
266 listener.onReplay(); in onClick()
269 listener.onPlayPause(); in onClick()
[all …]
/packages/apps/Contacts/src/com/android/contacts/vcard/
DVCardService.java193 VCardImportExportListener listener) { in handleImportRequest() argument
209 if (tryExecute(new ImportProcessor(this, listener, request, mCurrentJobId))) { in handleImportRequest()
210 if (listener != null) { in handleImportRequest()
211 listener.onImportProcessed(request, mCurrentJobId, i); in handleImportRequest()
215 if (listener != null) { in handleImportRequest()
216 listener.onImportFailed(request); in handleImportRequest()
225 VCardImportExportListener listener) { in handleExportRequest() argument
233 if (listener != null) { in handleExportRequest()
234 listener.onExportFailed(request); in handleExportRequest()
239 if (listener != null) { in handleExportRequest()
[all …]
/packages/apps/Email/src/com/android/email/
DController.java181 public void addResultCallback(Result listener) { in addResultCallback() argument
183 listener.setRegistered(true); in addResultCallback()
184 mListeners.add(listener); in addResultCallback()
195 public void removeResultCallback(Result listener) { in removeResultCallback() argument
197 listener.setRegistered(false); in removeResultCallback()
198 mListeners.remove(listener); in removeResultCallback()
455 for (Result listener : mListeners) { in loadMessageForView()
456 listener.loadMessageForViewCallback(null, accountId, messageId, 100); in loadMessageForView()
1066 for (Result listener : mListeners) {
1067 listener.loadAttachmentCallback(null, accountId, messageId, attachmentId, 0);
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/mail/
DFolder.java120 public abstract Message[] getMessages(int start, int end, MessageRetrievalListener listener) in getMessages() argument
123 public abstract Message[] getMessages(SearchParams params,MessageRetrievalListener listener) in getMessages() argument
126 public abstract Message[] getMessages(String[] uids, MessageRetrievalListener listener) in getMessages() argument
140 MessageRetrievalListener listener) throws MessagingException { in getMessages() argument
158 MessageRetrievalListener listener) throws MessagingException; in fetch() argument

1234567891011