Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothAdapter.java4501 List<Pair<OnMetadataChangedListener, Executor>> listenerList = in addOnMetadataChangedListener() local
4503 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()
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java1706 private void notifyListeners(PowerManagerCallbackList<ICarPowerStateListener> listenerList, in notifyListeners() argument
1710 int idx = listenerList.beginBroadcast(); in notifyListeners()
1712 ICarPowerStateListener listener = listenerList.getBroadcastItem(idx); in notifyListeners()
1720 listenerList.finishBroadcast(); in notifyListeners()