Home
last modified time | relevance | path

Searched refs:funcCode (Results 1 – 25 of 32) sorted by relevance

12

/base/customization/enterprise_device_management/test/unittest/src/
Diplugin_template_test.cpp42 uint32_t funcCode = POLICY_FUNC_CODE((uint32_t)FuncOperateType::SET, policyCode); variable
43 … std::shared_ptr<IPlugin> plugin = PluginManager::GetInstance()->GetPluginByFuncCode(funcCode);
58 uint32_t funcCode = POLICY_FUNC_CODE((uint32_t)FuncOperateType::SET, policyCode); variable
59 std::shared_ptr<IPlugin> plugin = PluginManager::GetInstance()->GetPluginByFuncCode(funcCode);
77 uint32_t funcCode; variable
83 funcCode = POLICY_FUNC_CODE((uint32_t)FuncOperateType::SET, policyCode);
84 plugin = PluginManager::GetInstance()->GetPluginByFuncCode(funcCode);
92 res = plugin->OnHandlePolicy(funcCode, data, reply, policyValue, isChange, DEFAULT_USER_ID);
102 funcCode = POLICY_FUNC_CODE((uint32_t)FuncOperateType::REMOVE, policyCode);
103 res = plugin->OnHandlePolicy(funcCode, data, reply, policyValue, isChange, DEFAULT_USER_ID);
[all …]
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/
Dfunc_code_utils.cpp37 FuncFlag FuncCodeUtils::GetSystemFlag(std::uint32_t funcCode) in GetSystemFlag() argument
39 return ConvertSystemFlag(FUNC_TO_FLAG(funcCode)); in GetSystemFlag()
57 FuncOperateType FuncCodeUtils::GetOperateType(std::uint32_t funcCode) in GetOperateType() argument
59 return ConvertOperateType(FUNC_TO_OPERATE(funcCode)); in GetOperateType()
62 std::uint32_t FuncCodeUtils::GetPolicyCode(std::uint32_t funcCode) in GetPolicyCode() argument
64 return FUNC_TO_POLICY(funcCode); in GetPolicyCode()
73 bool FuncCodeUtils::IsServiceFlag(std::uint32_t funcCode) in IsServiceFlag() argument
75 return GetSystemFlag(funcCode) == FuncFlag::SERVICE_FLAG; in IsServiceFlag()
78 bool FuncCodeUtils::IsPolicyFlag(std::uint32_t funcCode) in IsPolicyFlag() argument
80 return GetSystemFlag(funcCode) == FuncFlag::POLICY_FLAG; in IsPolicyFlag()
[all …]
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/include/utils/
Dfunc_code_utils.h30 static FuncFlag GetSystemFlag(std::uint32_t funcCode);
32 static bool IsServiceFlag(std::uint32_t funcCode);
34 static bool IsPolicyFlag(std::uint32_t funcCode);
38 static FuncOperateType GetOperateType(std::uint32_t funcCode);
40 static std::uint32_t GetPolicyCode(std::uint32_t funcCode);
44 static std::string PrintFuncCode(std::uint32_t funcCode);
/base/customization/enterprise_device_management/test/unittest/edm_plugin/src/
Duser_cert_plugin_test.cpp117 std::uint32_t funcCode = variable
120 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
140 std::uint32_t funcCode = variable
143 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
163 std::uint32_t funcCode = variable
166 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
188 std::uint32_t funcCode = variable
191 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
198funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::REMOVE, EdmInterfaceCode::INSTALL_CERT…
202 …ret = plugin->OnHandlePolicy(funcCode, dataUninstall, replyUninstall, policyData, isChanged, DEFAU…
Diptables_rule_plugin_test.cpp83 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::GET, EdmInterfaceCode::I… variable
85 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
102 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::I… variable
104 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
121 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::REMOVE, EdmInterfaceCode… variable
123 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
165 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::I… variable
167 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
193 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::REMOVE, EdmInterfaceCode… variable
195 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
[all …]
Dusb_read_only_plugin_test.cpp62 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::U… variable
64 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
Ddisable_hdc_plugin_test.cpp60 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::D… variable
62 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
Ddisallow_modify_datetime_plugin_test.cpp53 std::uint32_t funcCode = variable
56 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
Ddisable_printer_plugin_test.cpp60 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::D… variable
62 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
/base/customization/enterprise_device_management/test/unittest/enterprise_device_mgr_proxy/enterprise_device_mgr_proxy_test/
Denterprise_device_mgr_proxy_test.cpp243 …int funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::SET_DATETIM… variable
245 enterpriseDeviceMgrProxyTest->IsPolicyDisabled(nullptr, funcCode, isDisabled);
256 …int funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::SET_DATETIM… variable
261 enterpriseDeviceMgrProxyTest->IsPolicyDisabled(nullptr, funcCode, isDisabled);
290 …int funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::DISABLED_PR… variable
292 int32_t ret = enterpriseDeviceMgrProxyTest->SetPolicyDisabled(admin, funcCode, isDisabled);
306 …int funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::DISABLED_PR… variable
311 int32_t ret = enterpriseDeviceMgrProxyTest->SetPolicyDisabled(admin, funcCode, isDisabled);
340 …int funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::SET_DATETIM… variable
342 bool ret = enterpriseDeviceMgrProxyTest->GetPolicyValue(nullptr, funcCode, policyData);
[all …]
/base/usb/usb_manager/test/native/mock/src/
Dusb_core_mock_test.cpp266 int32_t funcCode = usbSrv_->UsbFunctionsFromString(UsbSrvSupport::FUNCTION_NAME_NONE); variable
267 USB_HILOGI(MODULE_USB_SERVICE, "UsbCoreMockTest::functionsFromString=%{public}d", funcCode);
268 ASSERT_NE(UEC_SERVICE_INVALID_VALUE, funcCode);
279 int32_t funcCode = usbSrv_->UsbFunctionsFromString(UsbSrvSupport::FUNCTION_NAME_HDC); variable
280 USB_HILOGI(MODULE_USB_SERVICE, "UsbCoreMockTest::functionsFromString=%{public}d", funcCode);
281 ASSERT_NE(UEC_SERVICE_INVALID_VALUE, funcCode);
292 int32_t funcCode = usbSrv_->UsbFunctionsFromString(UsbSrvSupport::FUNCTION_NAME_ACM); variable
293 USB_HILOGI(MODULE_USB_SERVICE, "UsbCoreMockTest::functionsFromString=%{public}d", funcCode);
294 ASSERT_NE(UEC_SERVICE_INVALID_VALUE, funcCode);
305 int32_t funcCode = usbSrv_->UsbFunctionsFromString(UsbSrvSupport::FUNCTION_NAME_ECM); variable
[all …]
/base/customization/enterprise_device_management/interfaces/inner_api/bundle_manager/src/
Dbundle_manager_proxy.cpp87 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::U… in Uninstall() local
88 ErrCode ret = proxy->HandleDevicePolicy(funcCode, data, reply); in Uninstall()
105 std::uint32_t funcCode = 0; in AddBundlesByPolicyType() local
107funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, policyTypeMap_[policyType]); in AddBundlesByPolicyType()
117 return proxy->HandleDevicePolicy(funcCode, data); in AddBundlesByPolicyType()
130 std::uint32_t funcCode = 0; in RemoveBundlesByPolicyType() local
132funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::REMOVE, policyTypeMap_[policyType]); in RemoveBundlesByPolicyType()
142 return proxy->HandleDevicePolicy(funcCode, data); in RemoveBundlesByPolicyType()
212 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::I… in Install() local
213 ErrCode ret = proxy->HandleDevicePolicy(funcCode, data, reply); in Install()
/base/customization/enterprise_device_management/interfaces/inner_api/application_manager/src/
Dapplication_manager_proxy.cpp50 std::uint32_t funcCode = in AddDisallowedRunningBundles() local
57 return proxy->HandleDevicePolicy(funcCode, data); in AddDisallowedRunningBundles()
70 std::uint32_t funcCode = in RemoveDisallowedRunningBundles() local
77 return proxy->HandleDevicePolicy(funcCode, data); in RemoveDisallowedRunningBundles()
/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_core_test.cpp336 int32_t funcCode = instance.UsbFunctionsFromString(UsbSrvSupport::FUNCTION_NAME_NONE); variable
337 USB_HILOGI(MODULE_USB_SERVICE, "UsbCoreTest::functionsFromString=%{public}d", funcCode);
338 ASSERT_NE(UEC_SERVICE_INVALID_VALUE, funcCode);
351 int32_t funcCode = instance.UsbFunctionsFromString(UsbSrvSupport::FUNCTION_NAME_HDC); variable
352 USB_HILOGI(MODULE_USB_SERVICE, "UsbCoreTest::functionsFromString=%{public}d", funcCode);
353 ASSERT_NE(UEC_SERVICE_INVALID_VALUE, funcCode);
366 int32_t funcCode = instance.UsbFunctionsFromString(UsbSrvSupport::FUNCTION_NAME_ACM); variable
367 USB_HILOGI(MODULE_USB_SERVICE, "UsbCoreTest::functionsFromString=%{public}d", funcCode);
368 ASSERT_NE(UEC_SERVICE_INVALID_VALUE, funcCode);
381 int32_t funcCode = instance.UsbFunctionsFromString(UsbSrvSupport::FUNCTION_NAME_ECM); variable
[all …]
/base/customization/enterprise_device_management/interfaces/inner_api/network_manager/src/
Dnetwork_manager_proxy.cpp113 std::uint32_t funcCode = in SetNetworkInterfaceDisabled() local
122 return proxy->HandleDevicePolicy(funcCode, data); in SetNetworkInterfaceDisabled()
157 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::I… in AddIptablesFilterRule() local
162 return EnterpriseDeviceMgrProxy::GetInstance()->HandleDevicePolicy(funcCode, data); in AddIptablesFilterRule()
170 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::REMOVE, EdmInterfaceCode… in RemoveIptablesFilterRule() local
175 return EnterpriseDeviceMgrProxy::GetInstance()->HandleDevicePolicy(funcCode, data); in RemoveIptablesFilterRule()
203 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::G… in SetGlobalHttpProxy() local
211 int32_t ret = EnterpriseDeviceMgrProxy::GetInstance()->HandleDevicePolicy(funcCode, data); in SetGlobalHttpProxy()
/base/customization/enterprise_device_management/interfaces/inner_api/device_settings/src/
Ddevice_settings_proxy.cpp70 std::uint32_t funcCode = in InstallUserCertificate() local
77 … ErrCode ret = EnterpriseDeviceMgrProxy::GetInstance()->HandleDevicePolicy(funcCode, data, reply); in InstallUserCertificate()
95 std::uint32_t funcCode = in UninstallUserCertificate() local
101 … ErrCode ret = EnterpriseDeviceMgrProxy::GetInstance()->HandleDevicePolicy(funcCode, data, reply); in UninstallUserCertificate()
/base/customization/enterprise_device_management/test/unittest/include/
Diplugin_mock.h32 …ErrCode OnHandlePolicy(std::uint32_t funcCode, MessageParcel &data, MessageParcel &reply, std::str… in OnHandlePolicy() argument
38 void OnHandlePolicyDone(std::uint32_t funcCode, const std::string &adminName, in OnHandlePolicyDone() argument
Dplugin_manager_test.h38 …ErrCode OnHandlePolicy(std::uint32_t funcCode, MessageParcel &data, MessageParcel &reply, std::str… in OnHandlePolicy() argument
49 …void OnHandlePolicyDone(std::uint32_t funcCode, const std::string &adminName, bool isGlobalChanged, in OnHandlePolicyDone() argument
/base/customization/enterprise_device_management/interfaces/inner_api/device_control/src/
Ddevice_control_proxy.cpp52 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::R… in ResetFactory() local
56 return proxy->HandleDevicePolicy(funcCode, data); in ResetFactory()
/base/customization/enterprise_device_management/services/edm_plugin/include/
Duser_cert_plugin.h28 …ErrCode OnHandlePolicy(std::uint32_t funcCode, MessageParcel &data, MessageParcel &reply, std::str…
31 …void OnHandlePolicyDone(std::uint32_t funcCode, const std::string &adminName, bool isGlobalChanged, in OnHandlePolicyDone() argument
Diptables_rule_plugin.h29 …ErrCode OnHandlePolicy(std::uint32_t funcCode, MessageParcel &data, MessageParcel &reply, std::str…
32 …void OnHandlePolicyDone(std::uint32_t funcCode, const std::string &adminName, bool isGlobalChanged, in OnHandlePolicyDone() argument
/base/customization/enterprise_device_management/services/edm/src/
Dplugin_manager.cpp66 std::shared_ptr<IPlugin> PluginManager::GetPluginByFuncCode(std::uint32_t funcCode) in GetPluginByFuncCode() argument
68 FuncCodeUtils::PrintFuncCode(funcCode); in GetPluginByFuncCode()
69 FuncFlag flag = FuncCodeUtils::GetSystemFlag(funcCode); in GetPluginByFuncCode()
71 std::uint32_t code = FuncCodeUtils::GetPolicyCode(funcCode); in GetPluginByFuncCode()
/base/customization/enterprise_device_management/interfaces/inner_api/datetime_manager/src/
Ddatetime_manager_proxy.cpp47 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::S… in SetDateTime() local
52 return EnterpriseDeviceMgrProxy::GetInstance()->HandleDevicePolicy(funcCode, data); in SetDateTime()
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/include/
Diplugin.h48 … virtual ErrCode OnHandlePolicy(std::uint32_t funcCode, MessageParcel &data, MessageParcel &reply,
59 …virtual void OnHandlePolicyDone(std::uint32_t funcCode, const std::string &adminName, bool isGloba…
/base/customization/enterprise_device_management/interfaces/inner_api/wifi_manager/src/
Dwifi_manager_proxy.cpp78 …std::uint32_t funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::SET, EdmInterfaceCode::S… in SetWifiProfile() local
83 return proxy->HandleDevicePolicy(funcCode, data); in SetWifiProfile()

12