Searched refs:policySet (Results 1 – 4 of 4) sorted by relevance
42 std::shared_ptr<PermissionPolicySet> policySet = std::make_shared<PermissionPolicySet>(); in BuildPermissionPolicySet() local43 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() local83 if (policySet == nullptr) { in RestorePermissionPolicy()87 policySet->tokenId_ = tokenId; in RestorePermissionPolicy()94 MergePermissionStateFull(policySet->permStateList_, state); in RestorePermissionPolicy()100 return policySet; in RestorePermissionPolicy()
56 void SetPermissionPolicySet(std::shared_ptr<PermissionPolicySet>& policySet);
2158 …std::shared_ptr<PermissionPolicySet> policySet = PermissionPolicySet::BuildPermissionPolicySet(tok… variable2161 policySet->Update(permStateList2); // iter reach end2162 policySet->Update(permStateList3); // permNew.isGeneral != permOld.isGeneral2185 …std::shared_ptr<PermissionPolicySet> policySet = PermissionPolicySet::RestorePermissionPolicy(toke… variable2188 ASSERT_EQ(tokenId, policySet->tokenId_);2234 …std::shared_ptr<PermissionPolicySet> policySet = PermissionPolicySet::BuildPermissionPolicySet(tok… variable2238 …ASSERT_EQ(PermissionState::PERMISSION_DENIED, policySet->VerifyPermissStatus("ohos.permission.TEST…2261 …std::shared_ptr<PermissionPolicySet> policySet = PermissionPolicySet::BuildPermissionPolicySet(tok… variable2266 …ASSERT_EQ(AccessTokenError::ERR_PARAM_INVALID, policySet->QueryPermissionFlag("ohos.permission.TES…2268 …ASSERT_EQ(AccessTokenError::ERR_PARAM_INVALID, policySet->QueryPermissionFlag("ohos.permission.TES…[all …]
237 void HapTokenInfoInner::SetPermissionPolicySet(std::shared_ptr<PermissionPolicySet>& policySet) in SetPermissionPolicySet() argument239 permPolicySet_ = policySet; in SetPermissionPolicySet()