/base/customization/enterprise_device_management/test/unittest/src/ |
D | admin_manager_test.cpp | 46 adminMgr_->GetAdminByUserId(DEFAULT_USER_ID, userAdmin); in TearDown() 48 adminMgr_->DeleteAdmin(admin->adminInfo_.packageName_, DEFAULT_USER_ID); in TearDown() 127 … = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::NORMAL, permissions, DEFAULT_USER_ID); 129 adminMgr_->GetAdminByUserId(DEFAULT_USER_ID, userAdmin); 134 …res = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::ENT, permissions, DEFAULT_USER_ID); 137 adminMgr_->GetAdminByUserId(DEFAULT_USER_ID, userAdmin); 158 … = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::NORMAL, permissions, DEFAULT_USER_ID); 167 …res = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::ENT, permissions, DEFAULT_USER_ID); 171 admin = adminMgr_->GetAdminByPkgName("com.edm.test.demo", DEFAULT_USER_ID); 174 admin = adminMgr_->GetAdminByPkgName("com.edm.test.demo1", DEFAULT_USER_ID); [all …]
|
D | enterprise_device_mgr_ability_test.cpp | 62 edmMgr_->policyMgr_.reset(new (std::nothrow) PolicyManager(DEFAULT_USER_ID)); in SetUp() 86 std::pair<int32_t, std::vector<std::shared_ptr<Admin>>>(DEFAULT_USER_ID, adminVec)); in PrepareBeforeHandleDevicePolicy() 108 ErrCode res = edmMgr_->HandleDevicePolicy(code, elementName, data, reply, DEFAULT_USER_ID); 130 ErrCode res = edmMgr_->HandleDevicePolicy(code, elementName, data, reply, DEFAULT_USER_ID); 149 ErrCode res = edmMgr_->HandleDevicePolicy(code, elementName, data, reply, DEFAULT_USER_ID); 168 ErrCode res = edmMgr_->HandleDevicePolicy(code, elementName, data, reply, DEFAULT_USER_ID); 187 std::pair<int32_t, std::vector<std::shared_ptr<Admin>>>(DEFAULT_USER_ID, adminVec)); 193 ErrCode res = edmMgr_->HandleDevicePolicy(code, elementName, data, reply, DEFAULT_USER_ID); 213 std::pair<int32_t, std::vector<std::shared_ptr<Admin>>>(DEFAULT_USER_ID, adminVec)); 223 ErrCode res = edmMgr_->HandleDevicePolicy(code, elementName, data, reply, DEFAULT_USER_ID); [all …]
|
D | iplugin_template_test.cpp | 92 res = plugin->OnHandlePolicy(funcCode, data, reply, policyValue, isChange, DEFAULT_USER_ID); 103 res = plugin->OnHandlePolicy(funcCode, data, reply, policyValue, isChange, DEFAULT_USER_ID); 134 res = plugin->OnHandlePolicy(funcCode, data, reply, policyValue, isChange, DEFAULT_USER_ID); 143 res = plugin->OnHandlePolicy(funcCode, data, reply, policyValue, isChange, DEFAULT_USER_ID); 155 res = plugin->OnHandlePolicy(funcCode, data, reply, policyValue, isChange, DEFAULT_USER_ID); 186 res = plugin->OnHandlePolicy(funcCode, data, reply, policyValue, isChange, DEFAULT_USER_ID); 195 res = plugin->OnHandlePolicy(funcCode, data, reply, policyValue, isChange, DEFAULT_USER_ID); 204 res = plugin->OnHandlePolicy(funcCode, data, reply, policyValue, isChange, DEFAULT_USER_ID); 216 res = plugin->OnHandlePolicy(funcCode, data, reply, policyValue, isChange, DEFAULT_USER_ID); 243 plugin->OnHandlePolicyDone(funcCode, adminName, true, DEFAULT_USER_ID); [all …]
|
D | enterprise_admin_connection_test.cpp | 30 constexpr int32_t DEFAULT_USER_ID = 100; variable 62 IEnterpriseAdmin::COMMAND_ON_ADMIN_ENABLED, DEFAULT_USER_ID); 87 IEnterpriseAdmin::COMMAND_ON_ADMIN_DISABLED, DEFAULT_USER_ID); 112 COMMAND_ON_ADMIN_CODE, DEFAULT_USER_ID);
|
D | enterprise_bundle_connection_test.cpp | 30 constexpr int32_t DEFAULT_USER_ID = 100; variable 61 static_cast<uint32_t>(ManagedEvent::BUNDLE_ADDED), DEFAULT_USER_ID, "com.edm.test.add"); 85 … static_cast<uint32_t>(ManagedEvent::BUNDLE_REMOVED), DEFAULT_USER_ID, "com.edm.test.remove"); 109 COMMAND_ON_ADMIN_CODE, DEFAULT_USER_ID, "com.edm.test.err");
|
/base/customization/enterprise_device_management/test/unittest/edm_plugin/src/ |
D | disallowed_running_bundles_plugin_test.cpp | 55 ErrCode ret = plugin.OnSetPolicy(data, currentData, DEFAULT_USER_ID); 69 ErrCode ret = plugin.OnSetPolicy(data, currentData, DEFAULT_USER_ID); 84 ErrCode ret = plugin.OnSetPolicy(data, currentData, DEFAULT_USER_ID); 100 ErrCode ret = plugin.OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID); 114 ErrCode ret = plugin.OnRemovePolicy(data, currentData, DEFAULT_USER_ID); 129 ErrCode ret = plugin.OnRemovePolicy(data, currentData, DEFAULT_USER_ID); 148 ErrCode res = plugin.OnSetPolicy(data, currentData, DEFAULT_USER_ID); 156 GetAppRunningControlRule(DEFAULT_USER_ID, result); 164 plugin.OnAdminRemoveDone(adminName, appIds, DEFAULT_USER_ID); 168 res = appControlProxy->GetAppRunningControlRule(DEFAULT_USER_ID, result);
|
D | network_manager_plugin_test.cpp | 65 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID); 80 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID); 95 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID); 112 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID); 129 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID); 147 ErrCode ret = plugin->OnHandlePolicy(code, data, reply, policyStr, isChanged, DEFAULT_USER_ID); 154 ret = plugin->OnHandlePolicy(code, data, reply, policyStr, isChanged, DEFAULT_USER_ID); 176 ErrCode ret = plugin->OnHandlePolicy(code, data, reply, policyStr, isChanged, DEFAULT_USER_ID); 180 ret = plugin->OnGetPolicy(policyStr, data, reply, DEFAULT_USER_ID); 188 ret = plugin->OnHandlePolicy(code, data, reply, policyStr, isChanged, DEFAULT_USER_ID); [all …]
|
D | bundle_install_plugin_test.cpp | 62 ErrCode ret = plugin.OnSetPolicy(data, currentData, DEFAULT_USER_ID); 80 ErrCode ret = plugin.OnSetPolicy(data, currentData, DEFAULT_USER_ID); 99 ErrCode ret = plugin.OnSetPolicy(data, currentData, DEFAULT_USER_ID); 117 ErrCode ret = allowedInsatllPlugin.OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID); 121 ret = disallowedInsatllPlugin.OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID); 125 ret = disallowedUninsatllPlugin.OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID); 142 ErrCode ret = plugin.OnRemovePolicy(data, currentData, DEFAULT_USER_ID); 161 ErrCode ret = plugin.OnRemovePolicy(data, currentData, DEFAULT_USER_ID); 180 ErrCode ret = plugin.OnRemovePolicy(data, currentData, DEFAULT_USER_ID); 202 ErrCode res = plugin.OnSetPolicy(data, currentData, DEFAULT_USER_ID); [all …]
|
D | get_device_name_plugin_test.cpp | 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 | set_browser_policies_plugin_test.cpp | 51 ErrCode ret = plugin.OnSetPolicy(policies, currentData, DEFAULT_USER_ID); 67 ErrCode ret = plugin.OnSetPolicy(policies, currentData, DEFAULT_USER_ID); 84 ErrCode ret = plugin.OnSetPolicy(policies, currentData, DEFAULT_USER_ID); 106 plugin.OnGetPolicy(jsonString, data, reply, DEFAULT_USER_ID); 127 plugin.OnGetPolicy(jsonString, data, reply, DEFAULT_USER_ID);
|
D | user_cert_plugin_test.cpp | 120 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID); 143 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID); 166 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID); 191 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID); 202 …n->OnHandlePolicy(funcCode, dataUninstall, replyUninstall, policyData, isChanged, DEFAULT_USER_ID);
|
D | install_plugin_test.cpp | 48 InstallParam param = {{HAP_FILE_PATH}, DEFAULT_USER_ID, 0}; 53 UninstallParam uninstallParam = {"com.example.l3jsdemo", DEFAULT_USER_ID, false};
|
D | get_screen_off_time_plugin_test.cpp | 60 ErrCode code = plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID); 64 code = plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID);
|
D | device_info_plugin_test.cpp | 48 ErrCode ret = plugin_->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID); 63 ErrCode ret = plugin_->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
|
D | is_wifi_active_plugin_test.cpp | 59 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID); 75 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
|
D | disable_hdc_plugin_test.cpp | 62 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID); 78 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
|
D | disallow_modify_datetime_plugin_test.cpp | 56 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID); 75 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
|
D | iptables_rule_plugin_test.cpp | 63 …andlePolicy(removeFuncCode, removeData, removeReply, policyRemoveData, isChanged, DEFAULT_USER_ID); in ResetIptablesRule() 69 …lePolicy(removeFuncCode, removeOutData, removeReply, policyRemoveData, isChanged, DEFAULT_USER_ID); in ResetIptablesRule() 85 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID); 104 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID); 123 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID); 138 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID); 167 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID); 195 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID); 215 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID); 235 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID); [all …]
|
D | disable_printer_plugin_test.cpp | 62 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID); 79 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
|
/base/customization/enterprise_device_management/test/unittest/enterprise_device_mgr_ability/enterprise_device_mgr_ability_test/ |
D | enterprise_device_mgr_ability_test.cpp | 89 edmMgr_->policyMgr_.reset(new (std::nothrow) PolicyManager(DEFAULT_USER_ID)); in SetUp() 147 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID); 167 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::NORMAL, DEFAULT_USER_ID); 170 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID); 173 res = edmMgr_->DisableAdmin(admin, DEFAULT_USER_ID); 179 res = edmMgr_->DisableAdmin(admin1, DEFAULT_USER_ID); 199 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::NORMAL, DEFAULT_USER_ID); 202 bool isEnable = edmMgr_->IsAdminEnabled(admin, DEFAULT_USER_ID); 205 res = edmMgr_->DisableAdmin(admin, DEFAULT_USER_ID); 225 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::NORMAL, DEFAULT_USER_ID); [all …]
|
/base/account/os_account/services/accountmgr/test/unittest/common/account_event_provider_test/ |
D | account_event_provider_test.cpp | 35 constexpr int32_t DEFAULT_USER_ID = 100; variable 65 EventFwk::CommonEventSupport::COMMON_EVENT_HWID_LOGOFF, DEFAULT_USER_ID, nullptr); 68 … EventFwk::CommonEventSupport::COMMON_EVENT_DISTRIBUTED_ACCOUNT_LOGOFF, DEFAULT_USER_ID, nullptr);
|
/base/customization/enterprise_device_management/test/unittest/bundle_manager_proxy/ |
D | bundle_manager_proxy_test.cpp | 86 …ErrCode ret = bundleManagerProxy->AddBundlesByPolicyType(admin, bundles, DEFAULT_USER_ID, policyTy… 103 …ErrCode ret = bundleManagerProxy->AddBundlesByPolicyType(admin, bundles, DEFAULT_USER_ID, policyTy… 122 …ErrCode ret = bundleManagerProxy->RemoveBundlesByPolicyType(admin, bundles, DEFAULT_USER_ID, polic… 139 …ErrCode ret = bundleManagerProxy->RemoveBundlesByPolicyType(admin, bundles, DEFAULT_USER_ID, polic… 158 …ErrCode ret = bundleManagerProxy->GetBundlesByPolicyType(admin, DEFAULT_USER_ID, bundles, policyTy… 177 …ErrCode ret = bundleManagerProxy->GetBundlesByPolicyType(admin, DEFAULT_USER_ID, bundles, policyTy… 193 …ErrCode ret = bundleManagerProxy->AddBundlesByPolicyType(admin, bundles, DEFAULT_USER_ID, policyTy… 196 … ret = bundleManagerProxy->RemoveBundlesByPolicyType(admin, bundles, DEFAULT_USER_ID, policyType); 199 ret = bundleManagerProxy->GetBundlesByPolicyType(admin, DEFAULT_USER_ID, bundles, policyType); 215 …ErrCode ret = bundleManagerProxy->Uninstall(admin, ADMIN_PACKAGENAME, DEFAULT_USER_ID, false, retM… [all …]
|
/base/customization/enterprise_device_management/test/unittest/application_manager_proxy/ |
D | application_manager_proxy_test.cpp | 80 …rCode ret = applicationManagerProxy_->AddDisallowedRunningBundles(admin, bundles, DEFAULT_USER_ID); 94 …rCode ret = applicationManagerProxy_->AddDisallowedRunningBundles(admin, bundles, DEFAULT_USER_ID); 110 …de ret = applicationManagerProxy_->RemoveDisallowedRunningBundles(admin, bundles, DEFAULT_USER_ID); 124 …de ret = applicationManagerProxy_->RemoveDisallowedRunningBundles(admin, bundles, DEFAULT_USER_ID); 140 …ErrCode ret = applicationManagerProxy_->GetDisallowedRunningBundles(admin, DEFAULT_USER_ID, bundle… 156 …ErrCode ret = applicationManagerProxy_->GetDisallowedRunningBundles(admin, DEFAULT_USER_ID, bundle…
|
/base/customization/enterprise_device_management/interfaces/inner_api/common/include/ |
D | enterprise_device_mgr_proxy.h | 31 constexpr int32_t DEFAULT_USER_ID = 100; variable 62 int32_t userId = DEFAULT_USER_ID); 64 int32_t userId = DEFAULT_USER_ID); 66 int32_t userId = DEFAULT_USER_ID);
|
/base/customization/enterprise_device_management/services/edm/src/ |
D | enterprise_device_mgr_ability.cpp | 126 adminMgr_->GetAdminByUserId(DEFAULT_USER_ID, subAndSuperAdmin); in OnCommonEventUserRemoved() 133 policyMgr_ = GetAndSwitchPolicyManagerByUserId(DEFAULT_USER_ID); in OnCommonEventUserRemoved() 154 … if (admin->adminInfo_.adminType_ == AdminType::SUB_SUPER_ADMIN && userId == DEFAULT_USER_ID) { in OnCommonEventPackageRemoved() 157 if (admin->adminInfo_.adminType_ == AdminType::ENT && userId == DEFAULT_USER_ID) { in OnCommonEventPackageRemoved() 296 if (userId < DEFAULT_USER_ID) { in InitAllPolices() 301 policyMgr_ = GetAndSwitchPolicyManagerByUserId(DEFAULT_USER_ID); in InitAllPolices() 453 if (type == AdminType::ENT && userId != DEFAULT_USER_ID) { in VerifyEnableAdminCondition() 464 …Admin->GetAdminType() == AdminType::ENT && (type != AdminType::ENT || userId != DEFAULT_USER_ID)) { in VerifyEnableAdminCondition() 593 if (adminMgr_->IsSuperOrSubSuperAdmin(adminName) && userId != DEFAULT_USER_ID) { in RemoveAdmin() 614 policyMgr_ = GetAndSwitchPolicyManagerByUserId(DEFAULT_USER_ID); in RemovePolicyAndAdmin() [all …]
|