Home
last modified time | relevance | path

Searched refs:policyValue (Results 1 – 15 of 15) sorted by relevance

/base/customization/enterprise_device_management/test/unittest/src/
Dpolicy_manager_test.cpp70 std::string policyValue; variable
71 res = policyMgr_->GetPolicy(TEST_ADMIN_NAME, TEST_BOOL_POLICY_NAME, policyValue);
73 ASSERT_TRUE(policyValue == "false");
74 res = policyMgr_->GetPolicy("", TEST_BOOL_POLICY_NAME, policyValue);
76 ASSERT_TRUE(policyValue == "true");
80 res = policyMgr_->GetPolicy(TEST_ADMIN_NAME1, TEST_BOOL_POLICY_NAME, policyValue);
82 ASSERT_TRUE(policyValue == "true");
83 res = policyMgr_->GetPolicy("", TEST_BOOL_POLICY_NAME, policyValue);
85 ASSERT_TRUE(policyValue == "true");
105 std::string policyValue; variable
[all …]
Diplugin_template_test.cpp80 std::string policyValue; variable
88 policyValue = "";
92 res = plugin->OnHandlePolicy(funcCode, data, reply, policyValue, isChange, DEFAULT_USER_ID);
94 ASSERT_TRUE(policyValue.empty());
98 policyValue = "";
103 res = plugin->OnHandlePolicy(funcCode, data, reply, policyValue, isChange, DEFAULT_USER_ID);
105 ASSERT_TRUE(policyValue.empty());
123 std::string policyValue; variable
131 policyValue = "";
134 res = plugin->OnHandlePolicy(funcCode, data, reply, policyValue, isChange, DEFAULT_USER_ID);
[all …]
Denterprise_device_mgr_ability_test.cpp570 std::string policyValue; variable
571 …_TRUE(FAILED(edmMgr_->policyMgr_->GetPolicy(subSuperAdmin, plugin->GetPolicyName(), policyValue)));
573 …edmMgr_->policyMgr_->GetPolicy(superAdmin.GetBundleName(), plugin->GetPolicyName(), policyValue)));
574 EXPECT_TRUE(FAILED(edmMgr_->policyMgr_->GetPolicy("", plugin->GetPolicyName(), policyValue)));
577 …UE(SUCCEEDED(edmMgr_->policyMgr_->GetPolicy(subSuperAdmin, plugin->GetPolicyName(), policyValue)));
578 EXPECT_EQ(policyValue, TEST_POLICY_VALUE);
579 policyValue.clear();
581 …edmMgr_->policyMgr_->GetPolicy(superAdmin.GetBundleName(), plugin->GetPolicyName(), policyValue)));
582 EXPECT_EQ(policyValue, TEST_POLICY_VALUE);
583 policyValue.clear();
[all …]
/base/customization/enterprise_device_management/services/edm/src/
Dpolicy_manager.cpp59 std::string &policyValue) in GetAdminPolicy() argument
66 policyValue = it->second; in GetAdminPolicy()
73 ErrCode PolicyManager::GetCombinedPolicy(const std::string &policyName, std::string &policyValue) in GetCombinedPolicy() argument
77 policyValue = it->second; in GetCombinedPolicy()
84 std::string &policyValue) in GetPolicy() argument
87 return GetCombinedPolicy(policyName, policyValue); in GetPolicy()
89 return GetAdminPolicy(adminName, policyName, policyValue); in GetPolicy()
94 const std::string &policyValue) in SetAdminList() argument
100 adminValueItem.insert(std::pair<std::string, std::string>(adminName, policyValue)); in SetAdminList()
108 it->second = policyValue; in SetAdminList()
[all …]
Ddevice_policies_storage_rdb.cpp78 const std::string &policyName, const std::string &policyValue) in InsertAdminPolicy() argument
91 valuesBucket.PutString(EdmRdbFiledConst::FILED_POLICY_VALUE, policyValue); in InsertAdminPolicy()
96 const std::string &policyName, const std::string &policyValue) in UpdateAdminPolicy() argument
106 valuesBucket.PutString(EdmRdbFiledConst::FILED_POLICY_VALUE, policyValue); in UpdateAdminPolicy()
152 std::string policyValue; in QueryAdminPolicy() local
155 resultSet->GetString(EdmRdbFiledConst::FILED_COLUMN_INDEX_FOUR, policyValue); in QueryAdminPolicy()
156 PraseAdminPolicies(adminName, policyName, policyValue, adminPolicies); in QueryAdminPolicy()
157 PrasePolicyAdmins(adminName, policyName, policyValue, policyAdmins); in QueryAdminPolicy()
165 const std::string &policyValue, std::unordered_map<std::string, PolicyItemsMap> &adminPolicies) in PraseAdminPolicies() argument
170 itemMap.insert(std::pair<std::string, std::string>(policyName, policyValue)); in PraseAdminPolicies()
[all …]
Denterprise_device_mgr_ability.cpp540 const std::string &policyValue, int32_t userId) in RemoveAdminItem() argument
548 if ((ret = plugin->OnAdminRemove(adminName, policyValue, userId)) != ERR_OK) { in RemoveAdminItem()
550 adminName.c_str(), policyValue.c_str(), ret); in RemoveAdminItem()
574 plugin->OnAdminRemoveDone(adminName, policyValue, userId); in RemoveAdminItem()
787 std::string policyValue; in UpdateDevicePolicy() local
788 policyMgr_->GetPolicy(admin.GetBundleName(), policyName, policyValue); in UpdateDevicePolicy()
790 ErrCode ret = plugin->OnHandlePolicy(code, data, reply, policyValue, isChanged, userId); in UpdateDevicePolicy()
798 std::string mergedPolicy = policyValue; in UpdateDevicePolicy()
806 policyMgr_->SetPolicy(admin.GetBundleName(), policyName, policyValue, mergedPolicy); in UpdateDevicePolicy()
885 std::string policyValue; in GetDevicePolicy() local
[all …]
/base/customization/enterprise_device_management/services/edm/include/
Ddevice_policies_storage_rdb.h33 const std::string &policyValue);
35 const std::string &policyValue);
39 …nsertCombinedPolicy(int32_t userId, const std::string &policyName, const std::string &policyValue);
40 …pdateCombinedPolicy(int32_t userId, const std::string &policyName, const std::string &policyValue);
47 …licies(const std::string &adminName, const std::string &policyName, const std::string &policyValue,
49 …Admins(const std::string &adminName, const std::string &policyName, const std::string &policyValue,
Dpolicy_manager.h63 …e GetPolicy(const std::string &adminName, const std::string &policyName, std::string &policyValue);
119 …AdminPolicy(const std::string &adminName, const std::string &policyName, std::string &policyValue);
120 ErrCode GetCombinedPolicy(const std::string &policyName, std::string &policyValue);
121 …olicy(const std::string &adminName, const std::string &policyName, const std::string &policyValue);
122 ErrCode SetCombinedPolicy(const std::string &policyName, const std::string &policyValue);
124 …nList(const std::string &adminName, const std::string &policyName, const std::string &policyValue);
Denterprise_device_mgr_ability.h78 …inItem(const std::string &adminName, const std::string &policyName, const std::string &policyValue,
/base/customization/enterprise_device_management/test/unittest/edm_plugin/src/
Dget_device_name_plugin_test.cpp56 std::string policyValue{"TestString"}; variable
60 ErrCode code = plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID);
63 code = plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID);
66 code = plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID);
Dget_screen_off_time_plugin_test.cpp56 std::string policyValue{"TestString"}; variable
60 ErrCode code = plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID);
64 code = plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID);
/base/customization/enterprise_device_management/services/edm_plugin/src/
Dusb_read_only_plugin.cpp36 ErrCode UsbReadOnlyPlugin::SetPolicy(bool &policyValue) in SetPolicy() argument
40 std::string usbValue = policyValue ? "true" : "false"; in SetPolicy()
/base/customization/enterprise_device_management/interfaces/kits/usb_manager/src/
Dusb_manager_addon.cpp24 napi_value policyValue = nullptr; in Init() local
25 NAPI_CALL(env, napi_create_object(env, &policyValue)); in Init()
26 CreateUsbPolicyEnum(env, policyValue); in Init()
28 DECLARE_NAPI_PROPERTY("UsbPolicy", policyValue), in Init()
/base/customization/enterprise_device_management/services/edm_plugin/include/
Dusb_read_only_plugin.h27 ErrCode SetPolicy(bool &policyValue);
/base/customization/enterprise_device_management/test/unittest/include/
Diplugin_template_test.h177 ErrCode SetFunction(std::string &policyValue) in SetFunction() argument
179 if (policyValue.empty()) { in SetFunction()
180 policyValue = "testValue"; in SetFunction()
182 policyValue = "newTestValue"; in SetFunction()
187 ErrCode RemoveFunction(std::string &policyValue) in RemoveFunction() argument
189 policyValue = ""; in RemoveFunction()