Home
last modified time | relevance | path

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

/system/core/healthd/
DBatteryPropertiesRegistrar.cpp44 void BatteryPropertiesRegistrar::registerListener(const sp<IBatteryPropertiesListener>& listener) { in registerListener() argument
46 if (listener == NULL) in registerListener()
51 if (mListeners[i]->asBinder() == listener->asBinder()) { in registerListener()
56 mListeners.add(listener); in registerListener()
57 listener->asBinder()->linkToDeath(this); in registerListener()
62 void BatteryPropertiesRegistrar::unregisterListener(const sp<IBatteryPropertiesListener>& listener)… in unregisterListener() argument
63 if (listener == NULL) in unregisterListener()
67 if (mListeners[i]->asBinder() == listener->asBinder()) { 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()