Searched refs:adminItem (Results 1 – 2 of 2) sorted by relevance
/base/customization/enterprise_device_management/services/edm/src/ |
D | admin_manager.cpp | 79 for (const auto &adminItem : admins_) { in GetAdminBySubscribeEvent() local 81 for (const auto &it : adminItem.second) { in GetAdminBySubscribeEvent() 88 subscribeAdmins[adminItem.first] = subAdmin; in GetAdminBySubscribeEvent() 115 std::shared_ptr<Admin> adminItem = GetAdminByPkgName(abilityInfo.bundleName, userId); in SetAdminValue() local 116 …if (!adminItem && !adminPoliciesStorageRdb->InsertAdmin(userId, abilityInfo, entInfo, role, permis… in SetAdminValue() 119 …} else if (adminItem && !adminPoliciesStorageRdb->UpdateAdmin(userId, abilityInfo, entInfo, role, … in SetAdminValue() 131 adminItem = admin.back(); in SetAdminValue() 132 } else if (ret && !adminItem) { in SetAdminValue() 134 adminItem = admin.back(); in SetAdminValue() 136 adminItem->adminInfo_.adminType_ = role; in SetAdminValue() [all …]
|
D | enterprise_device_mgr_ability.cpp | 982 std::shared_ptr<Admin> adminItem = adminMgr_->GetAdminByPkgName(admin.GetBundleName(), userId); in SetEnterpriseInfo() local 983 if (adminItem == nullptr) { in SetEnterpriseInfo() 986 int32_t ret = CheckCallingUid(adminItem->adminInfo_.packageName_); in SetEnterpriseInfo() 1039 …std::shared_ptr<Admin> adminItem = adminMgr_->GetAdminByPkgName(admin.GetBundleName(), GetCurrentU… in VerifyManagedEvent() local 1040 if (adminItem == nullptr) { in VerifyManagedEvent() 1043 int32_t ret = CheckCallingUid(adminItem->adminInfo_.packageName_); in VerifyManagedEvent() 1080 …std::shared_ptr<Admin> adminItem = adminMgr_->GetAdminByPkgName(admin.GetBundleName(), GetCurrentU… in AuthorizeAdmin() local 1081 if (adminItem == nullptr) { in AuthorizeAdmin() 1085 if (adminItem->GetAdminType() != AdminType::ENT) { in AuthorizeAdmin()
|