Home
last modified time | relevance | path

Searched refs:eventRunner_ (Results 1 – 17 of 17) sorted by relevance

/base/notification/eventhandler/frameworks/eventhandler/src/
Devent_handler.cpp39 EventHandler::EventHandler(const std::shared_ptr<EventRunner> &runner) : eventRunner_(runner) in EventHandler()
44 if (eventRunner_) { in ~EventHandler()
50 eventRunner_->GetEventQueue()->RemoveOrphan(); in ~EventHandler()
61 if (!eventRunner_) { in SendEvent()
84 eventRunner_->GetEventQueue()->Insert(event, priority); in SendEvent()
109 if ((!eventRunner_) || (!eventRunner_->IsRunning())) { in SendSyncEvent()
115 if (eventRunner_ == EventRunner::Current()) { in SendSyncEvent()
141 if (!eventRunner_) { in RemoveAllEvents()
146 eventRunner_->GetEventQueue()->Remove(shared_from_this()); in RemoveAllEvents()
151 if (!eventRunner_) { in RemoveEvent()
[all …]
Dnative_implement_eventhandler.cpp118 eventRunner_ = EventRunner::Current(); in EventRunnerNativeImplement()
120 eventRunner_ = EventRunner::Create(false); in EventRunnerNativeImplement()
126 eventRunner_ = nullptr; in ~EventRunnerNativeImplement()
141 if (eventRunner_ != nullptr) { in RunEventRunnerNativeObj()
142 return eventRunner_->Run(); in RunEventRunnerNativeObj()
149 if (eventRunner_ != nullptr) { in StopEventRunnerNativeObj()
150 return eventRunner_->Stop(); in StopEventRunnerNativeObj()
159 return eventRunner_->GetEventQueue()->AddFileDescriptorListener( in AddFileDescriptorListener()
165 eventRunner_->GetEventQueue()->RemoveFileDescriptorListener(fileDescriptor); in RemoveFileDescriptorListener()
/base/sensors/medical_sensor/frameworks/native/medical_sensor/src/
Dmedical_data_channel.cpp38 std::shared_ptr<AppExecFwk::EventRunner> MedicalSensorDataChannel::eventRunner_; member in OHOS::Sensors::MedicalSensorDataChannel
105 eventRunner_ = myRunner; in InnerSensorDataChannel()
113 int32_t runResult = eventRunner_->Run(); in InnerSensorDataChannel()
124 if (eventHandler_ == nullptr || eventRunner_ == nullptr) { in DestroySensorDataChannel()
131 eventRunner_->Stop(); in DestroySensorDataChannel()
132 eventRunner_ = nullptr; in DestroySensorDataChannel()
/base/hiviewdfx/hidumper/services/native/src/
Ddump_manager_cpu_service.cpp99 handler_ = std::make_shared<DumpEventHandler>(eventRunner_, dumpManagerCpuService); in GetHandler()
143 if (eventRunner_ == nullptr) { in EventHandlerInit()
144 eventRunner_ = AppExecFwk::EventRunner::Create(DUMPMGR_CPU_SERVICE_NAME); in EventHandlerInit()
145 if (eventRunner_ == nullptr) { in EventHandlerInit()
150 eventRunner_->Run(); in EventHandlerInit()
155 handler_ = std::make_shared<DumpEventHandler>(eventRunner_, dumpManagerCpuService); in EventHandlerInit()
168 if (eventRunner_ == nullptr) { in SendImmediateEvent()
169 eventRunner_ = AppExecFwk::EventRunner::Create(DUMPMGR_CPU_SERVICE_NAME); in SendImmediateEvent()
170 if (eventRunner_ == nullptr) { in SendImmediateEvent()
178 handler_ = std::make_shared<DumpEventHandler>(eventRunner_, dumpManagerCpuService); in SendImmediateEvent()
Ddump_manager_service.cpp275 if (!eventRunner_) { in Init()
276 eventRunner_ = AppExecFwk::EventRunner::Create(DUMPMGR_SERVICE_NAME); in Init()
277 if (eventRunner_ == nullptr) { in Init()
283 handler_ = std::make_shared<AppExecFwk::EventHandler>(eventRunner_); in Init()
/base/notification/eventhandler/interfaces/inner_api/
Dnative_implement_eventhandler.h83 std::shared_ptr<EventRunner> eventRunner_ = nullptr;
Devent_handler.h880 return eventRunner_; in GetEventRunner()
959 std::shared_ptr<EventRunner> eventRunner_; variable
/base/sensors/medical_sensor/frameworks/native/medical_sensor/include/
Dmedical_sensor_data_channel.h47 static std::shared_ptr<AppExecFwk::EventRunner> eventRunner_; variable
/base/notification/distributed_notification_service/services/test/moduletest/mock/
Dmock_event_handler.cpp26 EventHandler::EventHandler(const std::shared_ptr<EventRunner> &runner) : eventRunner_(runner) in EventHandler()
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dmock_event_handler.cpp26 EventHandler::EventHandler(const std::shared_ptr<EventRunner> &runner) : eventRunner_(runner) in EventHandler()
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/
Dmock_event_handler.cpp26 EventHandler::EventHandler(const std::shared_ptr<EventRunner> &runner) : eventRunner_(runner) in EventHandler()
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
Dmock_event_handler.cpp26 EventHandler::EventHandler(const std::shared_ptr<EventRunner> &runner) : eventRunner_(runner) in EventHandler()
/base/hiviewdfx/hidumper/services/native/include/
Ddump_manager_cpu_service.h70 std::shared_ptr<AppExecFwk::EventRunner> eventRunner_{nullptr};
Ddump_manager_service.h88 std::shared_ptr<AppExecFwk::EventRunner> eventRunner_; variable
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/
Dlib_event_handler_event_test.cpp508 eventRunnerNativeImplement->eventRunner_ = EventRunner::Create(false);
523 eventRunnerNativeImplement->eventRunner_ = EventRunner::Create(false);
/base/usb/usb_manager/services/native/src/
Dusb_service.cpp179 if (!eventRunner_) { in Init()
180 eventRunner_ = AppExecFwk::EventRunner::Create(USB_SERVICE_NAME); in Init()
181 if (eventRunner_ == nullptr) { in Init()
187 handler_ = std::make_shared<UsbServerEventHandler>(eventRunner_, g_serviceInstance); in Init()
237 eventRunner_.reset(); in OnStop()
/base/usb/usb_manager/services/native/include/
Dusb_service.h154 std::shared_ptr<AppExecFwk::EventRunner> eventRunner_; variable