Home
last modified time | relevance | path

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

/ohos5.0/base/customization/enterprise_device_management/services/edm/src/
H A Denterprise_device_mgr_ability.cpp716 std::shared_ptr<Admin> existAdmin = adminMgr_->GetAdminByPkgName(admin.GetBundleName(), userId); in VerifyEnableAdminCondition() local
717 if (existAdmin != nullptr) { in VerifyEnableAdminCondition()
718 if (existAdmin->GetAdminType() == AdminType::SUB_SUPER_ADMIN || in VerifyEnableAdminCondition()
719 existAdmin->GetAdminType() == AdminType::VIRTUAL_ADMIN) { in VerifyEnableAdminCondition()
723 …if (existAdmin->GetAdminType() == AdminType::ENT && (type != AdminType::ENT || userId != DEFAULT_U… in VerifyEnableAdminCondition()
727 if (isDebug != existAdmin->adminInfo_.isDebug_) { in VerifyEnableAdminCondition()
732 if (existAdmin->adminInfo_.className_ != admin.GetAbilityName()) { in VerifyEnableAdminCondition()
738 if (existAdmin == nullptr || existAdmin->adminInfo_.adminType_ != AdminType::ENT) { in VerifyEnableAdminCondition()
1007 std::shared_ptr<Admin> existAdmin = adminMgr_->GetAdminByPkgName(admin.GetBundleName(), userId); in IsAdminEnabled() local
1008 if (existAdmin != nullptr) { in IsAdminEnabled()