/frameworks/base/core/java/android/animation/ |
D | Animator.java | 30 ArrayList<AnimatorListener> mListeners = null; field in Animator 221 if (mListeners == null) { in addListener() 222 mListeners = new ArrayList<AnimatorListener>(); in addListener() 224 mListeners.add(listener); in addListener() 234 if (mListeners == null) { in removeListener() 237 mListeners.remove(listener); in removeListener() 238 if (mListeners.size() == 0) { in removeListener() 239 mListeners = null; in removeListener() 250 return mListeners; in getListeners() 288 if (mListeners != null) { in removeAllListeners() [all …]
|
D | LayoutTransition.java | 261 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 …]
|
D | AnimatorSet.java | 310 if (mListeners != null) { in cancel() 311 tmpListeners = (ArrayList<AnimatorListener>) mListeners.clone(); in cancel() 362 if (mListeners != null) { in end() 364 (ArrayList<AnimatorListener>) mListeners.clone(); in end() 597 if (mListeners != null) { in start() 599 (ArrayList<AnimatorListener>) mListeners.clone(); in start() 609 if (mListeners != null) { in start() 611 (ArrayList<AnimatorListener>) mListeners.clone(); in start() 793 if (mListeners != null) { in onAnimationCancel() 794 int numListeners = mListeners.size(); in onAnimationCancel() [all …]
|
/frameworks/base/libs/common_time/ |
D | common_clock_service.cpp | 38 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/services/core/java/com/android/server/wm/ |
D | PointerEventDispatcher.java | 31 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/ |
D | LocalListenerHelper.java | 35 private final HashSet<TListener> mListeners = new HashSet<TListener>(); field in LocalListenerHelper 46 synchronized (mListeners) { in add() 49 if (mListeners.isEmpty()) { in add() 63 if (mListeners.contains(listener)) { in add() 66 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() 96 synchronized (mListeners) { in foreach() 97 listeners = new ArrayList<TListener>(mListeners); in foreach()
|
D | CountryDetector.java | 85 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/ |
D | LauncherAppsService.java | 75 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/ |
D | Renderer.java | 73 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/ |
D | CaptioningManager.java | 56 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/telecomm/java/android/telecom/ |
D | Conference.java | 47 private final Set<Listener> mListeners = new CopyOnWriteArraySet<>(); field in Conference 208 for (Listener l : mListeners) { in setDisconnected() 222 for (Listener l : mListeners) { in setCapabilities() 238 for (Listener l : mListeners) { in addConnection() 256 for (Listener l : mListeners) { in removeConnection() 281 for (Listener l : mListeners) { in fireOnConferenceableConnectionsChanged() 311 for (Listener l : mListeners) { in destroy() 324 mListeners.add(listener); in addListener() 336 mListeners.remove(listener); in removeListener() 364 for (Listener l : mListeners) { in setState()
|
D | Connection.java | 460 private final Set<Listener> mListeners = Collections.newSetFromMap( field in Connection 586 mListeners.add(l); in addConnectionListener() 600 mListeners.remove(l); in removeConnectionListener() 668 for (Listener l : mListeners) { in setAddress() 684 for (Listener l : mListeners) { in setCallerDisplayName() 702 for (Listener l : mListeners) { in setVideoState() 758 for (Listener l : mListeners) { in setVideoProvider() 778 for (Listener l : mListeners) { in setDisconnected() 787 for (Listener l : mListeners) { in setPostDialWait() 801 for (Listener l : mListeners) { in setRingbackRequested() [all …]
|
D | Phone.java | 93 private final List<Listener> mListeners = new CopyOnWriteArrayList<>(); field in Phone 170 mListeners.add(listener); in addListener() 180 mListeners.remove(listener); in removeListener() 246 for (Listener listener : mListeners) { in fireCallAdded() 252 for (Listener listener : mListeners) { in fireCallRemoved() 258 for (Listener listener : mListeners) { in fireAudioStateChanged() 264 for (Listener listener : mListeners) { in fireBringToForeground()
|
D | Call.java | 378 private final List<Listener> mListeners = new CopyOnWriteArrayList<>(); field in Call 621 mListeners.add(listener); in addListener() 631 mListeners.remove(listener); in removeListener() 765 for (Listener listener : mListeners) { in fireStateChanged() 771 for (Listener listener : mListeners) { in fireParentChanged() 777 for (Listener listener : mListeners) { in fireChildrenChanged() 783 for (Listener listener : mListeners) { in fireDetailsChanged() 789 for (Listener listener : mListeners) { in fireCannedTextResponsesLoaded() 795 for (Listener listener : mListeners) { in fireVideoCallChanged() 801 for (Listener listener : mListeners) { in firePostDialWait() [all …]
|
D | RemoteConnection.java | 220 for (Listener l : mListeners) { 228 for (Listener l : mListeners) { 239 for (Listener l : mListeners) { 246 for (Listener l : mListeners) { 253 for (Listener l : mListeners) { 260 for (Listener l : mListeners) { 281 private final Set<Listener> mListeners = Collections.newSetFromMap( field in RemoteConnection.VideoProvider 293 mListeners.add(l); in addListener() 297 mListeners.remove(l); in removeListener()
|
/frameworks/base/core/java/android/os/storage/ |
D | StorageManager.java | 83 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/opt/telephony/src/java/com/android/internal/telephony/ |
D | Connection.java | 94 public Set<Listener> mListeners = new CopyOnWriteArraySet<>(); field in Connection 400 mListeners = c.mListeners; in migrateFrom() 420 mListeners.add(listener); in addListener() 429 mListeners.remove(listener); in removeListener() 485 for (Listener l : mListeners) { in setVideoState() 497 for (Listener l : mListeners) { in setLocalVideoCapable() 509 for (Listener l : mListeners) { in setRemoteVideoCapable() 521 for (Listener l : mListeners) { in setAudioQuality() 533 for (Listener l : mListeners) { in setVideoProvider()
|
/frameworks/base/media/java/android/media/ |
D | AudioPortEventHandler.java | 35 private ArrayList<AudioManager.OnAudioPortUpdateListener> mListeners; field in AudioPortEventHandler 47 mListeners = new ArrayList<AudioManager.OnAudioPortUpdateListener>(); in AudioPortEventHandler() 60 if (mListeners.contains(msg.obj)) { in AudioPortEventHandler() 64 listeners = mListeners; in AudioPortEventHandler() 132 mListeners.add(l); in registerListener() 142 mListeners.remove(l); in unregisterListener()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | FlashlightController.java | 56 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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | UnlockMethodCache.java | 38 private final ArrayList<OnUnlockMethodChangedListener> mListeners = new ArrayList<>(); field in UnlockMethodCache 65 mListeners.add(listener); in addListener() 69 mListeners.remove(listener); in removeListener() 90 for (OnUnlockMethodChangedListener listener : mListeners) { in notifyListeners()
|
/frameworks/support/v4/java/android/support/v4/media/ |
D | TransportMediator.java | 55 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/tests/CameraBrowser/src/com/android/camerabrowser/ |
D | MtpClient.java | 55 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/services/tests/servicestests/src/com/android/server/location/ |
D | LocationBasedCountryDetectorTest.java | 44 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/test-runner/src/android/test/ |
D | TestRunner.java | 56 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/base/tests/LocationTracker/src/com/android/locationtracker/ |
D | TrackerService.java | 59 private List<LocationTrackingListener> mListeners; field in TrackerService 121 mListeners = new ArrayList<LocationTrackingListener>( in initLocationListeners() 140 mListeners.add(listener); in initLocationListeners() 242 if (mListeners != null) { in stopListeners() 243 for (LocationTrackingListener listener : mListeners) { in stopListeners() 246 mListeners.clear(); in stopListeners() 248 mListeners = null; in stopListeners()
|