Home
last modified time | relevance | path

Searched refs:policyData (Results 1 – 25 of 61) sorted by relevance

123

/base/customization/enterprise_device_management/test/unittest/include/
Dplugin_manager_test.h38 …ePolicy(std::uint32_t funcCode, MessageParcel &data, MessageParcel &reply, std::string &policyData, in OnHandlePolicy() argument
44 ErrCode MergePolicyData(const std::string &adminName, std::string &policyData) override in MergePolicyData() argument
46 return IPlugin::MergePolicyData(adminName, policyData); in MergePolicyData()
52 …ErrCode OnAdminRemove(const std::string &adminName, const std::string &policyData, int32_t userId)… in OnAdminRemove() argument
57 …void OnAdminRemoveDone(const std::string &adminName, const std::string &policyData, int32_t userId… in OnAdminRemoveDone() argument
59 ErrCode WritePolicyToParcel(const std::string &policyData, MessageParcel &reply) override in WritePolicyToParcel() argument
61 return IPlugin::WritePolicyToParcel(policyData, reply); in WritePolicyToParcel()
64 …ErrCode OnGetPolicy(std::string &policyData, MessageParcel &data, MessageParcel &reply, int32_t us… in OnGetPolicy() argument
Diplugin_mock.h32 …ePolicy(std::uint32_t funcCode, MessageParcel &data, MessageParcel &reply, std::string &policyData, in OnHandlePolicy() argument
41 …ErrCode OnAdminRemove(const std::string &adminName, const std::string &policyData, int32_t userId)… in OnAdminRemove() argument
54 …ErrCode OnGetPolicy(std::string &policyData, MessageParcel &data, MessageParcel &reply, int32_t us… in OnGetPolicy() argument
/base/customization/enterprise_device_management/test/unittest/edm_plugin/src/
Ddisallow_modify_datetime_plugin_test.cpp52 std::string policyData{"false"}; variable
56 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
59 ASSERT_TRUE(policyData == "true");
72 std::string policyData{"true"}; variable
75 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
Ddevice_info_plugin_test.cpp45 std::string policyData{"TestString"}; variable
48 ErrCode ret = plugin_->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
60 std::string policyData{"TestString"}; variable
63 ErrCode ret = plugin_->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
Duser_cert_plugin_test.cpp116 std::string policyData{"TestString"}; variable
120 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
139 std::string policyData{"TestString"}; variable
143 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
162 std::string policyData{"TestString"}; variable
166 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
187 std::string policyData{"TestString"}; variable
191 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
202 …ret = plugin->OnHandlePolicy(funcCode, dataUninstall, replyUninstall, policyData, isChanged, DEFAU…
Ddisable_printer_plugin_test.cpp59 std::string policyData{"false"}; variable
62 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
64 ASSERT_TRUE(policyData == "true");
76 std::string policyData{"false"}; variable
79 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
Dnetwork_manager_plugin_test.cpp62 std::string policyData{"TestGetAllNetworkInterfaces"}; variable
65 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
77 std::string policyData{"TestGetIpAddress"}; variable
80 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
92 std::string policyData{"TestGetMac"}; variable
95 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
107 std::string policyData; variable
112 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
124 std::string policyData; variable
129 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
Dis_wifi_active_plugin_test.cpp55 std::string policyData{"TestIsWifiActive"}; variable
59 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
72 std::string policyData{"TestIsWifiActive"}; variable
75 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
Ddisable_hdc_plugin_test.cpp59 std::string policyData{"false"}; variable
62 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
75 std::string policyData{"false"}; variable
78 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
Dusb_read_only_plugin_test.cpp61 std::string policyData{"false"}; variable
64 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
67 ASSERT_TRUE(policyData == "true");
Diptables_rule_plugin_test.cpp82 std::string policyData{"TestString"}; variable
85 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
101 std::string policyData{"TestString"}; variable
104 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
120 std::string policyData{"TestString"}; variable
123 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
135 std::string policyData{"TestString"}; variable
138 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
164 std::string policyData{"TestString"}; variable
167 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
[all …]
Dreset_factory_plugin_test.cpp49 std::string policyData{""}; variable
52 ErrCode ret = plugin->OnHandlePolicy(code, data, reply, policyData, isChanged, DEFAULT_USER_ID);
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/include/
Diplugin.h49 std::string &policyData, bool &isChanged, int32_t userId) = 0;
58 virtual ErrCode MergePolicyData(const std::string &adminName, std::string &policyData);
61 …virtual ErrCode OnAdminRemove(const std::string &adminName, const std::string &policyData, int32_t…
64 virtual ErrCode WritePolicyToParcel(const std::string &policyData, MessageParcel &reply);
65 virtual ErrCode OnGetPolicy(std::string &policyData, MessageParcel &data, MessageParcel &reply,
Diplugin_template.h40 …ePolicy(std::uint32_t funcCode, MessageParcel &data, MessageParcel &reply, std::string &policyData,
43 ErrCode MergePolicyData(const std::string &adminName, std::string &policyData) override;
52 ErrCode WritePolicyToParcel(const std::string &policyData, MessageParcel &reply) override;
54 …ErrCode OnGetPolicy(std::string &policyData, MessageParcel &data, MessageParcel &reply, int32_t us…
209 virtual bool GetMergePolicyData(DT &policyData);
399 std::string &policyData, bool &isChanged, int32_t userId) in OnHandlePolicy() argument
407 ErrCode res = entry->second.handlePolicy_(data, reply, policyData, isChanged, type, userId); in OnHandlePolicy()
413 ErrCode IPluginTemplate<CT, DT>::OnGetPolicy(std::string &policyData, MessageParcel &data, MessageP… in OnGetPolicy() argument
417 return instance_->OnGetPolicy(policyData, data, reply, userId); in OnGetPolicy()
426 …auto handle = [this](MessageParcel &data, MessageParcel &reply, std::string &policyData, bool &isC… in SetOnHandlePolicyListener()
[all …]
/base/customization/enterprise_device_management/services/edm_plugin/src/
Ddisable_printer_plugin.cpp40 ErrCode DisablePrinterPlugin::OnGetPolicy(std::string &policyData, MessageParcel &data, MessageParc… in OnGetPolicy() argument
43 EDMLOGI("DisablePrinterPlugin OnGetPolicy %{public}s...", policyData.c_str()); in OnGetPolicy()
45 pluginInstance_->serializer_->Deserialize(policyData, isDisabled); in OnGetPolicy()
Ddisallowed_uninstall_bundles_plugin.cpp39 ErrCode DisallowedUninstallBundlesPlugin::OnGetPolicy(std::string &policyData, MessageParcel &data, in OnGetPolicy() argument
43 policyData.c_str(), userId); in OnGetPolicy()
44 return GetBundlePolicy(policyData, data, reply, userId); in OnGetPolicy()
Ddisallowed_install_bundles_plugin.cpp39 ErrCode DisallowedInstallBundlesPlugin::OnGetPolicy(std::string &policyData, MessageParcel &data, M… in OnGetPolicy() argument
43 policyData.c_str(), userId); in OnGetPolicy()
44 return GetBundlePolicy(policyData, data, reply, userId); in OnGetPolicy()
Dallowed_install_bundles_plugin.cpp39 ErrCode AllowedInstallBundlesPlugin::OnGetPolicy(std::string &policyData, MessageParcel &data, Mess… in OnGetPolicy() argument
42 …InstallBundlesPlugin OnGetPolicy policyData : %{public}s, userId : %{public}d", policyData.c_str(), in OnGetPolicy()
44 return GetBundlePolicy(policyData, data, reply, userId); in OnGetPolicy()
Ddisabled_network_interface_plugin.cpp41 ErrCode DisabledNetworkInterfacePlugin::OnGetPolicy(std::string &policyData, MessageParcel &data, M… in OnGetPolicy() argument
59 ErrCode DisabledNetworkInterfacePlugin::OnSetPolicy(std::map<std::string, std::string> &policyData) in OnSetPolicy() argument
62 if (policyData.empty()) { in OnSetPolicy()
66 auto it = policyData.begin(); in OnSetPolicy()
Ddisallow_modify_datetime_plugin.cpp39 ErrCode DisallModifyDateTimePlugin::OnGetPolicy(std::string &policyData, MessageParcel &data, Messa… in OnGetPolicy() argument
43 pluginInstance_->serializer_->Deserialize(policyData, disallow); in OnGetPolicy()
Dset_browser_policies_plugin.cpp55 ErrCode SetBrowserPoliciesPlugin::OnGetPolicy(std::string &policyData, MessageParcel &data, Message… in OnGetPolicy() argument
59 pluginInstance_->serializer_->Deserialize(policyData, policies); in OnGetPolicy()
/base/customization/enterprise_device_management/services/edm_plugin/include/
Duser_cert_plugin.h28 …ePolicy(std::uint32_t funcCode, MessageParcel &data, MessageParcel &reply, std::string &policyData,
34 …ErrCode OnAdminRemove(const std::string &adminName, const std::string &policyData, int32_t userId)… in OnAdminRemove() argument
41 …ErrCode OnGetPolicy(std::string &policyData, MessageParcel &data, MessageParcel &reply, int32_t us… in OnGetPolicy() argument
Ddisabled_network_interface_plugin.h29 …ErrCode OnGetPolicy(std::string &policyData, MessageParcel &data, MessageParcel &reply, int32_t us…
31 ErrCode OnSetPolicy(std::map<std::string, std::string> &policyData);
Diptables_rule_plugin.h29 …ePolicy(std::uint32_t funcCode, MessageParcel &data, MessageParcel &reply, std::string &policyData,
35 …ErrCode OnAdminRemove(const std::string &adminName, const std::string &policyData, int32_t userId)… in OnAdminRemove() argument
42 …ErrCode OnGetPolicy(std::string &policyData, MessageParcel &data, MessageParcel &reply, int32_t us…
/base/customization/enterprise_device_management/interfaces/inner_api/common/include/
Denterprise_device_mgr_proxy.h61 bool GetPolicyValue(AppExecFwk::ElementName *admin, int policyCode, std::string &policyData,
63 …etPolicyArray(AppExecFwk::ElementName *admin, int policyCode, std::vector<std::string> &policyData,
65 …Map(AppExecFwk::ElementName *admin, int policyCode, std::map<std::string, std::string> &policyData,

123