Searched refs:permDef (Results 1 – 7 of 7) sorted by relevance
46 bool PermissionValidator::IsPermissionDefValid(const PermissionDef& permDef) in IsPermissionDefValid() argument48 if (!DataValidator::IsLabelValid(permDef.label)) { in IsPermissionDefValid()51 if (!DataValidator::IsDescValid(permDef.description)) { in IsPermissionDefValid()54 if (!DataValidator::IsBundleNameValid(permDef.bundleName)) { in IsPermissionDefValid()57 if (!DataValidator::IsPermissionNameValid(permDef.permissionName)) { in IsPermissionDefValid()60 if (!IsGrantModeValid(permDef.grantMode)) { in IsPermissionDefValid()63 return DataValidator::IsAplNumValid(permDef.availableLevel); in IsPermissionDefValid()
54 permissionDefinitionMap_[info.permissionName].permDef = info; in Insert()62 permissionDefinitionMap_[info.permissionName].permDef = info; in Update()72 if (bundleName == it->second.permDef.bundleName) { in DeleteByBundleName()89 info = it->second.permDef; in FindByPermissionName()111 return it->second.permDef.grantMode == grantMode; in IsGrantedModeEqualInner()133 DataTranslator::TranslationIntoGenericValues(it->second.permDef, genericValues); in StorePermissionDef()146 permList.emplace_back(it->second.permDef); in GetDefPermissionsByTokenId()
265 PermissionDef permDef; in GetReqPermissions() local266 GetDefPermission(perm.permissionName, permDef); in GetReqPermissions()267 if (permDef.grantMode == mode) { in GetReqPermissions()
84 PermissionDef permDef; variable
31 static bool IsPermissionDefValid(const PermissionDef& permDef);
129 for (const auto& permDef : permList) { in GetDefPermissionsInner() local130 reply.WriteParcelable(&permDef); in GetDefPermissionsInner()147 for (const auto& permDef : permList) { in GetReqPermissionsInner() local148 reply.WriteParcelable(&permDef); in GetReqPermissionsInner()
450 static PermissionDef permDef = { variable470 .permList = {permDef}1491 PermissionDef permDef = { variable1505 ASSERT_EQ(false, PermissionValidator::IsPermissionDefValid(permDef)); // grant mode invalid1552 PermissionDef permDef = { variable1566 permList.emplace_back(permDef);1567 permList.emplace_back(permDef);