/base/customization/enterprise_device_management/services/edm/src/ |
D | super_admin.cpp | 23 return AdminType::ENT; in GetAdminType()
|
D | enterprise_device_mgr_ability.cpp | 128 …min->GetAdminType() == AdminType::SUB_SUPER_ADMIN || subAdmin->GetAdminType() == AdminType::ENT) && in OnCommonEventUserRemoved() 157 if (admin->adminInfo_.adminType_ == AdminType::ENT && userId == DEFAULT_USER_ID) { in OnCommonEventPackageRemoved() 453 if (type == AdminType::ENT && userId != DEFAULT_USER_ID) { in VerifyEnableAdminCondition() 464 …if (existAdmin->GetAdminType() == AdminType::ENT && (type != AdminType::ENT || userId != DEFAULT_U… in VerifyEnableAdminCondition() 474 if (type == AdminType::ENT && adminMgr_->IsSuperAdminExist()) { in VerifyEnableAdminCondition() 475 if (existAdmin == nullptr || existAdmin->adminInfo_.adminType_ != AdminType::ENT) { in VerifyEnableAdminCondition() 703 if (admin->adminInfo_.adminType_ != AdminType::ENT) { in DisableSuperAdmin() 741 if (admin->adminInfo_.adminType_ == AdminType::ENT) { in IsSuperAdmin() 854 (deviceAdmin->adminInfo_.adminType_ != AdminType::ENT && in HandleDevicePolicy() 945 adminMgr_->GetEnabledAdmin(AdminType::ENT, superList, DEFAULT_USER_ID); in GetEnabledAdmin() [all …]
|
D | admin_manager.cpp | 109 if (role == AdminType::NORMAL && it.adminType == AdminType::ENT) { in SetAdminValue() 208 if ((type == AdminType::NORMAL) && (it.adminType == AdminType::ENT)) { in GetGrantedPermission() 258 …](const std::shared_ptr<Admin> &admin) { return admin->adminInfo_.adminType_ == AdminType::ENT; }); in IsSuperAdminExist() 273 return superAdmin->adminInfo_.adminType_ == AdminType::ENT || in IsSuperOrSubSuperAdmin() 314 …dmin->adminInfo_.packageName_ == subAdminName && (admin->adminInfo_.adminType_ == AdminType::ENT || in GetSubOrSuperAdminByPkgName()
|
D | enterprise_device_mgr_stub.cpp | 124 …(type == static_cast<int32_t>(AdminType::NORMAL) || type == static_cast<int32_t>(AdminType::ENT)) { in EnableAdminInner()
|
/base/customization/enterprise_device_management/common/native/include/ |
D | admin_type.h | 23 ENT, enumerator
|
/base/customization/enterprise_device_management/test/unittest/src/ |
D | admin_manager_test.cpp | 95 res = adminMgr_->GetGrantedPermission(permissions, AdminType::ENT); 105 res = adminMgr_->GetGrantedPermission(permissions, AdminType::ENT); 134 …res = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::ENT, permissions, DEFAULT_USER_ID); 167 …res = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::ENT, permissions, DEFAULT_USER_ID); 200 …res = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::ENT, permissions, DEFAULT_USER_ID); 262 …res = adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::ENT, permissions, DEFAULT_USER_ID); 318 res = adminMgr_->GetGrantedPermission(permissions, AdminType::ENT); 320 adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::ENT, permissions, DEFAULT_USER_ID); 351 adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::ENT, permissions, DEFAULT_USER_ID); 371 adminMgr_->SetAdminValue(abilityInfo, entInfo, AdminType::ENT, permissions, DEFAULT_USER_ID); [all …]
|
D | enterprise_device_mgr_proxy_test.cpp | 107 …ErrCode errVal = enterpriseDeviceMgrProxyTest->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT…
|
D | enterprise_device_mgr_ability_test.cpp | 549 …EXPECT_TRUE(SUCCEEDED(edmMgr_->EnableAdmin(superAdmin, entInfo, AdminType::ENT, DEFAULT_USER_ID))); 641 …EXPECT_TRUE(SUCCEEDED(edmMgr_->EnableAdmin(superAdmin, entInfo, AdminType::ENT, DEFAULT_USER_ID))); 702 …EXPECT_TRUE(SUCCEEDED(edmMgr_->EnableAdmin(superAdmin, entInfo, AdminType::ENT, DEFAULT_USER_ID))); 779 …EXPECT_TRUE(SUCCEEDED(edmMgr_->EnableAdmin(superAdmin, entInfo, AdminType::ENT, DEFAULT_USER_ID))); 884 EXPECT_TRUE(SUCCEEDED(edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID))); 910 EXPECT_TRUE(SUCCEEDED(edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID))); 936 EXPECT_TRUE(SUCCEEDED(edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID)));
|
/base/customization/enterprise_device_management/common/native/src/ |
D | edm_permission.cpp | 57 …(type == static_cast<int32_t>(AdminType::NORMAL) || type == static_cast<int32_t>(AdminType::ENT)) { in ReadFromParcel()
|
/base/customization/enterprise_device_management/test/unittest/enterprise_device_mgr_ability/enterprise_device_mgr_ability_test/ |
D | enterprise_device_mgr_ability_test.cpp | 309 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID); 350 res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID); 399 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID); 425 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID); 451 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID); 496 res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID); 510 edmMgr_->GetEnabledAdmin(AdminType::ENT, enabledAdminList); 541 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID); 557 edmMgr_->GetEnabledAdmin(AdminType::ENT, enabledAdminList);
|
/base/customization/enterprise_device_management/tools/edm/src/ |
D | edm_command.cpp | 108 return RunAsEnableCommand(AdminType::ENT); in RunAsEnableSuperAdminCommand()
|
/base/customization/enterprise_device_management/interfaces/inner_api/common/src/ |
D | enterprise_device_mgr_proxy.cpp | 525 GetEnabledAdmins(AdminType::ENT, enabledAdminList); in GetEnabledSuperAdmin() 534 GetEnabledAdmins(AdminType::ENT, enabledAdminList); in IsSuperAdminExist()
|
/base/customization/enterprise_device_management/interfaces/kits/admin_manager/src/ |
D | admin_manager_addon.cpp | 78 …(type == static_cast<int32_t>(AdminType::NORMAL) || type == static_cast<int32_t>(AdminType::ENT)) { in ParseAdminType() 673 … NAPI_CALL_RETURN_VOID(env, napi_create_int32(env, static_cast<int32_t>(AdminType::ENT), &nSuper)); in CreateAdminTypeObject()
|