Home
last modified time | relevance | path

Searched refs:ENT (Results 1 – 12 of 12) sorted by relevance

/base/customization/enterprise_device_management/services/edm/src/
Dsuper_admin.cpp23 return AdminType::ENT; in GetAdminType()
Denterprise_device_mgr_ability.cpp128 …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()
691 if (admin->adminInfo_.adminType_ != AdminType::ENT) { in DisableSuperAdmin()
729 if (admin->adminInfo_.adminType_ == AdminType::ENT) { in IsSuperAdmin()
842 (deviceAdmin->adminInfo_.adminType_ != AdminType::ENT && in HandleDevicePolicy()
933 adminMgr_->GetEnabledAdmin(AdminType::ENT, superList, DEFAULT_USER_ID); in GetEnabledAdmin()
[all …]
Dadmin_manager.cpp109 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()
Denterprise_device_mgr_stub.cpp124 …(type == static_cast<int32_t>(AdminType::NORMAL) || type == static_cast<int32_t>(AdminType::ENT)) { in EnableAdminInner()
/base/customization/enterprise_device_management/common/native/include/
Dadmin_type.h23 ENT, enumerator
/base/customization/enterprise_device_management/test/unittest/src/
Dadmin_manager_test.cpp95 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 …]
Denterprise_device_mgr_proxy_test.cpp107 …ErrCode errVal = enterpriseDeviceMgrProxyTest->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT…
Denterprise_device_mgr_ability_test.cpp549 …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/
Dedm_permission.cpp57 …(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/
Denterprise_device_mgr_ability_test.cpp312 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID);
354 res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID);
403 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID);
429 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID);
455 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID);
500 res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID);
514 edmMgr_->GetEnabledAdmin(AdminType::ENT, enabledAdminList);
545 ErrCode res = edmMgr_->EnableAdmin(admin, entInfo, AdminType::ENT, DEFAULT_USER_ID);
561 edmMgr_->GetEnabledAdmin(AdminType::ENT, enabledAdminList);
/base/customization/enterprise_device_management/interfaces/inner_api/common/src/
Denterprise_device_mgr_proxy.cpp525 GetEnabledAdmins(AdminType::ENT, enabledAdminList); in GetEnabledSuperAdmin()
534 GetEnabledAdmins(AdminType::ENT, enabledAdminList); in IsSuperAdminExist()
/base/customization/enterprise_device_management/interfaces/kits/admin_manager/src/
Dadmin_manager_addon.cpp78 …(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()