Home
last modified time | relevance | path

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

1234

/packages/services/Telephony/src/com/android/services/telephony/
DRadioOnHelper.java42 private List<RadioOnStateListener> mListeners; field in RadioOnHelper
52 if (mListeners == null) { in setupListeners()
53 mListeners = new ArrayList<>(2); in setupListeners()
57 while (mListeners.size() < activeModems) { in setupListeners()
58 mListeners.add(new RadioOnStateListener()); in setupListeners()
61 while (mListeners.size() > activeModems) { in setupListeners()
62 mListeners.get(mListeners.size() - 1).cleanup(); in setupListeners()
63 mListeners.remove(mListeners.size() - 1); in setupListeners()
92 mInProgressListeners.add(mListeners.get(i)); in triggerRadioOnAndListen()
93 mListeners.get(i).waitForRadioOn(phone, this, forEmergencyCall, in triggerRadioOnAndListen()
/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/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultNetworkStatusNotifier.java37 private List<Listener> mListeners; field in DefaultNetworkStatusNotifier
44 mListeners = new ArrayList<>(); in DefaultNetworkStatusNotifier()
65 for (int i = 0; i < mListeners.size(); i++) { in registerListener()
66 mListeners.get(i).onNetworkChanged(networkStatus); in registerListener()
73 if (!mListeners.contains(listener)) { in registerListener()
74 mListeners.add(listener); in registerListener()
81 if (!mListeners.contains(listener)) { in registerListener()
82 mListeners.add(listener); in registerListener()
88 mListeners.remove(listener); in unregisterListener()
90 if (!mListeners.isEmpty() || mReceiver == null) { in unregisterListener()
DWallpaperChangedNotifier.java28 private List<Listener> mListeners; field in WallpaperChangedNotifier
35 mListeners = new ArrayList<>(); in WallpaperChangedNotifier()
51 for (int i = 0; i < mListeners.size(); i++) { in notifyWallpaperChanged()
52 mListeners.get(i).onWallpaperChanged(); in notifyWallpaperChanged()
60 if (!mListeners.contains(listener)) { in registerListener()
61 mListeners.add(listener); in registerListener()
69 mListeners.remove(listener); in unregisterListener()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DSignalStrengthListener.java37 private Map<Integer, PhoneStateListener> mListeners; field in SignalStrengthListener
46 mListeners = new TreeMap<>(); in SignalStrengthListener()
52 for (int subId : mListeners.keySet()) { in resume()
59 for (int subId : mListeners.keySet()) { in pause()
67 Set<Integer> currentIds = new ArraySet<>(mListeners.keySet()); in updateSubscriptionIds()
70 mListeners.remove(idToRemove); in updateSubscriptionIds()
79 mListeners.put(idToAdd, listener); in updateSubscriptionIds()
86 mgr.listen(mListeners.get(subId), PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); in startListening()
91 mgr.listen(mListeners.get(subId), PhoneStateListener.LISTEN_NONE); in stopListening()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataSaverBackend.java43 private final ArrayList<Listener> mListeners = new ArrayList<>(); field in DataSaverBackend
56 mListeners.add(listener); in addListener()
57 if (mListeners.size() == 1) { in addListener()
64 mListeners.remove(listener); in remListener()
65 if (mListeners.size() == 0) { in remListener()
140 for (int i = 0; i < mListeners.size(); i++) { in handleRestrictBackgroundChanged()
141 mListeners.get(i).onDataSaverChanged(isDataSaving); in handleRestrictBackgroundChanged()
146 for (int i = 0; i < mListeners.size(); i++) { in handleWhitelistChanged()
147 mListeners.get(i).onWhitelistStatusChanged(uid, isWhitelisted); in handleWhitelistChanged()
152 for (int i = 0; i < mListeners.size(); i++) { in handleBlacklistChanged()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataSaverBackend.java43 private final ArrayList<Listener> mListeners = new ArrayList<>(); field in DataSaverBackend
56 mListeners.add(listener); in addListener()
57 if (mListeners.size() == 1) { in addListener()
64 mListeners.remove(listener); in remListener()
65 if (mListeners.size() == 0) { in remListener()
140 for (int i = 0; i < mListeners.size(); i++) { in handleRestrictBackgroundChanged()
141 mListeners.get(i).onDataSaverChanged(isDataSaving); in handleRestrictBackgroundChanged()
146 for (int i = 0; i < mListeners.size(); i++) { in handleWhitelistChanged()
147 mListeners.get(i).onWhitelistStatusChanged(uid, isWhitelisted); in handleWhitelistChanged()
152 for (int i = 0; i < mListeners.size(); i++) { in handleBlacklistChanged()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DFolderInfo.java55 private ArrayList<FolderListener> mListeners = new ArrayList<>(); field in FolderInfo
77 for (int i = 0; i < mListeners.size(); i++) { in add()
78 mListeners.get(i).onAdd(item, rank); in add()
90 for (int i = 0; i < mListeners.size(); i++) { in remove()
91 mListeners.get(i).onRemove(item); in remove()
104 mListeners.add(listener); in addListener()
108 mListeners.remove(listener); in removeListener()
112 for (int i = 0; i < mListeners.size(); i++) { in itemsChanged()
113 mListeners.get(i).onItemsChanged(animate); in itemsChanged()
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/
DP2pConnectionProcedure.java53 private final List<P2pConnectionListener> mListeners = new CopyOnWriteArrayList<>(); field in P2pConnectionProcedure
71 mListeners.add(listener); in P2pConnectionProcedure()
95 return mListeners.contains(listener); in hasListener()
102 mListeners.add(listener); in addListener()
106 mListeners.remove(listener); in removeListener()
110 return mListeners.size(); in getListenerCount()
116 mListeners.clear(); in close()
143 for (P2pConnectionListener listener : mListeners) { in onReceive()
155 for (P2pConnectionListener listener : mListeners) { in onReceive()
161 for (P2pConnectionListener listener : mListeners) { in onReceive()
[all …]
DP2pDiscoveryProcedure.java50 private final List<P2pPeerListener> mListeners = new CopyOnWriteArrayList<>(); field in P2pDiscoveryProcedure
60 mListeners.add(listener); in P2pDiscoveryProcedure()
96 mListeners.add(listener); in addListener()
105 mListeners.remove(listener); in removeListener()
109 return mListeners; in getListeners()
132 for (P2pPeerListener listener : mListeners) { in updatePeers()
141 for (P2pPeerListener listener : mListeners) { in updatePeers()
/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/Car/Messenger/src/com/android/car/messenger/bluetooth/
DBluetoothMonitor.java33 private final Set<OnBluetoothEventListener> mListeners; field in BluetoothMonitor
53 mListeners = new HashSet<>(); in BluetoothMonitor()
65 return mListeners.add(listener); in registerListener()
76 return mListeners.remove(listener); in unregisterListener()
130 mListeners.forEach(listener -> listener.onMessageReceived(intent)); in onMessageReceived()
134 mListeners.forEach(listener -> listener.onMessageSent(intent)); in onMessageSent()
138 mListeners.forEach(listener -> listener.onDeviceConnected(device)); in onDeviceConnected()
142 mListeners.forEach(listener -> listener.onDeviceDisconnected(device)); in onDeviceDisconnected()
147 mListeners.forEach(listener -> listener.onMapConnected(client)); in onMapConnected()
152 mListeners.forEach(listener -> listener.onMapDisconnected()); in onMapDisconnected()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DCall.java406 private final Set<Listener> mListeners = Collections.newSetFromMap( field in Call
742 mListeners.add(listener); in addListener()
747 mListeners.remove(listener); in removeListener()
1110 for (Listener l : mListeners) { in setRingbackRequested()
1227 for (Listener l : mListeners) { in setHandle()
1259 for (Listener l : mListeners) { in setCallerDisplayName()
1367 for (Listener l : mListeners) { in setConnectionManagerPhoneAccount()
1383 for (Listener l : mListeners) { in setTargetPhoneAccount()
1726 for (Listener l : mListeners) { in setConnectionCapabilities()
1796 for (Listener l : mListeners) { in setConnectionProperties()
[all …]
/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/
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()
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()
/packages/apps/Launcher3/src/com/android/launcher3/anim/
DSpringObjectAnimator.java53 private ArrayList<AnimatorListener> mListeners; field in SpringObjectAnimator
69 mListeners = new ArrayList<>(); in SpringObjectAnimator()
79 for (AnimatorListener l : mListeners) { in SpringObjectAnimator()
92 for (AnimatorListener l : mListeners) { in SpringObjectAnimator()
117 for (AnimatorListener l : mListeners) { in tryEnding()
152 mListeners.add(listener); in addListener()
161 return mListeners; in getListeners()
166 mListeners.clear(); in removeAllListeners()
171 mListeners.remove(listener); in removeListener()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestCallList.java105 private Set<Listener> mListeners = new ArraySet<Listener>(); field in TestCallList
118 mListeners.add(listener); in addListener()
123 return mListeners.remove(listener); in removeListener()
139 for (Listener l : mListeners) { in addCall()
153 for (Listener l : mListeners) { in removeCall()
236 for (Listener l : mListeners) { in onRttStatusChanged()
240 for (Listener l : mListeners) { in onRttStatusChanged()
248 for (Listener l : mListeners) { in onRttInitiationFailure()
256 for (Listener l : mListeners) { in onRttRequest()
/packages/services/Telecomm/testapps/carmodedialer/src/com/android/server/telecom/carmodedialer/
DCarModeCallList.java105 private Set<Listener> mListeners = new ArraySet<Listener>(); field in CarModeCallList
118 mListeners.add(listener); in addListener()
123 return mListeners.remove(listener); in removeListener()
139 for (Listener l : mListeners) { in addCall()
153 for (Listener l : mListeners) { in removeCall()
236 for (Listener l : mListeners) { in onRttStatusChanged()
240 for (Listener l : mListeners) { in onRttStatusChanged()
248 for (Listener l : mListeners) { in onRttInitiationFailure()
256 for (Listener l : mListeners) { in onRttRequest()
/packages/modules/DnsResolver/
DResolverEventReporter.cpp70 auto found = std::find_if(mListeners.begin(), mListeners.end(), in handleBinderDied()
73 if (found != mListeners.end()) mListeners.erase(found); in handleBinderDied()
78 return mListeners; in getListenersImpl()
93 for (const auto& it : mListeners) { in addListenerImplLocked()
127 mListeners.insert(listener); in addListenerImplLocked()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrWatchedPositionManager.java41 private final Map<Long, Set<WatchedPositionChangedListener>> mListeners = new HashMap<>(); field in DvrWatchedPositionManager
96 Set<WatchedPositionChangedListener> listenerSet = mListeners.get(recordedProgramId); in addListener()
99 mListeners.put(recordedProgramId, listenerSet); in addListener()
106 for (long recordedProgramId : new ArrayList<>(mListeners.keySet())) { in removeListener()
113 Set<WatchedPositionChangedListener> listenerSet = mListeners.get(recordedProgramId); in removeListener()
119 mListeners.remove(recordedProgramId); in removeListener()
124 Set<WatchedPositionChangedListener> listenerSet = mListeners.get(recordedProgramId); in notifyWatchedPositionChanged()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DDiscovery.java47 private final List<Listener> mListeners = new CopyOnWriteArrayList<>(); field in Discovery
62 mListeners.add(listener); in start()
66 if (!mListeners.contains(listener)) { in start()
82 mListeners.remove(listener); in stop()
83 if (mListeners.isEmpty()) { in stop()
152 for (Listener listener : mListeners) { in printerFound()
165 for (Listener listener : mListeners) { in printerLost()
/packages/services/Car/car-lib/src/android/car/storagemonitoring/
DCarStorageMonitoringManager.java46 private final Set<IoStatsListener> mListeners = new HashSet<>(); field in CarStorageMonitoringManager
85 for (IoStatsListener listener : mListeners) { in CarStorageMonitoringManager()
97 mListeners.clear(); in onCarDisconnected()
254 if (mListeners.isEmpty()) { in registerListener()
260 mListeners.add(listener); in registerListener()
272 if (!mListeners.remove(listener)) { in unregisterListener()
275 if (mListeners.isEmpty()) { in unregisterListener()
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/
DWallpaperColorInfo.java50 private final ArrayList<OnChangeListener> mListeners = new ArrayList<>(); field in WallpaperColorInfo
113 mListeners.add(listener); in addOnChangeListener()
117 mListeners.remove(listener); in removeOnChangeListener()
122 mTempListeners != null && mTempListeners.length == mListeners.size() ? in notifyChange()
123 mTempListeners : new OnChangeListener[mListeners.size()]; in notifyChange()
126 mTempListeners = mListeners.toArray(copy); in notifyChange()
/packages/apps/TV/src/com/android/tv/
DChannelTuner.java57 private final Set<Listener> mListeners = new ArraySet<>(); field in ChannelTuner
68 for (Listener l : mListeners) {
81 for (Listener l : mListeners) {
288 mListeners.add(listener); in addListener()
293 mListeners.remove(listener); in removeListener()
317 for (Listener l : mListeners) { in setCurrentChannelAndNotify()
340 for (Listener l : mListeners) { in updateChannelData()
347 for (Listener l : mListeners) { in updateChannelData()

1234