/base/notification/eventhandler/frameworks/eventhandler/src/ |
D | event_handler.cpp | 39 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 …]
|
D | native_implement_eventhandler.cpp | 118 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/ |
D | medical_data_channel.cpp | 38 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/ |
D | dump_manager_cpu_service.cpp | 99 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()
|
D | dump_manager_service.cpp | 275 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/ |
D | native_implement_eventhandler.h | 83 std::shared_ptr<EventRunner> eventRunner_ = nullptr;
|
D | event_handler.h | 880 return eventRunner_; in GetEventRunner() 959 std::shared_ptr<EventRunner> eventRunner_; variable
|
/base/sensors/medical_sensor/frameworks/native/medical_sensor/include/ |
D | medical_sensor_data_channel.h | 47 static std::shared_ptr<AppExecFwk::EventRunner> eventRunner_; variable
|
/base/notification/distributed_notification_service/services/test/moduletest/mock/ |
D | mock_event_handler.cpp | 26 EventHandler::EventHandler(const std::shared_ptr<EventRunner> &runner) : eventRunner_(runner) in EventHandler()
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/ |
D | mock_event_handler.cpp | 26 EventHandler::EventHandler(const std::shared_ptr<EventRunner> &runner) : eventRunner_(runner) in EventHandler()
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/ |
D | mock_event_handler.cpp | 26 EventHandler::EventHandler(const std::shared_ptr<EventRunner> &runner) : eventRunner_(runner) in EventHandler()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/ |
D | mock_event_handler.cpp | 26 EventHandler::EventHandler(const std::shared_ptr<EventRunner> &runner) : eventRunner_(runner) in EventHandler()
|
/base/hiviewdfx/hidumper/services/native/include/ |
D | dump_manager_cpu_service.h | 70 std::shared_ptr<AppExecFwk::EventRunner> eventRunner_{nullptr};
|
D | dump_manager_service.h | 88 std::shared_ptr<AppExecFwk::EventRunner> eventRunner_; variable
|
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/ |
D | lib_event_handler_event_test.cpp | 508 eventRunnerNativeImplement->eventRunner_ = EventRunner::Create(false); 523 eventRunnerNativeImplement->eventRunner_ = EventRunner::Create(false);
|
/base/usb/usb_manager/services/native/src/ |
D | usb_service.cpp | 179 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/ |
D | usb_service.h | 154 std::shared_ptr<AppExecFwk::EventRunner> eventRunner_; variable
|