Home
last modified time | relevance | path

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

12

/frameworks/base/libs/common_time/
Dcommon_clock_service.cpp38 return mTimeServer.dumpClockInterface(fd, args, mListeners.size()); in dump()
101 for (size_t i = 0; i < mListeners.size(); i++) { in registerListener()
102 if (mListeners[i]->asBinder() == listener->asBinder()) in registerListener()
107 mListeners.add(listener); in registerListener()
108 mTimeServer.reevaluateAutoDisableState(0 != mListeners.size()); in registerListener()
119 for (size_t i = 0; i < mListeners.size(); i++) { in unregisterListener()
120 if (mListeners[i]->asBinder() == listener->asBinder()) { in unregisterListener()
121 mListeners[i]->asBinder()->unlinkToDeath(this); in unregisterListener()
122 mListeners.removeAt(i); in unregisterListener()
129 mTimeServer.reevaluateAutoDisableState(0 != mListeners.size()); in unregisterListener()
[all …]
/frameworks/base/core/java/android/animation/
DAnimator.java32 ArrayList<AnimatorListener> mListeners = null; field in Animator
235 if (mListeners == null) { in addListener()
236 mListeners = new ArrayList<AnimatorListener>(); in addListener()
238 mListeners.add(listener); in addListener()
248 if (mListeners == null) { in removeListener()
251 mListeners.remove(listener); in removeListener()
252 if (mListeners.size() == 0) { in removeListener()
253 mListeners = null; in removeListener()
264 return mListeners; in getListeners()
302 if (mListeners != null) { in removeAllListeners()
[all …]
DLayoutTransition.java261 private ArrayList<TransitionListener> mListeners; field in LayoutTransition
973 (ArrayList<TransitionListener>) mListeners.clone(); in setupChangeAnimation()
994 (ArrayList<TransitionListener>) mListeners.clone(); in setupChangeAnimation()
1166 (ArrayList<TransitionListener>) mListeners.clone(); in runAppearingTransition()
1189 (ArrayList<TransitionListener>) mListeners.clone(); in runAppearingTransition()
1214 (ArrayList<TransitionListener>) mListeners.clone(); in runDisappearingTransition()
1236 (ArrayList<TransitionListener>) mListeners.clone(); in runDisappearingTransition()
1277 (ArrayList<TransitionListener>) mListeners.clone(); in addChild()
1291 return mListeners != null && mListeners.size() > 0; in hasListeners()
1382 ArrayList<TransitionListener> listeners = (ArrayList<TransitionListener>) mListeners in removeChild()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DPointerEventDispatcher.java31 ArrayList<PointerEventListener> mListeners = new ArrayList<PointerEventListener>(); field in PointerEventDispatcher
45 synchronized (mListeners) { in onInputEvent()
47 mListenersArray = new PointerEventListener[mListeners.size()]; in onInputEvent()
48 mListeners.toArray(mListenersArray); in onInputEvent()
66 synchronized (mListeners) { in registerInputEventListener()
67 if (mListeners.contains(listener)) { in registerInputEventListener()
71 mListeners.add(listener); in registerInputEventListener()
81 synchronized (mListeners) { in unregisterInputEventListener()
82 if (!mListeners.contains(listener)) { in unregisterInputEventListener()
86 mListeners.remove(listener); in unregisterInputEventListener()
/frameworks/base/location/java/android/location/
DLocalListenerHelper.java36 private final HashSet<TListener> mListeners = new HashSet<>(); field in LocalListenerHelper
49 synchronized (mListeners) { in add()
52 if (mListeners.isEmpty()) { in add()
65 if (mListeners.contains(listener)) { in add()
68 return mListeners.add(listener); in add()
74 synchronized (mListeners) { in remove()
75 boolean removed = mListeners.remove(listener); in remove()
76 boolean isLastRemoved = removed && mListeners.isEmpty(); in remove()
100 synchronized (mListeners) { in foreach()
101 listeners = new ArrayList<>(mListeners); in foreach()
DCountryDetector.java85 private final HashMap<CountryListener, ListenerTransport> mListeners; field in CountryDetector
95 mListeners = new HashMap<CountryListener, ListenerTransport>(); in CountryDetector()
123 synchronized (mListeners) { in addCountryListener()
124 if (!mListeners.containsKey(listener)) { in addCountryListener()
128 mListeners.put(listener, transport); in addCountryListener()
140 synchronized (mListeners) { in removeCountryListener()
141 ListenerTransport transport = mListeners.get(listener); in removeCountryListener()
144 mListeners.remove(listener); in removeCountryListener()
/frameworks/base/services/core/java/com/android/server/pm/
DLauncherAppsService.java75 private final PackageCallbackList<IOnAppsChangedListener> mListeners field in LauncherAppsService.LauncherAppsImpl
92 synchronized (mListeners) { in addOnAppsChangedListener()
96 if (mListeners.getRegisteredCallbackCount() == 0) { in addOnAppsChangedListener()
102 mListeners.unregister(listener); in addOnAppsChangedListener()
103 mListeners.register(listener, Binder.getCallingUserHandle()); in addOnAppsChangedListener()
114 synchronized (mListeners) { in removeOnAppsChangedListener()
118 mListeners.unregister(listener); in removeOnAppsChangedListener()
119 if (mListeners.getRegisteredCallbackCount() == 0) { in removeOnAppsChangedListener()
143 synchronized (mListeners) { in checkCallbackCount()
145 Log.d(TAG, "Callback count = " + mListeners.getRegisteredCallbackCount()); in checkCallbackCount()
[all …]
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
DRenderer.java73 protected List<Listener> mListeners = new ArrayList<Listener>(); field in Renderer
150 if (!mListeners.contains(listener)) { in registerListener()
151 mListeners.add(listener); in registerListener()
156 mListeners.remove(listener); in unregisterListener()
164 for (Listener listener : mListeners) { in pushOnError()
170 for (Listener listener : mListeners) { in pushOnStateChanged()
176 for (Listener listener : mListeners) { in pushOnBufferingUpdate()
182 for (Listener listener : mListeners) { in pushOnFocusLost()
188 for (Listener listener : mListeners) { in pushOnNextStarted()
/frameworks/base/core/java/android/view/accessibility/
DCaptioningManager.java56 mListeners = new ArrayList<CaptioningChangeListener>(); field in CaptioningManager
149 synchronized (mListeners) { in addCaptioningChangeListener()
150 if (mListeners.isEmpty()) { in addCaptioningChangeListener()
163 mListeners.add(listener); in addCaptioningChangeListener()
178 synchronized (mListeners) { in removeCaptioningChangeListener()
179 mListeners.remove(listener); in removeCaptioningChangeListener()
181 if (mListeners.isEmpty()) { in removeCaptioningChangeListener()
189 synchronized (mListeners) { in notifyEnabledChanged()
190 for (CaptioningChangeListener listener : mListeners) { in notifyEnabledChanged()
198 synchronized (mListeners) { in notifyUserStyleChanged()
[all …]
/frameworks/base/core/java/android/os/storage/
DStorageManager.java83 private List<ListenerDelegate> mListeners = new ArrayList<ListenerDelegate>(); field in StorageManager
92 final int size = mListeners.size(); in onUsbMassStorageConnectionChanged()
94 mListeners.get(i).sendShareAvailabilityChanged(available); in onUsbMassStorageConnectionChanged()
99 final int size = mListeners.size(); in onStorageStateChanged()
101 mListeners.get(i).sendStorageStateChanged(path, oldState, newState); in onStorageStateChanged()
113 … private SparseArray<ObbListenerDelegate> mListeners = new SparseArray<ObbListenerDelegate>(); field in StorageManager.ObbActionListener
118 synchronized (mListeners) { in onObbResult()
119 delegate = mListeners.get(nonce); in onObbResult()
121 mListeners.remove(nonce); in onObbResult()
133 synchronized (mListeners) { in addListener()
[all …]
/frameworks/base/core/java/android/net/
DEthernetManager.java45 for (Listener listener : mListeners) {
51 private final ArrayList<Listener> mListeners = new ArrayList<Listener>(); field in EthernetManager
126 mListeners.add(listener); in addListener()
127 if (mListeners.size() == 1) { in addListener()
144 mListeners.remove(listener); in removeListener()
145 if (mListeners.isEmpty()) { in removeListener()
/frameworks/base/telecomm/java/android/telecom/
DConference.java54 private final Set<Listener> mListeners = new CopyOnWriteArraySet<>(); field in Conference
272 for (Listener l : mListeners) { in setDisconnected()
299 for (Listener l : mListeners) { in setConnectionCapabilities()
316 for (Listener l : mListeners) { in addConnection()
334 for (Listener l : mListeners) { in removeConnection()
359 for (Listener l : mListeners) { in fireOnConferenceableConnectionsChanged()
389 for (Listener l : mListeners) { in destroy()
402 mListeners.add(listener); in addListener()
414 mListeners.remove(listener); in removeListener()
475 for (Listener l : mListeners) { in setState()
DPhone.java103 private final List<Listener> mListeners = new CopyOnWriteArrayList<>(); field in Phone
190 mListeners.add(listener); in addListener()
200 mListeners.remove(listener); in removeListener()
275 for (Listener listener : mListeners) { in fireCallAdded()
281 for (Listener listener : mListeners) { in fireCallRemoved()
287 for (Listener listener : mListeners) { in fireAudioStateChanged()
293 for (Listener listener : mListeners) { in fireBringToForeground()
299 for (Listener listener : mListeners) { in fireCanAddCallChanged()
DConnection.java645 private final Set<Listener> mListeners = Collections.newSetFromMap( field in Connection
771 mListeners.add(l); in addConnectionListener()
785 mListeners.remove(l); in removeConnectionListener()
860 for (Listener l : mListeners) { in setAddress()
877 for (Listener l : mListeners) { in setCallerDisplayName()
896 for (Listener l : mListeners) { in setVideoState()
959 for (Listener l : mListeners) { in setVideoProvider()
980 for (Listener l : mListeners) { in setDisconnected()
997 for (Listener l : mListeners) { in setPostDialWait()
1014 for (Listener l : mListeners) { in setNextPostDialWaitChar()
[all …]
DCall.java535 private final List<Listener> mListeners = new CopyOnWriteArrayList<>(); field in Call
778 mListeners.add(listener); in addListener()
788 mListeners.remove(listener); in removeListener()
922 for (Listener listener : mListeners) { in fireStateChanged()
928 for (Listener listener : mListeners) { in fireParentChanged()
934 for (Listener listener : mListeners) { in fireChildrenChanged()
940 for (Listener listener : mListeners) { in fireDetailsChanged()
946 for (Listener listener : mListeners) { in fireCannedTextResponsesLoaded()
952 for (Listener listener : mListeners) { in fireVideoCallChanged()
958 for (Listener listener : mListeners) { in firePostDialWait()
[all …]
DRemoteConnection.java236 for (Listener l : mListeners) {
244 for (Listener l : mListeners) {
255 for (Listener l : mListeners) {
262 for (Listener l : mListeners) {
269 for (Listener l : mListeners) {
276 for (Listener l : mListeners) {
297 private final Set<Listener> mListeners = Collections.newSetFromMap( field in RemoteConnection.VideoProvider
309 mListeners.add(l); in addListener()
313 mListeners.remove(l); in removeListener()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DConnection.java100 public Set<Listener> mListeners = new CopyOnWriteArraySet<>(); field in Connection
430 mListeners = c.mListeners; in migrateFrom()
450 mListeners.add(listener); in addListener()
459 mListeners.remove(listener); in removeListener()
515 for (Listener l : mListeners) { in setVideoState()
527 for (Listener l : mListeners) { in setLocalVideoCapable()
539 for (Listener l : mListeners) { in setRemoteVideoCapable()
551 for (Listener l : mListeners) { in setAudioQuality()
563 for (Listener l : mListeners) { in setVideoProvider()
581 for (Listener l : mListeners) { in updateConferenceParticipants()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DFlashlightController.java56 private final ArrayList<WeakReference<FlashlightListener>> mListeners = new ArrayList<>(1); field in FlashlightController
110 synchronized (mListeners) { in addListener()
112 mListeners.add(new WeakReference<>(l)); in addListener()
117 synchronized (mListeners) { in removeListener()
251 synchronized (mListeners) { in dispatchListeners()
252 final int N = mListeners.size(); in dispatchListeners()
255 FlashlightListener l = mListeners.get(i).get(); in dispatchListeners()
275 for (int i = mListeners.size() - 1; i >= 0; i--) { in cleanUpListenersLocked()
276 FlashlightListener found = mListeners.get(i).get(); in cleanUpListenersLocked()
278 mListeners.remove(i); in cleanUpListenersLocked()
/frameworks/support/v4/java/android/support/v4/media/
DTransportMediator.java55 final ArrayList<TransportStateListener> mListeners field in TransportMediator
204 mListeners.add(listener); in registerStateListener()
208 mListeners.remove(listener); in unregisterStateListener()
212 if (mListeners.size() <= 0) { in getListeners()
215 TransportStateListener listeners[] = new TransportStateListener[mListeners.size()]; in getListeners()
216 mListeners.toArray(listeners); in getListeners()
/frameworks/base/media/java/android/media/
DAudioPortEventHandler.java35 private final ArrayList<AudioManager.OnAudioPortUpdateListener> mListeners = field in AudioPortEventHandler
61 if (mListeners.contains(msg.obj)) { in init()
65 listeners = mListeners; in init()
134 mListeners.add(l); in registerListener()
144 mListeners.remove(l); in unregisterListener()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DUnlockMethodCache.java38 private final ArrayList<OnUnlockMethodChangedListener> mListeners = new ArrayList<>(); field in UnlockMethodCache
75 mListeners.add(listener); in addListener()
79 mListeners.remove(listener); in removeListener()
101 for (OnUnlockMethodChangedListener listener : mListeners) { in notifyListeners()
/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationBasedCountryDetectorTest.java44 private Map<String, LocationListener> mListeners; field in LocationBasedCountryDetectorTest.TestCountryDetector
55 mListeners = new HashMap<String, LocationListener>(); in TestCountryDetector()
98 mListeners.put(provider, listener); in registerListener()
103 for (Entry<String, LocationListener> entry : mListeners.entrySet()) { in unregisterListener()
105 mListeners.remove(entry.getKey()); in unregisterListener()
113 return mListeners; in getListeners()
128 LocationListener[] listeners = new LocationListener[mListeners.size()]; in notifyLocationFound()
136 return mListeners.size(); in getListenersCount()
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DMtpClient.java55 private final ArrayList<Listener> mListeners = new ArrayList<Listener>(); field in MtpClient
78 for (Listener listener : mListeners) {
85 for (Listener listener : mListeners) {
98 for (Listener listener : mListeners) {
204 if (!mListeners.contains(listener)) { in addListener()
205 mListeners.add(listener); in addListener()
217 mListeners.remove(listener); in removeListener()
/frameworks/base/test-runner/src/android/test/
DTestRunner.java56 private List<Listener> mListeners = Lists.newArrayList(); field in TestRunner
166 mListeners.add(listener); in addListener()
182 int count = mListeners.size(); in started()
184 mListeners.get(i).started(className); in started()
189 int count = mListeners.size(); in finished()
191 mListeners.get(i).finished(className); in finished()
199 int count = mListeners.size(); in performance()
201 mListeners.get(i).performance(className, in performance()
210 int count = mListeners.size(); in passed()
212 mListeners.get(i).passed(className); in passed()
[all …]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetServiceImpl.java56 private final RemoteCallbackList<IEthernetServiceListener> mListeners = field in EthernetServiceImpl
67 mTracker = new EthernetNetworkFactory(mListeners); in EthernetServiceImpl()
157 mListeners.register(listener); in addListener()
169 mListeners.unregister(listener); in removeListener()

12