/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example4/ |
H A D | event_processor_example4.cpp | 65 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() 80 …GetHiviewContext()->PostUnorderedEvent(shared_from_this(), Event::Repack<Event, Event>(event, fals… in OnEvent() 83 if (GetHiviewContext() != nullptr) { in OnEvent() 84 … GetHiviewContext()->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 D | event_processor_example1.cpp | 66 if (GetHiviewContext() != nullptr) { in OnEvent() 67 … GetHiviewContext()->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 D | event_processor_example2.cpp | 69 if (GetHiviewContext() != nullptr) { in OnEvent() 70 … GetHiviewContext()->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 D | dynamic_load_plugin_example.cpp | 39 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 D | bundle_plugin_example2.cpp | 47 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 D | event_processor_example3.cpp | 59 if (GetHiviewContext() != nullptr) { in OnEvent() 60 … GetHiviewContext()->SetHiviewProperty("EPE3_OnEvent", "received : " + event->eventName_, true); in OnEvent()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/crash_validator/ |
H A D | crash_validator.cpp | 45 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 D | sysevent_source.cpp | 106 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 D | plugin_proxy.cpp | 92 if (plugin_ == nullptr && GetHiviewContext() != nullptr) { in LoadPluginIfNeed() 93 plugin_ = GetHiviewContext()->InstancePluginByProxy(shared_from_this()); in LoadPluginIfNeed()
|
H A D | pipeline.cpp | 124 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 D | bundle_plugin_example1.cpp | 46 GetHiviewContext()->SetHiviewProperty("BE1_OnEvent", "received : " + event->eventName_, true); in OnEvent()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/privacy_controller/ |
H A D | privacy_controller.cpp | 33 auto context = GetHiviewContext(); in InitAreaPolicy()
|
/ohos5.0/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_plugin_example3/ |
H A D | bundle_plugin_example3.cpp | 65 GetHiviewContext()->SetHiviewProperty("BE3_Listening", "received : " + msg.eventName_, true); in OnEventListeningCallback()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/sys_dispatcher/ |
H A D | sys_dispatcher.cpp | 43 …auto dispatchList = GetHiviewContext()->GetDisPatcherInfo(sysEvent->eventType_, sysEvent->eventNam… in DispatchEvent()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/unified_collector/ |
H A D | unified_collector.cpp | 305 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 D | fault_detector_manager.cpp | 99 workLoop_ = GetHiviewContext()->GetSharedWorkLoop(); in OnLoad()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/ |
H A D | faultlogger_unittest.cpp | 65 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 D | subsys-dfx-hiview.md | 101 | HiviewContext* GetHiviewContext() | 获取Hiview插件管理平台的上下文对象 …
|
/ohos5.0/base/hiviewdfx/hiview/ |
H A D | hiview_zh.md | 79 HiviewContext* GetHiviewContext(); 354 平台提供的功能在插件中可以通过调用GetHiviewContext()获得平台接口上下文。平台提供的主要的功能接口如下:
|
/ohos5.0/base/hiviewdfx/hiview/plugins/usage_event_report/ |
H A D | usage_event_report.cpp | 98 if (auto context = GetHiviewContext(); context != nullptr) { in Init()
|
/ohos5.0/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/ |
H A D | bbox_detector_plugin.cpp | 54 eventLoop_ = GetHiviewContext()->GetSharedWorkLoop(); in OnLoad()
|
/ohos5.0/base/hiviewdfx/hiview/base/include/ |
H A D | plugin.h | 118 HiviewContext* GetHiviewContext() in GetHiviewContext() function
|
/ohos5.0/base/hiviewdfx/hiview/plugins/eventlogger/ |
H A D | event_logger.cpp | 849 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 D | faultlogger.cpp | 642 mgr_ = std::make_unique<FaultLogManager>(GetHiviewContext()->GetSharedWorkLoop()); in OnLoad() 645 workLoop_ = GetHiviewContext()->GetSharedWorkLoop(); in OnLoad()
|
/ohos5.0/docs/en/device-dev/subsystems/ |
H A D | subsys-dfx-hiview.md | 101 | HiviewContext* GetHiviewContext() | Obtains the context of the Hiview …
|