/base/hiviewdfx/hiview/base/ |
D | plugin.cpp | 26 Plugin::~Plugin() in ~Plugin() 34 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() 49 bool Plugin::CanProcessMoreEvents() in CanProcessMoreEvents() 54 bool Plugin::OnEventProxy(std::shared_ptr<Event> event) in OnEventProxy() 86 void Plugin::DelayProcessEvent(std::shared_ptr<Event> event, uint64_t delay) in DelayProcessEvent() 94 auto task = std::bind(&Plugin::OnEventProxy, this, event); in DelayProcessEvent() 99 void Plugin::AddDispatchInfo(const std::unordered_set<uint8_t>& types, in AddDispatchInfo() 109 std::string Plugin::GetPluginInfo() in GetPluginInfo() [all …]
|
D | pipeline.cpp | 54 std::weak_ptr<Plugin> plugin = processors_.front(); in OnContinue() 107 void PipelineEvent::SetPipelineInfo(const std::string& pipelineName, std::list<std::weak_ptr<Plugin… in SetPipelineInfo() 118 void PipelineEvent::FillPipelineInfo(std::shared_ptr<Plugin> caller, const std::string& pipelineNam… in FillPipelineInfo() 147 std::weak_ptr<Plugin> plugin = processors_.front(); in CanProcessEvent() 160 void Pipeline::AppendProcessor(std::weak_ptr<Plugin> plugin) in AppendProcessor() 165 void Pipeline::RemoveProcessor(std::weak_ptr<Plugin> plugin) in RemoveProcessor() 167 processors_.remove_if([plugin](std::weak_ptr<Plugin> wp) { in RemoveProcessor() 168 std::shared_ptr<Plugin> cur = plugin.lock(); in RemoveProcessor() 169 std::shared_ptr<Plugin> sp = wp.lock(); in RemoveProcessor()
|
D | libhiviewbase.map | 14 "OHOS::HiviewDFX::Plugin::GetWorkLoop()"; 15 "OHOS::HiviewDFX::Plugin::GetName()"; 17 "OHOS::HiviewDFX::Plugin::BindWorkLoop(std::__h::shared_ptr<OHOS::HiviewDFX::EventLoop>)"; 20 …"OHOS::HiviewDFX::Plugin::SetName(std::__h::basic_string<char, std::__h::char_traits<char>, std::_… 34 "OHOS::HiviewDFX::Plugin::GetVersion()"; 39 "OHOS::HiviewDFX::Pipeline::AppendProcessor(std::__h::weak_ptr<OHOS::HiviewDFX::Plugin>)"; 50 "OHOS::HiviewDFX::Plugin::~Plugin()"; 53 "OHOS::HiviewDFX::Plugin::OnEvent(std::__h::shared_ptr<OHOS::HiviewDFX::Event>&)"; 54 "OHOS::HiviewDFX::Plugin::OnEventProxy(std::__h::shared_ptr<OHOS::HiviewDFX::Event>)"; 55 "OHOS::HiviewDFX::Plugin::CanProcessEvent(std::__h::shared_ptr<OHOS::HiviewDFX::Event>)"; [all …]
|
/base/hiviewdfx/hiview/base/include/ |
D | pipeline.h | 74 …void SetPipelineInfo(const std::string& pipelineName, std::list<std::weak_ptr<Plugin>>& processors… 86 static std::shared_ptr<PipelineEventType> RepackPipelineEvent(std::shared_ptr<Plugin> caller, in RepackPipelineEvent() 99 static void FillPipelineInfo(std::shared_ptr<Plugin> caller, const std::string& pipelineName, 106 std::list<std::weak_ptr<Plugin>> processors_; 115 virtual void PauseDispatch(std::weak_ptr<Plugin> plugin) = 0; 120 Pipeline(const std::string& name, std::list<std::weak_ptr<Plugin>>& processors) in Pipeline() 131 std::list<std::weak_ptr<Plugin>> GetProcessSequence() in GetProcessSequence() 135 void AppendProcessor(std::weak_ptr<Plugin> plugin); 136 void RemoveProcessor(std::weak_ptr<Plugin> plugin); 139 std::list<std::weak_ptr<Plugin>> processors_;
|
D | plugin.h | 34 class DllExport Plugin : public EventHandler, public std::enable_shared_from_this<Plugin> { 42 Plugin() : handle_(DynamicModuleDefault), context_(nullptr), useCount_(0) {}; in Plugin() function 43 virtual ~Plugin(); 199 …virtual void PostUnorderedEvent(std::shared_ptr<Plugin> plugin __UNUSED, std::shared_ptr<Event> ev… in PostUnorderedEvent() 205 …virtual bool PostSyncEventToTarget(std::shared_ptr<Plugin> caller __UNUSED, const std::string& cal… in PostSyncEventToTarget() 212 …virtual void PostAsyncEventToTarget(std::shared_ptr<Plugin> caller __UNUSED, const std::string& ca… in PostAsyncEventToTarget() 216 …virtual int32_t PostEventToRemote(std::shared_ptr<Plugin> caller __UNUSED, const std::string& devi… in PostEventToRemote() 224 virtual void RequestUnloadPlugin(std::shared_ptr<Plugin> caller __UNUSED) {}; in RequestUnloadPlugin() 238 …virtual std::list<std::weak_ptr<Plugin>> GetPipelineSequenceByName(const std::string& name __UNUSE… in GetPipelineSequenceByName() 240 return std::list<std::weak_ptr<Plugin>>(0); in GetPipelineSequenceByName() [all …]
|
D | plugin_factory.h | 28 PluginRegistInfo(std::function<std::shared_ptr<Plugin>()> getPluginObject, in PluginRegistInfo() 33 std::function<std::shared_ptr<Plugin>()> getPluginObject; 42 static std::shared_ptr<Plugin> GetPlugin(const std::string& name); 62 static std::shared_ptr<Plugin> GetObject() \
|
D | plugin_proxy.h | 28 class PluginProxy : public Plugin { 54 std::shared_ptr<Plugin> plugin_;
|
D | event_source.h | 25 class EventSource : public PipelineEventProducer, public Plugin {
|
/base/hiviewdfx/hiview/core/include/ |
D | hiview_platform.h | 48 void PostUnorderedEvent(std::shared_ptr<Plugin> plugin, std::shared_ptr<Event> event) override; 50 bool PostSyncEventToTarget(std::shared_ptr<Plugin> caller, const std::string& calleeName, 52 void PostAsyncEventToTarget(std::shared_ptr<Plugin> caller, const std::string& calleeName, 54 void RequestUnloadPlugin(std::shared_ptr<Plugin> caller) override; 55 std::list<std::weak_ptr<Plugin>> GetPipelineSequenceByName(const std::string& name) override; 63 int32_t PostEventToRemote(std::shared_ptr<Plugin> caller, const std::string& deviceId, 69 std::shared_ptr<Plugin> InstancePluginByProxy(std::shared_ptr<Plugin> proxy) override; 70 std::shared_ptr<Plugin> GetPluginByName(const std::string& name) override; 71 void AddDispatchInfo(std::weak_ptr<Plugin> plugin, const std::unordered_set<uint8_t>& types, 74 std::vector<std::weak_ptr<Plugin>> GetDisPatcherInfo(uint32_t type, [all …]
|
/base/hiviewdfx/hiview/ |
D | hiview_zh.md | 38 特定的插件是通过继承Plugin这个类实现特定的插件功能,其相对应的插件由多态的形式存在并且流转在插件管理平台中。 40 事件处理或者驱动插件根据不同需求,需要继承Plugin并且实现如下方法或者使用如下的接口: 42 class Plugin { 50 /* 运行期判断当前插件是否被加载,返回true是被需要被平台加载;false是将永远不会被平台加载。Plugin默认返回true */ 112 事件源是继承于EventSource实现特定的事件源功能。事件源也是一种特殊的插件,EventSource继承于[Plugin](#插件的定义)可以实现或者使用其中公共的方法。事件源作为事件的驱动者… 114 事件源需要继承EventSource这个类实现如下方法或者使用如下的接口,根据需求也需实现[Plugin](#插件的定义)类中的虚方法: 116 class EventSource : public PipelineEventProducer, public Plugin { 126 virtual void PauseDispatch(std::weak_ptr<Plugin> plugin); 363 void RegisterDynamicListenerInfo(std::weak_ptr<Plugin> listener); 366 void PostUnorderedEvent(std::shared_ptr<Plugin> plugin, std::shared_ptr<Event> event); [all …]
|
/base/hiviewdfx/hiview/base/test/unittest/common/ |
D | pipeline_test.h | 31 void BindWorkLoop(std::shared_ptr<OHOS::HiviewDFX::Plugin> plugin); 43 void PauseDispatch(std::weak_ptr<OHOS::HiviewDFX::Plugin> plugin __UNUSED) override in PauseDispatch()
|
D | plugin_factory_test.h | 30 static std::shared_ptr<OHOS::HiviewDFX::Plugin> GetObject() in GetObject()
|
D | pipeline_test.cpp | 30 void PipelineTest::BindWorkLoop(std::shared_ptr<OHOS::HiviewDFX::Plugin> plugin) in BindWorkLoop() 62 std::list<std::weak_ptr<Plugin>> pluginList; in DoTest() 192 std::list<std::weak_ptr<Plugin>> pluginList;
|
D | plugin_example.h | 30 class PluginExample : public Plugin {
|
/base/hiviewdfx/hiview/core/ |
D | hiview_platform.cpp | 390 std::shared_ptr<Plugin> plugin = nullptr; in CreatePlugin() 393 plugin->SetType(Plugin::PluginType::PROXY); in CreatePlugin() 421 std::list<std::weak_ptr<Plugin>> pluginList; in CreatePipeline() 458 …AddDispatchInfo(std::weak_ptr<Plugin>(plugin), dispatchConfig->typeList, dispatchConfig->eventList, in InitPlugin() 473 if (plugin->GetType() == Plugin::PluginType::PROXY && registInfo->needStartupLoading) { in InitPlugin() 567 std::list<std::weak_ptr<Plugin>> HiviewPlatform::GetPipelineSequenceByName(const std::string& name) in GetPipelineSequenceByName() 570 return std::list<std::weak_ptr<Plugin>>(); in GetPipelineSequenceByName() 577 return std::list<std::weak_ptr<Plugin>>(0); in GetPipelineSequenceByName() 580 void HiviewPlatform::PostUnorderedEvent(std::shared_ptr<Plugin> plugin, std::shared_ptr<Event> even… in PostUnorderedEvent() 614 bool HiviewPlatform::PostSyncEventToTarget(std::shared_ptr<Plugin> caller, const std::string& calle… in PostSyncEventToTarget() [all …]
|
/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example5/ |
D | event_processor_example5.h | 24 class EventProcessorExample5 : public Plugin {
|
/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_plugin_example2/ |
D | bundle_plugin_example2.h | 21 class BundlePluginExample2 : public Plugin {
|
/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_plugin_example1/ |
D | bundle_plugin_example1.h | 21 class BundlePluginExample1 : public Plugin {
|
/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_plugin_example3/ |
D | bundle_plugin_example3.h | 21 class BundlePluginExample3 : public Plugin {
|
/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example4/ |
D | event_processor_example4.h | 21 class EventProcessorExample4 : public Plugin {
|
/base/hiviewdfx/hiview/test/plugins/examples/dynamic_load_plugin_example/ |
D | dynamic_load_plugin_example.h | 20 class DynamicLoadPluginExample : public EventListener, public Plugin {
|
/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example1/ |
D | event_processor_example1.h | 21 class EventProcessorExample1 : public Plugin {
|
/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/ |
D | bbox_detector_plugin.h | 24 class BBoxDetectorPlugin : public Plugin {
|
/base/hiviewdfx/hiview/plugins/sys_dispatcher/include/ |
D | sys_dispatcher.h | 24 class SysEventDispatcher : public Plugin, public SysEventServiceBase {
|
/base/hiviewdfx/hiview/test/plugins/examples/event_processor_example2/ |
D | event_processor_example2.h | 21 class EventProcessorExample2 : public EventListener, public Plugin {
|