Home
last modified time | relevance | path

Searched refs:Event (Results 1 – 25 of 93) sorted by relevance

1234

/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example4/
Devent_processor_example4.cpp39 bool EventProcessorExample4::CanProcessEvent(std::shared_ptr<Event> event) in CanProcessEvent()
41 if (event->messageType_ == Event::MessageType::FAULT_EVENT && in CanProcessEvent()
46 if (event->messageType_ == Event::MessageType::FAULT_EVENT && in CanProcessEvent()
54 bool EventProcessorExample4::OnEvent(std::shared_ptr<Event>& event) in OnEvent()
80 …GetHiviewContext()->PostUnorderedEvent(shared_from_this(), Event::Repack<Event, Event>(event, fals… in OnEvent()
100 void EventProcessorExample4::OnEventListeningCallback(const Event &msg) in OnEventListeningCallback()
Devent_processor_example4.h25 bool CanProcessEvent(std::shared_ptr<Event> event) override;
26 bool OnEvent(std::shared_ptr<Event>& event) override;
29 void OnEventListeningCallback(const Event &msg) override;
/base/hiviewdfx/hiview/base/include/
Devent_dispatch_queue.h32 EventDispatchQueue(const std::string& name, Event::ManageType type, HiviewContext* context_);
37 void Enqueue(std::shared_ptr<Event> event);
46 void ProcessUnorderedEvent(const Event &event);
51 Event::ManageType type_;
55 std::list<std::shared_ptr<Event>> pendingEvents_;
Devent.h32 class DllExport Event : public std::enable_shared_from_this<Event> {
34 explicit Event(const std::string &sender) in Event() function
60 explicit Event(const std::string &sender, const std::string &name) in Event() function
86 virtual ~Event() {}; in ~Event()
201 static std::shared_ptr<Derived> DownCastTo(std::shared_ptr<Event> event) in DownCastTo()
208 static std::shared_ptr<Derived> Repack(std::shared_ptr<Event>& event, bool replace = true)
228 virtual bool OnEvent(std::shared_ptr<Event>& event) = 0;
229 virtual bool OnEventProxy(std::shared_ptr<Event> event) in OnEventProxy()
234 virtual bool CanProcessEvent(std::shared_ptr<Event> event __UNUSED) in CanProcessEvent()
239 virtual bool IsInterestedPipelineEvent(std::shared_ptr<Event> event __UNUSED) in IsInterestedPipelineEvent()
[all …]
Dplugin.h46 virtual bool OnEvent(std::shared_ptr<Event>& event) override;
51 virtual bool CanProcessEvent(std::shared_ptr<Event> event) override;
56 virtual bool IsInterestedPipelineEvent(std::shared_ptr<Event> event) override;
58 bool OnEventProxy(std::shared_ptr<Event> event) override;
83 virtual std::shared_ptr<Event> GetEvent(Event::MessageType type) in GetEvent()
85 auto event = std::make_shared<Event>(name_); in GetEvent()
94 virtual void OnEventListeningCallback(const Event &msg) in OnEventListeningCallback()
105 void DelayProcessEvent(std::shared_ptr<Event> event, uint64_t delay);
199 …virtual void PostUnorderedEvent(std::shared_ptr<Plugin> plugin __UNUSED, std::shared_ptr<Event> ev… in PostUnorderedEvent()
206 std::shared_ptr<Event> event __UNUSED) in PostSyncEventToTarget()
[all …]
/base/hiviewdfx/hiview/test/plugins/examples/dynamic_load_plugin_example/
Ddynamic_load_plugin_example.cpp25 bool DynamicLoadPluginExample::OnEvent(std::shared_ptr<Event>& event) in OnEvent()
36 AddListenerInfo(Event::PLUGIN_MAINTENANCE, {"event_test1"}); in OnLoad()
40 AddListenerInfo(OHOS::HiviewDFX::Event::MessageType::RAW_EVENT); in OnLoad()
41 AddListenerInfo(OHOS::HiviewDFX::Event::MessageType::SYS_EVENT, {"testbb"}); in OnLoad()
49 void DynamicLoadPluginExample::OnUnorderedEvent(const Event &msg) in OnUnorderedEvent()
/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example1/
Devent_processor_example1.cpp37 bool EventProcessorExample1::CanProcessEvent(std::shared_ptr<Event> event) in CanProcessEvent()
44 if (event->messageType_ == Event::MessageType::FAULT_EVENT && in CanProcessEvent()
49 if (event->messageType_ == Event::MessageType::FAULT_EVENT && in CanProcessEvent()
54 if (event->messageType_ == Event::MessageType::FAULT_EVENT && in CanProcessEvent()
63 bool EventProcessorExample1::OnEvent(std::shared_ptr<Event>& event) in OnEvent()
74 void EventProcessorExample1::HandleEvent(std::shared_ptr<Event>& event) in HandleEvent()
Devent_processor_example1.h25 bool CanProcessEvent(std::shared_ptr<Event> event) override;
26 bool OnEvent(std::shared_ptr<Event>& event) override;
31 void HandleEvent(std::shared_ptr<Event>& event);
/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/test/moduletest/
Dbbox_detector_module_test.cpp64 shared_ptr<Event> event = dynamic_pointer_cast<Event>(sysEvent);
99 shared_ptr<Event> event = dynamic_pointer_cast<Event>(sysEvent);
134 shared_ptr<Event> event = dynamic_pointer_cast<Event>(sysEvent);
168 shared_ptr<Event> event = dynamic_pointer_cast<Event>(sysEvent);
/base/hiviewdfx/hiview/plugins/faultlogger/service/
Dfaultlogger.h48 bool OnEvent(std::shared_ptr<Event> &event) override;
49 bool IsInterestedPipelineEvent(std::shared_ptr<Event> event) override;
50 bool CanProcessEvent(std::shared_ptr<Event> event) override;
65 void OnUnorderedEvent(const Event &msg) override;
70 void AddFaultLogIfNeed(FaultLogInfo& info, std::shared_ptr<Event> event);
74 bool JudgmentRateLimiting(std::shared_ptr<Event> event);
/base/hiviewdfx/hiview/base/
Devent.cpp24 void Event::SetValue(const std::string &name, const std::string &value) in SetValue()
32 const std::string Event::GetValue(const std::string &name) const in GetValue()
41 void Event::SetValue(const std::string &name, int32_t value) in SetValue()
50 int32_t Event::GetIntValue(const std::string &name) const in GetIntValue()
61 void Event::ResetTimestamp() in ResetTimestamp()
66 void Event::SetKeyValuePairs(std::map<std::string, std::string> keyValuePairs) in SetKeyValuePairs()
71 std::map<std::string, std::string> Event::GetKeyValuePairs() const in GetKeyValuePairs()
Devent_dispatch_queue.cpp31 EventDispatchQueue::EventDispatchQueue(const std::string& name, Event::ManageType type, HiviewConte… in EventDispatchQueue()
49 std::shared_ptr<Event> event = nullptr; in Run()
66 if (type_ == Event::ManageType::UNORDERED) { in Run()
76 void EventDispatchQueue::ProcessUnorderedEvent(const Event& event) in ProcessUnorderedEvent()
111 void EventDispatchQueue::Enqueue(std::shared_ptr<Event> event) in Enqueue()
Dplugin.cpp34 bool Plugin::OnEvent(std::shared_ptr<Event>& event __UNUSED) in OnEvent()
39 bool Plugin::CanProcessEvent(std::shared_ptr<Event> event __UNUSED) in CanProcessEvent()
44 bool Plugin::IsInterestedPipelineEvent(std::shared_ptr<Event> event __UNUSED) in IsInterestedPipelineEvent()
54 bool Plugin::OnEventProxy(std::shared_ptr<Event> event) in OnEventProxy()
60 std::shared_ptr<Event> dupEvent = event; in OnEventProxy()
86 void Plugin::DelayProcessEvent(std::shared_ptr<Event> event, uint64_t delay) in DelayProcessEvent()
/base/hiviewdfx/hiview/core/test/unittest/common/
Devent_dispatch_queue_test.cpp37 std::shared_ptr<Event> EventDispatchQueueTest::CreateEvent(const std::string& name, int32_t id, in CreateEvent()
38 … const std::string& message, Event::MessageType type) in CreateEvent()
40 auto event = std::make_shared<Event>(name); in CreateEvent()
47 void ExtendEventListener::OnUnorderedEvent(const OHOS::HiviewDFX::Event& msg) in OnUnorderedEvent()
72 …auto unorderQueue = std::make_shared<EventDispatchQueue>("test1", Event::ManageType::UNORDERED, &p…
/base/hiviewdfx/hiview/plugins/sys_dispatcher/
Dsys_dispatcher.cpp32 auto notifyFunc = [&] (std::shared_ptr<Event> event) -> void { in OnLoad()
57 std::shared_ptr<SysEvent> SysEventDispatcher::Convert2SysEvent(std::shared_ptr<Event>& event) in Convert2SysEvent()
63 if (event->messageType_ != Event::MessageType::SYS_EVENT) { in Convert2SysEvent()
67 std::shared_ptr<SysEvent> sysEvent = Event::DownCastTo<SysEvent>(event); in Convert2SysEvent()
74 bool SysEventDispatcher::OnEvent(std::shared_ptr<Event> &event) in OnEvent()
/base/hiviewdfx/hiview/plugins/freeze_detector/
Dfreeze_detector_plugin.h35 bool OnEvent(std::shared_ptr<Event> &event) override;
38 bool CanProcessEvent(std::shared_ptr<Event> event) override;
39 void OnEventListeningCallback(const Event& msg) override;
43 WatchPoint MakeWatchPoint(const Event& event);
/base/hiviewdfx/hiview/base/test/unittest/common/
Devent_loop_test.cpp66 bool RealEventHandler::OnEvent(std::shared_ptr<Event>& event) in OnEvent()
86 bool OverheadCalculateEventHandler::OnEvent(std::shared_ptr<Event>& event) in OnEvent()
177 auto event1 = std::make_shared<Event>("test1");
202 auto event1 = std::make_shared<Event>("test1");
203 auto event2 = std::make_shared<Event>("test2");
204 auto event3 = std::make_shared<Event>("test3");
205 auto event4 = std::make_shared<Event>("test4");
206 auto event5 = std::make_shared<Event>("test5");
207 auto event6 = std::make_shared<Event>("test6");
208 auto event7 = std::make_shared<Event>("test7");
[all …]
Devent_base_test.cpp48 bool TestEventHandler::OnEvent(std::shared_ptr<OHOS::HiviewDFX::Event>& event) in OnEvent()
56 void TestEventListener::OnUnorderedEvent(const Event& event) in OnUnorderedEvent()
58 ASSERT_TRUE(event.messageType_ == Event::MessageType::NONE); in OnUnorderedEvent()
90 std::shared_ptr<Event> event = std::make_shared<Event>("");
105 Event event("");
136 Event event("");
/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_plugin_example3/
Dbundle_plugin_example3.h25 bool CanProcessEvent(std::shared_ptr<Event> event) override;
26 bool OnEvent(std::shared_ptr<Event>& event) override;
29 void OnEventListeningCallback(const Event &msg) override;
Dbundle_plugin_example3.cpp39 bool BundlePluginExample3::CanProcessEvent(std::shared_ptr<Event> event) in CanProcessEvent()
44 bool BundlePluginExample3::OnEvent(std::shared_ptr<Event>& event) in OnEvent()
62 void BundlePluginExample3::OnEventListeningCallback(const Event &msg) in OnEventListeningCallback()
/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example2/
Devent_processor_example2.cpp39 bool EventProcessorExample2::CanProcessEvent(std::shared_ptr<Event> event) in CanProcessEvent()
44 bool EventProcessorExample2::OnEvent(std::shared_ptr<Event>& event) in OnEvent()
61 … auto repackEvent = PipelineEvent::RepackPipelineEvent<Event, PipelineEvent>(shared_from_this(), in OnEvent()
81 AddListenerInfo(OHOS::HiviewDFX::Event::MessageType::RAW_EVENT); in OnLoad()
90 void EventProcessorExample2::OnUnorderedEvent(const Event &msg) in OnUnorderedEvent()
Devent_processor_example2.h25 bool CanProcessEvent(std::shared_ptr<Event> event) override;
26 bool OnEvent(std::shared_ptr<Event>& event) override;
29 void OnUnorderedEvent(const Event &msg) override;
/base/hiviewdfx/hiview/include/
Dplugin_extra_info.h37 class CapacityPublishEvent : public Event {
40 : Event(sender), pluginCapacity_(pluginCapacityInfo) {}; in CapacityPublishEvent()
45 class CapacityObtainEvent : public Event {
48 : Event(plugin), plugin_(plugin), capacity_(capacity) {}; in CapacityObtainEvent()
/base/hiviewdfx/hiview/plugins/eventlogger/test/unittest/common/
Devent_logger_plugin_test.cpp71 std::shared_ptr<Event> event = nullptr;
86 std::shared_ptr<Event> event = std::make_shared<Event>("Eventlogger002");
101 std::shared_ptr<Event> event = std::make_shared<Event>("Eventlogger003");
153 std::shared_ptr<Event> event = nullptr;
178 std::shared_ptr<Event> onEvent = std::static_pointer_cast<Event>(event);
204 std::shared_ptr<Event> onEvent = std::static_pointer_cast<Event>(event);
230 std::shared_ptr<Event> onEvent = event;
262 std::shared_ptr<Event> onEvent = event;
/base/hiviewdfx/hiview/plugins/event_store/
Dsys_event_store.cpp64 std::shared_ptr<SysEvent> SysEventStore::Convert2SysEvent(std::shared_ptr<Event>& event) in Convert2SysEvent()
70 if (event->messageType_ != Event::MessageType::SYS_EVENT) { in Convert2SysEvent()
74 std::shared_ptr<SysEvent> sysEvent = Event::DownCastTo<SysEvent>(event); in Convert2SysEvent()
81 bool SysEventStore::OnEvent(std::shared_ptr<Event>& event) in OnEvent()

1234