Home
last modified time | relevance | path

Searched refs:wp (Results 1 – 12 of 12) sorted by relevance

/base/notification/common_event_service/services/src/
Dcommon_event_manager_service.cpp156 std::weak_ptr<InnerCommonEventManager> wp = innerCommonEventManager_; in PublishCommonEventDetailed() local
158 std::function<void()> publishCommonEventFunc = [wp, in PublishCommonEventDetailed()
169 std::shared_ptr<InnerCommonEventManager> innerCommonEventManager = wp.lock(); in PublishCommonEventDetailed()
219 std::weak_ptr<InnerCommonEventManager> wp = innerCommonEventManager_; in SubscribeCommonEvent() local
220 std::function<void()> subscribeCommonEventFunc = [wp, in SubscribeCommonEvent()
228 std::shared_ptr<InnerCommonEventManager> innerCommonEventManager = wp.lock(); in SubscribeCommonEvent()
259 std::weak_ptr<InnerCommonEventManager> wp = innerCommonEventManager_; in UnsubscribeCommonEvent() local
260 std::function<void()> unsubscribeCommonEventFunc = [wp, commonEventListener] () { in UnsubscribeCommonEvent()
261 std::shared_ptr<InnerCommonEventManager> innerCommonEventManager = wp.lock(); in UnsubscribeCommonEvent()
333 std::weak_ptr<InnerCommonEventManager> wp = innerCommonEventManager_; in FinishReceiver() local
[all …]
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
Ddlp_file_kits.cpp46 WantParams wp = param.GetWantParams(TAG_FILE_NAME); in GetWantFileName() local
47 if (wp.IsEmpty()) { in GetWantFileName()
51 return wp.GetStringParam(TAG_FILE_NAME_VALUE); in GetWantFileName()
56 WantParams wp = param.GetWantParams(TAG_KEY_FD); in GetWantFileDescriptor() local
57 if (wp.IsEmpty()) { in GetWantFileDescriptor()
62 std::string type = wp.GetStringParam(TAG_KEY_FD_TYPE); in GetWantFileDescriptor()
67 return wp.GetIntParam(TAG_KEY_FD_VALUE, INVALID_FD); in GetWantFileDescriptor()
/base/notification/common_event_service/frameworks/core/src/
Dcommon_event_listener.cpp44 wptr<CommonEventListener> wp = this; in NotifyEvent() local
45 std::function<void()> onReceiveEventFunc = [wp, commonEventData, ordered, sticky] () { in NotifyEvent()
46 sptr<CommonEventListener> sThis = wp.promote(); in NotifyEvent()
/base/notification/distributed_notification_service/services/test/moduletest/mock/
Dmock_event_handler.cpp22 … const std::weak_ptr<EventHandler> &wp = std::make_shared<EventHandler>(EventRunner::Create(true)); in Current() local
23 return wp.lock(); in Current()
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dmock_event_handler.cpp22 … const std::weak_ptr<EventHandler> &wp = std::make_shared<EventHandler>(EventRunner::Create(true)); in Current() local
23 return wp.lock(); in Current()
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/
Dmock_event_handler.cpp22 … const std::weak_ptr<EventHandler> &wp = std::make_shared<EventHandler>(EventRunner::Create(true)); in Current() local
23 return wp.lock(); in Current()
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
Dmock_event_handler.cpp22 … const std::weak_ptr<EventHandler> &wp = std::make_shared<EventHandler>(EventRunner::Create(true)); in Current() local
23 return wp.lock(); in Current()
/base/hiviewdfx/hiview/base/
Dpipeline.cpp167 processors_.remove_if([plugin](std::weak_ptr<Plugin> wp) { in RemoveProcessor() argument
169 std::shared_ptr<Plugin> sp = wp.lock(); in RemoveProcessor()
/base/notification/eventhandler/frameworks/eventhandler/src/
Devent_runner.cpp285 static void ThreadMain(const std::weak_ptr<EventRunnerImpl> &wp) in ThreadMain() argument
287 std::shared_ptr<EventRunnerImpl> inner = wp.lock(); in ThreadMain()
383 const std::weak_ptr<EventRunner> &wp = currentEventRunner; in GetCurrentEventRunner() local
384 return wp.lock(); in GetCurrentEventRunner()
Devent_queue.cpp503 std::weak_ptr<FileDescriptorListener> wp = listener; in HandleFileDescriptorEvent() local
504 auto f = [fileDescriptor, events, wp]() { in HandleFileDescriptorEvent()
505 auto listener = wp.lock(); in HandleFileDescriptorEvent()
/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/
Dfreeze_detector_unittest.cpp634 auto wp = std::make_unique<WatchPoint>(watchPoint); variable
642 ASSERT_EQ(wp < wp1, true);
643 ASSERT_EQ(wp == wp1, false);
/base/print/print_fwk/services/src/
Dprint_service_ability.cpp209 AAFwk::WantParams wp; in BuildFDParam() local
210 wp.SetParam(TYPE_PROPERTY, AAFwk::String::Box(FD)); in BuildFDParam()
211 wp.SetParam(VALUE_PROPERTY, AAFwk::Integer::Box(fd)); in BuildFDParam()
213 ao->Set(index++, AAFwk::WantParamWrapper::Box(wp)); in BuildFDParam()