Home
last modified time | relevance | path

Searched refs:policyValue (Results 1 - 25 of 31) sorted by relevance

12

/base/customization/enterprise_device_management/test/unittest/interface/plugin_kits/
H A Dipolicy_manager_test.cpp39 std::string policyValue = ""; in HWTEST_F() local
40 res = policyManager->GetPolicy(TEST_ADMIN_NAME, TEST_STRING_POLICY_NAME, policyValue); in HWTEST_F()
42 ASSERT_TRUE(policyValue.empty()); in HWTEST_F()
43 res = policyManager->GetPolicy("", TEST_STRING_POLICY_NAME, policyValue); in HWTEST_F()
45 ASSERT_TRUE(policyValue.empty()); in HWTEST_F()
47 res = policyManager->GetPolicy(TEST_ADMIN_NAME1, TEST_STRING_POLICY_NAME, policyValue); in HWTEST_F()
49 ASSERT_TRUE(policyValue.empty()); in HWTEST_F()
50 res = policyManager->GetPolicy("", TEST_STRING_POLICY_NAME, policyValue); in HWTEST_F()
52 ASSERT_TRUE(policyValue.empty()); in HWTEST_F()
/base/customization/enterprise_device_management/test/unittest/services/edm/src/
H A Dpolicy_manager_test.cpp99 std::string policyValue; in HWTEST_F() local
100 res = policyMgr_->GetPolicy(TEST_ADMIN_NAME, TEST_STRING_POLICY_NAME, policyValue); in HWTEST_F()
102 ASSERT_TRUE(policyValue == TEST_ADMIN_POLICY_VALUE); in HWTEST_F()
103 res = policyMgr_->GetPolicy("", TEST_STRING_POLICY_NAME, policyValue); in HWTEST_F()
105 ASSERT_TRUE(policyValue == TEST_MERAGE_POLICY_VALUE); in HWTEST_F()
110 policyValue = ""; in HWTEST_F()
111 res = policyMgr_->GetPolicy(TEST_ADMIN_NAME1, TEST_STRING_POLICY_NAME, policyValue); in HWTEST_F()
113 ASSERT_TRUE(policyValue.empty()); in HWTEST_F()
114 res = policyMgr_->GetPolicy("", TEST_STRING_POLICY_NAME, policyValue); in HWTEST_F()
116 ASSERT_TRUE(policyValue in HWTEST_F()
137 std::string policyValue; HWTEST_F() local
[all...]
H A Duser_policy_manager_test.cpp69 std::string policyValue; in HWTEST_F() local
70 res = userPolicyMgr_->GetPolicy(TEST_ADMIN_NAME, TEST_BOOL_POLICY_NAME, policyValue); in HWTEST_F()
72 ASSERT_TRUE(policyValue == "false"); in HWTEST_F()
73 res = userPolicyMgr_->GetPolicy("", TEST_BOOL_POLICY_NAME, policyValue); in HWTEST_F()
75 ASSERT_TRUE(policyValue == "true"); in HWTEST_F()
79 res = userPolicyMgr_->GetPolicy(TEST_ADMIN_NAME1, TEST_BOOL_POLICY_NAME, policyValue); in HWTEST_F()
81 ASSERT_TRUE(policyValue == "true"); in HWTEST_F()
82 res = userPolicyMgr_->GetPolicy("", TEST_BOOL_POLICY_NAME, policyValue); in HWTEST_F()
84 ASSERT_TRUE(policyValue == "true"); in HWTEST_F()
106 std::string policyValue; in HWTEST_F() local
200 std::string policyValue; HWTEST_F() local
[all...]
H A Diplugin_template_test.cpp256 std::string policyValue; in HWTEST_F() local
265 policyValue = "testValue"; in HWTEST_F()
267 plugin->OnAdminRemove(adminName, policyValue, DEFAULT_USER_ID); in HWTEST_F()
284 std::string policyValue; in HWTEST_F() local
293 policyValue = "testValue"; in HWTEST_F()
295 plugin->OnAdminRemoveDone(adminName, policyValue, DEFAULT_USER_ID); in HWTEST_F()
/base/customization/enterprise_device_management/services/edm/src/
H A Duser_policy_manager.cpp54 std::string &policyValue) in GetAdminPolicy()
61 policyValue = it->second; in GetAdminPolicy()
68 ErrCode UserPolicyManager::GetCombinedPolicy(const std::string &policyName, std::string &policyValue) in GetCombinedPolicy() argument
72 policyValue = it->second; in GetCombinedPolicy()
79 std::string &policyValue) in GetPolicy()
82 return GetCombinedPolicy(policyName, policyValue); in GetPolicy()
84 return GetAdminPolicy(adminName, policyName, policyValue); in GetPolicy()
89 const std::string &policyValue) in SetAdminList()
95 adminValueItem.insert(std::pair<std::string, std::string>(adminName, policyValue)); in SetAdminList()
103 it->second = policyValue; in SetAdminList()
53 GetAdminPolicy(const std::string &adminName, const std::string &policyName, std::string &policyValue) GetAdminPolicy() argument
78 GetPolicy(const std::string &adminName, const std::string &policyName, std::string &policyValue) GetPolicy() argument
88 SetAdminList(const std::string &adminName, const std::string &policyName, const std::string &policyValue) SetAdminList() argument
109 SetAdminPolicy(const std::string &adminName, const std::string &policyName, const std::string &policyValue) SetAdminPolicy() argument
145 SetCombinedPolicy(const std::string &policyName, const std::string &policyValue) SetCombinedPolicy() argument
[all...]
H A Ddevice_policies_storage_rdb.cpp78 const std::string &policyName, const std::string &policyValue) in InsertAdminPolicy()
91 valuesBucket.PutString(EdmRdbFiledConst::FILED_POLICY_VALUE, policyValue); in InsertAdminPolicy()
96 const std::string &policyName, const std::string &policyValue) in UpdateAdminPolicy()
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()
170 itemMap.insert(std::pair<std::string, std::string>(policyName, policyValue)); in PraseAdminPolicies()
77 InsertAdminPolicy(int32_t userId, const std::string &adminName, const std::string &policyName, const std::string &policyValue) InsertAdminPolicy() argument
95 UpdateAdminPolicy(int32_t userId, const std::string &adminName, const std::string &policyName, const std::string &policyValue) UpdateAdminPolicy() argument
164 PraseAdminPolicies(const std::string &adminName, const std::string &policyName, const std::string &policyValue, std::unordered_map<std::string, PolicyItemsMap> &adminPolicies) PraseAdminPolicies() argument
177 PrasePolicyAdmins(const std::string &adminName, const std::string &policyName, const std::string &policyValue, std::unordered_map<std::string, AdminValueItemsMap> &policyAdmins) PrasePolicyAdmins() argument
190 InsertCombinedPolicy(int32_t userId, const std::string &policyName, const std::string &policyValue) InsertCombinedPolicy() argument
208 UpdateCombinedPolicy(int32_t userId, const std::string &policyName, const std::string &policyValue) UpdateCombinedPolicy() argument
260 std::string policyValue; QueryCombinedPolicy() local
[all...]
H A Dpolicy_manager.cpp34 ErrCode PolicyManager::GetPolicy(const std::string &adminName, const std::string &policyName, std::string &policyValue, in GetPolicy() argument
38 return userPolicyMgr->GetPolicy(adminName, policyName, policyValue); in GetPolicy()
/base/customization/enterprise_device_management/services/edm/include/
H A Duser_policy_manager.h57 * @param policyValue the policy value which the caller wanted to get
60 ErrCode GetPolicy(const std::string &adminName, const std::string &policyName, std::string &policyValue);
114 ErrCode GetAdminPolicy(const std::string &adminName, const std::string &policyName, std::string &policyValue);
115 ErrCode GetCombinedPolicy(const std::string &policyName, std::string &policyValue);
116 ErrCode SetAdminPolicy(const std::string &adminName, const std::string &policyName, const std::string &policyValue);
117 ErrCode SetCombinedPolicy(const std::string &policyName, const std::string &policyValue);
119 void SetAdminList(const std::string &adminName, const std::string &policyName, const std::string &policyValue);
127 * This member is the admin name and policyName, policyValue pairs
132 * This member is the policy name and adminName, policyValue pairs
H A Ddevice_policies_storage_rdb.h33 const std::string &policyValue);
35 const std::string &policyValue);
39 bool InsertCombinedPolicy(int32_t userId, const std::string &policyName, const std::string &policyValue);
40 bool UpdateCombinedPolicy(int32_t userId, const std::string &policyName, const std::string &policyValue);
47 void PraseAdminPolicies(const std::string &adminName, const std::string &policyName, const std::string &policyValue,
49 void PrasePolicyAdmins(const std::string &adminName, const std::string &policyName, const std::string &policyValue,
H A Dpolicy_manager.h39 ErrCode GetPolicy(const std::string &adminName, const std::string &policyName, std::string &policyValue,
/base/customization/enterprise_device_management/services/edm_plugin/src/
H A Dset_browser_policies_plugin.cpp64 std::string policyValue = params[SET_POLICY_POLICY_VALUE_INDEX]; in OnHandlePolicy() local
76 errCode = SetRootPolicy(beforeHandle, appid, policyValue, afterHandle); in OnHandlePolicy()
78 errCode = SetPolicy(beforeHandle, appid, policyName, policyValue, afterHandle); in OnHandlePolicy()
94 std::string policyValue, std::string &afterHandle) in SetRootPolicy()
103 if (!policyValue.empty()) { in SetRootPolicy()
105 if (!serializer_->Deserialize(policyValue, value)) { in SetRootPolicy()
106 EDMLOGE("SetBrowserPolicyPlugin parse policyValue error!"); in SetRootPolicy()
123 std::string policyValue, std::string &afterHandle) in SetPolicy()
143 ErrCode ret = SetPolicyValue(policy, policyName, policyValue); in SetPolicy()
154 std::string policyValue) in SetPolicyValue()
93 SetRootPolicy(const std::string policyData, std::string appid, std::string policyValue, std::string &afterHandle) SetRootPolicy() argument
122 SetPolicy(const std::string policyData, std::string appid, std::string policyName, std::string policyValue, std::string &afterHandle) SetPolicy() argument
153 SetPolicyValue(cJSON* policy, std::string policyName, std::string policyValue) SetPolicyValue() argument
[all...]
/base/customization/enterprise_device_management/test/unittest/services/edm_plugin/src/
H A Ddevice_info_plugin_test.cpp84 std::string policyValue; in HWTEST_F() local
95 ErrCode code = pluginMock_->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID); in HWTEST_F()
106 std::string policyValue; in HWTEST_F() local
117 ErrCode code = pluginMock_->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID); in HWTEST_F()
128 std::string policyValue; in HWTEST_F() local
137 ErrCode code = pluginMock_->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID); in HWTEST_F()
148 std::string policyValue; in HWTEST_F() local
158 ErrCode code = pluginMock_->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID); in HWTEST_F()
H A Dset_browser_policies_plugin_test.cpp95 std::string policyValue; in HWTEST_F() local
97 serializer->Serialize(policy, policyValue); in HWTEST_F()
98 serializer->Serialize(cJSON_CreateString(policyValue.c_str()), retString); in HWTEST_F()
146 cJSON* policyValue = cJSON_GetObjectItem(policy, TEST_POLICY_NAME.c_str()); in HWTEST_F() local
148 serializer->Serialize(policyValue, testStr); in HWTEST_F()
156 * and empty policyValue.
177 cJSON* policyValue = cJSON_GetObjectItem(policy, TEST_POLICY_NAME.c_str()); in HWTEST_F() local
178 ASSERT_TRUE(policyValue == nullptr); in HWTEST_F()
205 std::string policyValue; in HWTEST_F() local
206 serializer->Serialize(policy, policyValue); in HWTEST_F()
[all...]
H A Dscreen_off_time_plugin_test.cpp88 std::string policyValue{"TestString"}; in HWTEST_F()
93 ErrCode code = plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID); in HWTEST_F()
97 code = plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID); in HWTEST_F()
H A Dntp_server_plugin_test.cpp61 std::string policyValue{"TestString"}; in HWTEST_F()
65 plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID); in HWTEST_F()
H A Dget_device_encryption_status_plugin_test.cpp58 std::string policyValue{"GetDeviceEncryptionStatus"}; in HWTEST_F()
61 plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID); in HWTEST_F()
H A Dget_security_patch_tag_plugin_test.cpp60 std::string policyValue{"GetSecurityPatchTag"}; in HWTEST_F()
63 plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID); in HWTEST_F()
H A Dlocation_policy_plugin_test.cpp87 std::string policyValue{"TestString"}; in HWTEST_F()
90 ErrCode code = plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID); in HWTEST_F()
H A Dget_bluetooth_info_plugin_test.cpp75 std::string policyValue{"GetBluetoothInfo"}; in HWTEST_F()
78 plugin.OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID); in HWTEST_F()
H A Dallowed_bluetooth_devices_plugin_test.cpp154 std::string policyValue{ "GetBluetoothDevices" }; in HWTEST_F()
157 ErrCode ret = plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID); in HWTEST_F()
/base/customization/enterprise_device_management/services/edm_plugin/include/
H A Dset_browser_policies_plugin.h49 ErrCode SetRootPolicy(const std::string policyData, std::string appid, std::string policyValue,
52 std::string policyValue, std::string &afterHandle);
53 ErrCode SetPolicyValue(cJSON* policy, std::string policyName, std::string policyValue);
/base/customization/enterprise_device_management/interfaces/inner_api/browser/include/
H A Dbrowser_proxy.h29 const std::string &policyValue);
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/include/
H A Dipolicy_manager.h36 virtual ErrCode GetPolicy(const std::string &adminName, const std::string &policyName, std::string &policyValue, in GetPolicy() argument
/base/customization/enterprise_device_management/test/fuzztest/enterprisedevicemgrability_fuzzer/
H A Denterprise_device_mgr_ability_fuzzer.cpp104 const std::string policyValue(reinterpret_cast<const char*>(data), size); in LLVMFuzzerTestOneInput()
105 enterpriseDeviceMgrAbility->RemoveAdminItem(adminName, policyName, policyValue, userId); in LLVMFuzzerTestOneInput()
/base/customization/enterprise_device_management/interfaces/inner_api/browser/src/
H A Dbrowser_proxy.cpp87 const std::string &policyName, const std::string &policyValue) in SetPolicy()
101 std::vector<std::string> params{appId, policyName, policyValue}; in SetPolicy()
86 SetPolicy(const AppExecFwk::ElementName &admin, const std::string &appId, const std::string &policyName, const std::string &policyValue) SetPolicy() argument

Completed in 13 milliseconds

12