Home
last modified time | relevance | path

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

/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example4/
H A Devent_processor_example4.cpp65 if (GetHiviewContext() != nullptr) { in OnEvent()
67 GetHiviewContext()->PostUnorderedEvent(shared_from_this(), event); in OnEvent()
69 GetHiviewContext()->RequestUnloadPlugin(shared_from_this()); in OnEvent()
78 if (GetHiviewContext() != nullptr) { in OnEvent()
80GetHiviewContext()->PostUnorderedEvent(shared_from_this(), Event::Repack<Event, Event>(event, fals… in OnEvent()
83 if (GetHiviewContext() != nullptr) { in OnEvent()
84GetHiviewContext()->SetHiviewProperty("EPE4_OnEvent", "received : " + event->eventName_, true); in OnEvent()
103 GetHiviewContext()->SetHiviewProperty("EPE4_Listening", "received : " + msg.eventName_, true); in OnEventListeningCallback()
/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example1/
H A Devent_processor_example1.cpp66 if (GetHiviewContext() != nullptr) { in OnEvent()
67GetHiviewContext()->SetHiviewProperty("EPE1_OnEvent", "received : " + event->eventName_, true); in OnEvent()
79 if (GetHiviewContext() != nullptr) { in HandleEvent()
81 GetHiviewContext()->PostUnorderedEvent(shared_from_this(), event); in HandleEvent()
/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example2/
H A Devent_processor_example2.cpp69 if (GetHiviewContext() != nullptr) { in OnEvent()
70GetHiviewContext()->SetHiviewProperty("EPE2_OnEvent", "received : " + event->eventName_, true); in OnEvent()
82 GetHiviewContext()->RegisterUnorderedEventListener(ptr); in OnLoad()
93 GetHiviewContext()->SetHiviewProperty("EPE2_Listening", "received : " + msg.eventName_, true); in OnUnorderedEvent()
/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples/dynamic_load_plugin_example/
H A Ddynamic_load_plugin_example.cpp39 GetHiviewContext()->RegisterUnorderedEventListener(ptr); in OnLoad()
54 GetHiviewContext()->RequestUnloadPlugin(shared_from_this()); in OnUnorderedEvent()
58 GetHiviewContext()->SetHiviewProperty("DPE_Listening", "received : " + msg.eventName_, true); in OnUnorderedEvent()
/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_plugin_example2/
H A Dbundle_plugin_example2.cpp47 GetHiviewContext()->SetHiviewProperty("BE2_OnEvent", "received : " + event->eventName_, true); in OnEvent()
54 GetHiviewContext()->AppendPluginToPipeline(GetName(), "NormalPipeline"); in OnLoad()
/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example3/
H A Devent_processor_example3.cpp59 if (GetHiviewContext() != nullptr) { in OnEvent()
60GetHiviewContext()->SetHiviewProperty("EPE3_OnEvent", "received : " + event->eventName_, true); in OnEvent()
/ohos5.0/base/hiviewdfx/hiview/plugins/crash_validator/
H A Dcrash_validator.cpp45 if (GetHiviewContext() == nullptr) { in OnLoad()
50 GetHiviewContext()->AppendPluginToPipeline("CrashValidator", "faultloggerPipeline"); in OnLoad()
95 workLoop_ = GetHiviewContext()->GetSharedWorkLoop(); in InitWorkLoop()
/ohos5.0/base/hiviewdfx/hiview/plugins/sysevent_source/
H A Dsysevent_source.cpp106 std::shared_ptr<EventLoop> looper = GetHiviewContext()->GetSharedWorkLoop(); in OnLoad()
114 this->GetHiviewContext()->PostUnorderedEvent(shared_from_this(), event); in OnLoad()
140 auto context = GetHiviewContext(); in InitController()
183 auto context = GetHiviewContext(); in PublishPipelineEvent()
/ohos5.0/base/hiviewdfx/hiview/base/
H A Dplugin_proxy.cpp92 if (plugin_ == nullptr && GetHiviewContext() != nullptr) { in LoadPluginIfNeed()
93 plugin_ = GetHiviewContext()->InstancePluginByProxy(shared_from_this()); in LoadPluginIfNeed()
H A Dpipeline.cpp124 if (caller == nullptr || event == nullptr || caller->GetHiviewContext() == nullptr) { in FillPipelineInfo()
128 auto seq = caller->GetHiviewContext()->GetPipelineSequenceByName(pipelineName); in FillPipelineInfo()
/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_plugin_example1/
H A Dbundle_plugin_example1.cpp46 GetHiviewContext()->SetHiviewProperty("BE1_OnEvent", "received : " + event->eventName_, true); in OnEvent()
/ohos5.0/base/hiviewdfx/hiview/plugins/privacy_controller/
H A Dprivacy_controller.cpp33 auto context = GetHiviewContext(); in InitAreaPolicy()
/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_plugin_example3/
H A Dbundle_plugin_example3.cpp65 GetHiviewContext()->SetHiviewProperty("BE3_Listening", "received : " + msg.eventName_, true); in OnEventListeningCallback()
/ohos5.0/base/hiviewdfx/hiview/plugins/sys_dispatcher/
H A Dsys_dispatcher.cpp43 …auto dispatchList = GetHiviewContext()->GetDisPatcherInfo(sysEvent->eventType_, sysEvent->eventNam… in DispatchEvent()
/ohos5.0/base/hiviewdfx/hiview/plugins/unified_collector/
H A Dunified_collector.cpp305 if (GetHiviewContext() == nullptr) { in Init()
424 workLoop_ = GetHiviewContext()->GetSharedWorkLoop(); in InitWorkLoop()
429 …std::string hiviewWorkDir = GetHiviewContext()->GetHiViewDirectory(HiviewContext::DirectoryType::W… in InitWorkPath()
/ohos5.0/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/
H A Dfault_detector_manager.cpp99 workLoop_ = GetHiviewContext()->GetSharedWorkLoop(); in OnLoad()
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/
H A Dfaultlogger_unittest.cpp65 static HiviewContext& GetHiviewContext() in GetHiviewContext() function
84 plugin->SetHiviewContext(&GetHiviewContext()); in InitFaultloggerInstance()
109 GetHiviewContext(); in SetUp()
669 FaultLogDatabase *faultLogDb = new FaultLogDatabase(GetHiviewContext().GetSharedWorkLoop());
705 FaultLogDatabase *faultLogDb = new FaultLogDatabase(GetHiviewContext().GetSharedWorkLoop());
786 std::make_unique<FaultLogManager>(GetHiviewContext().GetSharedWorkLoop());
1519 FaultLogDatabase *faultLogDb = new FaultLogDatabase(GetHiviewContext().GetSharedWorkLoop());
/ohos5.0/docs/zh-cn/device-dev/subsystems/
H A Dsubsys-dfx-hiview.md101 | HiviewContext* GetHiviewContext() | 获取Hiview插件管理平台的上下文对象 …
/ohos5.0/base/hiviewdfx/hiview/
H A Dhiview_zh.md79 HiviewContext* GetHiviewContext();
354 平台提供的功能在插件中可以通过调用GetHiviewContext()获得平台接口上下文。平台提供的主要的功能接口如下:
/ohos5.0/base/hiviewdfx/hiview/plugins/usage_event_report/
H A Dusage_event_report.cpp98 if (auto context = GetHiviewContext(); context != nullptr) { in Init()
/ohos5.0/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/
H A Dbbox_detector_plugin.cpp54 eventLoop_ = GetHiviewContext()->GetSharedWorkLoop(); in OnLoad()
/ohos5.0/base/hiviewdfx/hiview/base/include/
H A Dplugin.h118 HiviewContext* GetHiviewContext() in GetHiviewContext() function
/ohos5.0/base/hiviewdfx/hiview/plugins/eventlogger/
H A Devent_logger.cpp849 auto context = GetHiviewContext(); in ReportUserPanicWarning()
909 auto context = GetHiviewContext(); in OnLoad()
990 auto context = GetHiviewContext(); in ProcessRebootEvent()
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/service/
H A Dfaultlogger.cpp642 mgr_ = std::make_unique<FaultLogManager>(GetHiviewContext()->GetSharedWorkLoop()); in OnLoad()
645 workLoop_ = GetHiviewContext()->GetSharedWorkLoop(); in OnLoad()
/ohos5.0/docs/en/device-dev/subsystems/
H A Dsubsys-dfx-hiview.md101 | HiviewContext* GetHiviewContext() | Obtains the context of the Hiview …