/base/hiviewdfx/hiview/base/ |
D | plugin.cpp | 25 Plugin::~Plugin() in ~Plugin() 33 bool Plugin::OnEvent(std::shared_ptr<Event>& event __UNUSED) in OnEvent() 38 bool Plugin::CanProcessEvent(std::shared_ptr<Event> event __UNUSED) in CanProcessEvent() 43 bool Plugin::IsInterestedPipelineEvent(std::shared_ptr<Event> event __UNUSED) in IsInterestedPipelineEvent() 48 bool Plugin::CanProcessMoreEvents() in CanProcessMoreEvents() 53 bool Plugin::OnEventProxy(std::shared_ptr<Event> event) in OnEventProxy() 85 void Plugin::DelayProcessEvent(std::shared_ptr<Event> event, uint64_t delay) in DelayProcessEvent() 93 auto task = std::bind(&Plugin::OnEventProxy, this, event); in DelayProcessEvent() 98 void Plugin::AddEventListenerInfo(uint32_t type, const EventListener::EventIdRange& range) in AddEventListenerInfo() 109 void Plugin::AddEventListenerInfo(uint32_t type, const std::set<EventListener::EventIdRange> &liste… in AddEventListenerInfo() [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::_… 26 … "OHOS::HiviewDFX::EventDispatcher::RegisterListener(std::__h::weak_ptr<OHOS::HiviewDFX::Plugin>)"; 36 "OHOS::HiviewDFX::Plugin::GetVersion()"; 41 "OHOS::HiviewDFX::Pipeline::AppendProcessor(std::__h::weak_ptr<OHOS::HiviewDFX::Plugin>)"; 53 "OHOS::HiviewDFX::Plugin::~Plugin()"; 56 "OHOS::HiviewDFX::Plugin::OnEvent(std::__h::shared_ptr<OHOS::HiviewDFX::Event>&)"; 57 "OHOS::HiviewDFX::Plugin::OnEventProxy(std::__h::shared_ptr<OHOS::HiviewDFX::Event>)"; [all …]
|
/base/hiviewdfx/hiview/base/include/ |
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(); 203 std::weak_ptr<Plugin> plugin; 211 …virtual void PostUnorderedEvent(std::shared_ptr<Plugin> plugin __UNUSED, std::shared_ptr<Event> ev… in PostUnorderedEvent() 217 virtual void RegisterDynamicListenerInfo(std::weak_ptr<Plugin> listener __UNUSED) {}; in RegisterDynamicListenerInfo() 220 …virtual bool PostSyncEventToTarget(std::shared_ptr<Plugin> caller __UNUSED, const std::string& cal… in PostSyncEventToTarget() 227 …virtual void PostAsyncEventToTarget(std::shared_ptr<Plugin> caller __UNUSED, const std::string& ca… in PostAsyncEventToTarget() 231 …virtual int32_t PostEventToRemote(std::shared_ptr<Plugin> caller __UNUSED, const std::string& devi… in PostEventToRemote() 239 virtual void RequestUnloadPlugin(std::shared_ptr<Plugin> caller __UNUSED) {}; in RequestUnloadPlugin() [all …]
|
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_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 | event_dispatcher.h | 36 void RegisterListener(std::weak_ptr<Plugin> listener); 42 std::map<uint32_t, std::list<std::weak_ptr<Plugin>>> channelPlugin_;
|
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/ |
D | hiview_platform.h | 45 void PostUnorderedEvent(std::shared_ptr<Plugin> plugin, std::shared_ptr<Event> event) override; 47 void RegisterDynamicListenerInfo(std::weak_ptr<Plugin> listener) override; 48 bool PostSyncEventToTarget(std::shared_ptr<Plugin> caller, const std::string& calleeName, 50 void PostAsyncEventToTarget(std::shared_ptr<Plugin> caller, const std::string& calleeName, 52 void RequestUnloadPlugin(std::shared_ptr<Plugin> caller) override; 53 std::list<std::weak_ptr<Plugin>> GetPipelineSequenceByName(const std::string& name) override; 61 int32_t PostEventToRemote(std::shared_ptr<Plugin> caller, const std::string& deviceId, 66 std::shared_ptr<Plugin> InstancePluginByProxy(std::shared_ptr<Plugin> proxy) override; 67 std::shared_ptr<Plugin> GetPluginByName(const std::string& name) override; 68 void AddListenerInfo(uint32_t type, std::weak_ptr<Plugin> plugin, [all …]
|
D | hiview_platform.cpp | 384 std::shared_ptr<Plugin> plugin = nullptr; in CreatePlugin() 387 plugin->SetType(Plugin::PluginType::PROXY); in CreatePlugin() 415 std::list<std::weak_ptr<Plugin>> pluginList; in CreatePipeline() 454 if (plugin->GetType() == Plugin::PluginType::PROXY && registInfo->needStartupLoading) { in InitPlugin() 548 std::list<std::weak_ptr<Plugin>> HiviewPlatform::GetPipelineSequenceByName(const std::string& name) in GetPipelineSequenceByName() 551 return std::list<std::weak_ptr<Plugin>>(); in GetPipelineSequenceByName() 558 return std::list<std::weak_ptr<Plugin>>(0); in GetPipelineSequenceByName() 561 void HiviewPlatform::PostUnorderedEvent(std::shared_ptr<Plugin> plugin, std::shared_ptr<Event> even… in PostUnorderedEvent() 600 …std::map<std::string, std::shared_ptr<Plugin>>::iterator it = pluginMap_.find(ENGINE_EVENT_DISPATC… in RegisterUnorderedEventListener() 607 void HiviewPlatform::RegisterDynamicListenerInfo(std::weak_ptr<Plugin> plugin) in RegisterDynamicListenerInfo() [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/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/include/ |
D | engine_event_dispatcher.h | 27 class EngineEventDispatcher : public EventDispatcher, 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/test/plugins/examples/event_processor_example2/ |
D | event_processor_example2.h | 21 class EventProcessorExample2 : public EventListener, public Plugin {
|