Home
last modified time | relevance | path

Searched refs:policyName (Results 1 – 10 of 10) sorted by relevance

/base/customization/enterprise_device_management/services/edm/include/
Dpolicy_manager.h64 …ErrCode GetPolicy(const std::string &adminName, const std::string &policyName, std::string &policy…
79 …ErrCode SetPolicy(const std::string &adminName, const std::string &policyName, const std::string &…
90 … ErrCode GetAdminByPolicyName(const std::string &policyName, AdminValueItemsMap &adminValueItems);
119 const std::string &policyName, unsigned int &policyItemsNum);
125 …olicyItemJsonValue(Json::Value &admin, const std::string &adminName, const std::string &policyName,
128 ErrCode DeleteAdminJsonValue(const std::string &adminName, const std::string &policyName);
129 ErrCode DeleteAdminPolicy(const std::string &adminName, const std::string &policyName);
130 ErrCode DeleteCombinedJsonValue(const std::string &policyName);
131 ErrCode DeleteCombinedPolicy(const std::string &policyName);
132 …ErrCode GetAdminPolicy(const std::string &adminName, const std::string &policyName, std::string &p…
[all …]
Dplugin_manager.h29 std::shared_ptr<IPlugin> GetPluginByPolicyName(const std::string &policyName);
Denterprise_device_mgr_ability.h68 ErrCode RemoveAdminItem(std::string adminName, std::string policyName, std::string policyValue);
Diplugin_template.h194 …void InitAttribute(uint32_t policyCode, const std::string &policyName, const std::string &permissi…
716 …uint32_t policyCode, const std::string &policyName, const std::string &permission, bool needSave, … in InitAttribute() argument
719 policyName_ = policyName; in InitAttribute()
/base/customization/enterprise_device_management/services/edm/src/
Dpolicy_manager.cpp63 std::string policyName = iter.first; in ParseAdminList() local
65 auto it = policyAdmins_.find(policyName); in ParseAdminList()
70 … policyAdmins_.insert(std::pair<std::string, AdminValueItemsMap>(policyName, adminValueItem)); in ParseAdminList()
76 adminName.c_str(), policyName.c_str()); in ParseAdminList()
207 ErrCode PolicyManager::GetAdminByPolicyName(const std::string &policyName, AdminValueItemsMap &admi… in GetAdminByPolicyName() argument
209 auto iter = policyAdmins_.find(policyName); in GetAdminByPolicyName()
227 ErrCode PolicyManager::GetAdminPolicy(const std::string &adminName, const std::string &policyName, in GetAdminPolicy() argument
233 auto it = policyItem.find(policyName); in GetAdminPolicy()
242 ErrCode PolicyManager::GetCombinedPolicy(const std::string &policyName, std::string &policyValue) in GetCombinedPolicy() argument
244 auto it = combinedPolicies_.find(policyName); in GetCombinedPolicy()
[all …]
Denterprise_device_mgr_ability.cpp407 ErrCode EnterpriseDeviceMgrAbility::RemoveAdminItem(std::string adminName, std::string policyName, in RemoveAdminItem() argument
411 std::shared_ptr<IPlugin> plugin = pluginMgr_->GetPluginByPolicyName(policyName); in RemoveAdminItem()
413 EDMLOGW("RemoveAdminItem: Get plugin by policy failed: %{public}s\n", policyName.c_str()); in RemoveAdminItem()
424 policyName.c_str(), ret); in RemoveAdminItem()
429 ret = policyMgr_->GetAdminByPolicyName(policyName, adminListMap); in RemoveAdminItem()
431 setRet = policyMgr_->SetPolicy("", policyName, "", ""); in RemoveAdminItem()
433 setRet = policyMgr_->SetPolicy(adminName, policyName, "", mergedPolicyData); in RemoveAdminItem()
438 adminName.c_str(), policyName.c_str(), ret); in RemoveAdminItem()
616 std::string policyName = plugin->GetPolicyName(); in HandleDevicePolicy() local
618 policyMgr_->GetPolicy(admin.GetBundleName(), policyName, policyValue); in HandleDevicePolicy()
[all …]
Dplugin_manager.cpp79 std::shared_ptr<IPlugin> PluginManager::GetPluginByPolicyName(const std::string &policyName) in GetPluginByPolicyName() argument
81 auto it = pluginsName_.find(policyName); in GetPluginByPolicyName()
/base/customization/enterprise_device_management/test/unittest/src/
Dpolicy_manager_test.cpp64 std::string policyName = TEST_BOOL_POLICY_NAME; variable
68 res = PolicyManager::GetInstance()->SetPolicy(adminName, policyName, "false", "true");
72 res = PolicyManager::GetInstance()->GetPolicy(adminName, policyName, policyValue);
75 res = PolicyManager::GetInstance()->GetPolicy("", policyName, policyValue);
79 res = PolicyManager::GetInstance()->SetPolicy(adminName1, policyName, "true", "true");
81 res = PolicyManager::GetInstance()->GetPolicy(adminName, policyName, policyValue);
84 res = PolicyManager::GetInstance()->GetPolicy("", policyName, policyValue);
98 std::string policyName = TEST_STRING_POLICY_NAME; variable
101 res = PolicyManager::GetInstance()->SetPolicy(adminName, policyName, adminPolicy, mergedPolicy);
105 res = PolicyManager::GetInstance()->GetPolicy(adminName, policyName, policyValue);
[all …]
/base/customization/enterprise_device_management/services/edm_plugin/src/
Dset_datetime_plugin.cpp29 std::string policyName; in InitPlugin() local
30 POLICY_CODE_TO_NAME(SET_DATETIME, policyName); in InitPlugin()
31 ptr->InitAttribute(SET_DATETIME, policyName, "ohos.permission.ENTERPRISE_SET_DATETIME", false); in InitPlugin()
/base/customization/enterprise_device_management/test/unittest/include/
Diplugin_mock.h47 void MockSetPolicyName(std::string policyName) in MockSetPolicyName() argument
49 policyName_ = policyName; in MockSetPolicyName()