Home
last modified time | relevance | path

Searched refs:PolicyErrorCode (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_share/src/
H A Dfile_permission.cpp132 case static_cast<PolicyErrorCode>(PolicyErrorCode::PERSISTENCE_FORBIDDEN): in ParseErrorResults()
133 … result = {uri.ToString(), PolicyErrorCode::PERSISTENCE_FORBIDDEN, PERSISTENCE_FORBIDDEN_MESSAGE}; in ParseErrorResults()
136 case static_cast<PolicyErrorCode>(PolicyErrorCode::INVALID_MODE): in ParseErrorResults()
137 result = {uri.ToString(), PolicyErrorCode::INVALID_MODE, INVALID_MODE_MESSAGE}; in ParseErrorResults()
140 case static_cast<PolicyErrorCode>(PolicyErrorCode::INVALID_PATH): in ParseErrorResults()
141 result = {uri.ToString(), PolicyErrorCode::INVALID_PATH, INVALID_PATH_MESSAGE}; in ParseErrorResults()
144 case static_cast<PolicyErrorCode>(PolicyErrorCode::PERMISSION_NOT_PERSISTED): in ParseErrorResults()
145 …result = {uri.ToString(), PolicyErrorCode::PERMISSION_NOT_PERSISTED, PERMISSION_NOT_PERSISTED_MESS… in ParseErrorResults()
177 … PolicyErrorResult result = {uriPolicy.uri, PolicyErrorCode::INVALID_PATH, INVALID_PATH_MESSAGE}; in GetPathPolicyInfoFromUriPolicyInfo()
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/innerkits/native/file_share/include/
H A Dfile_permission.h43 enum PolicyErrorCode { enum
62 PolicyErrorCode code = PolicyErrorCode::PERSISTENCE_FORBIDDEN;
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/kits/js/file_share/
H A Dfileshare_n_exporter.cpp95 … NVal::CreateInt32(env, static_cast<int32_t>(PolicyErrorCode::PERSISTENCE_FORBIDDEN)).val_), in InitPolicyErrorCode()
97 … NVal::CreateInt32(env, static_cast<int32_t>(PolicyErrorCode::INVALID_MODE)).val_), in InitPolicyErrorCode()
99 … NVal::CreateInt32(env, static_cast<int32_t>(PolicyErrorCode::INVALID_PATH)).val_), in InitPolicyErrorCode()
125 …"code", NVal::CreateInt32(env, static_cast<int32_t>(PolicyErrorCode::PERSISTENCE_FORBIDDEN)).val_), in InitPolicyErrorResult()
/ohos5.0/foundation/filemanagement/app_file_service/test/unittest/file_permission_native/src/
H A Dfile_permission_test.cpp185 resultCodes.push_back(PolicyErrorCode::INVALID_MODE);
264 resultCodes.push_back(PolicyErrorCode::INVALID_MODE);
342 resultCodes.push_back(PolicyErrorCode::INVALID_MODE);
418 resultCodes.push_back(PolicyErrorCode::INVALID_MODE);
/ohos5.0/docs/zh-cn/application-dev/reference/apis-core-file-kit/
H A Djs-apis-fileShare.md26 ## PolicyErrorCode<sup>11+</sup>
48 | code | [PolicyErrorCode](#policyerrorcode11) | 是 | 授权策略失败的URI对应的错误码。 |
260 if(err.data[i].code == fileShare.PolicyErrorCode.PERMISSION_NOT_PERSISTED){
/ohos5.0/docs/en/application-dev/reference/apis-core-file-kit/
H A Djs-apis-fileShare.md26 ## PolicyErrorCode<sup>11+</sup>
48 | code | [PolicyErrorCode](#policyerrorcode11) | Yes | Error code.|
260 if(err.data[i].code == fileShare.PolicyErrorCode.PERMISSION_NOT_PERSISTED){
/ohos5.0/docs/zh-cn/application-dev/file-management/
H A Dfile-persistPermission.md150 if (err.data[i].code == fileShare.PolicyErrorCode.PERMISSION_NOT_PERSISTED) {
/ohos5.0/docs/en/application-dev/file-management/
H A Dfile-persistPermission.md152 if (err.data[i].code == fileShare.PolicyErrorCode.PERMISSION_NOT_PERSISTED) {