Home
last modified time | relevance | path

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

1234

/system/netd/server/
DOemNetdListener.cpp27 static OemNetdListener listener; in getListener() local
28 return listener.getIBinder(); in getListener()
45 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener) { in registerOemUnsolicitedEventListener()
46 registerOemUnsolicitedEventListenerInternal(listener); in registerOemUnsolicitedEventListener()
47 listener->onRegistered(); in registerOemUnsolicitedEventListener()
52 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener) { in registerOemUnsolicitedEventListenerInternal()
59 ::android::sp<IOemNetdUnsolicitedEventListener> listener) in registerOemUnsolicitedEventListenerInternal() argument
60 : mOemNetdListener(oemNetdListener), mListener(std::move(listener)) {} in registerOemUnsolicitedEventListenerInternal()
71 new DeathRecipient(this, listener); in registerOemUnsolicitedEventListenerInternal()
73 ::android::IInterface::asBinder(listener)->linkToDeath(deathRecipient); in registerOemUnsolicitedEventListenerInternal()
[all …]
DEventReporter.cpp47 const android::sp<INetdUnsolicitedEventListener>& listener) { in registerUnsolEventListener() argument
54 android::sp<INetdUnsolicitedEventListener> listener) in registerUnsolEventListener() argument
55 : mEventReporter(eventReporter), mListener(std::move(listener)) {} in registerUnsolEventListener()
66 new DeathRecipient(this, listener); in registerUnsolEventListener()
68 android::IInterface::asBinder(listener)->linkToDeath(deathRecipient); in registerUnsolEventListener()
71 mUnsolListenerMap.insert({listener, deathRecipient}); in registerUnsolEventListener()
75 const android::sp<INetdUnsolicitedEventListener>& listener) { in unregisterUnsolEventListener() argument
77 mUnsolListenerMap.erase(listener); in unregisterUnsolEventListener()
DOemNetdListener.h43 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener) override;
55 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener)
58 const ::android::sp<IOemNetdUnsolicitedEventListener>& listener)
DEventReporter.h46 const android::sp<android::net::INetdUnsolicitedEventListener>& listener)
49 const android::sp<android::net::INetdUnsolicitedEventListener>& listener)
DNFLogListener.cpp144 NFLogListener::NFLogListener(std::shared_ptr<NetlinkListenerInterface> listener) in NFLogListener() argument
145 : mListener(std::move(listener)) { in NFLogListener()
216 std::shared_ptr<NetlinkListenerInterface> listener = in makeNFLogListener() local
218 const auto sendFn = [&listener](const Slice msg) { return listener->send(msg); }; in makeNFLogListener()
220 return std::unique_ptr<NFLogListener>(new NFLogListener(std::move(listener))); in makeNFLogListener()
/system/core/adb/
Dadb_listeners.cpp96 alistener* listener = reinterpret_cast<alistener*>(_l); in listener_event_func() local
106 s->transport = listener->transport; in listener_event_func()
107 connect_to_remote(s, listener->connect_to); in listener_event_func()
181 auto pred = [](const std::unique_ptr<alistener>& listener) { in close_smartsockets() argument
182 return listener->local_name == "*smartsocket*"; in close_smartsockets()
216 auto listener = std::make_unique<alistener>(local_name, connect_to); in install_listener() local
219 listener->fd = socket_spec_listen(listener->local_name, error, &resolved); in install_listener()
220 if (listener->fd < 0) { in install_listener()
226 listener->local_name = android::base::StringPrintf("tcp:%d", resolved); in install_listener()
232 close_on_exec(listener->fd); in install_listener()
[all …]
/system/vold/
DMoveStorage.cpp52 const android::sp<android::os::IVoldTaskListener>& listener) { in notifyProgress() argument
53 if (listener) { in notifyProgress()
55 listener->onStatus(progress, extras); in notifyProgress()
83 const android::sp<android::os::IVoldTaskListener>& listener) { in execRm() argument
84 notifyProgress(startProgress, listener); in execRm()
121 listener); in execRm()
128 const android::sp<android::os::IVoldTaskListener>& listener) { in execCp() argument
129 notifyProgress(startProgress, listener); in execCp()
175 listener); in execCp()
196 const android::sp<android::os::IVoldTaskListener>& listener) { in moveStorageInternal() argument
[all …]
DBenchmark.cpp90 const android::sp<android::os::IVoldTaskListener>& listener, in benchmarkInternal() argument
128 if (listener) { in benchmarkInternal()
129 listener->onStatus(progress, *extras); in benchmarkInternal()
155 if (listener) { in benchmarkInternal()
156 listener->onStatus(progress, *extras); in benchmarkInternal()
182 const android::sp<android::os::IVoldTaskListener>& listener) { in Benchmark() argument
189 status_t res = benchmarkInternal(path, listener, &extras); in Benchmark()
190 if (listener) { in Benchmark()
191 listener->onFinished(res, extras); in Benchmark()
DIdleMaint.cpp147 void Trim(const android::sp<android::os::IVoldTaskListener>& listener) { in Trim() argument
164 if (listener) { in Trim()
165 listener->onStatus(-1, extras); in Trim()
177 if (listener) { in Trim()
178 listener->onStatus(-1, extras); in Trim()
186 if (listener) { in Trim()
187 listener->onStatus(0, extras); in Trim()
193 if (listener) { in Trim()
195 listener->onFinished(0, extras); in Trim()
357 int RunIdleMaint(const android::sp<android::os::IVoldTaskListener>& listener) { in RunIdleMaint() argument
[all …]
DIdleMaint.h25 void Trim(const android::sp<android::os::IVoldTaskListener>& listener);
26 int RunIdleMaint(const android::sp<android::os::IVoldTaskListener>& listener);
27 int AbortIdleMaint(const android::sp<android::os::IVoldTaskListener>& listener);
/system/vold/model/
DVolumeBase.cpp50 auto listener = getListener(); in setState() local
51 if (listener) { in setState()
52 listener->onVolumeStateChanged(getId(), static_cast<int32_t>(mState)); in setState()
124 auto listener = getListener(); in setPath() local
125 if (listener) listener->onVolumePathChanged(getId(), mPath); in setPath()
138 auto listener = getListener(); in setInternalPath() local
139 if (listener) { in setInternalPath()
140 listener->onVolumeInternalPathChanged(getId(), mInternalPath); in setInternalPath()
177 auto listener = getListener(); in create() local
178 if (listener) { in create()
[all …]
DDisk.cpp139 auto listener = VolumeManager::Instance()->getListener(); in create() local
140 if (listener) listener->onDiskCreated(getId(), mFlags); in create()
152 auto listener = VolumeManager::Instance()->getListener(); in destroy() local
153 if (listener) listener->onDiskDestroyed(getId()); in destroy()
293 auto listener = VolumeManager::Instance()->getListener(); in readMetadata() local
294 if (listener) listener->onDiskMetadataChanged(getId(), mSize, mLabel, mSysPath); in readMetadata()
319 auto listener = VolumeManager::Instance()->getListener(); in readPartitions() local
320 if (listener) listener->onDiskScanned(getId()); in readPartitions()
399 auto listener = VolumeManager::Instance()->getListener(); in readPartitions() local
400 if (listener) listener->onDiskScanned(getId()); in readPartitions()
DStubVolume.cpp50 auto listener = getListener(); in doMount() local
51 if (listener) listener->onVolumeMetadataChanged(getId(), mFsType, mFsUuid, mFsLabel); in doMount()
/system/incremental_delivery/libdataloader/
DDataLoaderConnector.cpp78 jclass listener; member
94 listener = (jclass)env->NewGlobalRef( in JniIds()
96 listenerOnStatusChanged = GetMethodIDOrDie(env, listener, "onStatusChanged", "(II)V"); in JniIds()
99 GetStaticIntFieldValueOrDie(env, listener, "DATA_LOADER_CREATED"); in JniIds()
101 GetStaticIntFieldValueOrDie(env, listener, "DATA_LOADER_DESTROYED"); in JniIds()
103 GetStaticIntFieldValueOrDie(env, listener, "DATA_LOADER_STARTED"); in JniIds()
105 GetStaticIntFieldValueOrDie(env, listener, "DATA_LOADER_STOPPED"); in JniIds()
107 GetStaticIntFieldValueOrDie(env, listener, "DATA_LOADER_IMAGE_READY"); in JniIds()
109 GetStaticIntFieldValueOrDie(env, listener, "DATA_LOADER_IMAGE_NOT_READY"); in JniIds()
112 GetStaticIntFieldValueOrDie(env, listener, "DATA_LOADER_UNAVAILABLE"); in JniIds()
[all …]
/system/bt/gd/security/test/
Dfake_security_interface.h26 …FakeLinkSecurityInterface(l2cap::classic::LinkSecurityInterfaceListener* listener, hci::Address ad… in FakeLinkSecurityInterface() argument
27 : listener_(listener), address_(address) {} in FakeLinkSecurityInterface()
49 …akeSecurityInterface(os::Handler* handler, l2cap::classic::LinkSecurityInterfaceListener* listener) in FakeSecurityInterface() argument
50 : handler_(handler), listener_(listener) {} in FakeSecurityInterface()
/system/security/keystore/
Dconfirmation_manager.cpp54 Status ConfirmationManager::presentConfirmationPrompt(const sp<IBinder>& listener, in presentConfirmationPrompt() argument
97 listener->linkToDeath(mDeathRecipient); in presentConfirmationPrompt()
99 mCurrentListener = listener; in presentConfirmationPrompt()
107 Status ConfirmationManager::cancelConfirmationPrompt(const sp<IBinder>& listener, in cancelConfirmationPrompt() argument
110 if (mCurrentListener != listener) { in cancelConfirmationPrompt()
152 sp<IBinder> listener = mCurrentListener; in finalizeTransaction() local
164 if (listener != nullptr) { in finalizeTransaction()
165 sp<BpConfirmationPromptCallback> obj = new BpConfirmationPromptCallback(listener); in finalizeTransaction()
/system/iorap/src/binder/
Diiorap_impl.cc83 void SetTaskListener(const ::android::sp<ITaskListener>& listener) { in SetTaskListener() argument
85 if (old_listener != nullptr && listener != nullptr) { in SetTaskListener()
88 listener_ = listener; in SetTaskListener()
92 ::android::sp<ITaskListener> listener = listener_; in ReplyWithResult()
93 if (listener == nullptr) { in ReplyWithResult()
107 listener->onComplete(request_id, result); in ReplyWithResult()
110 listener->onProgress(request_id, result); in ReplyWithResult()
/system/security/keystore/tests/
Dconfirmationui_invocation_test.cpp66 sp<ConfirmationListener> listener = new ConfirmationListener(); in TEST() local
68 auto future = listener->get_future(); in TEST()
72 listener, promptText16, extraData, locale16, 0, &aidl_return); in TEST()
82 status = service->cancelConfirmationPrompt(listener, &aidl_return); in TEST()
/system/bt/gd/l2cap/classic/
Dl2cap_classic_module.cc59 …isterLinkSecurityInterfaceListener(os::Handler* handler, LinkSecurityInterfaceListener* listener) { in RegisterLinkSecurityInterfaceListener()
61 module_impl_->link_manager_.RegisterLinkSecurityInterfaceListener(handler, listener); in RegisterLinkSecurityInterfaceListener()
120 os::Handler* handler, LinkSecurityInterfaceListener* listener) { in GetSecurityInterface() argument
121 pimpl_->security_interface_impl_.RegisterLinkSecurityInterfaceListener(handler, listener); in GetSecurityInterface()
/system/vold/binder/android/os/
DIVold.aidl25 void setListener(IVoldListener listener); in setListener() argument
47 void benchmark(@utf8InCpp String volId, IVoldTaskListener listener); in benchmark() argument
50 IVoldTaskListener listener); in moveStorage() argument
60 void fstrim(int fstrimFlags, IVoldTaskListener listener); in fstrim() argument
61 void runIdleMaint(IVoldTaskListener listener); in runIdleMaint() argument
62 void abortIdleMaint(IVoldTaskListener listener); in abortIdleMaint() argument
/system/update_engine/
Ddynamic_partition_test_utils.h205 MatchResultListener* listener) const override { in MatchAndExplain() argument
212 *listener << "; "; in MatchAndExplain()
213 *listener << "No partition " << partition_name; in MatchAndExplain()
224 *listener << "Can't find partition update " << partition_name; in MatchAndExplain()
231 *listener << "; "; in MatchAndExplain()
232 *listener << "Partition " << partition_name << " has size " in MatchAndExplain()
238 *listener << "; "; in MatchAndExplain()
239 *listener << "Partition " << partition_name << " has group " in MatchAndExplain()
/system/bt/profile/avrcp/tests/
Davrcp_test_helper.h120 ::testing::MatchResultListener* listener) const override { in MatchAndExplain() argument
128 *listener << "\nPacket to compare to: \n"; in MatchAndExplain()
129 *listener << packet2->ToString(); in MatchAndExplain()
130 *listener << "\nActual packet: \n"; in MatchAndExplain()
131 *listener << packet1->ToString(); in MatchAndExplain()
/system/hwservicemanager/
DHidlService.cpp70 void HidlService::addListener(const sp<IServiceNotification> &listener) { in addListener() argument
72 auto ret = listener->onRegistration( in addListener()
81 mListeners.push_back(listener); in addListener()
84 bool HidlService::removeListener(const wp<IBase>& listener) { in removeListener() argument
88 if (interfacesEqual(*it, listener.promote())) { in removeListener()
/system/bt/gd/security/
Dsecurity_manager.cc79 void SecurityManager::RegisterCallbackListener(ISecurityManagerListener* listener, os::Handler* han… in RegisterCallbackListener() argument
81 … common::Unretained(security_manager_impl_), listener, handler)); in RegisterCallbackListener()
84 void SecurityManager::UnregisterCallbackListener(ISecurityManagerListener* listener) { in UnregisterCallbackListener() argument
86 common::Unretained(security_manager_impl_), listener)); in UnregisterCallbackListener()
Dsecurity_manager.h93 void RegisterCallbackListener(ISecurityManagerListener* listener, os::Handler* handler);
100 void UnregisterCallbackListener(ISecurityManagerListener* listener);

1234