Home
last modified time | relevance | path

Searched refs:policySet (Results 1 – 4 of 4) sorted by relevance

/base/security/access_token/services/accesstokenmanager/main/cpp/src/permission/
Dpermission_policy_set.cpp42 std::shared_ptr<PermissionPolicySet> policySet = std::make_shared<PermissionPolicySet>(); in BuildPermissionPolicySet() local
43 if (policySet != nullptr) { in BuildPermissionPolicySet()
44 PermissionValidator::FilterInvalidPermissionState(permStateList, policySet->permStateList_); in BuildPermissionPolicySet()
45 policySet->tokenId_ = tokenId; in BuildPermissionPolicySet()
47 return policySet; in BuildPermissionPolicySet()
82 std::shared_ptr<PermissionPolicySet> policySet = std::make_shared<PermissionPolicySet>(); in RestorePermissionPolicy() local
83 if (policySet == nullptr) { in RestorePermissionPolicy()
87 policySet->tokenId_ = tokenId; in RestorePermissionPolicy()
94 MergePermissionStateFull(policySet->permStateList_, state); in RestorePermissionPolicy()
100 return policySet; in RestorePermissionPolicy()
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/
Dhap_token_info_inner.h56 void SetPermissionPolicySet(std::shared_ptr<PermissionPolicySet>& policySet);
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Daccesstoken_info_manager_test.cpp2158 …std::shared_ptr<PermissionPolicySet> policySet = PermissionPolicySet::BuildPermissionPolicySet(tok… variable
2161 policySet->Update(permStateList2); // iter reach end
2162 policySet->Update(permStateList3); // permNew.isGeneral != permOld.isGeneral
2185 …std::shared_ptr<PermissionPolicySet> policySet = PermissionPolicySet::RestorePermissionPolicy(toke… variable
2188 ASSERT_EQ(tokenId, policySet->tokenId_);
2234 …std::shared_ptr<PermissionPolicySet> policySet = PermissionPolicySet::BuildPermissionPolicySet(tok… variable
2238 …ASSERT_EQ(PermissionState::PERMISSION_DENIED, policySet->VerifyPermissStatus("ohos.permission.TEST…
2261 …std::shared_ptr<PermissionPolicySet> policySet = PermissionPolicySet::BuildPermissionPolicySet(tok… variable
2266 …ASSERT_EQ(AccessTokenError::ERR_PARAM_INVALID, policySet->QueryPermissionFlag("ohos.permission.TES…
2268 …ASSERT_EQ(AccessTokenError::ERR_PARAM_INVALID, policySet->QueryPermissionFlag("ohos.permission.TES…
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Dhap_token_info_inner.cpp237 void HapTokenInfoInner::SetPermissionPolicySet(std::shared_ptr<PermissionPolicySet>& policySet) in SetPermissionPolicySet() argument
239 permPolicySet_ = policySet; in SetPermissionPolicySet()