Home
last modified time | relevance | path

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

/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_validator.cpp46 bool PermissionValidator::IsPermissionDefValid(const PermissionDef& permDef) in IsPermissionDefValid() argument
48 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()
Dpermission_definition_cache.cpp54 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()
Dpermission_manager.cpp237 PermissionDef permDef; in GetReqPermissions() local
238 GetDefPermission(perm.permissionName, permDef); in GetReqPermissions()
239 if (permDef.grantMode == mode) { in GetReqPermissions()
/base/security/access_token/interfaces/innerkits/accesstoken/include/
Dpermission_def.h43 PermissionDef permDef; variable
/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/
Dpermission_validator.h31 static bool IsPermissionDefValid(const PermissionDef& permDef);
/base/security/access_token/services/accesstokenmanager/main/cpp/src/service/
Daccesstoken_manager_stub.cpp111 for (const auto& permDef : permList) { in GetDefPermissionsInner() local
112 reply.WriteParcelable(&permDef); in GetDefPermissionsInner()
129 for (const auto& permDef : permList) { in GetReqPermissionsInner() local
130 reply.WriteParcelable(&permDef); in GetReqPermissionsInner()
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Daccesstoken_info_manager_test.cpp425 static PermissionDef permDef = { variable
445 .permList = {permDef}
2006 PermissionDef permDef = { variable
2020 ASSERT_EQ(false, PermissionValidator::IsPermissionDefValid(permDef)); // grant mode invalid
2067 PermissionDef permDef = { variable
2081 permList.emplace_back(permDef);
2082 permList.emplace_back(permDef);