Home
last modified time | relevance | path

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

12345678910>>...21

/packages/apps/InCallUI/src/com/android/incallui/
DInCallVideoCallCallbackNotifier.java67 public void addSessionModificationListener(SessionModificationListener listener) { in addSessionModificationListener() argument
68 Preconditions.checkNotNull(listener); in addSessionModificationListener()
69 mSessionModificationListeners.add(listener); in addSessionModificationListener()
77 public void removeSessionModificationListener(SessionModificationListener listener) { in removeSessionModificationListener() argument
78 if (listener != null) { in removeSessionModificationListener()
79 mSessionModificationListeners.remove(listener); in removeSessionModificationListener()
88 public void addVideoEventListener(VideoEventListener listener) { in addVideoEventListener() argument
89 Preconditions.checkNotNull(listener); in addVideoEventListener()
90 mVideoEventListeners.add(listener); in addVideoEventListener()
98 public void removeVideoEventListener(VideoEventListener listener) { in removeVideoEventListener() argument
[all …]
DInCallPresenter.java141 for (InCallDetailsListener listener : mDetailsListeners) {
142 listener.onDetailsChanged(call, details);
410 for (CanAddCallListener listener : mCanAddCallListeners) { in onCanAddCallChanged()
411 listener.onCanAddCallChanged(canAddCall); in onCanAddCallChanged()
445 for (InCallStateListener listener : mListeners) { in onCallListChange()
446 Log.d(this, "Notify " + listener + " of state " + mInCallState.toString()); in onCallListChange()
447 listener.onStateChange(oldState, mInCallState, callList); in onCallListChange()
470 for (IncomingCallListener listener : mIncomingCallListeners) { in onIncomingCall()
471 listener.onIncomingCall(oldState, mInCallState, call); in onIncomingCall()
561 public void addIncomingCallListener(IncomingCallListener listener) { in addIncomingCallListener() argument
[all …]
DCallList.java127 for (Listener listener : mListeners) { in onIncoming()
128 listener.onIncomingCall(call); in onIncoming()
134 for (Listener listener : mListeners) { in onUpgradeToVideo()
135 listener.onUpgradeToVideo(call); in onUpgradeToVideo()
157 for (CallUpdateListener listener : listeners) { in onSessionModificationStateChange()
158 listener.onSessionModificationStateChange(sessionModificationState); in onSessionModificationStateChange()
173 for (CallUpdateListener listener : listeners) { in onLastForwardedNumberChange()
174 listener.onLastForwardedNumberChange(); in onLastForwardedNumberChange()
188 for (CallUpdateListener listener : listeners) { in onChildNumberChange()
189 listener.onChildNumberChange(); in onChildNumberChange()
[all …]
/packages/apps/Camera2/src/com/android/camera/session/
DCaptureSessionManagerImpl.java74 for (SessionListener listener : mTaskListeners) { in notifyTaskQueued()
75 listener.onSessionQueued(uri); in notifyTaskQueued()
92 for (SessionListener listener : mTaskListeners) { in notifyTaskDone()
93 listener.onSessionDone(uri); in notifyTaskDone()
112 for (SessionListener listener : mTaskListeners) { in notifyTaskFailed()
113 listener.onSessionFailed(uri, failureMessageId, removeFromFilmstrip); in notifyTaskFailed()
127 for (SessionListener listener : mTaskListeners) { in notifyTaskCanceled()
128 listener.onSessionCanceled(uri); in notifyTaskCanceled()
146 for (SessionListener listener : mTaskListeners) { in notifyTaskProgress()
147 listener.onSessionProgress(uri, progressPercent); in notifyTaskProgress()
[all …]
DCaptureSessionImpl.java156 for (ProgressListener listener : mProgressListeners) { in setProgress()
157 listener.onProgressChanged(percent); in setProgress()
170 for (ProgressListener listener : mProgressListeners) { in setProgressMessage()
171 listener.onStatusMessageChanged(messageId); in setProgressMessage()
199 public synchronized void startEmpty(@Nullable ImageLifecycleListener listener, in startEmpty() argument
205 if (listener != null) { in startEmpty()
206 mImageLifecycleListener = listener; in startEmpty()
219 public synchronized void startSession(@Nullable ImageLifecycleListener listener, in startSession() argument
225 if (listener != null) { in startSession()
226 mImageLifecycleListener = listener; in startSession()
[all …]
/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/services/Telecomm/src/com/android/server/telecom/
DCallsManager.java230 for (CallsManagerListener listener : mListeners) { in onSuccessfulOutgoingCall()
231 listener.onConnectionServiceChanged(call, null, call.getConnectionService()); in onSuccessfulOutgoingCall()
282 for (CallsManagerListener listener : mListeners) { in onRingbackRequested()
283 listener.onRingbackRequested(call, ringback); in onRingbackRequested()
333 for (CallsManagerListener listener : mListeners) { in onParentChanged()
334 listener.onIsConferencedChanged(call); in onParentChanged()
342 for (CallsManagerListener listener : mListeners) { in onChildrenChanged()
343 listener.onIsConferencedChanged(call); in onChildrenChanged()
349 for (CallsManagerListener listener : mListeners) { in onIsVoipAudioModeChanged()
350 listener.onIsVoipAudioModeChanged(call); in onIsVoipAudioModeChanged()
[all …]
/packages/apps/Camera2/src/com/android/camera/
DTextureViewHelper.java158 for (PreviewStatusListener.PreviewAspectRatioChangedListener listener in onAspectRatioChanged()
160 listener.onPreviewAspectRatioChanged(mAspectRatio); in onAspectRatioChanged()
165 PreviewStatusListener.PreviewAspectRatioChangedListener listener) { in addAspectRatioChangedListener() argument
166 if (listener != null && !mAspectRatioChangedListeners.contains(listener)) { in addAspectRatioChangedListener()
167 mAspectRatioChangedListeners.add(listener); in addAspectRatioChangedListener()
235 public void setOnLayoutChangeListener(OnLayoutChangeListener listener) {
236 mOnLayoutChangeListener = listener;
239 public void setSurfaceTextureListener(TextureView.SurfaceTextureListener listener) {
240 mSurfaceTextureListener = listener;
386 for (PreviewStatusListener.PreviewAreaChangedListener listener : listeners) {
[all …]
DShutterButton.java71 for (OnShutterButtonListener listener : mListeners) { in onLongPress()
72 listener.onShutterButtonLongPressed(); in onLongPress()
90 public void addOnShutterButtonListener(OnShutterButtonListener listener) { in addOnShutterButtonListener() argument
91 if (!mListeners.contains(listener)) { in addOnShutterButtonListener()
92 mListeners.add(listener); in addOnShutterButtonListener()
99 public void removeOnShutterButtonListener(OnShutterButtonListener listener) { in removeOnShutterButtonListener() argument
100 if (mListeners.contains(listener)) { in removeOnShutterButtonListener()
101 mListeners.remove(listener); in removeOnShutterButtonListener()
178 for (OnShutterButtonListener listener : mListeners) { in callShutterButtonFocus()
179 listener.onShutterButtonFocus(pressed); in callShutterButtonFocus()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
DBluetoothScanner.java116 public static void startListening(Context context, Listener listener, in startListening() argument
121 sReceiver.startListening(listener, criteria); in startListening()
130 public static boolean stopListening(Listener listener) { in stopListening() argument
133 return sReceiver.stopListening(listener); in stopListening()
164 public final Listener listener; field in BluetoothScanner.ClientRecord
168 public ClientRecord(Listener listener, List<BluetoothDeviceCriteria> matchers) { in ClientRecord() argument
169 this.listener = listener; in ClientRecord()
201 public void startListening(Listener listener, List<BluetoothDeviceCriteria> matchers) { in startListening() argument
203 ClientRecord newClient = new ClientRecord(listener, matchers); in startListening()
206 if (mClients.get(ptr).listener == listener) { in startListening()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DActionMonitor.java210 protected final void setCompletedListener(final ActionCompletedListener listener) { in setCompletedListener() argument
212 mCompletedListener = listener; in setCompletedListener()
219 protected final void setExecutedListener(final ActionExecutedListener listener) { in setExecutedListener() argument
221 mExecutedListener = listener; in setExecutedListener()
228 protected final void setStateChangedListener(final ActionStateChangedListener listener) { in setStateChangedListener() argument
230 mStateChangedListener = listener; in setStateChangedListener()
243 ActionStateChangedListener listener = null; in updateState() local
252 listener = mStateChangedListener; in updateState()
255 if (listener != null) { in updateState()
256 listener.onActionStateChanged(action, newState); in updateState()
[all …]
/packages/apps/Camera2/src/com/android/camera/settings/
DSettingsManager.java134 for (OnSharedPreferenceChangeListener listener : mSharedPreferenceListeners) { in openPreferences()
135 preferences.registerOnSharedPreferenceChangeListener(listener); in openPreferences()
153 for (OnSharedPreferenceChangeListener listener : mSharedPreferenceListeners) { in closePreferences()
154 preferences.unregisterOnSharedPreferenceChangeListener(listener); in closePreferences()
178 final OnSettingChangedListener listener) { in getSharedPreferenceListener() argument
183 listener.onSettingChanged(SettingsManager.this, key); in getSharedPreferenceListener()
192 public void addListener(final OnSettingChangedListener listener) {
194 if (listener == null) {
198 if (mListeners.contains(listener)) {
202 mListeners.add(listener);
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_reading_helper.cpp42 TraversingEventListener *const listener) { in traverseAllPtNodesInPostorderDepthFirstManner() argument
45 if (!listener->onDescend(getPosOfLastPtNodeArrayHead())) { in traverseAllPtNodesInPostorderDepthFirstManner()
56 if (!listener->onDescend(ptNodeParams.getChildrenPos())) { in traverseAllPtNodesInPostorderDepthFirstManner()
65 if (!listener->onVisitingPtNode(&ptNodeParams)) { in traverseAllPtNodesInPostorderDepthFirstManner()
72 if (!listener->onReadingPtNodeArrayTail()) { in traverseAllPtNodesInPostorderDepthFirstManner()
78 if (!listener->onAscend()) { in traverseAllPtNodesInPostorderDepthFirstManner()
90 if (!listener->onAscend()) { in traverseAllPtNodesInPostorderDepthFirstManner()
102 TraversingEventListener *const listener) { in traverseAllPtNodesInPtNodeArrayLevelPreorderDepthFirstManner() argument
106 if (!listener->onDescend(getPosOfLastPtNodeArrayHead())) { in traverseAllPtNodesInPtNodeArrayLevelPreorderDepthFirstManner()
111 if (!listener->onReadingPtNodeArrayTail()) { in traverseAllPtNodesInPtNodeArrayLevelPreorderDepthFirstManner()
[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 …]
/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.java159 VCardImportExportListener listener) { in handleImportRequest() argument
175 if (tryExecute(new ImportProcessor(this, listener, request, mCurrentJobId))) { in handleImportRequest()
176 if (listener != null) { in handleImportRequest()
177 listener.onImportProcessed(request, mCurrentJobId, i); in handleImportRequest()
181 if (listener != null) { in handleImportRequest()
182 listener.onImportFailed(request); in handleImportRequest()
191 VCardImportExportListener listener) { in handleExportRequest() argument
199 if (listener != null) { in handleExportRequest()
200 listener.onExportFailed(request); in handleExportRequest()
205 if (listener != null) { in handleExportRequest()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DDataModelImpl.java80 final ConversationListDataListener listener, final boolean archivedMode) { in createConversationListData() argument
81 return new ConversationListData(context, listener, archivedMode); in createConversationListData()
86 final ConversationDataListener listener, final String conversationId) { in createConversationData() argument
87 return new ConversationData(context, listener, conversationId); in createConversationData()
97 final ContactPickerDataListener listener) { in createContactPickerData() argument
98 return new ContactPickerData(context, listener); in createContactPickerData()
103 final Context context, final BlockedParticipantsDataListener listener) { in createBlockedParticipantsData() argument
104 return new BlockedParticipantsData(context, listener); in createBlockedParticipantsData()
119 final LaunchConversationDataListener listener) { in createLaunchConversationData() argument
120 return new LaunchConversationData(listener); in createLaunchConversationData()
[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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DBatchInputArbiter.java94 final boolean isMajorEvent, final BatchInputArbiterListener listener) { in addMoveEventPoint() argument
99 listener.onStartUpdateBatchInputTimer(); in addMoveEventPoint()
110 public boolean mayStartBatchInput(final BatchInputArbiterListener listener) { in mayStartBatchInput() argument
118 listener.onStartBatchInput(); in mayStartBatchInput()
131 final BatchInputArbiterListener listener) { in updateBatchInputByTimer() argument
134 updateBatchInput(syntheticMoveEventTime, listener); in updateBatchInputByTimer()
146 final BatchInputArbiterListener listener) { in updateBatchInput() argument
152 listener.onUpdateBatchInput(sAggregatedPointers, moveEventTime); in updateBatchInput()
153 listener.onStartUpdateBatchInputTimer(); in updateBatchInput()
171 final BatchInputArbiterListener listener) { in mayEndBatchInput() argument
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/
DGenericOneCameraImpl.java101 public void setFocusStateListener(final FocusStateListener listener) { in setFocusStateListener() argument
108 if(listener !=null) { in setFocusStateListener()
109 listener.onFocusStatusUpdate(AutoFocusHelper.stateFromCamera2State(afState), in setFocusStateListener()
117 public void setFocusDistanceListener(final FocusDistanceListener listener) { in setFocusDistanceListener() argument
118 if (listener == null) { in setFocusDistanceListener()
126 listener.onFocusDistance(focusState.lensDistance, mLensRange); in setFocusDistanceListener()
133 public void setReadyStateChangedListener(final ReadyStateChangedListener listener) { in setReadyStateChangedListener() argument
134 if (listener == null) { in setReadyStateChangedListener()
142 listener.onReadyStateChanged(result); in setReadyStateChangedListener()
150 public void startPreview(Surface surface, final CaptureReadyCallback listener) { in startPreview() argument
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherViewPropertyAnimator.java63 public void addListener(Animator.AnimatorListener listener) { in addListener() argument
64 mListeners.add(listener); in addListener()
102 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationCancel() local
103 listener.onAnimationCancel(this); in onAnimationCancel()
111 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationEnd() local
112 listener.onAnimationEnd(this); in onAnimationEnd()
120 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationRepeat() local
121 listener.onAnimationRepeat(this); in onAnimationRepeat()
132 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationStart() local
133 listener.onAnimationStart(this); in onAnimationStart()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
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/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpClient.java83 for (Listener listener : mListeners) {
84 listener.deviceAdded(mtpDevice);
92 for (Listener listener : mListeners) {
93 listener.deviceRemoved(mtpDevice);
106 for (Listener listener : mListeners) {
107 listener.deviceAdded(mtpDevice);
226 public void addListener(Listener listener) { in addListener() argument
228 if (!mListeners.contains(listener)) { in addListener()
229 mListeners.add(listener); in addListener()
239 public void removeListener(Listener listener) { in removeListener() argument
[all …]
/packages/apps/Camera2/src/com/android/camera/app/
DMemoryManagerImpl.java94 public void addListener(MemoryListener listener) { in addListener() argument
96 if (!mListeners.contains(listener)) { in addListener()
97 mListeners.add(listener); in addListener()
105 public void removeListener(MemoryListener listener) { in removeListener() argument
107 if (mListeners.contains(listener)) { in removeListener()
108 mListeners.remove(listener); in removeListener()
172 for (MemoryListener listener : mListeners) { in notifyLowMemory()
173 listener.onLowMemory(); in notifyLowMemory()
180 for (MemoryListener listener : mListeners) { in notifyCaptureStateUpdate()
181 listener.onMemoryStateChanged(captureState); in notifyCaptureStateUpdate()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapFolder.java471 public Message[] getMessages(SearchParams params, MessageRetrievalListener listener) in getMessages() argument
490 return getMessagesInternal(complexSearchForUids(commands), listener); in getMessages()
510 public Message[] getMessages(int start, int end, MessageRetrievalListener listener) in getMessages() argument
517 searchForUids(String.format(Locale.US, "%d:%d NOT DELETED", start, end)), listener); in getMessages()
557 public Message[] getMessages(long startDate, long endDate, MessageRetrievalListener listener) in getMessages() argument
581 return getMessagesInternal(uids, listener); in getMessages()
586 public Message[] getMessages(String[] uids, MessageRetrievalListener listener) in getMessages() argument
591 return getMessagesInternal(uids, listener); in getMessages()
594 public Message[] getMessagesInternal(String[] uids, MessageRetrievalListener listener) { in getMessagesInternal() argument
600 if (listener != null) { in getMessagesInternal()
[all …]

12345678910>>...21