/frameworks/base/services/core/java/com/android/server/wm/ |
D | PointerEventDispatcher.java | 32 private final ArrayList<PointerEventListener> mListeners = new ArrayList<>(); field in PointerEventDispatcher 47 synchronized (mListeners) { in onInputEvent() 49 mListenersArray = new PointerEventListener[mListeners.size()]; in onInputEvent() 50 mListeners.toArray(mListenersArray); in onInputEvent() 68 synchronized (mListeners) { in registerInputEventListener() 69 if (mListeners.contains(listener)) { in registerInputEventListener() 73 mListeners.add(listener); in registerInputEventListener() 83 synchronized (mListeners) { in unregisterInputEventListener() 84 if (!mListeners.contains(listener)) { in unregisterInputEventListener() 88 mListeners.remove(listener); in unregisterInputEventListener() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | DataSaverControllerImpl.java | 29 private final ArrayList<Listener> mListeners = new ArrayList<>(); field in DataSaverControllerImpl 37 synchronized (mListeners) { in handleRestrictBackgroundChanged() 38 for (int i = 0; i < mListeners.size(); i++) { in handleRestrictBackgroundChanged() 39 mListeners.get(i).onDataSaverChanged(isDataSaving); in handleRestrictBackgroundChanged() 45 synchronized (mListeners) { in addCallback() 46 mListeners.add(listener); in addCallback() 47 if (mListeners.size() == 1) { in addCallback() 55 synchronized (mListeners) { in removeCallback() 56 mListeners.remove(listener); in removeCallback() 57 if (mListeners.size() == 0) { in removeCallback()
|
D | DeviceProvisionedControllerImpl.java | 44 private final ArrayList<DeviceProvisionedListener> mListeners = new ArrayList<>(); field in DeviceProvisionedControllerImpl 92 mListeners.add(listener); in addCallback() 93 if (mListeners.size() == 1) { in addCallback() 102 mListeners.remove(listener); in removeCallback() 103 if (mListeners.size() == 0) { in removeCallback() 132 for (int i = mListeners.size() - 1; i >= 0; --i) { in notifyUserChanged() 133 mListeners.get(i).onUserSwitched(); in notifyUserChanged() 138 for (int i = mListeners.size() - 1; i >= 0; --i) { in notifySetupChanged() 139 mListeners.get(i).onUserSetupChanged(); in notifySetupChanged() 144 for (int i = mListeners.size() - 1; i >= 0; --i) { in notifyProvisionedChanged() [all …]
|
D | SensorPrivacyControllerImpl.java | 35 private final List<OnSensorPrivacyChangedListener> mListeners; field in SensorPrivacyControllerImpl 48 mListeners = new ArrayList<>(1); in SensorPrivacyControllerImpl() 65 mListeners.add(listener); in addCallback() 75 mListeners.remove(listener); in removeCallback() 85 for (OnSensorPrivacyChangedListener listener : mListeners) { in onSensorPrivacyChanged()
|
D | FlashlightControllerImpl.java | 63 private final ArrayList<WeakReference<FlashlightListener>> mListeners = new ArrayList<>(1); field in FlashlightControllerImpl 127 synchronized (mListeners) { in addCallback() 132 mListeners.add(new WeakReference<>(l)); in addCallback() 139 synchronized (mListeners) { in removeCallback() 179 synchronized (mListeners) { in dispatchListeners() 180 final int N = mListeners.size(); in dispatchListeners() 183 FlashlightListener l = mListeners.get(i).get(); in dispatchListeners() 203 for (int i = mListeners.size() - 1; i >= 0; i--) { in cleanUpListenersLocked() 204 FlashlightListener found = mListeners.get(i).get(); in cleanUpListenersLocked() 206 mListeners.remove(i); in cleanUpListenersLocked()
|
/frameworks/base/core/java/android/animation/ |
D | Animator.java | 39 ArrayList<AnimatorListener> mListeners = null; field in Animator 263 if (mListeners == null) { in addListener() 264 mListeners = new ArrayList<AnimatorListener>(); in addListener() 266 mListeners.add(listener); in addListener() 276 if (mListeners == null) { in removeListener() 279 mListeners.remove(listener); in removeListener() 280 if (mListeners.size() == 0) { in removeListener() 281 mListeners = null; in removeListener() 292 return mListeners; in getListeners() 330 if (mListeners != null) { in removeAllListeners() [all …]
|
/frameworks/base/location/java/android/location/ |
D | LocalListenerHelper.java | 38 private final HashMap<TListener, Handler> mListeners = new HashMap<>(); field in LocalListenerHelper 56 synchronized (mListeners) { in add() 59 if (mListeners.isEmpty()) { in add() 72 if (mListeners.containsKey(listener)) { in add() 75 mListeners.put(listener, handler); in add() 82 synchronized (mListeners) { in remove() 83 boolean removed = mListeners.containsKey(listener); in remove() 84 mListeners.remove(listener); in remove() 85 boolean isLastRemoved = removed && mListeners.isEmpty(); in remove() 118 synchronized (mListeners) { in foreach() [all …]
|
D | CountryDetector.java | 84 private final HashMap<CountryListener, ListenerTransport> mListeners; field in CountryDetector 95 mListeners = new HashMap<CountryListener, ListenerTransport>(); in CountryDetector() 125 synchronized (mListeners) { in addCountryListener() 126 if (!mListeners.containsKey(listener)) { in addCountryListener() 130 mListeners.put(listener, transport); in addCountryListener() 143 synchronized (mListeners) { in removeCountryListener() 144 ListenerTransport transport = mListeners.get(listener); in removeCountryListener() 147 mListeners.remove(listener); in removeCountryListener()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ProgressReporter.java | 60 private final RemoteCallbackList<IProgressListener> mListeners = new RemoteCallbackList<>(); field in ProgressReporter 91 mListeners.register(listener); in addListener() 204 mListeners.kill(); in finish() 209 for (int i = mListeners.beginBroadcast() - 1; i >= 0; i--) { in notifyStarted() 211 mListeners.getBroadcastItem(i).onStarted(id, extras); in notifyStarted() 215 mListeners.finishBroadcast(); in notifyStarted() 219 for (int i = mListeners.beginBroadcast() - 1; i >= 0; i--) { in notifyProgress() 221 mListeners.getBroadcastItem(i).onProgress(id, progress, extras); in notifyProgress() 225 mListeners.finishBroadcast(); in notifyProgress() 229 for (int i = mListeners.beginBroadcast() - 1; i >= 0; i--) { in notifyFinished() [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | PinnedStackListenerForwarder.java | 35 private List<IPinnedStackListener> mListeners = new ArrayList<>(); field in PinnedStackListenerForwarder 39 mListeners.add(listener); in addListener() 44 mListeners.remove(listener); in removeListener() 49 for (IPinnedStackListener listener : mListeners) { in onListenerRegistered() 58 for (IPinnedStackListener listener : mListeners) { in onMovementBoundsChanged() 67 for (IPinnedStackListener listener : mListeners) { in onImeVisibilityChanged() 75 for (IPinnedStackListener listener : mListeners) { in onShelfVisibilityChanged() 82 for (IPinnedStackListener listener : mListeners) { in onMinimizedStateChanged() 89 for (IPinnedStackListener listener : mListeners) { in onActionsChanged()
|
/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/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | StatusBarStateControllerImpl.java | 69 private final ArrayList<RankedListener> mListeners = new ArrayList<>(); field in StatusBarStateControllerImpl 128 synchronized (mListeners) { in setState() 129 for (RankedListener rl : new ArrayList<>(mListeners)) { in setState() 134 for (RankedListener rl : new ArrayList<>(mListeners)) { in setState() 138 for (RankedListener rl : new ArrayList<>(mListeners)) { in setState() 169 synchronized (mListeners) { in setIsDozing() 170 for (RankedListener rl : new ArrayList<>(mListeners)) { in setIsDozing() 211 synchronized (mListeners) { in setDozeAmountInternal() 212 for (RankedListener rl : new ArrayList<>(mListeners)) { in setDozeAmountInternal() 240 synchronized (mListeners) { in addCallback() [all …]
|
D | AmbientPulseManager.java | 42 protected final ArraySet<OnAmbientChangedListener> mListeners = new ArraySet<>(); field in AmbientPulseManager 58 mListeners.add(listener); in addListener() 65 mListeners.remove(listener); in removeListener() 88 for (OnAmbientChangedListener listener : mListeners) { in onAlertEntryAdded() 97 for (OnAmbientChangedListener listener : mListeners) { in onAlertEntryRemoved()
|
/frameworks/base/core/java/android/hardware/ |
D | SensorPrivacyManager.java | 67 private final ArrayMap<OnSensorPrivacyChangedListener, ISensorPrivacyListener> mListeners; field in SensorPrivacyManager 75 mListeners = new ArrayMap<>(); in SensorPrivacyManager() 118 synchronized (mListeners) { in addSensorPrivacyListener() 119 ISensorPrivacyListener iListener = mListeners.get(listener); in addSensorPrivacyListener() 127 mListeners.put(listener, iListener); in addSensorPrivacyListener() 146 synchronized (mListeners) { in removeSensorPrivacyListener() 147 ISensorPrivacyListener iListener = mListeners.get(listener); in removeSensorPrivacyListener() 149 mListeners.remove(iListener); in removeSensorPrivacyListener()
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
D | TwilightService.java | 58 private final ArrayMap<TwilightListener, Handler> mListeners = new ArrayMap<>(); field in TwilightService 85 synchronized (mListeners) { in onStart() 86 final boolean wasEmpty = mListeners.isEmpty(); in onStart() 87 mListeners.put(listener, handler); in onStart() 89 if (wasEmpty && !mListeners.isEmpty()) { in onStart() 97 synchronized (mListeners) { in onStart() 98 final boolean wasEmpty = mListeners.isEmpty(); in onStart() 99 mListeners.remove(listener); in onStart() 101 if (!wasEmpty && mListeners.isEmpty()) { in onStart() 109 synchronized (mListeners) { in onStart() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | Connection.java | 207 public Set<Listener> mListeners = new CopyOnWriteArraySet<>(); field in Connection 799 mListeners = c.mListeners; in migrateFrom() 822 mListeners.add(listener); in addListener() 831 mListeners.remove(listener); in removeListener() 946 for (Listener l : mListeners) { in setVideoState() 961 for (Listener l : mListeners) { in setConnectionCapabilities() 978 for (Listener l : mListeners) { in setCallRadioTech() 999 for (Listener l : mListeners) { in setAudioQuality() 1027 for (Listener l : mListeners) { in setConnectionExtras() 1106 for (Listener l : mListeners) { in setCallSubstate() [all …]
|
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/ |
D | DiscoveryListenerMultiplexer.java | 121 private final @NonNull ArrayList<NsdManager.DiscoveryListener> mListeners; field in DiscoveryListenerMultiplexer.MultiListener 129 mListeners = listeners; in MultiListener() 156 synchronized (mListeners) { in onServiceFound() 157 int numListeners = mListeners.size(); in onServiceFound() 159 NsdManager.DiscoveryListener listener = mListeners.get(i); in onServiceFound() 168 synchronized (mListeners) { in onServiceLost() 169 int numListeners = mListeners.size(); in onServiceLost() 171 NsdManager.DiscoveryListener listener = mListeners.get(i); in onServiceLost()
|
/frameworks/base/telecomm/java/android/telecom/ |
D | Conference.java | 76 private final Set<Listener> mListeners = new CopyOnWriteArraySet<>(); field in Conference 385 for (Listener l : mListeners) { in setDisconnected() 407 for (Listener l : mListeners) { in setConnectionCapabilities() 423 for (Listener l : mListeners) { in setConnectionProperties() 441 for (Listener l : mListeners) { in addConnection() 459 for (Listener l : mListeners) { in removeConnection() 495 for (Listener l : mListeners) { in setVideoState() 508 for (Listener l : mListeners) { in setVideoProvider() 514 for (Listener l : mListeners) { in fireOnConferenceableConnectionsChanged() 544 for (Listener l : mListeners) { in destroy() [all …]
|
D | Connection.java | 1765 private final Set<Listener> mListeners = Collections.newSetFromMap( field in Connection 2011 mListeners.add(l); in addConnectionListener() 2025 mListeners.remove(l); in removeConnectionListener() 2125 for (Listener l : mListeners) { in setAddress() 2142 for (Listener l : mListeners) { in setCallerDisplayName() 2160 for (Listener l : mListeners) { in setVideoState() 2232 for (Listener l : mListeners) { in setVideoProvider() 2252 for (Listener l : mListeners) { in setDisconnected() 2269 for (Listener l : mListeners) { in setPostDialWait() 2283 for (Listener l : mListeners) { in setNextPostDialChar() [all …]
|
D | Phone.java | 128 private final List<Listener> mListeners = new CopyOnWriteArrayList<>(); field in Phone 263 mListeners.add(listener); in addListener() 273 mListeners.remove(listener); in removeListener() 381 for (Listener listener : mListeners) { in fireCallAdded() 387 for (Listener listener : mListeners) { in fireCallRemoved() 393 for (Listener listener : mListeners) { in fireCallAudioStateChanged() 400 for (Listener listener : mListeners) { in fireBringToForeground() 406 for (Listener listener : mListeners) { in fireCanAddCallChanged() 412 for (Listener listener : mListeners) { in fireSilenceRinger()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | LauncherAppsService.java | 125 private final PackageCallbackList<IOnAppsChangedListener> mListeners field in LauncherAppsService.LauncherAppsImpl 189 synchronized (mListeners) { in addOnAppsChangedListener() 193 if (mListeners.getRegisteredCallbackCount() == 0) { in addOnAppsChangedListener() 199 mListeners.unregister(listener); in addOnAppsChangedListener() 200 mListeners.register(listener, new BroadcastCookie(UserHandle.of(getCallingUserId()), in addOnAppsChangedListener() 211 synchronized (mListeners) { in removeOnAppsChangedListener() 215 mListeners.unregister(listener); in removeOnAppsChangedListener() 216 if (mListeners.getRegisteredCallbackCount() == 0) { in removeOnAppsChangedListener() 278 synchronized (mListeners) { in checkCallbackCount() 280 Log.d(TAG, "Callback count = " + mListeners.getRegisteredCallbackCount()); in checkCallbackCount() [all …]
|
/frameworks/base/core/java/android/view/accessibility/ |
D | CaptioningManager.java | 51 private final ArrayList<CaptioningChangeListener> mListeners = new ArrayList<>(); field in CaptioningManager 146 synchronized (mListeners) { in addCaptioningChangeListener() 147 if (mListeners.isEmpty()) { in addCaptioningChangeListener() 160 mListeners.add(listener); in addCaptioningChangeListener() 175 synchronized (mListeners) { in removeCaptioningChangeListener() 176 mListeners.remove(listener); in removeCaptioningChangeListener() 178 if (mListeners.isEmpty()) { in removeCaptioningChangeListener() 186 synchronized (mListeners) { in notifyEnabledChanged() 187 for (CaptioningChangeListener listener : mListeners) { in notifyEnabledChanged() 195 synchronized (mListeners) { in notifyUserStyleChanged() [all …]
|
/frameworks/base/core/java/android/net/ |
D | EthernetManager.java | 45 for (Listener listener : mListeners) { 51 private final ArrayList<Listener> mListeners = new ArrayList<>(); field in EthernetManager 142 mListeners.add(listener); in addListener() 143 if (mListeners.size() == 1) { in addListener() 174 mListeners.remove(listener); in removeListener() 175 if (mListeners.isEmpty()) { in removeListener()
|
/frameworks/base/services/core/java/com/android/server/slice/ |
D | PinnedSliceState.java | 52 private final ArrayMap<IBinder, ListenerInfo> mListeners = new ArrayMap<>(); field in PinnedSliceState 124 mListeners.put(token, new ListenerInfo(token, pkg, true, in pin() 138 mListeners.remove(token); in unpin() 145 return !mListeners.isEmpty(); in isListening() 152 return !mPinnedPkgs.isEmpty() || !mListeners.isEmpty(); in hasPinOrListener() 174 for (int i = mListeners.size() - 1; i >= 0; i--) { in handleRecheckListeners() 175 ListenerInfo l = mListeners.valueAt(i); in handleRecheckListeners() 177 mListeners.removeAt(i); in handleRecheckListeners()
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | AccessibilityService.java | 835 private ArrayMap<OnMagnificationChangedListener, Handler> mListeners; field in AccessibilityService.MagnificationController 849 if (mListeners != null && !mListeners.isEmpty()) { in onServiceConnectedLocked() 878 if (mListeners == null) { in addListener() 879 mListeners = new ArrayMap<>(); in addListener() 882 final boolean shouldEnableCallback = mListeners.isEmpty(); in addListener() 883 mListeners.put(listener, handler); in addListener() 900 if (mListeners == null) { in removeListener() 905 final int keyIndex = mListeners.indexOfKey(listener); in removeListener() 908 mListeners.removeAt(keyIndex); in removeListener() 911 if (hasKey && mListeners.isEmpty()) { in removeListener() [all …]
|