Searched refs:listenerList (Results 1 – 2 of 2) sorted by relevance
4501 List<Pair<OnMetadataChangedListener, Executor>> listenerList = in addOnMetadataChangedListener() local4503 if (listenerList == null) { in addOnMetadataChangedListener()4505 listenerList = new ArrayList<>(); in addOnMetadataChangedListener()4506 mMetadataListeners.put(device, listenerList); in addOnMetadataChangedListener()4509 if (listenerList.stream().anyMatch((pair) -> (pair.first.equals(listener)))) { in addOnMetadataChangedListener()4517 listenerList.add(listenerPair); in addOnMetadataChangedListener()4529 listenerList.remove(listenerPair); in addOnMetadataChangedListener()4530 if (listenerList.isEmpty()) { in addOnMetadataChangedListener()
1706 private void notifyListeners(PowerManagerCallbackList<ICarPowerStateListener> listenerList, in notifyListeners() argument1710 int idx = listenerList.beginBroadcast(); in notifyListeners()1712 ICarPowerStateListener listener = listenerList.getBroadcastItem(idx); in notifyListeners()1720 listenerList.finishBroadcast(); in notifyListeners()