Home
last modified time | relevance | path

Searched refs:mListeners (Results 1 – 25 of 54) sorted by relevance

123

/packages/services/Telecomm/src/com/android/server/telecom/
DCall.java300 private final Set<Listener> mListeners = Collections.newSetFromMap( field in Call
480 mListeners.add(listener); in addListener()
485 mListeners.remove(listener); in removeListener()
689 for (Listener l : mListeners) { in setRingbackRequested()
754 for (Listener l : mListeners) { in setHandle()
773 for (Listener l : mListeners) { in setCallerDisplayName()
844 for (Listener l : mListeners) { in setConnectionManagerPhoneAccount()
860 for (Listener l : mListeners) { in setTargetPhoneAccount()
986 for (Listener l : mListeners) { in setConnectionCapabilities()
998 for (Listener l : mListeners) { in setConnectionProperties()
[all …]
DCallsManager.java173 private final Set<CallsManagerListener> mListeners = Collections.newSetFromMap( field in CallsManager
282 mListeners.add(mInCallWakeLockController); in CallsManager()
283 mListeners.add(statusBarNotifier); in CallsManager()
284 mListeners.add(mCallLogManager); in CallsManager()
285 mListeners.add(mPhoneStateBroadcaster); in CallsManager()
286 mListeners.add(mInCallController); in CallsManager()
287 mListeners.add(mCallAudioManager); in CallsManager()
288 mListeners.add(missedCallNotifier); in CallsManager()
289 mListeners.add(mHeadsetMediaButton); in CallsManager()
290 mListeners.add(mProximitySensorManager); in CallsManager()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherViewPropertyAnimator.java53 ArrayList<Animator.AnimatorListener> mListeners; field in LauncherViewPropertyAnimator
59 mListeners = new ArrayList<Animator.AnimatorListener>(); in LauncherViewPropertyAnimator()
64 mListeners.add(listener); in addListener()
91 return mListeners; in getListeners()
101 for (int i = 0; i < mListeners.size(); i++) { in onAnimationCancel()
102 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationCancel()
110 for (int i = 0; i < mListeners.size(); i++) { in onAnimationEnd()
111 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationEnd()
119 for (int i = 0; i < mListeners.size(); i++) { in onAnimationRepeat()
120 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationRepeat()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherViewPropertyAnimator.java55 ArrayList<Animator.AnimatorListener> mListeners = new ArrayList<>(); field in LauncherViewPropertyAnimator
65 mListeners.add(listener); in addListener()
92 return mListeners; in getListeners()
102 for (int i = 0; i < mListeners.size(); i++) { in onAnimationCancel()
103 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationCancel()
111 for (int i = 0; i < mListeners.size(); i++) { in onAnimationEnd()
112 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationEnd()
120 for (int i = 0; i < mListeners.size(); i++) { in onAnimationRepeat()
121 Animator.AnimatorListener listener = mListeners.get(i); in onAnimationRepeat()
132 for (int i = 0; i < mListeners.size(); i++) { in onAnimationStart()
[all …]
/packages/apps/Camera2/src/com/android/camera/app/
DMemoryManagerImpl.java50 private final LinkedList<MemoryListener> mListeners = new LinkedList<MemoryListener>(); field in MemoryManagerImpl
95 synchronized (mListeners) { in addListener()
96 if (!mListeners.contains(listener)) { in addListener()
97 mListeners.add(listener); in addListener()
106 synchronized (mListeners) { in removeListener()
107 if (mListeners.contains(listener)) { in removeListener()
108 mListeners.remove(listener); in removeListener()
171 synchronized (mListeners) { in notifyLowMemory()
172 for (MemoryListener listener : mListeners) { in notifyLowMemory()
179 synchronized (mListeners) { in notifyCaptureStateUpdate()
[all …]
/packages/apps/Settings/src/com/android/settings/datausage/
DDataSaverBackend.java44 private final ArrayList<Listener> mListeners = new ArrayList<>(); field in DataSaverBackend
57 mListeners.add(listener); in addListener()
58 if (mListeners.size() == 1) { in addListener()
65 mListeners.remove(listener); in remListener()
66 if (mListeners.size() == 0) { in remListener()
160 for (int i = 0; i < mListeners.size(); i++) { in handleRestrictBackgroundChanged()
161 mListeners.get(i).onDataSaverChanged(isDataSaving); in handleRestrictBackgroundChanged()
166 for (int i = 0; i < mListeners.size(); i++) { in handleWhitelistChanged()
167 mListeners.get(i).onWhitelistStatusChanged(uid, isWhitelisted); in handleWhitelistChanged()
172 for (int i = 0; i < mListeners.size(); i++) { in handleBlacklistChanged()
[all …]
/packages/services/Car/service/src/com/android/car/cluster/
DCarNavigationService.java49 private final List<CarNavigationEventListener> mListeners = new ArrayList<>(); field in CarNavigationService
72 synchronized(mListeners) { in release()
73 mListeners.clear(); in release()
124 synchronized(mListeners) { in registerEventListener()
136 mListeners.add(eventListener); in registerEventListener()
149 synchronized (mListeners) { in unregisterEventListener()
176 synchronized(mListeners) { in removeClient()
177 for (CarNavigationEventListener currentListener : mListeners) { in removeClient()
181 return mListeners.remove(currentListener); in removeClient()
190 for (CarNavigationEventListener existingListener : mListeners) { in findClientLocked()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DMonitoredActivity.java26 private final ArrayList<LifeCycleListener> mListeners = field in MonitoredActivity
51 if (mListeners.contains(listener)) return; in addLifeCycleListener()
52 mListeners.add(listener); in addLifeCycleListener()
56 mListeners.remove(listener); in removeLifeCycleListener()
62 for (LifeCycleListener listener : mListeners) { in onCreate()
70 for (LifeCycleListener listener : mListeners) { in onDestroy()
78 for (LifeCycleListener listener : mListeners) { in onStart()
86 for (LifeCycleListener listener : mListeners) { in onStop()
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DAudioModeProvider.java38 private final List<AudioModeListener> mListeners = Lists.newArrayList(); field in AudioModeProvider
52 for (AudioModeListener l : mListeners) { in onAudioModeChange()
59 for (AudioModeListener l : mListeners) { in onAudioModeChange()
68 for (AudioModeListener l : mListeners) { in onSupportedAudioModeChange()
74 if (!mListeners.contains(listener)) { in addListener()
75 mListeners.add(listener); in addListener()
83 if (mListeners.contains(listener)) { in removeListener()
84 mListeners.remove(listener); in removeListener()
/packages/apps/Camera2/src/com/android/camera/
DShutterButton.java71 for (OnShutterButtonListener listener : mListeners) { in onLongPress()
77 private List<OnShutterButtonListener> mListeners field in ShutterButton
91 if (!mListeners.contains(listener)) { in addOnShutterButtonListener()
92 mListeners.add(listener); in addOnShutterButtonListener()
100 if (mListeners.contains(listener)) { in removeOnShutterButtonListener()
101 mListeners.remove(listener); in removeOnShutterButtonListener()
178 for (OnShutterButtonListener listener : mListeners) { in callShutterButtonFocus()
187 for (OnShutterButtonListener listener : mListeners) { in performClick()
/packages/apps/Camera2/src/com/android/camera/one/v2/core/
DTagDispatchCaptureSession.java46 private final Map<Object, ResponseListener> mListeners; field in TagDispatchCaptureSession.CaptureCallback
53 mListeners = new HashMap<>(listeners); in CaptureCallback()
60 mListeners.get(tag).onStarted(timestamp); in onCaptureStarted()
67 mListeners.get(tag).onProgressed(partialResult); in onCaptureProgressed()
74 mListeners.get(tag).onCompleted(result); in onCaptureCompleted()
81 mListeners.get(tag).onFailed(failure); in onCaptureFailed()
86 for (ResponseListener listener : mListeners.values()) { in onCaptureSequenceAborted()
94 for (ResponseListener listener : mListeners.values()) { in onCaptureSequenceCompleted()
DResponseListenerBroadcaster.java32 private final ImmutableList<ResponseListener> mListeners; field in ResponseListenerBroadcaster
35 mListeners = ImmutableList.copyOf(listeners); in ResponseListenerBroadcaster()
39 mListeners = ImmutableList.copyOf(listeners); in ResponseListenerBroadcaster()
44 for (ResponseListener listener : mListeners) { in onStarted()
51 for (ResponseListener listener : mListeners) { in onProgressed()
58 for (ResponseListener listener : mListeners) { in onCompleted()
65 for (ResponseListener listener : mListeners) { in onFailed()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DConversationData.java211 mListeners.onConversationMetadataUpdated(ConversationData.this); in onLoadFinished()
216 mListeners.closeConversation(mConversationId); in onLoadFinished()
237 mListeners.onConversationMetadataUpdated(ConversationData.this); in onLoaderReset()
310 mListeners.onConversationMessagesCursorUpdated(ConversationData.this, data, in onLoadFinished()
324 mListeners.onConversationMessagesCursorUpdated(ConversationData.this, null, null, in onLoaderReset()
378 mListeners.onConversationParticipantDataLoaded(ConversationData.this); in onLoadFinished()
432 mListeners.onSubscriptionListDataLoaded(ConversationData.this); in onLoadFinished()
453 private final ConversationDataEventDispatcher mListeners; field in ConversationData
483 mListeners = new ConversationDataEventDispatcher(); in ConversationData()
484 mListeners.add(listener); in ConversationData()
[all …]
/packages/apps/TV/src/com/android/tv/
DChannelTuner.java59 private final Set<Listener> mListeners = new ArraySet<>(); field in ChannelTuner
72 for (Listener l : mListeners) {
85 for (Listener l : mListeners) {
322 mListeners.add(listener); in addListener()
329 mListeners.remove(listener); in removeListener()
361 for (Listener l : mListeners) { in setCurrentChannelAndNotify()
384 for (Listener l : mListeners) { in updateChannelData()
391 for (Listener l : mListeners) { in updateChannelData()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpClient.java53 private final ArrayList<Listener> mListeners = new ArrayList<Listener>(); field in MtpClient
83 for (Listener listener : mListeners) {
92 for (Listener listener : mListeners) {
106 for (Listener listener : mListeners) {
228 if (!mListeners.contains(listener)) { in addListener()
229 mListeners.add(listener); in addListener()
241 mListeners.remove(listener); in removeListener()
/packages/apps/Camera2/src/com/android/camera/settings/
DSettingsManager.java93 private final List<OnSettingChangedListener> mListeners = field in SettingsManager
198 if (mListeners.contains(listener)) {
202 mListeners.add(listener);
212 Log.v(TAG, "listeners: " + mListeners);
226 if (!mListeners.contains(listener)) {
230 int index = mListeners.indexOf(listener);
231 mListeners.remove(listener);
260 mListeners.clear();
/packages/services/Car/car-lib/src/android/car/hardware/
DCarSensorManager.java445 private final LinkedList<CarSensorEventListener> mListeners = field in CarSensorManager.CarSensorListeners
456 return mListeners.contains(listener); in contains()
460 mListeners.remove(listener); in remove()
464 return mListeners.isEmpty(); in isEmpty()
474 if (!mListeners.contains(listener)) { in addAndUpdateRate()
475 mListeners.add(listener); in addAndUpdateRate()
492 for (CarSensorEventListener listener: mListeners) { in onSensorChanged()
/packages/apps/TV/src/com/android/tv/data/
DChannelDataManager.java75 private final Set<Listener> mListeners = new ArraySet<>(); field in ChannelDataManager
216 mListeners.add(listener); in addListener()
227 mListeners.remove(listener); in removeListener()
364 for (Listener l : mListeners.toArray(new Listener[mListeners.size()])) { in notifyChannelBrowsableChanged()
371 for (Listener l : mListeners.toArray(new Listener[mListeners.size()])) { in notifyChannelListUpdated()
378 for (Listener l : mListeners.toArray(new Listener[mListeners.size()])) { in notifyLoadFinished()
/packages/apps/TV/src/com/android/tv/util/
DPipInputManager.java54 private final Set<Listener> mListeners = new ArraySet<>(); field in PipInputManager
70 for (Listener l : mListeners) {
88 for (Listener l : mListeners) {
173 mListeners.add(listener); in addListener()
180 mListeners.remove(listener); in removeListener()
294 for (Listener l : mListeners) { in initializePipInputList()
419 for (Listener l : mListeners) { in updateAvailability()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMtpClient.java56 private final ArrayList<Listener> mListeners = new ArrayList<Listener>(); field in MtpClient
86 for (Listener listener : mListeners) {
95 for (Listener listener : mListeners) {
109 for (Listener listener : mListeners) {
230 if (!mListeners.contains(listener)) { in addListener()
231 mListeners.add(listener); in addListener()
243 mListeners.remove(listener); in removeListener()
/packages/services/Car/car-lib/src/android/car/hardware/hvac/
DCarHvacManager.java131 private final ArraySet<CarHvacEventListener> mListeners = new ArraySet<>(); field in CarHvacManager
199 if(mListeners.isEmpty()) { in registerListener()
210 mListeners.add(listener); in registerListener()
229 mListeners.remove(listener); in unregisterListener()
230 if(mListeners.isEmpty()) { in unregisterListener()
358 listeners = mListeners; in dispatchEventToClient()
387 for(CarHvacEventListener l: mListeners) { in onCarDisconnected()
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/
DConditionManager.java55 private final ArrayList<ConditionListener> mListeners = new ArrayList<>(); field in ConditionManager
210 final int N = mListeners.size(); in notifyChanged()
212 mListeners.get(i).onConditionsChanged(); in notifyChanged()
217 mListeners.add(listener); in addListener()
222 mListeners.remove(listener); in remListener()
241 final int N = mListeners.size(); in onPostExecute()
243 mListeners.get(i).onConditionsChanged(); in onPostExecute()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/adapter/
DCheckBroker.java30 private Collection<OnCheckedChangedListener> mListeners = field in CheckBroker
46 for (OnCheckedChangedListener l : mListeners) { in onCheckedChange()
53 for (OnCheckedChangedListener l : mListeners) { in onBulkCheckedChange()
61 mListeners.add(l); in registerOnCheckedChangeListener()
65 mListeners.remove(l); in unregisterOnCheckedChangeListener()
/packages/apps/Camera2/src/com/android/camera/async/
DConcurrentState.java51 private final Set<ExecutorListenerPair> mListeners; field in ConcurrentState
58 mListeners = new CopyOnWriteArraySet<>(); in ConcurrentState()
68 for (ExecutorListenerPair pair : mListeners) { in update()
78 mListeners.add(pair); in addCallback()
82 mListeners.remove(pair); in addCallback()
/packages/apps/TV/src/com/android/tv/recommendation/
DRecommendationDataManager.java122 private final List<Listener> mListeners = new ArrayList<>(); field in RecommendationDataManager
220 if (mListeners.size() == 0) { in release()
278 mListeners.add(listener); in addListener()
283 mListeners.remove(listener); in removeListener()
368 for (Listener l : mListeners) { in onLoadWatchHistory()
410 for (Listener l : mListeners) { in onNewRecordAdded()
452 for (Listener l : mListeners) { in onNotifyChannelRecordMapLoaded()
463 for (Listener l : mListeners) { in onNotifyChannelRecordMapChanged()

123