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()71 if (bundleName == it->second.permDef.bundleName) { in DeleteByBundleName()88 info = it->second.permDef; in FindByPermissionName()110 return it->second.permDef.grantMode == grantMode; in IsGrantedModeEqualInner()132 DataTranslator::TranslationIntoGenericValues(it->second.permDef, genericValues); in StorePermissionDef()145 permList.emplace_back(it->second.permDef); in GetDefPermissionsByTokenId()
237 PermissionDef permDef; in GetReqPermissions() local238 GetDefPermission(perm.permissionName, permDef); in GetReqPermissions()239 if (permDef.grantMode == mode) { in GetReqPermissions()
43 PermissionDef permDef; variable
31 static bool IsPermissionDefValid(const PermissionDef& permDef);
111 for (const auto& permDef : permList) { in GetDefPermissionsInner() local112 reply.WriteParcelable(&permDef); in GetDefPermissionsInner()129 for (const auto& permDef : permList) { in GetReqPermissionsInner() local130 reply.WriteParcelable(&permDef); in GetReqPermissionsInner()
425 static PermissionDef permDef = { variable445 .permList = {permDef}2006 PermissionDef permDef = { variable2020 ASSERT_EQ(false, PermissionValidator::IsPermissionDefValid(permDef)); // grant mode invalid2067 PermissionDef permDef = { variable2081 permList.emplace_back(permDef);2082 permList.emplace_back(permDef);