Home
last modified time | relevance | path

Searched refs:mListenerMap (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/core/java/com/android/server/location/
DRemoteListenerHelper.java43 private final HashMap<IBinder, LinkedListener> mListenerMap = new HashMap<>(); field in RemoteListenerHelper
59 synchronized (mListenerMap) { in addListener()
60 if (mListenerMap.containsKey(binder)) { in addListener()
72 mListenerMap.put(binder, deathListener); in addListener()
102 synchronized (mListenerMap) { in removeListener()
103 linkedListener = mListenerMap.remove(binder); in removeListener()
104 if (mListenerMap.isEmpty()) { in removeListener()
117 synchronized (mListenerMap) { in onGpsEnabledChanged()
122 if (mListenerMap.isEmpty()) { in onGpsEnabledChanged()
146 synchronized (mListenerMap) { in foreach()
[all …]
/frameworks/base/core/java/android/net/nsd/
DNsdManager.java216 private final SparseArray mListenerMap = new SparseArray(); field in NsdManager
385 int valueIndex = mListenerMap.indexOfValue(listener); in putListener()
392 mListenerMap.put(key, listener); in putListener()
401 return mListenerMap.get(key); in getListener()
414 mListenerMap.remove(key); in removeListener()
421 int valueIndex = mListenerMap.indexOfValue(listener); in getListenerKey()
423 return mListenerMap.keyAt(valueIndex); in getListenerKey()
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pManager.java677 private HashMap<Integer, Object> mListenerMap = new HashMap<Integer, Object>(); field in WifiP2pManager.Channel
844 mListenerMap.put(key, listener); in putListener()
852 return mListenerMap.remove(key); in getListener()