Home
last modified time | relevance | path

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

12345678910>>...12

/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DMenuExecutor.java101 ProgressListener listener = (ProgressListener) message.obj; in MenuExecutor()
102 listener.onProgressStart(); in MenuExecutor()
109 ProgressListener listener = (ProgressListener) message.obj; in MenuExecutor()
110 listener.onProgressComplete(message.arg1); in MenuExecutor()
118 ProgressListener listener = (ProgressListener) message.obj; in MenuExecutor()
119 listener.onProgressUpdate(message.arg1); in MenuExecutor()
155 private void onProgressUpdate(int index, ProgressListener listener) { in onProgressUpdate() argument
157 mHandler.obtainMessage(MSG_TASK_UPDATE, index, 0, listener)); in onProgressUpdate()
160 private void onProgressStart(ProgressListener listener) { in onProgressStart() argument
161 mHandler.sendMessage(mHandler.obtainMessage(MSG_TASK_START, listener)); in onProgressStart()
[all …]
/packages/apps/VideoEditor/src/com/android/videoeditor/service/
DApiService.java278 public static void registerListener(ApiServiceListener listener) { in registerListener() argument
279 mListeners.add(listener); in registerListener()
287 public static void unregisterListener(ApiServiceListener listener) { in unregisterListener() argument
288 mListeners.remove(listener); in unregisterListener()
1364 for (ApiServiceListener listener : mListeners) { in startCommand()
1365 listener.onProjectEditState(projectPath, projectEdited); in startCommand()
2935 for (ApiServiceListener listener : mListeners) { in onIntentProcessed()
2936 listener.onProjectsLoaded(projects, ex); in onIntentProcessed()
2959 for (ApiServiceListener listener : mListeners) { in onIntentProcessed()
2960 listener.onVideoEditorCreated(projectPath, mVideoProject, in onIntentProcessed()
[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 …]
DMessagingController.java189 if (command.listener == null || isActiveListener(command.listener)) { in run()
198 private void put(String description, MessagingListener listener, Runnable runnable) { in put() argument
201 command.listener = listener; in put()
211 public void addListener(MessagingListener listener) { in addListener() argument
212 mListeners.addListener(listener); in addListener()
215 public void removeListener(MessagingListener listener) { in removeListener() argument
216 mListeners.removeListener(listener); in removeListener()
219 private boolean isActiveListener(MessagingListener listener) { in isActiveListener() argument
220 return mListeners.isActiveListener(listener); in isActiveListener()
247 void listFolders(final long accountId, MessagingListener listener) { in listFolders() argument
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMediaSet.java158 public void addContentListener(ContentListener listener) { in addContentListener() argument
159 mListeners.put(listener, null); in addContentListener()
162 public void removeContentListener(ContentListener listener) { in removeContentListener() argument
163 mListeners.remove(listener); in removeContentListener()
168 for (ContentListener listener : mListeners.keySet()) { in notifyContentChanged()
169 listener.onContentDirty(); in notifyContentChanged()
241 public Future<Integer> requestSync(SyncListener listener) { in requestSync() argument
242 listener.onSyncDone(this, SYNC_RESULT_SUCCESS); in requestSync()
269 protected Future<Integer> requestSyncOnMultipleSets(MediaSet[] sets, SyncListener listener) { in requestSyncOnMultipleSets() argument
270 return new MultiSetSyncFuture(sets, listener); in requestSyncOnMultipleSets()
[all …]
DMtpClient.java86 for (Listener listener : mListeners) {
87 listener.deviceAdded(mtpDevice);
95 for (Listener listener : mListeners) {
96 listener.deviceRemoved(mtpDevice);
109 for (Listener listener : mListeners) {
110 listener.deviceAdded(mtpDevice);
228 public void addListener(Listener listener) { in addListener() argument
230 if (!mListeners.contains(listener)) { in addListener()
231 mListeners.add(listener); in addListener()
241 public void removeListener(Listener listener) { in removeListener() argument
[all …]
/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/ContactsCommon/src/com/android/contacts/common/vcard/
DVCardService.java201 VCardImportExportListener listener) { in handleImportRequest() argument
217 if (tryExecute(new ImportProcessor(this, listener, request, mCurrentJobId))) { in handleImportRequest()
218 if (listener != null) { in handleImportRequest()
219 listener.onImportProcessed(request, mCurrentJobId, i); in handleImportRequest()
223 if (listener != null) { in handleImportRequest()
224 listener.onImportFailed(request); in handleImportRequest()
233 VCardImportExportListener listener) { in handleExportRequest() argument
241 if (listener != null) { in handleExportRequest()
242 listener.onExportFailed(request); in handleExportRequest()
247 if (listener != null) { in handleExportRequest()
[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()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherViewPropertyAnimator.java64 public void addListener(Animator.AnimatorListener listener) { in addListener() argument
65 mListeners.add(listener); in addListener()
103 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationCancel() local
104 listener.onAnimationCancel(this); in onAnimationCancel()
112 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationEnd() local
113 listener.onAnimationEnd(this); in onAnimationEnd()
121 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationRepeat() local
122 listener.onAnimationRepeat(this); in onAnimationRepeat()
133 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationStart() local
134 listener.onAnimationStart(this); in onAnimationStart()
[all …]
/packages/apps/VideoEditor/src/com/android/videoeditor/widgets/
DTimelineHorizontalScrollView.java67 for (ScrollViewListener listener : mScrollListenerList) {
68 listener.onScrollEnd(TimelineHorizontalScrollView.this, getScrollX(),
148 public void setScaleListener(ScaleGestureDetector.SimpleOnScaleGestureListener listener) { in setScaleListener() argument
149 mScaleDetector = new ScaleGestureDetector(getContext(), listener); in setScaleListener()
155 public void addScrollListener(ScrollViewListener listener) { in addScrollListener() argument
156 mScrollListenerList.add(listener); in addScrollListener()
162 public void removeScrollListener(ScrollViewListener listener) { in removeScrollListener() argument
163 mScrollListenerList.remove(listener); in removeScrollListener()
225 for (ScrollViewListener listener : mScrollListenerList) { in computeScroll()
226 listener.onScrollProgress(this, scrollX, scrollY, mAppScroll); in computeScroll()
[all …]
/packages/apps/Email/src/com/android/email/mail/store/
DImapFolder.java440 public Message[] getMessages(SearchParams params, MessageRetrievalListener listener) in getMessages() argument
459 return getMessagesInternal(complexSearchForUids(commands), listener); in getMessages()
479 public Message[] getMessages(int start, int end, MessageRetrievalListener listener) in getMessages() argument
485 searchForUids(String.format(Locale.US, "%d:%d NOT DELETED", start, end)), listener); in getMessages()
490 public Message[] getMessages(String[] uids, MessageRetrievalListener listener) in getMessages() argument
495 return getMessagesInternal(uids, listener); in getMessages()
498 public Message[] getMessagesInternal(String[] uids, MessageRetrievalListener listener) { in getMessagesInternal() argument
504 if (listener != null) { in getMessagesInternal()
505 listener.messageRetrieved(message); in getMessagesInternal()
512 public void fetch(Message[] messages, FetchProfile fp, MessageRetrievalListener listener) in fetch() argument
[all …]
DPop3Store.java406 public Message[] getMessages(int start, int end, MessageRetrievalListener listener) in getMessages() argument
425 if (listener != null) { in getMessages()
426 listener.messageRetrieved(message); in getMessages()
629 public Message[] getMessages(String[] uids, MessageRetrievalListener listener) { in getMessages() argument
642 public void fetch(Message[] messages, FetchProfile fp, MessageRetrievalListener listener) in fetch() argument
690 if (listener != null) { in fetch()
691 listener.messageRetrieved(message); in fetch()
704 MessageRetrievalListener listener) throws IOException, MessagingException { in fetchEnvelope() argument
736 if (listener != null) { in fetchEnvelope()
737 listener.messageRetrieved(pop3Message); in fetchEnvelope()
[all …]
/packages/apps/Gallery2/src/com/android/camera/
DMediaSaveService.java133 private OnMediaSavedListener listener; field in MediaSaveService.ImageSaveTask
137 ContentResolver resolver, OnMediaSavedListener listener) { in ImageSaveTask() argument
147 this.listener = listener; in ImageSaveTask()
163 if (listener != null) listener.onMediaSaved(uri); in onPostExecute()
173 private OnMediaSavedListener listener; field in MediaSaveService.VideoSaveTask
181 this.listener = l; in VideoSaveTask()
222 if (listener != null) listener.onMediaSaved(uri); in onPostExecute()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactListFilterController.java48 public abstract void addListener(ContactListFilterListener listener); in addListener() argument
50 public abstract void removeListener(ContactListFilterListener listener); in removeListener() argument
94 public void addListener(ContactListFilterListener listener) { in addListener() argument
95 mListeners.add(listener); in addListener()
99 public void removeListener(ContactListFilterListener listener) { in removeListener() argument
100 mListeners.remove(listener); in removeListener()
137 for (ContactListFilterListener listener : mListeners) { in notifyContactListFilterChanged()
138 listener.onContactListFilterChanged(); in notifyContactListFilterChanged()
/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/Dialer/src/com/android/dialer/voicemail/
DVoicemailPlaybackFragment.java232 public void setRateDecreaseButtonListener(View.OnClickListener listener) { in setRateDecreaseButtonListener() argument
233 mRateDecreaseButton.setOnClickListener(listener); in setRateDecreaseButtonListener()
237 public void setRateIncreaseButtonListener(View.OnClickListener listener) { in setRateIncreaseButtonListener() argument
238 mRateIncreaseButton.setOnClickListener(listener); in setRateIncreaseButtonListener()
242 public void setStartStopListener(View.OnClickListener listener) { in setStartStopListener() argument
243 mStartStopButton.setOnClickListener(listener); in setStartStopListener()
247 public void setSpeakerphoneListener(View.OnClickListener listener) { in setSpeakerphoneListener() argument
248 mPlaybackSpeakerphone.setOnClickListener(listener); in setSpeakerphoneListener()
258 public void setPositionSeekListener(SeekBar.OnSeekBarChangeListener listener) { in setPositionSeekListener() argument
259 mPlaybackSeek.setOnSeekBarChangeListener(listener); in setPositionSeekListener()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/util/
DThreadPool.java50 void setCancelListener(CancelListener listener); in setCancelListener() argument
61 public void setCancelListener(CancelListener listener) { in setCancelListener() argument
97 public <T> Future<T> submit(Job<T> job, FutureListener<T> listener) { in submit() argument
98 Worker<T> w = new Worker<T>(job, listener); in submit()
119 public Worker(Job<T> job, FutureListener<T> listener) { in Worker() argument
121 mListener = listener; in Worker()
194 public synchronized void setCancelListener(CancelListener listener) { in setCancelListener() argument
195 mCancelListener = listener; in setCancelListener()
/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()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DSearchActivityView.java242 public void setQueryListener(QueryListener listener) { in setQueryListener() argument
243 mQueryListener = listener; in setQueryListener()
246 public void setSearchClickListener(SearchClickListener listener) { in setSearchClickListener() argument
247 mSearchClickListener = listener; in setSearchClickListener()
252 public void setVoiceSearchButtonClickListener(View.OnClickListener listener) { in setVoiceSearchButtonClickListener() argument
254 mVoiceSearchButton.setOnClickListener(listener); in setVoiceSearchButtonClickListener()
258 public void setSuggestionClickListener(final SuggestionClickListener listener) { in setSuggestionClickListener() argument
259 mSuggestionsAdapter.setSuggestionClickListener(listener); in setSuggestionClickListener()
268 public void setExitClickListener(final View.OnClickListener listener) { in setExitClickListener() argument
269 mExitClickListener = listener; in setExitClickListener()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DSlideshowPage.java64 public Future<Slide> nextSlide(FutureListener<Slide> listener); in nextSlide() argument
299 public void addContentListener(ContentListener listener) { in addContentListener() argument
300 mMediaSet.addContentListener(listener); in addContentListener()
304 public void removeContentListener(ContentListener listener) { in removeContentListener() argument
305 mMediaSet.removeContentListener(listener); in removeContentListener()
357 public void addContentListener(ContentListener listener) { in addContentListener() argument
358 mMediaSet.addContentListener(listener); in addContentListener()
362 public void removeContentListener(ContentListener listener) { in removeContentListener() argument
363 mMediaSet.removeContentListener(listener); in removeContentListener()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSuggest.java74 final SuggestInitializationListener listener) { in Suggest() argument
75 initAsynchronously(context, locale, listener); in Suggest()
89 final SuggestInitializationListener listener) { in initAsynchronously() argument
90 resetMainDict(context, locale, listener); in initAsynchronously()
105 final SuggestInitializationListener listener) { in resetMainDict() argument
108 if (listener != null) { in resetMainDict()
109 listener.onUpdateMainDictionaryAvailability(hasMainDictionary()); in resetMainDict()
118 if (listener != null) { in resetMainDict()
119 listener.onUpdateMainDictionaryAvailability(hasMainDictionary()); in resetMainDict()
/packages/apps/Contacts/src/com/android/contacts/detail/
DPhotoSelectionHandler.java90 final PhotoActionListener listener = getListener(); in onClick() local
91 if (listener != null) { in onClick()
94 mContext, mPhotoView, listener, mPhotoMode); in onClick()
98 listener.onPhotoSelectionDismissed(); in onClick()
115 final PhotoActionListener listener = getListener(); in handlePhotoActivityResult() local
121 mContext, listener.getCurrentPhotoFile()); in handlePhotoActivityResult()
123 listener.onPhotoSelected(bitmap); in handlePhotoActivityResult()
128 doCropPhoto(listener.getCurrentPhotoFile()); in handlePhotoActivityResult()
/packages/apps/Dialer/src/com/android/dialer/calllog/
DCallLogQueryHandler.java135 public CallLogQueryHandler(ContentResolver contentResolver, Listener listener) { in CallLogQueryHandler() argument
137 mListener = new WeakReference<Listener>(listener); in CallLogQueryHandler()
342 final Listener listener = mListener.get(); in updateAdapterData() local
343 if (listener != null) { in updateAdapterData()
344 listener.onCallsFetched(combinedCursor); in updateAdapterData()
349 final Listener listener = mListener.get(); in updateVoicemailStatus() local
350 if (listener != null) { in updateVoicemailStatus()
351 listener.onVoicemailStatusFetched(statusCursor); in updateVoicemailStatus()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DUpdateHandler.java117 public static void registerUpdateEventListener(final UpdateEventListener listener) { in registerUpdateEventListener() argument
118 sUpdateEventListeners.add(listener); in registerUpdateEventListener()
124 public static void unregisterUpdateEventListener(final UpdateEventListener listener) { in unregisterUpdateEventListener() argument
125 sUpdateEventListeners.remove(listener); in unregisterUpdateEventListener()
289 for (UpdateEventListener listener : linkedCopyOfList(sUpdateEventListeners)) { in cancelUpdateWithDownloadManager()
290 listener.downloadedMetadata(false); in cancelUpdateWithDownloadManager()
475 for (UpdateEventListener listener : linkedCopyOfList(sUpdateEventListeners)) { in publishUpdateMetadataCompleted()
476 listener.downloadedMetadata(downloadSuccessful); in publishUpdateMetadataCompleted()
496 for (UpdateEventListener listener : linkedCopyOfList(sUpdateEventListeners)) { in publishUpdateWordListCompleted()
497 listener.wordListDownloadFinished(downloadedFileRecord.getAsString( in publishUpdateWordListCompleted()
[all …]

12345678910>>...12