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()
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()
Dpermission_manager.cpp265 PermissionDef permDef; in GetReqPermissions() local
266 GetDefPermission(perm.permissionName, permDef); in GetReqPermissions()
267 if (permDef.grantMode == mode) { in GetReqPermissions()
/base/security/access_token/interfaces/innerkits/accesstoken/include/
Dpermission_def.h84 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.cpp129 for (const auto& permDef : permList) { in GetDefPermissionsInner() local
130 reply.WriteParcelable(&permDef); in GetDefPermissionsInner()
147 for (const auto& permDef : permList) { in GetReqPermissionsInner() local
148 reply.WriteParcelable(&permDef); in GetReqPermissionsInner()
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Daccesstoken_info_manager_test.cpp450 static PermissionDef permDef = { variable
470 .permList = {permDef}
1491 PermissionDef permDef = { variable
1505 ASSERT_EQ(false, PermissionValidator::IsPermissionDefValid(permDef)); // grant mode invalid
1552 PermissionDef permDef = { variable
1566 permList.emplace_back(permDef);
1567 permList.emplace_back(permDef);