Home
last modified time | relevance | path

Searched refs:listener (Results 1 – 6 of 6) sorted by relevance

/system/core/adb/
Dadb_listeners.cpp61 alistener* listener = reinterpret_cast<alistener*>(_l); in listener_event_func() local
77 s->transport = listener->transport; in listener_event_func()
78 connect_to_remote(s, listener->connect_to); in listener_event_func()
109 void listener_disconnect(void* listener, atransport* t) in listener_disconnect() argument
111 free_listener(reinterpret_cast<alistener*>(listener)); in listener_disconnect()
223 alistener* listener = reinterpret_cast<alistener*>( in install_listener() local
225 if (listener == nullptr) { in install_listener()
229 listener->local_name = strdup(local_name.c_str()); in install_listener()
230 if (listener->local_name == nullptr) { in install_listener()
234 listener->connect_to = strdup(connect_to); in install_listener()
[all …]
/system/core/healthd/
DBatteryPropertiesRegistrar.cpp44 void BatteryPropertiesRegistrar::registerListener(const sp<IBatteryPropertiesListener>& listener) { in registerListener() argument
46 if (listener == NULL) in registerListener()
51 if (IInterface::asBinder(mListeners[i]) == IInterface::asBinder(listener)) { in registerListener()
56 mListeners.add(listener); in registerListener()
57 IInterface::asBinder(listener)->linkToDeath(this); in registerListener()
62 void BatteryPropertiesRegistrar::unregisterListener(const sp<IBatteryPropertiesListener>& listener)… in unregisterListener() argument
63 if (listener == NULL) in unregisterListener()
67 if (IInterface::asBinder(mListeners[i]) == IInterface::asBinder(listener)) { in unregisterListener()
DBatteryPropertiesRegistrar.h40 void registerListener(const sp<IBatteryPropertiesListener>& listener);
41 void unregisterListener(const sp<IBatteryPropertiesListener>& listener);
/system/core/include/utils/
DLruCache.h44 void setOnEntryRemovedListener(OnEntryRemoved<TKey, TValue>* listener);
117 void LruCache<K, V>::setOnEntryRemovedListener(OnEntryRemoved<K, V>* listener) { in setOnEntryRemovedListener() argument
118 mListener = listener; in setOnEntryRemovedListener()
/system/netd/server/
DMDnsSdListener.h105 Handler(Monitor *m, MDnsSdListener *listener);
DMDnsSdListener.cpp50 MDnsSdListener::Handler::Handler(Monitor *m, MDnsSdListener *listener) : in Handler() argument
54 mListener = listener; in Handler()