Home
last modified time | relevance | path

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

/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_definition_cache.cpp33 PermissionDefinitionCache& PermissionDefinitionCache::GetInstance() in GetInstance()
35 static PermissionDefinitionCache instance; in GetInstance()
39 PermissionDefinitionCache::PermissionDefinitionCache() in PermissionDefinitionCache() function in OHOS::Security::AccessToken::PermissionDefinitionCache
42 PermissionDefinitionCache::~PermissionDefinitionCache() in ~PermissionDefinitionCache()
45 bool PermissionDefinitionCache::Insert(const PermissionDef& info, AccessTokenID tokenId) in Insert()
59 bool PermissionDefinitionCache::Update(const PermissionDef& info, AccessTokenID tokenId) in Update()
67 void PermissionDefinitionCache::DeleteByBundleName(const std::string& bundleName) in DeleteByBundleName()
80 int PermissionDefinitionCache::FindByPermissionName(const std::string& permissionName, PermissionDe… in FindByPermissionName()
93 bool PermissionDefinitionCache::IsSystemGrantedPermission(const std::string& permissionName) in IsSystemGrantedPermission()
99 bool PermissionDefinitionCache::IsUserGrantedPermission(const std::string& permissionName) in IsUserGrantedPermission()
[all …]
Dpermission_manager.cpp119 PermissionDefinitionCache::GetInstance().Update(perm, tokenId); in AddDefPermissions()
123 if (!PermissionDefinitionCache::GetInstance().HasDefinition(perm.permissionName)) { in AddDefPermissions()
124 PermissionDefinitionCache::GetInstance().Insert(perm, tokenId); in AddDefPermissions()
142 PermissionDefinitionCache::GetInstance().DeleteByBundleName(bundleName); in RemoveDefPermissions()
173 if (PermissionDefinitionCache::GetInstance().IsPermissionDefEmpty()) { in VerifyNativeAccessToken()
181 …if (!tokenInfoPtr->IsRemote() && !PermissionDefinitionCache::GetInstance().HasDefinition(permissio… in VerifyNativeAccessToken()
228 if (!PermissionDefinitionCache::GetInstance().HasDefinition(permissionName)) { in GetDefPermission()
233 …return PermissionDefinitionCache::GetInstance().FindByPermissionName(permissionName, permissionDef… in GetDefPermission()
303 if (!PermissionDefinitionCache::GetInstance().HasDefinition(permState.permissionName)) { in GetSelfPermissionState()
341 if (!PermissionDefinitionCache::GetInstance().HasDefinition(permissionName)) { in GetPermissionFlag()
[all …]
Dpermission_policy_set.cpp197 PermissionDefinitionCache::GetInstance().GetDefPermissionsByTokenId(permList, tokenId_); in GetDefPermissions()
482 PermissionDefinitionCache::GetInstance().GetDefPermissionsByTokenId(permList, tokenId_); in ToString()
506 int ret = PermissionDefinitionCache::GetInstance().FindByPermissionName( in IsPermissionReqValid()
/base/security/access_token/services/accesstokenmanager/main/cpp/include/permission/
Dpermission_definition_cache.h31 class PermissionDefinitionCache final {
33 static PermissionDefinitionCache& GetInstance();
35 virtual ~PermissionDefinitionCache();
60 PermissionDefinitionCache();
64 DISALLOW_COPY_AND_MOVE(PermissionDefinitionCache);
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Dpermission_manager_test.cpp250 PermissionDefinitionCache::GetInstance().Insert(infoManagerPermDef, 1); in SetUp()
252 PermissionDefinitionCache::GetInstance().Insert(infoManagerPermDef, 1); in SetUp()
254 PermissionDefinitionCache::GetInstance().Insert(infoManagerPermDef, 1); in SetUp()
256 PermissionDefinitionCache::GetInstance().Insert(infoManagerPermDef, 1); in SetUp()
258 PermissionDefinitionCache::GetInstance().Insert(infoManagerPermDef, 1); in SetUp()
260 PermissionDefinitionCache::GetInstance().Insert(infoManagerPermDef, 1); in SetUp()
262 PermissionDefinitionCache::GetInstance().Insert(infoManagerPermDef, 1); in SetUp()
833 …PermissionDefData> permissionDefinitionMap = PermissionDefinitionCache::GetInstance().permissionDe…
834 PermissionDefinitionCache::GetInstance().permissionDefinitionMap_.clear();
852PermissionDefinitionCache::GetInstance().permissionDefinitionMap_ = permissionDefinitionMap; // re…
Daccesstoken_info_manager_test.cpp1443 …ASSERT_EQ(false, PermissionDefinitionCache::GetInstance().Insert(info, tokenId)); // permission ha…
1458 …ASSERT_EQ(true, PermissionDefinitionCache::GetInstance().IsGrantedModeEqualInner(permissionName, g…
1462 …ASSERT_EQ(false, PermissionDefinitionCache::GetInstance().IsGrantedModeEqualInner(permissionName, …
1480 ASSERT_NE(RET_SUCCESS, PermissionDefinitionCache::GetInstance().RestorePermDefInfo(values));
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Daccesstoken_info_manager.cpp120 PermissionDefinitionCache::GetInstance().RestorePermDefInfo(permDefRes); in InitHapTokenInfos()
998 PermissionDefinitionCache::GetInstance().StorePermissionDef(permDefValues); in StoreAllTokenInfo()