Home
last modified time | relevance | path

Searched refs:ListenerInfo (Results 1 – 3 of 3) sorted by relevance

/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DFakeCarPropertyService.java73 private final PairSparseArray<Set<ListenerInfo>> mListenersByPropIdAreaId =
83 Set<ListenerInfo> propListeners = mListenersByPropIdAreaId.get(propId, areaId); in registerListener()
89 propListeners.add(new ListenerInfo(listener)); in registerListener()
100 Set<ListenerInfo> propListeners = mListenersByPropIdAreaId.get(propId, areaId); in unregisterListener()
101 if (propListeners.remove(new ListenerInfo(listener)) && propListeners.isEmpty()) { in unregisterListener()
238 Set<ListenerInfo> listeners = mListenersByPropIdAreaId.get(v.getPropertyId(), in sendEvent()
241 for (ListenerInfo listenerInfo : listeners) { in sendEvent()
299 private static class ListenerInfo { class in FakeCarPropertyService
302 ListenerInfo(ICarPropertyEventListener listener) { in ListenerInfo() method in FakeCarPropertyService.ListenerInfo
311 if (!(o instanceof ListenerInfo)) { in equals()
[all …]
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsServiceTypeClient.java91 private final ArrayMap<MdnsServiceBrowserListener, ListenerInfo> listeners =
105 private static class ListenerInfo { class in MdnsServiceTypeClient
110 ListenerInfo(@NonNull MdnsSearchOptions searchOptions, in ListenerInfo() method in MdnsServiceTypeClient.ListenerInfo
111 @Nullable ListenerInfo previousInfo) { in ListenerInfo()
377 final ListenerInfo existingInfo = listeners.get(listener); in startSendAndReceive()
378 final ListenerInfo listenerInfo = new ListenerInfo(searchOptions, existingInfo); in startSendAndReceive()
618 final ListenerInfo listenerInfo = listeners.valueAt(i); in onResponseModified()
681 @NonNull ArrayMap<MdnsServiceBrowserListener, ListenerInfo> listeners) { in needSendDiscoveryQueries()
/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/
DEthernetTracker.java326 final ListenerInfo info = (ListenerInfo) mListeners.getBroadcastCookie(i); in broadcastInterfaceStateChange()
442 if (!mListeners.register(listener, new ListenerInfo(canUseRestrictedNetworks))) { in addListener()
742 private static class ListenerInfo { class in EthernetTracker
746 ListenerInfo(boolean canUseRestrictedNetworks) { in ListenerInfo() method in EthernetTracker.ListenerInfo