/base/customization/enterprise_device_management/test/unittest/src/ |
D | iplugin_template_test.cpp | 40 … 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 …]
|
D | plugin_manager_test.cpp | 59 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/ |
D | plugin_factory_test.cpp | 36 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());
|
D | event_dispatcher_test.cpp | 83 …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 …]
|
D | pipeline_test.cpp | 30 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()
|
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()
|
/base/hiviewdfx/hiview/build/ |
D | gen_plugin_build.py | 57 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/ |
D | pipeline.cpp | 54 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 …]
|
D | event_dispatcher.cpp | 122 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()
|
D | CMakeLists.txt | 12 ${CMAKE_CURRENT_SOURCE_DIR}/include/plugin.h 29 ${CMAKE_CURRENT_SOURCE_DIR}/plugin.cpp
|
/base/hiviewdfx/hiview/plugins/freeze_detector/test/unittest/common/ |
D | freeze_detector_test.cpp | 171 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/ |
D | plugin_platform_test.cpp | 245 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/ |
D | plugin_manager.cpp | 88 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()
|
D | enterprise_device_mgr_ability.cpp | 411 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/ |
D | faultlogger_unittest.cpp | 56 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/ |
D | inner_domain_account_manager.cpp | 24 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()
|
D | domain_account_manager_service.cpp | 33 ErrCode DomainAccountManagerService::RegisterPlugin(const sptr<IDomainAccountPlugin> &plugin) in RegisterPlugin() argument 35 return InnerDomainAccountManager::GetInstance()->RegisterPlugin(plugin); in RegisterPlugin()
|
/base/hiviewdfx/hiview/core/ |
D | hiview_platform.cpp | 154 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/ |
D | plugin_extra_info.h | 47 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/ |
D | hicollie_collector_test.cpp | 169 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/ |
D | freeze_detector_plugin_module_test.cpp | 48 …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/ |
D | domain_account_plugin_service.cpp | 23 …ccountPluginService::DomainAccountPluginService(const std::shared_ptr<DomainAccountPlugin> &plugin) in DomainAccountPluginService() argument 24 : innerPlugin_(plugin) in DomainAccountPluginService()
|
D | domain_account_client.cpp | 28 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()
|
D | domain_account_proxy.cpp | 40 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/ |
D | inner_domain_account_manager.h | 31 ErrCode RegisterPlugin(const sptr<IDomainAccountPlugin> &plugin); 43 ErrCode StartAuth(const sptr<IDomainAccountPlugin> &plugin, const DomainAccountInfo &info,
|