Home
last modified time | relevance | path

Searched refs:PolicyInfo (Results 1 – 25 of 79) sorted by relevance

1234

/ohos5.0/base/accesscontrol/sandbox_manager/interfaces/innerkits/sandbox_manager/test/unittest/src/
H A Dsandbox_manager_kit_coverage_test.cpp69 PolicyInfo info;
93 PolicyInfo info;
112 PolicyInfo info;
134 PolicyInfo info;
153 PolicyInfo info;
172 PolicyInfo info;
191 PolicyInfo info;
213 PolicyInfo info;
232 PolicyInfo info;
253 PolicyInfo info;
[all …]
H A Dsandbox_manager_kit_test.cpp204 PolicyInfo info = {
244 PolicyInfo info = {
279 PolicyInfo infoSub = {
322 PolicyInfo infoSub = {
374 PolicyInfo infoSub = {
427 PolicyInfo infoSub = {
474 PolicyInfo infoSub = {
523 PolicyInfo infoSub = {
569 PolicyInfo infoSub = {
615 PolicyInfo infoSub = {
[all …]
/ohos5.0/base/accesscontrol/sandbox_manager/interfaces/innerkits/sandbox_manager/
H A Dlibsandbox_manager_sdk.map17 …OHOS::AccessControl::SandboxManager::PolicyInfo, std::__h::allocator<OHOS::AccessControl::SandboxM…
18 …OHOS::AccessControl::SandboxManager::PolicyInfo, std::__h::allocator<OHOS::AccessControl::SandboxM…
20 …OHOS::AccessControl::SandboxManager::PolicyInfo, std::__h::allocator<OHOS::AccessControl::SandboxM…
21 …OHOS::AccessControl::SandboxManager::PolicyInfo, std::__h::allocator<OHOS::AccessControl::SandboxM…
26 …OHOS::AccessControl::SandboxManager::PolicyInfo, std::__h::allocator<OHOS::AccessControl::SandboxM…
27 …OHOS::AccessControl::SandboxManager::PolicyInfo, std::__h::allocator<OHOS::AccessControl::SandboxM…
28 …OHOS::AccessControl::SandboxManager::PolicyInfo, std::__h::allocator<OHOS::AccessControl::SandboxM…
29 …OHOS::AccessControl::SandboxManager::PolicyInfo, std::__h::allocator<OHOS::AccessControl::SandboxM…
32 …OHOS::AccessControl::SandboxManager::PolicyInfo, std::__h::allocator<OHOS::AccessControl::SandboxM…
33 …OHOS::AccessControl::SandboxManager::PolicyInfo, std::__h::allocator<OHOS::AccessControl::SandboxM…
[all …]
/ohos5.0/base/accesscontrol/sandbox_manager/services/sandbox_manager/main/cpp/include/service/
H A Dpolicy_info_manager.h49 int32_t AddPolicy(const uint32_t tokenId, const std::vector<PolicyInfo> &policy,
74 int32_t MatchSinglePolicy(const uint32_t tokenId, const PolicyInfo &policy, uint32_t &result);
92 int32_t SetPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, uint64_t policyFlag,
100 int32_t UnSetPolicy(uint32_t tokenId, const PolicyInfo &policy);
130 int32_t StartAccessingPolicy(const uint32_t tokenId, const std::vector<PolicyInfo> &policy,
140 … const uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &results);
162 int32_t ExactFind(const uint32_t tokenId, const PolicyInfo &policy, PolicyInfo &result);
182 const std::vector<PolicyInfo> &policies, const std::vector<size_t> &passIndexes,
223 bool IsPolicyMatch(const PolicyInfo &searchPolicy, const uint64_t searchDepth,
224 const PolicyInfo &referPolicy, const uint64_t referDepth);
[all …]
H A Dsandbox_manager_service.h45 …int32_t PersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) overri…
46 …int32_t UnPersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) over…
48 … uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) override;
50 … uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) override;
51 int32_t SetPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, uint64_t policyFlag,
53 int32_t UnSetPolicy(uint32_t tokenId, const PolicyInfo &policy) override;
54 …int32_t SetPolicyAsync(uint32_t tokenId, const std::vector<PolicyInfo> &policy, uint64_t policyFla…
56 int32_t UnSetPolicyAsync(uint32_t tokenId, const PolicyInfo &policy) override;
58 … int32_t StartAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result,
60 …int32_t StopAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) …
[all …]
/ohos5.0/base/accesscontrol/sandbox_manager/interfaces/innerkits/sandbox_manager/include/
H A Dsandbox_manager_kit.h42 …static int32_t PersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result);
49 …static int32_t UnPersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &resul…
58 uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result);
67 uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result);
75 …static int32_t SetPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, uint64_t policyF…
85 …static int32_t SetPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, uint64_t policyF…
93 static int32_t UnSetPolicy(uint32_t tokenId, const PolicyInfo &policy);
118 static int32_t UnSetPolicyAsync(uint32_t tokenId, const PolicyInfo &policy);
145 …static int32_t StartAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &…
154 …static int32_t StopAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &r…
[all …]
H A Dsandbox_manager_client.h43 int32_t PersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result);
44 int32_t UnPersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result);
45 int32_t SetPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, uint64_t policyFlag,
47 int32_t UnSetPolicy(uint32_t tokenId, const PolicyInfo &policy);
48 …int32_t SetPolicyAsync(uint32_t tokenId, const std::vector<PolicyInfo> &policy, uint64_t policyFla…
50 int32_t UnSetPolicyAsync(uint32_t tokenId, const PolicyInfo &policy);
51 …int32_t CheckPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<bool> &re…
52 … int32_t StartAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result,
54 … int32_t StopAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result);
57 uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result);
[all …]
H A Dsandbox_manager_proxy.h35 …int32_t PersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) overri…
36 …int32_t UnPersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) over…
37 int32_t SetPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, uint64_t policyFlag,
39 int32_t UnSetPolicy(uint32_t tokenId, const PolicyInfo &policy) override;
40 …int32_t SetPolicyAsync(uint32_t tokenId, const std::vector<PolicyInfo> &policy, uint64_t policyFla…
42 int32_t UnSetPolicyAsync(uint32_t tokenId, const PolicyInfo &policy) override;
44 … int32_t StartAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result,
46 …int32_t StopAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) …
48 … uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<bool> &result) override;
50 … uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) override;
[all …]
/ohos5.0/base/accesscontrol/sandbox_manager/frameworks/sandbox_manager/include/
H A Di_sandbox_manager.h35 …virtual int32_t PersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result…
36 …virtual int32_t UnPersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &resu…
38 uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) = 0;
40 uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) = 0;
41 …virtual int32_t SetPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, uint64_t policy…
43 virtual int32_t UnSetPolicy(uint32_t tokenId, const PolicyInfo &policy) = 0;
44 …virtual int32_t SetPolicyAsync(uint32_t tokenId, const std::vector<PolicyInfo> &policy, uint64_t p…
46 virtual int32_t UnSetPolicyAsync(uint32_t tokenId, const PolicyInfo &policy) = 0;
48 …virtual int32_t StartAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> …
50 …virtual int32_t StopAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &…
[all …]
/ohos5.0/base/accesscontrol/sandbox_manager/
H A DREADME_zh.md24 3. 所有接口中,std::vector\<PolicyInfo\>的大小上限为500条
49 | int32_t PersistPolicy(const std::vector\<PolicyInfo\> &policy, std::vector<uint32_t> &result); | …
50 | int32_t UnPersistPolicy(const std::vector\<PolicyInfo\> &policy, std::vector<uint32_t> &result); …
53 | int32_t SetPolicy(uint64_t tokenId, const std::vector\<PolicyInfo\> &policy, uint64_t policyFlag)…
54 | int32_t StartAccessingPolicy(const std::vector\<PolicyInfo\> &policy, std::vector<uint32_t> &resu…
55 | int32_t StopAccessingPolicy(const std::vector\<PolicyInfo\> &policy, std::vector<uint32_t> &resul…
64 std::vector<PolicyInfo> policys;
83 std::vector<PolicyInfo> policys;
95 std::vector<PolicyInfo> policys; // 列表中的规则须已设置持久化
110 std::vector<PolicyInfo> policys;
[all …]
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/file_permission_native/include/
H A Dsandbox_mock.h30 const std::vector<PolicyInfo> &policy,
32 …virtual int32_t PersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result…
33 …virtual int32_t UnPersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &resu…
34 …virtual int32_t StartAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> …
35 …virtual int32_t StopAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &…
42 … int32_t(uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<bool> &result));
43 …MOCK_METHOD2(PersistPolicy, int32_t(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &…
44 …MOCK_METHOD2(UnPersistPolicy, int32_t(const std::vector<PolicyInfo> &policy, std::vector<uint32_t>…
45 …MOCK_METHOD2(StartAccessingPolicy, int32_t(const std::vector<PolicyInfo> &policy, std::vector<uint…
46 …MOCK_METHOD2(StopAccessingPolicy, int32_t(const std::vector<PolicyInfo> &policy, std::vector<uint3…
/ohos5.0/base/accesscontrol/sandbox_manager/interfaces/innerkits/sandbox_manager/src/
H A Dsandbox_manager_kit.cpp44 int32_t SandboxManagerKit::PersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_… in PersistPolicy()
56 int32_t SandboxManagerKit::UnPersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint3… in UnPersistPolicy()
69 uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in PersistPolicy()
83 uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in UnPersistPolicy()
96 int32_t SandboxManagerKit::SetPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, in SetPolicy()
102 int32_t SandboxManagerKit::SetPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, in SetPolicy()
121 int32_t SandboxManagerKit::UnSetPolicy(uint32_t tokenId, const PolicyInfo &policy) in UnSetPolicy()
159 int32_t SandboxManagerKit::UnSetPolicyAsync(uint32_t tokenId, const PolicyInfo &policy) in UnSetPolicyAsync()
168 int32_t SandboxManagerKit::CheckPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, in CheckPolicy()
204 int32_t SandboxManagerKit::StopAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<u… in StopAccessingPolicy()
[all …]
H A Dsandbox_manager_client.cpp62 int32_t SandboxManagerClient::PersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint… in PersistPolicy()
69 int32_t SandboxManagerClient::UnPersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<ui… in UnPersistPolicy()
77 uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in PersistPolicyByTokenId()
85 uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in UnPersistPolicyByTokenId()
92 int32_t SandboxManagerClient::SetPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, in SetPolicy()
100 int32_t SandboxManagerClient::UnSetPolicy(uint32_t tokenId, const PolicyInfo &policy) in UnSetPolicy()
107 int32_t SandboxManagerClient::SetPolicyAsync(uint32_t tokenId, const std::vector<PolicyInfo> &polic… in SetPolicyAsync()
115 int32_t SandboxManagerClient::UnSetPolicyAsync(uint32_t tokenId, const PolicyInfo &policy) in UnSetPolicyAsync()
122 int32_t SandboxManagerClient::CheckPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, in CheckPolicy()
139 int32_t SandboxManagerClient::StopAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vecto… in StopAccessingPolicy()
[all …]
H A Dsandbox_manager_proxy.cpp86 int32_t SandboxManagerProxy::PersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint3… in PersistPolicy()
157 uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in PersistPolicyByTokenId()
197 uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in UnPersistPolicyByTokenId()
235 … WriteSetPolicyParcel(MessageParcel &data, uint32_t tokenId, const std::vector<PolicyInfo> &policy, in WriteSetPolicyParcel()
265 int32_t SandboxManagerProxy::SetPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, in SetPolicy()
295 int32_t SandboxManagerProxy::SetPolicyAsync(uint32_t tokenId, const std::vector<PolicyInfo> &policy, in SetPolicyAsync()
308 static bool WriteUnSetPolicyParcel(MessageParcel &data, uint32_t tokenId, const PolicyInfo &policy) in WriteUnSetPolicyParcel()
328 int32_t SandboxManagerProxy::UnSetPolicy(uint32_t tokenId, const PolicyInfo &policy) in UnSetPolicy()
349 int32_t SandboxManagerProxy::UnSetPolicyAsync(uint32_t tokenId, const PolicyInfo &policy) in UnSetPolicyAsync()
361 int32_t SandboxManagerProxy::CheckPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, in CheckPolicy()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/
H A Djs-apis-fileShare.md51 ## PolicyInfo<sup>11+</sup>
108 let policyInfo: fileShare.PolicyInfo = {
112 let policies: Array<fileShare.PolicyInfo> = [policyInfo];
178 let policyInfo: fileShare.PolicyInfo = {
182 let policies: Array<fileShare.PolicyInfo> = [policyInfo];
246 let policyInfo: fileShare.PolicyInfo = {
250 let policies: Array<fileShare.PolicyInfo> = [policyInfo];
317 let policyInfo: fileShare.PolicyInfo = {
385 let policyInfo: fileShare.PolicyInfo = {
395 let info: fileShare.PolicyInfo = {
[all …]
/ohos5.0/base/accesscontrol/sandbox_manager/services/sandbox_manager/test/unittest/
H A Dsandbox_manager_service_test.cpp121 std::vector<PolicyInfo> policy;
142 std::vector<PolicyInfo> policy;
171 std::vector<PolicyInfo> policy;
193 std::vector<PolicyInfo> policy;
214 std::vector<PolicyInfo> policy;
239 std::vector<PolicyInfo> policy;
784 PolicyInfo policy {
835 PolicyInfo policy {
861 PolicyInfo policy {
884 PolicyInfo policy {
[all …]
H A Dpolicy_info_manager_test.cpp114 PolicyInfo info;
166 PolicyInfo info;
215 PolicyInfo info = {
241 PolicyInfo referPolicy {
261 PolicyInfo err1 {
265 PolicyInfo err2 {
269 PolicyInfo err3 {
273 PolicyInfo err4 {
318 PolicyInfo info;
367 PolicyInfo info;
[all …]
/ohos5.0/foundation/ability/ability_runtime/services/uripermmgr/include/
H A Dbatch_uri.h34 using PolicyInfo = AccessControl::SandboxManager::PolicyInfo; variable
54 …void GetNeedCheckProxyPermissionURI(std::vector<PolicyInfo> &proxyUrisByPolicy, std::vector<Uri> &…
64 int32_t GetUriToGrantByPolicy(std::vector<PolicyInfo> &docsPolicyInfoVec,
65 std::vector<PolicyInfo> &bundlePolicyInfoVec);
82 std::vector<PolicyInfo> otherPolicyInfos;
85 std::vector<PolicyInfo> selfBundlePolicyInfos;
/ohos5.0/base/accesscontrol/sandbox_manager/services/sandbox_manager/main/cpp/include/mac/
H A Dmac_adapter.h39 int32_t SetSandboxPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result,
41 int32_t UnSetSandboxPolicy(uint32_t tokenId, const PolicyInfo &policy);
42 …int32_t UnSetSandboxPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<bo…
43 …int32_t QuerySandboxPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<bo…
44 …int32_t CheckSandboxPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<bo…
46 …int32_t UnSetSandboxPolicyByUser(int32_t userId, const std::vector<PolicyInfo> &policy, std::vecto…
/ohos5.0/base/accesscontrol/sandbox_manager/services/sandbox_manager/main/cpp/src/service/
H A Dpolicy_info_manager.cpp65 std::vector<PolicyInfo> policies; in CleanPolicyOnMac()
67 PolicyInfo policy; in CleanPolicyOnMac()
160 std::vector<PolicyInfo> queryPolicys(queryPolicyIndexSize); in AddPolicy()
288 PolicyInfo referPolicy; in MatchSinglePolicy()
293 PolicyInfo searchPolicy; in MatchSinglePolicy()
340 PolicyInfo exactFindRes; in RemovePolicy()
389 std::vector<PolicyInfo> validPolicies; in SetPolicy()
440 std::vector<PolicyInfo> validPolicies; in CheckPolicy()
509 std::vector<PolicyInfo> policys(searchSize); in StartAccessingByTokenId()
511 PolicyInfo policy; in StartAccessingByTokenId()
[all …]
H A Dsandbox_manager_service.cpp164 const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in UnPersistPolicy()
177 uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in PersistPolicyByTokenId()
195 uint32_t tokenId, const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in UnPersistPolicyByTokenId()
208 int32_t SandboxManagerService::SetPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, in SetPolicy()
228 int32_t SandboxManagerService::UnSetPolicy(uint32_t tokenId, const PolicyInfo &policy) in UnSetPolicy()
243 int32_t SandboxManagerService::SetPolicyAsync(uint32_t tokenId, const std::vector<PolicyInfo> &poli… in SetPolicyAsync()
250 int32_t SandboxManagerService::UnSetPolicyAsync(uint32_t tokenId, const PolicyInfo &policy) in UnSetPolicyAsync()
255 int32_t SandboxManagerService::CheckPolicy(uint32_t tokenId, const std::vector<PolicyInfo> &policy, in CheckPolicy()
271 int32_t SandboxManagerService::StartAccessingPolicy(const std::vector<PolicyInfo> &policy, in StartAccessingPolicy()
290 const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in StopAccessingPolicy()
[all …]
/ohos5.0/foundation/ability/ability_runtime/test/unittest/uri_permission_impl_test/mock/include/
H A Dmock_sandbox_manager.h33 …static int32_t SetPolicy(uint32_t tokenid, const std::vector<PolicyInfo> &policys, uint64_t policy…
36 …static int32_t CheckPolicy(uint32_t tokenid, const std::vector<PolicyInfo> &policys, std::vector<b…
38 static int32_t CheckPersistPolicy(uint32_t tokenid, const std::vector<PolicyInfo> &policys,
41 static int32_t PersistPolicy(uint32_t tokenid, const std::vector<PolicyInfo> &policys,
44 static int32_t UnSetPolicy(uint32_t tokenid, const PolicyInfo &policy);
/ohos5.0/foundation/filemanagement/app_file_service/tests/mock/file_permission_native/src/
H A Dsandbox_mock.cpp22 const std::vector<PolicyInfo> &policy, in CheckPersistPolicy()
28 int32_t SandboxManagerKit::PersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_… in PersistPolicy()
33 int32_t SandboxManagerKit::UnPersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint3… in UnPersistPolicy()
38 int32_t SandboxManagerKit::StartAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<… in StartAccessingPolicy()
43 int32_t SandboxManagerKit::StopAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<u… in StopAccessingPolicy()
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_share/src/
H A Dfile_permission.cpp121 const vector<PolicyInfo> &pathPolicies, in ParseErrorResults()
168 vector<PolicyInfo> FilePermission::GetPathPolicyInfoFromUriPolicyInfo(const vector<UriPolicyInfo> &… in GetPathPolicyInfoFromUriPolicyInfo()
171 vector<PolicyInfo> pathPolicies; in GetPathPolicyInfoFromUriPolicyInfo()
180 PolicyInfo policyInfo = {path, uriPolicy.mode}; in GetPathPolicyInfoFromUriPolicyInfo()
190 vector<PolicyInfo> pathPolicies; in GetPathPolicyInfoFromUriPolicyInfo()
198 PolicyInfo policyInfo = {path, uriPolicy.mode}; in GetPathPolicyInfoFromUriPolicyInfo()
230 vector<PolicyInfo> pathPolicies = GetPathPolicyInfoFromUriPolicyInfo(uriPolicies, errorResults); in CheckUriPersistentPermission()
257 vector<PolicyInfo> pathPolicies = GetPathPolicyInfoFromUriPolicyInfo(uriPolicies, errorResults); in PersistPermission()
277 vector<PolicyInfo> pathPolicies = GetPathPolicyInfoFromUriPolicyInfo(uriPolicies, errorResults); in RevokePermission()
297 vector<PolicyInfo> pathPolicies = GetPathPolicyInfoFromUriPolicyInfo(uriPolicies, errorResults); in ActivatePermission()
[all …]
/ohos5.0/foundation/ability/ability_runtime/services/uripermmgr/src/
H A Dfile_permission_manager.cpp72 PolicyInfo FilePermissionManager::GetPathPolicyInfoFromUri(Uri &uri, uint32_t flag, const std::stri… in GetPathPolicyInfoFromUri()
76 PolicyInfo policyInfo; in GetPathPolicyInfoFromUri()
83 …uint32_t callerTokenId, uint32_t flag, std::vector<PolicyInfo> &pathPolicies, const std::string &b… in CheckUriPersistentPermission()
92 PolicyInfo policyInfo = GetPathPolicyInfoFromUri(uriVec[i], flag); in CheckUriPersistentPermission()
98 std::vector<PolicyInfo> persistPolicys; in CheckUriPersistentPermission()
100 PolicyInfo policyInfo = GetPathPolicyInfoFromUri(uriVec[i], flag); in CheckUriPersistentPermission()

1234