Home
last modified time | relevance | path

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

123

/base/customization/enterprise_device_management/test/unittest/src/
Diplugin_template_test.cpp40 … std::shared_ptr<IPlugin> plugin = PluginManager::GetInstance()->GetPluginByFuncCode(funcCode); variable
41 ASSERT_TRUE(plugin != nullptr);
42 ASSERT_TRUE(plugin->GetCode() == policyCode);
56 std::shared_ptr<IPlugin> plugin = PluginManager::GetInstance()->GetPluginByFuncCode(funcCode); variable
57 ASSERT_TRUE(plugin != nullptr);
58 ASSERT_TRUE(plugin->GetPermission() == "ohos.permission.EDM_TEST_PERMISSION");
59 ASSERT_TRUE(plugin->GetPolicyName() == "InitAttributePlg");
60 ASSERT_TRUE(plugin->GetCode() == 20);
74 std::shared_ptr<IPlugin> plugin; variable
80 plugin = PluginManager::GetInstance()->GetPluginByFuncCode(funcCode);
[all …]
Dplugin_manager_test.cpp59 std::shared_ptr<IPlugin> plugin = PluginManager::GetInstance()->GetPluginByFuncCode( variable
61 ASSERT_TRUE(plugin != nullptr);
62 ASSERT_TRUE(plugin->GetPolicyName() == "TestPlugin");
74 …std::shared_ptr<IPlugin> plugin = PluginManager::GetInstance()->GetPluginByPolicyName("TestPlugin"… variable
75 ASSERT_TRUE(plugin != nullptr);
76 ASSERT_TRUE(plugin->GetCode() == 0);
/base/hiviewdfx/hiview/base/test/unittest/common/
Dplugin_factory_test.cpp36 auto plugin = PluginFactory::GetGlobalPluginInfo("PluginExample"); variable
37 ASSERT_NE(plugin.get(), nullptr);
38 auto examplePlugin = std::static_pointer_cast<PluginExample>(plugin->getPluginObject());
54 auto plugin = PluginFactory::GetGlobalPluginInfo("PluginExample2"); variable
55 ASSERT_EQ(plugin, nullptr);
58 plugin = PluginFactory::GetGlobalPluginInfo("PluginExample2");
59 ASSERT_NE(plugin, nullptr);
60 auto examplePlugin = std::static_pointer_cast<PluginExample>(plugin->getPluginObject());
Devent_dispatcher_test.cpp83 …void AddListenerInfo(uint32_t type, std::weak_ptr<Plugin> plugin, const std::set<std::string>& eve… in AddListenerInfo() argument
86 if (auto sp = plugin.lock(); sp != nullptr) { in AddListenerInfo()
146 auto plugin = std::make_shared<TestPlugin>(); in CreatePlugin() local
148 plugin->SetHiviewContext(&pluginContext); in CreatePlugin()
149 plugin->SetName(TEST_PLUGIN_NAME); in CreatePlugin()
151 plugin->AddEventListenerInfo(TEST_EVENT_TYPE, listenerInfo); in CreatePlugin()
152 return plugin; in CreatePlugin()
216 auto plugin = CreatePlugin(); variable
217 dispatcher.RegisterListener(plugin);
220 ASSERT_EQ(plugin->GetTestMsg(), TEST_EVENT_NAME);
[all …]
Dpipeline_test.cpp30 void PipelineTest::BindWorkLoop(std::shared_ptr<OHOS::HiviewDFX::Plugin> plugin) in BindWorkLoop() argument
32 if (plugin != nullptr && plugin->GetWorkLoop() == nullptr) { in BindWorkLoop()
33 auto eventLoop = std::make_shared<EventLoop>(plugin->GetName()); in BindWorkLoop()
36 plugin->BindWorkLoop(eventLoop); in BindWorkLoop()
Dpipeline_test.h31 void BindWorkLoop(std::shared_ptr<OHOS::HiviewDFX::Plugin> plugin);
43 void PauseDispatch(std::weak_ptr<OHOS::HiviewDFX::Plugin> plugin __UNUSED) override in PauseDispatch()
/base/hiviewdfx/hiview/build/
Dgen_plugin_build.py57 for plugin, info in plugin_info.items():
64 target = 'lib%s' % (plugin.lower())
97 for plugin, info in plugin_info.items():
98 items.append('%s[' % (plugin))
115 for plugin in plugin_list:
116 items.append('%s ' % (plugin))
121 for plugin, pipeline_list in pipelinegroup.items():
122 items.append('%s:' % (plugin))
226 for plugin, thread_name in value.items():
227 if plugin not in config_plugins:
[all …]
/base/hiviewdfx/hiview/base/
Dpipeline.cpp54 std::weak_ptr<Plugin> plugin = processors_.front(); in OnContinue() local
56 if (auto pluginPtr = plugin.lock()) { in OnContinue()
59 handler_->PauseDispatch(plugin); in OnContinue()
128 auto& plugin = seq.front(); in FillPipelineInfo() local
129 if (auto pluginPtr = plugin.lock()) { in FillPipelineInfo()
147 std::weak_ptr<Plugin> plugin = processors_.front(); in CanProcessEvent() local
148 if (auto pluginPtr = plugin.lock()) { in CanProcessEvent()
160 void Pipeline::AppendProcessor(std::weak_ptr<Plugin> plugin) in AppendProcessor() argument
162 processors_.push_back(plugin); in AppendProcessor()
165 void Pipeline::RemoveProcessor(std::weak_ptr<Plugin> plugin) in RemoveProcessor() argument
[all …]
Devent_dispatcher.cpp122 void EventDispatcher::RegisterListener(std::weak_ptr<Plugin> plugin) in RegisterListener() argument
124 auto sp = plugin.lock(); in RegisterListener()
136 channelPlugin_[type].push_back(plugin); in RegisterListener()
DCMakeLists.txt12 ${CMAKE_CURRENT_SOURCE_DIR}/include/plugin.h
29 ${CMAKE_CURRENT_SOURCE_DIR}/plugin.cpp
/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/
Dfreeze_detector_test.cpp171 std::shared_ptr<Plugin> plugin = platform.GetPluginByName("FreezeDetectorPlugin"); variable
172 if (plugin == nullptr) {
177 std::shared_ptr<PluginProxy> pluginProxy = std::static_pointer_cast<PluginProxy>(plugin);
206 plugin->OnEventListeningCallback(*(event.get()));
224 std::shared_ptr<Plugin> plugin = platform.GetPluginByName("FreezeDetectorPlugin"); variable
225 if (plugin == nullptr) {
253 plugin->OnEventListeningCallback(*(event.get()));
273 std::shared_ptr<Plugin> plugin = platform.GetPluginByName("FreezeDetectorPlugin"); variable
274 if (plugin == nullptr) {
303 plugin->OnEventListeningCallback(*(event.get()));
[all …]
/base/hiviewdfx/hiview/core/test/unittest/common/
Dplugin_platform_test.cpp245 std::shared_ptr<Plugin> plugin = nullptr; variable
250 plugin = pos->second;
252 ASSERT_NE(plugin, nullptr);
254 auto event = plugin->GetEvent(Event::MessageType::FAULT_EVENT);
256 bool ret = platform.PostSyncEventToTarget(plugin, "EventProcessorExample4", event);
262 platform.PostAsyncEventToTarget(plugin, "EventProcessorExample4", event);
267 PipelineEvent::FillPipelineInfo(plugin, "NormalPipeline", pipeEvent, true);
322 std::shared_ptr<Plugin> plugin = nullptr; variable
327 plugin = pos->second;
329 ASSERT_NE(plugin, nullptr);
[all …]
/base/customization/enterprise_device_management/services/edm/src/
Dplugin_manager.cpp88 bool PluginManager::AddPlugin(std::shared_ptr<IPlugin> plugin) in AddPlugin() argument
91 if (plugin == nullptr) { in AddPlugin()
94 ErrCode result = PermissionManager::GetInstance()->AddPermission(plugin->GetPermission()); in AddPlugin()
96 pluginsCode_.insert(std::make_pair(plugin->GetCode(), plugin)); in AddPlugin()
97 pluginsName_.insert(std::make_pair(plugin->GetPolicyName(), plugin)); in AddPlugin()
Denterprise_device_mgr_ability.cpp411 std::shared_ptr<IPlugin> plugin = pluginMgr_->GetPluginByPolicyName(policyName); in RemoveAdminItem() local
412 if (plugin == nullptr) { in RemoveAdminItem()
416 if ((ret = plugin->OnAdminRemove(adminName, policyValue)) != ERR_OK) { in RemoveAdminItem()
420 if (plugin->NeedSavePolicy()) { in RemoveAdminItem()
422 if ((ret = plugin->MergePolicyData(adminName, mergedPolicyData)) != ERR_OK) { in RemoveAdminItem()
442 plugin->OnAdminRemoveDone(adminName, policyValue); in RemoveAdminItem()
600 std::shared_ptr<IPlugin> plugin = pluginMgr_->GetPluginByFuncCode(code); in HandleDevicePolicy() local
601 if (plugin == nullptr) { in HandleDevicePolicy()
605 … EDMLOGD("HandleDevicePolicy: plugin info:%{public}d , %{public}s , %{public}s", plugin->GetCode(), in HandleDevicePolicy()
606 plugin->GetPolicyName().c_str(), plugin->GetPermission().c_str()); in HandleDevicePolicy()
[all …]
/base/hiviewdfx/hiview/plugins/faultlogger/test/common/unittest/
Dfaultlogger_unittest.cpp56 auto plugin = std::make_shared<Faultlogger>(); in CreateFaultloggerInstance() local
57 plugin->SetName("Faultlogger"); in CreateFaultloggerInstance()
58 plugin->SetHandle(nullptr); in CreateFaultloggerInstance()
59 plugin->SetHiviewContext(platform.get()); in CreateFaultloggerInstance()
60 plugin->OnLoad(); in CreateFaultloggerInstance()
61 return plugin; in CreateFaultloggerInstance()
84 auto plugin = CreateFaultloggerInstance(); variable
92 plugin->Dump(fd, cmds);
94 plugin->Dump(fd, cmds);
96 plugin->Dump(fd, cmds);
[all …]
/base/account/os_account/services/accountmgr/src/domain_account/
Dinner_domain_account_manager.cpp24 ErrCode InnerDomainAccountManager::RegisterPlugin(const sptr<IDomainAccountPlugin> &plugin) in RegisterPlugin() argument
27 if (plugin == nullptr) { in RegisterPlugin()
36 if ((deathRecipient == nullptr) || (!plugin->AsObject()->AddDeathRecipient(deathRecipient))) { in RegisterPlugin()
40 plugin_ = plugin; in RegisterPlugin()
54 ErrCode InnerDomainAccountManager::StartAuth(const sptr<IDomainAccountPlugin> &plugin, const Domain… in StartAuth() argument
62 if (plugin == nullptr) { in StartAuth()
67 ErrCode errCode = plugin->Auth(info, password, callback); in StartAuth()
Ddomain_account_manager_service.cpp33 ErrCode DomainAccountManagerService::RegisterPlugin(const sptr<IDomainAccountPlugin> &plugin) in RegisterPlugin() argument
35 return InnerDomainAccountManager::GetInstance()->RegisterPlugin(plugin); in RegisterPlugin()
/base/hiviewdfx/hiview/core/
Dhiview_platform.cpp154 for (const auto& plugin : eventSourceList_) { in InitEnvironment() local
155 auto sharedSource = std::static_pointer_cast<EventSource>(plugin); in InitEnvironment()
217 auto& plugin = pluginMap_[pluginInfo.name]; in LoadBusinessPlugin() local
218 auto sharedSource = std::static_pointer_cast<EventSource>(plugin); in LoadBusinessPlugin()
223 eventSourceList_.push_back(plugin); in LoadBusinessPlugin()
384 std::shared_ptr<Plugin> plugin = nullptr; in CreatePlugin() local
386 plugin = std::make_shared<PluginProxy>(); in CreatePlugin()
387 plugin->SetType(Plugin::PluginType::PROXY); in CreatePlugin()
388 (std::static_pointer_cast<PluginProxy>(plugin))->SetPluginConfig(pluginInfo); in CreatePlugin()
390 plugin = registInfo->getPluginObject(); in CreatePlugin()
[all …]
/base/hiviewdfx/hiview/include/
Dplugin_extra_info.h47 CapacityObtainEvent(const std::string &plugin, const std::string capacity) in CapacityObtainEvent() argument
48 : Event(plugin), plugin_(plugin), capacity_(capacity) {}; in CapacityObtainEvent()
/base/hiviewdfx/hiview/plugins/hicollie_collector/test/unittest/common/
Dhicollie_collector_test.cpp169 std::shared_ptr<Plugin> plugin = platform.GetPluginByName("HiCollieCollector"); variable
170 if (plugin == nullptr) {
190 …red_ptr<HiCollieCollector> hiCollieCollector = std::static_pointer_cast<HiCollieCollector>(plugin);
211 std::shared_ptr<Plugin> plugin = platform.GetPluginByName("HiCollieCollector"); variable
212 if (plugin == nullptr) {
231 …red_ptr<HiCollieCollector> hiCollieCollector = std::static_pointer_cast<HiCollieCollector>(plugin);
235 ASSERT_EQ(plugin->GetPluginInfo(), "HiCollieCollector");
/base/hiviewdfx/hiview/plugins/freeze_detector/test/moduletest/common/
Dfreeze_detector_plugin_module_test.cpp48 …std::shared_ptr<Plugin> plugin = PluginPlatform::GetInstance().GetPluginMap().find("FreezeDetector… in TearDownTestCase() local
49 if (plugin != nullptr) { in TearDownTestCase()
50 plugin->OnUnload(); in TearDownTestCase()
71 auto plugin = std::static_pointer_cast<FreezeDetectorPlugin>(PluginPlatform::GetInstance() in GetFreezeDetectorPlugin() local
73 return plugin; in GetFreezeDetectorPlugin()
/base/account/os_account/frameworks/domain_account/src/
Ddomain_account_plugin_service.cpp23 …ccountPluginService::DomainAccountPluginService(const std::shared_ptr<DomainAccountPlugin> &plugin) in DomainAccountPluginService() argument
24 : innerPlugin_(plugin) in DomainAccountPluginService()
Ddomain_account_client.cpp28 ErrCode DomainAccountClient::RegisterPlugin(const std::shared_ptr<DomainAccountPlugin> &plugin) in RegisterPlugin() argument
30 if (plugin == nullptr) { in RegisterPlugin()
34 …<DomainAccountPluginService> pluginService = new (std::nothrow) DomainAccountPluginService(plugin); in RegisterPlugin()
Ddomain_account_proxy.cpp40 ErrCode DomainAccountProxy::RegisterPlugin(const sptr<IDomainAccountPlugin> &plugin) in RegisterPlugin() argument
47 if ((plugin == nullptr) || (!data.WriteRemoteObject(plugin->AsObject()))) { in RegisterPlugin()
/base/account/os_account/services/accountmgr/include/domain_account/
Dinner_domain_account_manager.h31 ErrCode RegisterPlugin(const sptr<IDomainAccountPlugin> &plugin);
43 ErrCode StartAuth(const sptr<IDomainAccountPlugin> &plugin, const DomainAccountInfo &info,

123