Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/location/
DRemoteListenerHelper.java46 private final Map<IBinder, LinkedListener> mListenerMap = new HashMap<>(); field in RemoteListenerHelper
64 synchronized (mListenerMap) { in addListener()
65 if (mListenerMap.containsKey(binder)) { in addListener()
77 mListenerMap.put(binder, deathListener); in addListener()
107 synchronized (mListenerMap) { in removeListener()
108 linkedListener = mListenerMap.remove(binder); in removeListener()
109 if (mListenerMap.isEmpty()) { in removeListener()
129 synchronized (mListenerMap) { in foreach()
135 synchronized (mListenerMap) { in setSupported()
142 synchronized (mListenerMap) { in tryUpdateRegistrationWithService()
[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/
DRttManager.java1114 private final SparseArray mListenerMap = new SparseArray(); field in RttManager
1169 mListenerMap.put(key, listener); in putListener()
1185 mListenerMap.put(key, listener); in putListenerIfAbsent()
1194 Object listener = mListenerMap.get(key); in getListener()
1202 int index = mListenerMap.indexOfValue(listener); in getListenerKey()
1206 return mListenerMap.keyAt(index); in getListenerKey()
1214 Object listener = mListenerMap.get(key); in removeListener()
1215 mListenerMap.remove(key); in removeListener()
1224 mListenerMap.remove(key); in removeListener()
DWifiScanner.java1139 private final SparseArray mListenerMap = new SparseArray(); field in WifiScanner
1215 mListenerMap.put(key, listener); in putListener()
1223 Object listener = mListenerMap.get(key); in getListener()
1231 int index = mListenerMap.indexOfValue(listener); in getListenerKey()
1235 return mListenerMap.keyAt(index); in getListenerKey()
1243 Object listener = mListenerMap.get(key); in removeListener()
1244 mListenerMap.remove(key); in removeListener()
1256 mListenerMap.remove(key); in removeListener()
DWifiManager.java667 private final SparseArray mListenerMap = new SparseArray(); field in WifiManager
1904 mListenerMap.put(message.arg2, listener);
1956 mListenerMap.put(key, listener);
1964 Object listener = mListenerMap.get(key);
1965 mListenerMap.remove(key);
/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()