Home
last modified time | relevance | path

Searched refs:NError (Results 1 - 25 of 76) sorted by relevance

1234

/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/
H A Dcopy_file.cpp36 static NError IsAllPath(FileInfo& srcFile, FileInfo& destFile) in IsAllPath()
44 return NError(errCode.value()); in IsAllPath()
51 return NError(ENOMEM); in IsAllPath()
57 return NError(ret); in IsAllPath()
60 return NError(ERRNO_NOERR); in IsAllPath()
63 static NError SendFileCore(FileInfo& srcFdg, FileInfo& destFdg, struct stat& statbf) in SendFileCore()
69 return NError(ENOMEM); in SendFileCore()
79 return NError(ret); in SendFileCore()
84 return NError(EIO); in SendFileCore()
94 return NError(EI in SendFileCore()
[all...]
H A Dstat.cpp41 NError(EINVAL).ThrowErr(env); in ParseJsFile()
47 NError(ENOMEM).ThrowErr(env); in ParseJsFile()
53 NError(EINVAL).ThrowErr(env); in ParseJsFile()
57 static NError CheckFsStat(const FileInfo &fileInfo, uv_fs_t* req) in CheckFsStat()
63 return NError(ret); in CheckFsStat()
69 return NError(ret); in CheckFsStat()
72 return NError(ERRNO_NOERR); in CheckFsStat()
80 NError(EINVAL).ThrowErr(env); in Sync()
92 NError(ENOMEM).ThrowErr(env); in Sync()
104 NError(ENOME in Sync()
[all...]
H A Dlstat.cpp35 NError(EINVAL).ThrowErr(env); in Sync()
42 NError(EINVAL).ThrowErr(env); in Sync()
50 NError(ENOMEM).ThrowErr(env); in Sync()
56 NError(ret).ThrowErr(env); in Sync()
64 static NError LstatExec(shared_ptr<StatEntity> arg, const string &path) in LstatExec()
70 return NError(ENOMEM); in LstatExec()
75 return NError(ret); in LstatExec()
78 return NError(ERRNO_NOERR); in LstatExec()
87 NError(EINVAL).ThrowErr(env); in Async()
94 NError(EINVA in Async()
[all...]
H A Dmkdtemp.cpp33 NError(EINVAL).ThrowErr(env); in Sync()
40 NError(EINVAL).ThrowErr(env); in Sync()
49 NError(ENOMEM).ThrowErr(env); in Sync()
55 NError(ret).ThrowErr(env); in Sync()
62 static NError MkdTempExec(shared_ptr<string> arg, const string &path) in MkdTempExec()
68 return NError(ENOMEM); in MkdTempExec()
73 return NError(ret); in MkdTempExec()
76 return NError(ERRNO_NOERR); in MkdTempExec()
85 NError(EINVAL).ThrowErr(env); in Async()
92 NError(EINVA in Async()
[all...]
H A Drename.cpp36 NError(EINVAL).ThrowErr(env); in Sync()
43 NError(EINVAL).ThrowErr(env); in Sync()
50 NError(EINVAL).ThrowErr(env); in Sync()
58 NError(ENOMEM).ThrowErr(env); in Sync()
64 NError(ret).ThrowErr(env); in Sync()
76 NError(EINVAL).ThrowErr(env); in Async()
83 NError(EINVAL).ThrowErr(env); in Async()
90 NError(EINVAL).ThrowErr(env); in Async()
94 auto cbExec = [opath = string(src.get()), npath = string(dest.get())]() -> NError { in Async()
99 return NError(ENOME in Async()
[all...]
H A Drmdirent.cpp37 static NError RmDirent(const string &fpath) in RmDirent()
44 return NError(errCode.value()); in RmDirent()
48 return NError(ENOENT); in RmDirent()
52 return NError(errCode.value()); in RmDirent()
54 return NError(ERRNO_NOERR); in RmDirent()
58 static NError RmDirent(const string &fpath)
64 return NError(ENOMEM);
70 return NError(ret);
80 return NError(ENOMEM);
85 return NError(re
[all...]
H A Dxattr.cpp70 NError(EINVAL).ThrowErr(env); in SetSync()
80 NError(EINVAL).ThrowErr(env); in SetSync()
86 NError(EINVAL).ThrowErr(env); in SetSync()
92 NError(EINVAL).ThrowErr(env); in SetSync()
97 NError(errno).ThrowErr(env); in SetSync()
108 NError(EINVAL).ThrowErr(env); in GetSync()
118 NError(EINVAL).ThrowErr(env); in GetSync()
124 NError(EINVAL).ThrowErr(env); in GetSync()
131 NError(ret).ThrowErr(env); in GetSync()
142 NError(EINVA in GetAsync()
[all...]
H A Dread_lines.cpp69 NError(EINVAL).ThrowErr(env); in InstantiateReaderIterator()
76 NError(UNKROWN_ERR).ThrowErr(env); in InstantiateReaderIterator()
83 NError(UNKROWN_ERR).ThrowErr(env); in InstantiateReaderIterator()
97 static NError AsyncExec(ReaderIteratorArg &readerIterator, const string &pathStr) in AsyncExec()
102 return NError(errno); in AsyncExec()
107 return NError(ret); in AsyncExec()
110 return NError(ERRNO_NOERR); in AsyncExec()
118 NError(EINVAL).ThrowErr(env); in Async()
125 NError(EINVAL).ThrowErr(env); in Async()
133 NError(re in Async()
[all...]
H A Dtruncate.cpp39 NError(EINVAL).ThrowErr(env); in ParseJsFile()
45 NError(ENOMEM).ThrowErr(env); in ParseJsFile()
51 static NError TruncateCore(napi_env env, FileInfo &fileInfo, int64_t truncateLen) in TruncateCore()
58 return NError(ENOMEM); in TruncateCore()
63 return NError(ret); in TruncateCore()
69 return NError(ENOMEM); in TruncateCore()
74 return NError(ret); in TruncateCore()
81 return NError(ENOMEM); in TruncateCore()
86 return NError(ret); in TruncateCore()
89 return NError(ERRNO_NOER in TruncateCore()
[all...]
H A Dfdatasync.cpp36 NError(EINVAL).ThrowErr(env); in Sync()
43 NError(EINVAL).ThrowErr(env); in Sync()
51 NError(ENOMEM).ThrowErr(env); in Sync()
57 NError(ret).ThrowErr(env); in Sync()
69 NError(EINVAL).ThrowErr(env); in Async()
76 NError(EINVAL).ThrowErr(env); in Async()
80 auto cbExec = [fd = fd]() -> NError { in Async()
85 return NError(ENOMEM); in Async()
90 return NError(ret); in Async()
92 return NError(ERRNO_NOER in Async()
[all...]
H A Dfsync.cpp34 NError(EINVAL).ThrowErr(env); in Sync()
41 NError(EINVAL).ThrowErr(env); in Sync()
49 NError(ENOMEM).ThrowErr(env); in Sync()
55 NError(ret).ThrowErr(env); in Sync()
66 NError(EINVAL).ThrowErr(env); in Async()
73 NError(EINVAL).ThrowErr(env); in Async()
77 auto cbExec = [fd = fd]() -> NError { in Async()
82 return NError(ENOMEM); in Async()
87 return NError(ret); in Async()
89 return NError(ERRNO_NOER in Async()
[all...]
H A Dsymlink.cpp52 NError(EINVAL).ThrowErr(env); in Sync()
59 NError(EINVAL).ThrowErr(env); in Sync()
67 NError(ENOMEM).ThrowErr(env); in Sync()
73 NError(ret).ThrowErr(env); in Sync()
85 NError(EINVAL).ThrowErr(env); in Async()
92 NError(EINVAL).ThrowErr(env); in Async()
96 auto cbExec = [oldPath = move(oldPath), newPath = move(newPath)]() -> NError { in Async()
101 return NError(ENOMEM); in Async()
106 return NError(ret); in Async()
108 return NError(ERRNO_NOER in Async()
[all...]
H A Dread_text.cpp71 static NError ReadTextAsync(const std::string &path, std::shared_ptr<AsyncReadTextArg> arg, int64_t offset, in ReadTextAsync()
80 return NError(ENOMEM); in ReadTextAsync()
86 return NError(errno); in ReadTextAsync()
92 return NError(errno); in ReadTextAsync()
96 return NError(errno); in ReadTextAsync()
101 return NError(EINVAL); in ReadTextAsync()
111 return NError(ENOMEM); in ReadTextAsync()
116 return NError(errno); in ReadTextAsync()
119 return NError(ERRNO_NOERR); in ReadTextAsync()
153 NError(EINVA in Sync()
[all...]
H A Dclose.cpp45 static NError CloseFd(int fd) in CloseFd()
51 return NError(ENOMEM); in CloseFd()
56 return NError(ret); in CloseFd()
58 return NError(ERRNO_NOERR); in CloseFd()
83 NError(EINVAL).ThrowErr(env); in Sync()
90 NError(EINVAL).ThrowErr(env); in Sync()
108 NError(EINVAL).ThrowErr(env); in Sync()
121 NError(EINVAL).ThrowErr(env); in Async()
128 NError(EINVAL).ThrowErr(env); in Async()
137 NError(EINVA in Async()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_statfs/
H A Dstatfs_n_exporter.cpp30 NError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetFrSizeSync()
38 NError(EINVAL).ThrowErr(env, "Invalid path"); in GetFrSizeSync()
45 NError(errno).ThrowErr(env, "Failed get info"); in GetFrSizeSync()
57 NError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetFrSize()
65 NError(EINVAL).ThrowErr(env, "Invalid path"); in GetFrSize()
71 auto cbExec = [pathString, resultSize]() -> NError { in GetFrSize()
75 return NError(errno); in GetFrSize()
79 return NError(ERRNO_NOERR); in GetFrSize()
81 auto cbComplete = [resultSize](napi_env env, NError err) -> NVal { in GetFrSize()
102 NError(EINVA in GetBSizeSync()
[all...]
/foundation/filemanagement/dfs_service/interfaces/kits/js/cloudsyncmanager/
H A Dcloud_sync_manager_n_exporter.cpp36 NError(E_PARAMS).ThrowErr(env, "Number of arguments unmatched"); in ChangeAppCloudSwitch()
47 NError(E_PARAMS).ThrowErr(env); in ChangeAppCloudSwitch()
53 NError(E_PARAMS).ThrowErr(env); in ChangeAppCloudSwitch()
59 NError(E_PARAMS).ThrowErr(env); in ChangeAppCloudSwitch()
66 auto cbExec = [accoutIdStr, bundleNameStr, status]() -> NError { in ChangeAppCloudSwitch()
69 return result == E_PERMISSION_DENIED? NError(Convert2JsErrNum(E_PERMISSION_DENIED)) : in ChangeAppCloudSwitch()
70 NError(Convert2JsErrNum(E_PERMISSION_SYSTEM)); in ChangeAppCloudSwitch()
72 return NError(ERRNO_NOERR); in ChangeAppCloudSwitch()
74 auto cbComplete = [](napi_env env, NError err) -> NVal { in ChangeAppCloudSwitch()
96 NError(E_PARAM in NotifyDataChangeInner()
[all...]
/foundation/filemanagement/storage_service/services/storage_manager/kits_impl/src/
H A Dstorage_statistics_n_exporter.cpp42 NError(E_PERMISSION_SYS).ThrowErr(env); in GetTotalSizeOfVolume()
47 NError(E_PARAMS).ThrowErr(env); in GetTotalSizeOfVolume()
55 NError(E_PARAMS).ThrowErr(env); in GetTotalSizeOfVolume()
61 auto cbExec = [uuidString, resultSize]() -> NError { in GetTotalSizeOfVolume()
65 return NError(Convert2JsErrNum(errNum)); in GetTotalSizeOfVolume()
67 return NError(ERRNO_NOERR); in GetTotalSizeOfVolume()
70 auto cbComplete = [resultSize](napi_env env, NError err) -> NVal { in GetTotalSizeOfVolume()
91 NError(E_PERMISSION_SYS).ThrowErr(env); in GetFreeSizeOfVolume()
96 NError(E_PARAMS).ThrowErr(env); in GetFreeSizeOfVolume()
104 NError(E_PARAM in GetFreeSizeOfVolume()
[all...]
H A Dvolumemanager_n_exporter.cpp40 NError(E_PERMISSION_SYS).ThrowErr(env); in CheckVolumes()
44 NError(E_PARAMS).ThrowErr(env); in CheckVolumes()
58 auto cbExec = [volumeInfo]() -> NError { in GetAllVolumes()
61 return NError(Convert2JsErrNum(errNum)); in GetAllVolumes()
63 return NError(ERRNO_NOERR); in GetAllVolumes()
65 auto cbComplete = [volumeInfo](napi_env env, NError err) -> NVal { in GetAllVolumes()
72 return { env, NError(status).GetNapiErr(env) }; in GetAllVolumes()
87 return { env, NError(status).GetNapiErr(env) }; in GetAllVolumes()
105 NError(E_PERMISSION_SYS).ThrowErr(env); in CheckMount()
109 NError(E_PARAM in CheckMount()
[all...]
/foundation/filemanagement/dfs_service/interfaces/kits/js/cloudfilesync/
H A Dcloud_file_cache_napi.cpp68 NError(E_PARAMS).ThrowErr(env); in Constructor()
75 NError(E_UNKNOWN_ERR).ThrowErr(env); in Constructor()
86 NError(E_UNKNOWN_ERR).ThrowErr(exports_.env_); in ToExport()
93 NError(E_UNKNOWN_ERR).ThrowErr(exports_.env_); in ToExport()
107 NError(E_PARAMS).ThrowErr(env); in CleanCloudFileCache()
114 NError(EINVAL).ThrowErr(env); in CleanCloudFileCache()
120 NError(Convert2JsErrNum(ret)).ThrowErr(env); in CleanCloudFileCache()
146 NError(E_PARAMS).ThrowErr(env); in StartFileCache()
152 NError(E_PARAMS).ThrowErr(env); in StartFileCache()
156 auto cbExec = [uri = string(uri.get())]() -> NError { in StartFileCache()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_stream/
H A Dstream_n_exporter.cpp53 NError(EINVAL).ThrowErr(env); in FlushSync()
61 NError(EIO).ThrowErr(env); in FlushSync()
68 NError(errno).ThrowErr(env); in FlushSync()
79 NError(EINVAL).ThrowErr(env); in Flush()
87 NError(EIO).ThrowErr(env); in Flush()
91 auto cbExec = [fp]() -> NError { in Flush()
94 return NError(EIO); in Flush()
99 return NError(errno); in Flush()
101 return NError(ERRNO_NOERR); in Flush()
104 auto cbCompl = [](napi_env env, NError er in Flush()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_securitylabel/
H A Dsecuritylabel_n_exporter.cpp35 NError(EINVAL).ThrowErr(env); in SetSecurityLabel()
45 NError(EINVAL).ThrowErr(env); in SetSecurityLabel()
51 NError(EINVAL).ThrowErr(env); in SetSecurityLabel()
57 NError(EINVAL).ThrowErr(env); in SetSecurityLabel()
60 auto cbExec = [pathString = string(path.get()), dataLevelString]() -> NError { in SetSecurityLabel()
63 return NError(errno); in SetSecurityLabel()
65 return NError(ERRNO_NOERR); in SetSecurityLabel()
67 auto cbComplete = [](napi_env env, NError err) -> NVal { in SetSecurityLabel()
88 NError(EINVAL).ThrowErr(env); in SetSecurityLabelSync()
98 NError(EINVA in SetSecurityLabelSync()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_environment/
H A Denvironment_n_exporter.cpp92 NError(E_DEVICENOTSUPPORT).ThrowErr(env); in CheckInvalidAccess()
97 NError(E_PERMISSION_SYS).ThrowErr(env); in CheckInvalidAccess()
103 NError(E_PERMISSION).ThrowErr(env); in CheckInvalidAccess()
113 NError(E_PERMISSION_SYS).ThrowErr(env); in GetStorageDataDir()
119 NError(EINVAL).ThrowErr(env); in GetStorageDataDir()
123 auto cbExec = []() -> NError { in GetStorageDataDir()
124 return NError(ERRNO_NOERR); in GetStorageDataDir()
126 auto cbComplete = [](napi_env env, NError err) -> NVal { in GetStorageDataDir()
151 NError(E_PERMISSION_SYS).ThrowErr(env); in GetUserDataDir()
157 NError(EINVA in GetUserDataDir()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_statvfs/
H A Dstatvfs_n_exporter.cpp31 NError(EINVAL).ThrowErr(env); in GetFreeSizeSync()
40 NError(EINVAL).ThrowErr(env); in GetFreeSizeSync()
47 NError(errno).ThrowErr(env); in GetFreeSizeSync()
60 NError(EINVAL).ThrowErr(env); in GetFreeSize()
69 NError(EINVAL).ThrowErr(env); in GetFreeSize()
75 auto cbExec = [pathString = move(pathString), resultSize]() -> NError { in GetFreeSize()
79 return NError(errno); in GetFreeSize()
83 return NError(ERRNO_NOERR); in GetFreeSize()
85 auto cbComplete = [resultSize](napi_env env, NError err) -> NVal { in GetFreeSize()
107 NError(EINVA in GetTotalSizeSync()
[all...]
/foundation/filemanagement/app_file_service/interfaces/kits/js/file_uri/
H A Dfile_uri_n_exporter.cpp38 NError(EINVAL).ThrowErr(env); in Constructor()
44 NError(EINVAL).ThrowErr(env); in Constructor()
50 NError(ENOMEM).ThrowErr(env); in Constructor()
55 NError(EIO).ThrowErr(env); in Constructor()
66 NError(EINVAL).ThrowErr(env); in UriToString()
72 NError(EINVAL).ThrowErr(env); in UriToString()
83 NError(EINVAL).ThrowErr(env); in GetFileUriName()
89 NError(EINVAL).ThrowErr(env); in GetFileUriName()
100 NError(E_PARAMS).ThrowErr(env); in GetFullDirectoryUri()
106 NError(EINVA in GetFullDirectoryUri()
[all...]
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_file/
H A Dfile_n_exporter.cpp45 NError(EINVAL).ThrowErr(env); in GetFileEntity()
50 NError(EINVAL).ThrowErr(env); in GetFileEntity()
61 NError(EINVAL).ThrowErr(env); in GetFD()
92 NError(EINVAL).ThrowErr(env); in GetExclusive()
104 NError(EINVAL).ThrowErr(env); in GetPath()
110 NError(EINVAL).ThrowErr(env); in GetPath()
120 NError(realPathRes).ThrowErr(env); in GetPath()
131 NError(EINVAL).ThrowErr(env); in GetName()
137 NError(EINVAL).ThrowErr(env); in GetName()
147 NError(realPathRe in GetName()
[all...]

Completed in 9 milliseconds

1234