/base/customization/enterprise_device_management/test/unittest/src/ |
D | iplugin_template_test.cpp | 42 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/ |
D | func_code_utils.cpp | 37 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/ |
D | func_code_utils.h | 30 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/ |
D | user_cert_plugin_test.cpp | 117 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… 198 …funcCode = POLICY_FUNC_CODE((std::uint32_t)FuncOperateType::REMOVE, EdmInterfaceCode::INSTALL_CERT… 202 …ret = plugin->OnHandlePolicy(funcCode, dataUninstall, replyUninstall, policyData, isChanged, DEFAU…
|
D | iptables_rule_plugin_test.cpp | 83 …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 …]
|
D | usb_read_only_plugin_test.cpp | 62 …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…
|
D | disable_hdc_plugin_test.cpp | 60 …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…
|
D | disallow_modify_datetime_plugin_test.cpp | 53 std::uint32_t funcCode = variable 56 …ErrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID…
|
D | disable_printer_plugin_test.cpp | 60 …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/ |
D | enterprise_device_mgr_proxy_test.cpp | 243 …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/ |
D | usb_core_mock_test.cpp | 266 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/ |
D | bundle_manager_proxy.cpp | 87 …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 107 … funcCode = 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 132 … funcCode = 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/ |
D | application_manager_proxy.cpp | 50 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/ |
D | usb_core_test.cpp | 336 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/ |
D | network_manager_proxy.cpp | 113 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/ |
D | device_settings_proxy.cpp | 70 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/ |
D | iplugin_mock.h | 32 …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
|
D | plugin_manager_test.h | 38 …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/ |
D | device_control_proxy.cpp | 52 …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/ |
D | user_cert_plugin.h | 28 …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
|
D | iptables_rule_plugin.h | 29 …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/ |
D | plugin_manager.cpp | 66 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/ |
D | datetime_manager_proxy.cpp | 47 …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/ |
D | iplugin.h | 48 … 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/ |
D | wifi_manager_proxy.cpp | 78 …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()
|