Home
last modified time | relevance | path

Searched refs:mListenersMap (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/service/src/com/android/car/
DCarRadioService.java42 private final HashMap<IBinder, ICarRadioEventListener> mListenersMap = field in CarRadioService
85 for (IBinder listenerBinder : mListenersMap.keySet()) { in release()
90 mListenersMap.clear(); in release()
113 if (mListenersMap.containsKey(listenerBinder)) { in registerListener()
127 if (mListenersMap.isEmpty()) { in registerListener()
131 mListenersMap.put(listenerBinder, listener); in registerListener()
146 if (!mListenersMap.containsKey(listenerBinder)) { in unregisterListener()
155 Object status = mListenersMap.remove(listenerBinder); in unregisterListenerLocked()
163 if (mListenersMap.isEmpty()) { in unregisterListenerLocked()
191 for (ICarRadioEventListener l : mListenersMap.values()) { in onEvent()
DCarPropertyServiceBase.java50 private final Map<IBinder, ICarPropertyEventListener> mListenersMap = new ConcurrentHashMap<>(); field in CarPropertyServiceBase
99 mListenersMap.clear(); in release()
120 if (mListenersMap.containsKey(listenerBinder)) { in registerListener()
134 if (mListenersMap.isEmpty()) { in registerListener()
138 mListenersMap.put(listenerBinder, listener); in registerListener()
155 if (!mListenersMap.containsKey(listenerBinder)) { in unregisterListener()
165 boolean found = mListenersMap.remove(listenerBinder) != null; in unregisterListenerLocked()
172 if (mListenersMap.isEmpty()) { in unregisterListenerLocked()
197 int size = mListenersMap.values().size(); in getListeners()
198 return mListenersMap.values().toArray(new ICarPropertyEventListener[size]); in getListeners()