/packages/apps/Camera2/src/com/android/camera/app/ |
D | MemoryManagerImpl.java | 50 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/ |
D | DefaultNetworkStatusNotifier.java | 37 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()
|
D | WallpaperChangedNotifier.java | 28 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/datausage/ |
D | DataSaverBackend.java | 42 private final ArrayList<Listener> mListeners = new ArrayList<>(); field in DataSaverBackend 55 mListeners.add(listener); in addListener() 56 if (mListeners.size() == 1) { in addListener() 63 mListeners.remove(listener); in remListener() 64 if (mListeners.size() == 0) { in remListener() 139 for (int i = 0; i < mListeners.size(); i++) { in handleRestrictBackgroundChanged() 140 mListeners.get(i).onDataSaverChanged(isDataSaving); in handleRestrictBackgroundChanged() 145 for (int i = 0; i < mListeners.size(); i++) { in handleWhitelistChanged() 146 mListeners.get(i).onWhitelistStatusChanged(uid, isWhitelisted); in handleWhitelistChanged() 151 for (int i = 0; i < mListeners.size(); i++) { in handleBlacklistChanged() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | DataSaverBackend.java | 42 private final ArrayList<Listener> mListeners = new ArrayList<>(); field in DataSaverBackend 55 mListeners.add(listener); in addListener() 56 if (mListeners.size() == 1) { in addListener() 63 mListeners.remove(listener); in remListener() 64 if (mListeners.size() == 0) { in remListener() 139 for (int i = 0; i < mListeners.size(); i++) { in handleRestrictBackgroundChanged() 140 mListeners.get(i).onDataSaverChanged(isDataSaving); in handleRestrictBackgroundChanged() 145 for (int i = 0; i < mListeners.size(); i++) { in handleWhitelistChanged() 146 mListeners.get(i).onWhitelistStatusChanged(uid, isWhitelisted); in handleWhitelistChanged() 151 for (int i = 0; i < mListeners.size(); i++) { in handleBlacklistChanged() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | SignalStrengthListener.java | 37 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/Car/Messenger/src/com/android/car/messenger/bluetooth/ |
D | BluetoothMonitor.java | 35 private final Set<OnBluetoothEventListener> mListeners; field in BluetoothMonitor 56 mListeners = new HashSet<>(); in BluetoothMonitor() 68 return mListeners.add(listener); in registerListener() 79 return mListeners.remove(listener); in unregisterListener() 135 mListeners.forEach(listener -> listener.onMessageReceived(intent)); in onMessageReceived() 139 mListeners.forEach(listener -> listener.onMessageSent(intent)); in onMessageSent() 143 mListeners.forEach(listener -> listener.onDeviceConnected(device)); in onDeviceConnected() 147 mListeners.forEach(listener -> listener.onDeviceDisconnected(device)); in onDeviceDisconnected() 151 mListeners.forEach(listener -> listener.onMapConnected(client)); in onMapConnected() 155 mListeners.forEach(listener -> listener.onMapDisconnected(profile)); in onMapDisconnected() [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/ |
D | P2pConnectionProcedure.java | 53 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 …]
|
D | P2pDiscoveryProcedure.java | 50 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/ |
D | MonitoredActivity.java | 26 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/services/Telecomm/src/com/android/server/telecom/ |
D | Call.java | 374 private final Set<Listener> mListeners = Collections.newSetFromMap( field in Call 643 mListeners.add(listener); in addListener() 648 mListeners.remove(listener); in removeListener() 990 for (Listener l : mListeners) { in setRingbackRequested() 1080 for (Listener l : mListeners) { in setHandle() 1099 for (Listener l : mListeners) { in setCallerDisplayName() 1181 for (Listener l : mListeners) { in setConnectionManagerPhoneAccount() 1197 for (Listener l : mListeners) { in setTargetPhoneAccount() 1528 for (Listener l : mListeners) { in setConnectionCapabilities() 1574 for (Listener l : mListeners) { in setConnectionProperties() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | ShutterButton.java | 71 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/ |
D | ResponseListenerBroadcaster.java | 32 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()
|
D | TagDispatchCaptureSession.java | 46 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/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestCallList.java | 105 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/apps/Launcher3/src/com/android/launcher3/anim/ |
D | SpringObjectAnimator.java | 53 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() 114 for (AnimatorListener l : mListeners) { in tryEnding() 149 mListeners.add(listener); in addListener() 158 return mListeners; in getListeners() 163 mListeners.clear(); in removeAllListeners() 168 mListeners.remove(listener); in removeListener()
|
/packages/apps/TV/src/com/android/tv/dvr/ |
D | DvrWatchedPositionManager.java | 39 private final Map<Long, Set> mListeners = new HashMap<>(); field in DvrWatchedPositionManager 94 Set<WatchedPositionChangedListener> listenerSet = mListeners.get(recordedProgramId); in addListener() 97 mListeners.put(recordedProgramId, listenerSet); in addListener() 104 for (long recordedProgramId : new ArrayList<>(mListeners.keySet())) { in removeListener() 111 Set<WatchedPositionChangedListener> listenerSet = mListeners.get(recordedProgramId); in removeListener() 117 mListeners.remove(recordedProgramId); in removeListener() 122 Set<WatchedPositionChangedListener> listenerSet = mListeners.get(recordedProgramId); in notifyWatchedPositionChanged()
|
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
D | Discovery.java | 47 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/ |
D | CarStorageMonitoringManager.java | 47 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/services/Car/service/src/com/android/car/vms/ |
D | VmsClientManager.java | 88 private final ArrayList<ConnectionListener> mListeners = new ArrayList<>(); field in VmsClientManager 216 synchronized (mListeners) { in registerConnectionListener() 217 if (!mListeners.contains(listener)) { in registerConnectionListener() 218 mListeners.add(listener); in registerConnectionListener() 230 synchronized (mListeners) { in unregisterConnectionListener() 231 mListeners.remove(listener); in unregisterConnectionListener() 324 synchronized (mListeners) { in notifyListenersOnClientConnected() 325 for (ConnectionListener listener : mListeners) { in notifyListenersOnClientConnected() 332 synchronized (mListeners) { in notifyListenersOnClientDisconnected() 333 for (ConnectionListener listener : mListeners) { in notifyListenersOnClientDisconnected()
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | RadioOnHelper.java | 42 private List<RadioOnStateListener> mListeners; field in RadioOnHelper 52 if (mListeners != null) { in setupListeners() 55 mListeners = new ArrayList<>(2); in setupListeners() 57 mListeners.add(new RadioOnStateListener()); in setupListeners() 85 mInProgressListeners.add(mListeners.get(i)); in triggerRadioOnAndListen() 86 mListeners.get(i).waitForRadioOn(phone, this); in triggerRadioOnAndListen()
|
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/ |
D | WallpaperColorInfo.java | 50 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/ |
D | ChannelTuner.java | 57 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()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
D | MtpClient.java | 53 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/Gallery2/src/com/android/gallery3d/ingest/adapter/ |
D | CheckBroker.java | 30 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()
|