Searched refs:sListeners (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/tests/AmSlam/src/test/amslam/ |
D | PongReceiver.java | 32 private static Set<PingPongResponseListener> sListeners = new HashSet<>(); field in PongReceiver 35 sListeners.add(listener); in addListener() 39 sListeners.remove(listener); in removeListener() 48 for (PingPongResponseListener listener : sListeners) { in onReceive()
|
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/ |
D | DiscoveryListenerMultiplexer.java | 36 private static final @NonNull ArrayMap<String, DiscoveryListenerSet> sListeners = field in DiscoveryListenerMultiplexer 48 synchronized (sListeners) { in addListener() 49 DiscoveryListenerSet listenerSet = sListeners.get(serviceType); in addListener() 56 sListeners.put(serviceType, listenerSet); in addListener() 82 synchronized (sListeners) { in removeListener() 83 for (DiscoveryListenerSet listeners : sListeners.values()) { in removeListener()
|
/frameworks/base/core/java/android/provider/ |
D | DeviceConfig.java | 376 private static ArrayMap<OnPropertiesChangedListener, Pair<String, Executor>> sListeners = field in DeviceConfig 634 Pair<String, Executor> oldNamespace = sListeners.get(onPropertiesChangedListener); in addOnPropertiesChangedListener() 637 sListeners.put(onPropertiesChangedListener, new Pair<>(namespace, executor)); in addOnPropertiesChangedListener() 641 sListeners.put(onPropertiesChangedListener, new Pair<>(namespace, executor)); in addOnPropertiesChangedListener() 644 decrementNamespace(sListeners.get(onPropertiesChangedListener).first); in addOnPropertiesChangedListener() 645 sListeners.put(onPropertiesChangedListener, new Pair<>(namespace, executor)); in addOnPropertiesChangedListener() 687 if (sListeners.containsKey(onPropertiesChangedListener)) { in removeOnPropertiesChangedListener() 688 decrementNamespace(sListeners.get(onPropertiesChangedListener).first); in removeOnPropertiesChangedListener() 689 sListeners.remove(onPropertiesChangedListener); in removeOnPropertiesChangedListener() 774 for (int i = 0; i < sListeners.size(); i++) { in handleChange() [all …]
|