/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
D | InCallVideoCallCallbackNotifier.java | 67 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 …]
|
D | InCallPresenter.java | 160 for (InCallDetailsListener listener : mDetailsListeners) { 161 listener.onDetailsChanged(call, details); 598 for (CanAddCallListener listener : mCanAddCallListeners) { in onCanAddCallChanged() 599 listener.onCanAddCallChanged(canAddCall); in onCanAddCallChanged() 633 for (InCallStateListener listener : mListeners) { in onCallListChange() 634 Log.d(this, "Notify " + listener + " of state " + mInCallState.toString()); in onCallListChange() 635 listener.onStateChange(oldState, mInCallState, callList); in onCallListChange() 658 for (IncomingCallListener listener : mIncomingCallListeners) { in onIncomingCall() 659 listener.onIncomingCall(oldState, mInCallState, call); in onIncomingCall() 764 public void addIncomingCallListener(IncomingCallListener listener) { in addIncomingCallListener() argument [all …]
|
D | CallList.java | 138 for (Listener listener : mListeners) { in onIncoming() 139 listener.onIncomingCall(call); in onIncoming() 145 for (Listener listener : mListeners) { in onUpgradeToVideo() 146 listener.onUpgradeToVideo(call); in onUpgradeToVideo() 168 for (CallUpdateListener listener : listeners) { in onSessionModificationStateChange() 169 listener.onSessionModificationStateChange(sessionModificationState); in onSessionModificationStateChange() 184 for (CallUpdateListener listener : listeners) { in onLastForwardedNumberChange() 185 listener.onLastForwardedNumberChange(); in onLastForwardedNumberChange() 199 for (CallUpdateListener listener : listeners) { in onChildNumberChange() 200 listener.onChildNumberChange(); in onChildNumberChange() [all …]
|
/packages/apps/Camera2/src/com/android/camera/session/ |
D | CaptureSessionManagerImpl.java | 74 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 …]
|
D | CaptureSessionImpl.java | 156 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/Dialer/tests/src/com/android/dialer/database/ |
D | FilteredNumberAsyncQueryHandlerTest.java | 87 final HasBlockedNumbersListener listener = new HasBlockedNumbersListener(); in testHasBlockedNumbers_Disabled() local 91 new FilteredNumberAsyncQueryHandler(resolver).hasBlockedNumbers(listener); in testHasBlockedNumbers_Disabled() 94 assertTrue(listener.waitForCallback()); in testHasBlockedNumbers_Disabled() 100 final HasBlockedNumbersListener listener = new HasBlockedNumbersListener(); in testHasBlockedNumbers_NoResults() local 104 new FilteredNumberAsyncQueryHandler(mContentResolver).hasBlockedNumbers(listener); in testHasBlockedNumbers_NoResults() 107 assertFalse(listener.waitForCallback()); in testHasBlockedNumbers_NoResults() 113 final HasBlockedNumbersListener listener = new HasBlockedNumbersListener(); in testHasBlockedNumbers() local 117 new FilteredNumberAsyncQueryHandler(mContentResolver).hasBlockedNumbers(listener); in testHasBlockedNumbers() 120 assertTrue(listener.waitForCallback()); in testHasBlockedNumbers() 136 final CheckBlockedListener listener = new CheckBlockedListener(); in testIsBlockedNumber_Disabled() local [all …]
|
/packages/services/Car/tests/libvehiclenetwork-native-test/ |
D | IVehicleNetworkMockedTest.cpp | 82 sp<IVehicleNetworkTestListener> listener(new IVehicleNetworkTestListener()); in TEST_F() local 83 int originalCount = listener->getHalRestartCount(); in TEST_F() 84 ASSERT_EQ(NO_ERROR, mVN->startHalRestartMonitoring(listener)); in TEST_F() 86 listener->waitForHalRestart(WAIT_TIMEOUT_NS); in TEST_F() 87 ASSERT_EQ(originalCount + 1, listener->getHalRestartCount()); in TEST_F() 89 listener->waitForHalRestart(WAIT_TIMEOUT_NS); in TEST_F() 90 ASSERT_EQ(originalCount + 2, listener->getHalRestartCount()); in TEST_F() 94 sp<IVehicleNetworkTestListener> listener(new IVehicleNetworkTestListener()); in TEST_F() local 95 ASSERT_EQ(NO_ERROR, mVN->startErrorListening(listener)); in TEST_F() 100 listener->waitForHalError(WAIT_TIMEOUT_NS); in TEST_F() [all …]
|
/packages/services/Car/service/src/com/android/car/cluster/ |
D | CarNavigationService.java | 122 public boolean registerEventListener(ICarNavigationEventListener listener) { in registerEventListener() argument 125 if (findClientLocked(listener) != null) { in registerEventListener() 129 eventListener = new CarNavigationEventListener(listener); in registerEventListener() 131 listener.asBinder().linkToDeath(eventListener, 0); in registerEventListener() 147 public boolean unregisterEventListener(ICarNavigationEventListener listener) { in unregisterEventListener() argument 150 client = findClientLocked(listener); in unregisterEventListener() 175 private boolean removeClient(CarNavigationEventListener listener) { in removeClient() argument 179 if (currentListener == listener) { in removeClient() 180 currentListener.listener.asBinder().unlinkToDeath(currentListener, 0); in removeClient() 189 ICarNavigationEventListener listener) { in findClientLocked() argument [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | MonitoredActivity.java | 50 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/services/Car/car-support-lib/src/android/support/car/hardware/ |
D | CarSensorManagerEmbedded.java | 54 public boolean registerListener(CarSensorEventListener listener, int sensorType, in registerListener() argument 58 proxy = findListenerLocked(listener); in registerListener() 60 proxy = new CarSensorEventListenerProxy(listener, sensorType); in registerListener() 73 public void unregisterListener(CarSensorEventListener listener) in unregisterListener() argument 77 proxy = findListenerLocked(listener); in unregisterListener() 91 public void unregisterListener(CarSensorEventListener listener, int sensorType) in unregisterListener() argument 95 proxy = findListenerLocked(listener); in unregisterListener() 125 private CarSensorEventListenerProxy findListenerLocked(CarSensorEventListener listener) { in findListenerLocked() argument 127 if (proxy.listener == listener) { in findListenerLocked() 145 public final CarSensorEventListener listener; field in CarSensorManagerEmbedded.CarSensorEventListenerProxy [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | AppContextService.java | 56 public void registerContextListener(IAppContextListener listener, int filter) { in registerContextListener() argument 58 ClientInfo info = (ClientInfo) mAllClients.getBinderInterface(listener); in registerContextListener() 60 info = new ClientInfo(mAllClients, listener, Binder.getCallingUid(), in registerContextListener() 70 public void unregisterContextListener(IAppContextListener listener) { in unregisterContextListener() argument 72 ClientInfo info = (ClientInfo) mAllClients.getBinderInterface(listener); in unregisterContextListener() 76 resetActiveContexts(listener, info.getOwnedContexts()); in unregisterContextListener() 77 mAllClients.removeBinder(listener); in unregisterContextListener() 89 public boolean isOwningContext(IAppContextListener listener, int context) { in isOwningContext() argument 91 ClientInfo info = (ClientInfo) mAllClients.getBinderInterface(listener); in isOwningContext() 101 public void setActiveContexts(IAppContextListener listener, int contexts) { in setActiveContexts() argument [all …]
|
D | CarInputService.java | 65 public void setVoiceAssitantKeyListener(KeyEventListener listener) { in setVoiceAssitantKeyListener() argument 67 mVoiceAssitantKeyListener = listener; in setVoiceAssitantKeyListener() 77 public void setLongVoiceAssitantKeyListener(KeyEventListener listener) { in setLongVoiceAssitantKeyListener() argument 79 mLongVoiceAssitantKeyListener = listener; in setLongVoiceAssitantKeyListener() 83 public void setInstrumentClusterKeyListener(KeyEventListener listener) { in setInstrumentClusterKeyListener() argument 85 mInstumentClusterKeyListener = listener; in setInstrumentClusterKeyListener() 158 KeyEventListener listener = null; in handleVoiceAssistKey() local 171 listener = (duration > VOICE_LONG_PRESS_TIME_MS in handleVoiceAssistKey() 173 if (listener != null) { in handleVoiceAssistKey() 174 listener.onKeyEvent(event); in handleVoiceAssistKey() [all …]
|
/packages/apps/Dialer/src/com/android/dialer/database/ |
D | FilteredNumberAsyncQueryHandler.java | 128 public void hasBlockedNumbers(final OnHasBlockedNumbersListener listener) { in hasBlockedNumbers() argument 133 listener.onHasBlockedNumbers(cursor != null && cursor.getCount() > 0); in hasBlockedNumbers() 151 final OnCheckBlockedListener listener, String number, String countryIso) { in isBlockedNumber() argument 168 listener.onCheckComplete(null); in isBlockedNumber() 176 listener.onCheckComplete(null); in isBlockedNumber() 179 listener.onCheckComplete( in isBlockedNumber() 194 final OnBlockNumberListener listener, String number, @Nullable String countryIso) { in blockNumber() argument 195 blockNumber(listener, null, number, countryIso); in blockNumber() 202 final OnBlockNumberListener listener, in blockNumber() argument 206 blockNumber(listener, FilteredNumberCompat.newBlockNumberContentValues(number, in blockNumber() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | ShutterButton.java | 71 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 …]
|
D | TextureViewHelper.java | 158 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 …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | dynamic_pt_reading_helper.cpp | 42 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/ui/ |
D | MenuExecutor.java | 101 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/Messaging/src/com/android/messaging/datamodel/action/ |
D | ActionMonitor.java | 210 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/services/Car/car-lib/src/android/car/hardware/ |
D | CarSensorManager.java | 285 public boolean registerListener(CarSensorEventListener listener, int sensorType, int rate) in registerListener() argument 303 if (listeners.addAndUpdateRate(listener, rate)) { in registerListener() 321 public void unregisterListener(CarSensorEventListener listener) in unregisterListener() argument 328 doUnregisterListenerLocked(listener, sensor, sensorIterator); in unregisterListener() 340 public void unregisterListener(CarSensorEventListener listener, int sensorType) in unregisterListener() argument 343 doUnregisterListenerLocked(listener, sensorType, null); in unregisterListener() 347 private void doUnregisterListenerLocked(CarSensorEventListener listener, Integer sensor, in doUnregisterListenerLocked() argument 351 if (listeners.contains(listener)) { in doUnregisterListenerLocked() 352 listeners.remove(listener); in doUnregisterListenerLocked() 455 boolean contains(CarSensorEventListener listener) { in contains() argument [all …]
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/ |
D | SetupActionHelper.java | 31 OnActionClickListener listener = null; in onActionClick() local 33 listener = ((SetupFragment) fragment).getOnActionClickListener(); in onActionClick() 35 if (listener == null && fragment.getActivity() instanceof OnActionClickListener) { in onActionClick() 36 listener = (OnActionClickListener) fragment.getActivity(); in onActionClick() 38 if (listener != null) { in onActionClick() 39 listener.onActionClick(category, actionId); in onActionClick() 46 public static OnClickListener createOnClickListenerForAction(OnActionClickListener listener, in createOnClickListenerForAction() argument 48 return new OnActionClickListenerForAction(listener, category, actionId); in createOnClickListenerForAction() 56 OnActionClickListenerForAction(OnActionClickListener listener, String category, in OnActionClickListenerForAction() argument 58 mListener = listener; in OnActionClickListenerForAction()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/ |
D | BluetoothScanner.java | 116 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/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | BatchInputArbiter.java | 94 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/Gallery2/src/com/android/gallery3d/data/ |
D | MediaSet.java | 158 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/Camera2/src/com/android/camera/settings/ |
D | SettingsManager.java | 134 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/apps/Gallery2/src/com/android/gallery3d/util/ |
D | JobLimiter.java | 48 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()
|