Home
last modified time | relevance | path

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

/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/util/
DDiscoveryListenerMultiplexer.java49 DiscoveryListenerSet listenerSet = sListeners.get(serviceType); in addListener() local
51 if (listenerSet == null) { in addListener()
53 listenerSet = new DiscoveryListenerSet(subListeners, in addListener()
56 sListeners.put(serviceType, listenerSet); in addListener()
59 synchronized (listenerSet.subListeners) { in addListener()
60 if (listenerSet.subListeners.isEmpty()) { in addListener()
62 listenerSet.mainListener); in addListener()
65 listenerSet.subListeners.add(newListener); in addListener()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java1485 final ArraySet<OnOpModeChangedListener> listenerSet = in onUidStateChanged() local
1487 if (listenerSet != null) { in onUidStateChanged()
1488 for (int cbi = listenerSet.size() - 1; cbi >= 0; cbi--) { in onUidStateChanged()
1489 final OnOpModeChangedListener listener = listenerSet.valueAt(cbi); in onUidStateChanged()
1507 this, listenerSet.valueAt(cbi), code, uidState.uid, in onUidStateChanged()