Home
last modified time | relevance | path

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

/system/core/adb/
Dadb_listeners.cpp58 alistener* listener = reinterpret_cast<alistener*>(_l); in listener_event_func() local
75 s->transport = listener->transport; in listener_event_func()
76 connect_to_remote(s, listener->connect_to); in listener_event_func()
108 alistener* listener = reinterpret_cast<alistener*>(arg); in listener_disconnect() local
109 listener->transport = nullptr; in listener_disconnect()
110 free_listener(listener); in listener_disconnect()
220 alistener* listener = reinterpret_cast<alistener*>( in install_listener() local
222 if (listener == nullptr) { in install_listener()
226 listener->local_name = strdup(local_name.c_str()); in install_listener()
227 if (listener->local_name == nullptr) { in install_listener()
[all …]
Dtest_adb.py168 socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as listener:
171 listener.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
172 listener.bind(('127.0.0.1', port))
173 listener.listen(4)
181 accepted_connection, addr = listener.accept()
Dtest_device.py232 listener = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
233 with contextlib.closing(listener):
236 listener.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
241 listener.bind(('127.0.0.1', reverse_port))
242 listener.listen(4)
250 accepted_connection, addr = listener.accept()
/system/core/healthd/
DBatteryPropertiesRegistrar.cpp45 void BatteryPropertiesRegistrar::registerListener(const sp<IBatteryPropertiesListener>& listener) { in registerListener() argument
47 if (listener == NULL) in registerListener()
52 if (IInterface::asBinder(mListeners[i]) == IInterface::asBinder(listener)) { in registerListener()
57 mListeners.add(listener); in registerListener()
58 IInterface::asBinder(listener)->linkToDeath(this); in registerListener()
63 void BatteryPropertiesRegistrar::unregisterListener(const sp<IBatteryPropertiesListener>& listener)… in unregisterListener() argument
64 if (listener == NULL) in unregisterListener()
68 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/connectivity/shill/net/
Drtnl_listener_unittest.cc59 RTNLListener listener(RTNLHandler::kRequestAddr, callback_); in TEST_F() local
63 listener.NotifyEvent(RTNLHandler::kRequestLink, message); in TEST_F()
70 RTNLListener listener( in TEST_F() local
76 listener.NotifyEvent(RTNLHandler::kRequestLink, message); in TEST_F()
Drtnl_handler.cc134 for (const auto& listener : listeners_) { in AddListener() local
135 if (to_add == listener) in AddListener()
216 for (const auto& listener : listeners_) { in DispatchEvent() local
217 listener->NotifyEvent(type, msg); in DispatchEvent()
/system/weaved/buffet/
Dmanager.cc182 for (const auto& listener : notification_listeners_) { in ~Manager() local
184 android::IInterface::asBinder(listener)); in ~Manager()
373 const WeaveServiceManagerNotificationListener& listener) { in registerNotificationListener() argument
374 notification_listeners_.insert(listener); in registerNotificationListener()
376 android::IInterface::asBinder(listener), in registerNotificationListener()
378 weak_ptr_factory_.GetWeakPtr(), listener)); in registerNotificationListener()
487 for (const auto& listener : notification_listeners_) in NotifyServiceManagerChange() local
488 listener->notifyServiceManagerChange(notification_ids); in NotifyServiceManagerChange()
Dshill_client.cc215 const ConnectionChangedCallback& listener) { in AddConnectionChangedCallback() argument
216 connectivity_listeners_.push_back(listener); in AddConnectionChangedCallback()
560 for (const auto& listener : connectivity_listeners_) in NotifyConnectivityListeners() local
561 listener.Run(); in NotifyConnectivityListeners()
Dshill_client.h47 const ConnectionChangedCallback& listener) override;
Dmanager.h74 const WeaveServiceManagerNotificationListener& listener) override;
/system/netd/server/
DDnsProxyListener.h59 const android::sp<android::net::metrics::INetdEventListener>& listener);
94 const android::sp<android::net::metrics::INetdEventListener>& listener);
DMDnsSdListener.h105 Handler(Monitor *m, MDnsSdListener *listener);
DMDnsSdListener.cpp53 MDnsSdListener::Handler::Handler(Monitor *m, MDnsSdListener *listener) : in Handler() argument
57 mListener = listener; in Handler()
/system/weaved/brillo/android/weave/
DIWeaveServiceManager.aidl25 in IWeaveServiceManagerNotificationListener listener); in registerNotificationListener() argument
/system/core/include/utils/
DLruCache.h47 void setOnEntryRemovedListener(OnEntryRemoved<TKey, TValue>* listener);
159 void LruCache<K, V>::setOnEntryRemovedListener(OnEntryRemoved<K, V>* listener) { in setOnEntryRemovedListener() argument
160 mListener = listener; in setOnEntryRemovedListener()