/base/customization/enterprise_device_management/test/unittest/src/ |
D | policy_manager_test.cpp | 70 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 …]
|
D | iplugin_template_test.cpp | 80 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 …]
|
D | enterprise_device_mgr_ability_test.cpp | 570 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/ |
D | policy_manager.cpp | 59 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 …]
|
D | device_policies_storage_rdb.cpp | 78 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 …]
|
D | enterprise_device_mgr_ability.cpp | 540 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/ |
D | device_policies_storage_rdb.h | 33 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,
|
D | policy_manager.h | 63 …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);
|
D | enterprise_device_mgr_ability.h | 78 …inItem(const std::string &adminName, const std::string &policyName, const std::string &policyValue,
|
/base/customization/enterprise_device_management/test/unittest/edm_plugin/src/ |
D | get_device_name_plugin_test.cpp | 56 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);
|
D | get_screen_off_time_plugin_test.cpp | 56 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/ |
D | usb_read_only_plugin.cpp | 36 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/ |
D | usb_manager_addon.cpp | 24 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/ |
D | usb_read_only_plugin.h | 27 ErrCode SetPolicy(bool &policyValue);
|
/base/customization/enterprise_device_management/test/unittest/include/ |
D | iplugin_template_test.h | 177 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()
|