Home
last modified time | relevance | path

Searched refs:DEFAULT_USER_ID (Results 1 – 25 of 43) sorted by relevance

12

/base/customization/enterprise_device_management/test/unittest/src/
Dadmin_manager_test.cpp46 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 …]
Denterprise_device_mgr_ability_test.cpp62 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 …]
Diplugin_template_test.cpp92 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 …]
Denterprise_admin_connection_test.cpp30 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);
Denterprise_bundle_connection_test.cpp30 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/
Ddisallowed_running_bundles_plugin_test.cpp55 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);
Dnetwork_manager_plugin_test.cpp65 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 …]
Dbundle_install_plugin_test.cpp62 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 …]
Dget_device_name_plugin_test.cpp60 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);
Dset_browser_policies_plugin_test.cpp51 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);
Duser_cert_plugin_test.cpp120 …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);
Dinstall_plugin_test.cpp48 InstallParam param = {{HAP_FILE_PATH}, DEFAULT_USER_ID, 0};
53 UninstallParam uninstallParam = {"com.example.l3jsdemo", DEFAULT_USER_ID, false};
Dget_screen_off_time_plugin_test.cpp60 ErrCode code = plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID);
64 code = plugin->OnGetPolicy(policyValue, data, reply, DEFAULT_USER_ID);
Ddevice_info_plugin_test.cpp48 ErrCode ret = plugin_->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
63 ErrCode ret = plugin_->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
Dis_wifi_active_plugin_test.cpp59 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
75 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
Ddisable_hdc_plugin_test.cpp62 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID);
78 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
Ddisallow_modify_datetime_plugin_test.cpp56 …rrCode ret = plugin->OnHandlePolicy(funcCode, data, reply, policyData, isChanged, DEFAULT_USER_ID);
75 ErrCode ret = plugin->OnGetPolicy(policyData, data, reply, DEFAULT_USER_ID);
Diptables_rule_plugin_test.cpp63 …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 …]
Ddisable_printer_plugin_test.cpp62 …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/
Denterprise_device_mgr_ability_test.cpp89 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/
Daccount_event_provider_test.cpp35 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/
Dbundle_manager_proxy_test.cpp86 …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/
Dapplication_manager_proxy_test.cpp80 …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/
Denterprise_device_mgr_proxy.h31 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/
Denterprise_device_mgr_ability.cpp126 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 …]

12