/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_stream/ |
H A D | stream_n_exporter.cpp | 75 NError(EIO).ThrowErr(env); in FlushSync() 105 NError(EIO).ThrowErr(env); in Flush() 112 return NError(EIO); in Flush() 117 return NError(errno); in Flush() 155 NError(EIO).ThrowErr(env); in ReadSync() 178 NError(EIO).ThrowErr(env); in ReadSync() 196 NError(EIO).ThrowErr(env); in CloseSync() 270 return NError(EIO); in WriteExec() 282 return NError(EIO); in WriteExec() 346 return NError(EIO); in ReadExec() [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_statfs/ |
H A D | statfs_n_exporter.cpp | 75 return NError(errno); in GetFrSize() 79 return NError(ERRNO_NOERR); in GetFrSize() 117 NError(errno).ThrowErr(env); in GetBSizeSync() 145 return NError(errno); in GetBSize() 148 return NError(ERRNO_NOERR); in GetBSize() 214 return NError(errno); in GetBAvail() 217 return NError(ERRNO_NOERR); in GetBAvail() 283 return NError(errno); in GetBlocks() 352 return NError(errno); in GetBFree() 423 return NError(errno); in GetFreeBytes() [all …]
|
/ohos5.0/foundation/filemanagement/dfs_service/interfaces/kits/js/cloudsyncmanager/ |
H A D | cloud_sync_manager_n_exporter.cpp | 47 NError(E_PARAMS).ThrowErr(env); in ChangeAppCloudSwitch() 53 NError(E_PARAMS).ThrowErr(env); in ChangeAppCloudSwitch() 59 NError(E_PARAMS).ThrowErr(env); in ChangeAppCloudSwitch() 72 return NError(ERRNO_NOERR); in ChangeAppCloudSwitch() 96 NError(E_PARAMS).ThrowErr(env); in NotifyDataChangeInner() 102 NError(E_PARAMS).ThrowErr(env); in NotifyDataChangeInner() 115 return NError(ERRNO_NOERR); in NotifyDataChangeInner() 178 return NError(ERRNO_NOERR); in NotifyEventChange() 233 return NError(ERRNO_NOERR); in DisableCloud() 315 return NError(ERRNO_NOERR); in EnableCloud() [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | copy_file.cpp | 51 return NError(ENOMEM); in IsAllPath() 57 return NError(ret); in IsAllPath() 60 return NError(ERRNO_NOERR); in IsAllPath() 69 return NError(ENOMEM); in SendFileCore() 79 return NError(ret); in SendFileCore() 94 return NError(EIO); in SendFileCore() 105 return NError(ENOMEM); in TruncateCore() 110 return NError(ret); in TruncateCore() 121 return NError(ENOMEM); in OpenCore() 126 return NError(ret); in OpenCore() [all …]
|
H A D | rmdirent.cpp | 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() 64 return NError(ENOMEM); in RmDirent() 70 return NError(ret); in RmDirent() 85 return NError(ret); in RmDirent() 98 return NError(ENOMEM); in RmDirent() 103 return NError(ret); in RmDirent() 105 return NError(ERRNO_NOERR); in RmDirent() [all …]
|
H A D | prop_n_exporter.cpp | 347 return NError(ret); in Unlink() 423 return NError(ret); in MkdirExec() 432 return NError(ret); in MkdirExec() 440 return NError(ret); in MkdirExec() 442 return NError(ERRNO_NOERR); in MkdirExec() 586 return NError(ENOMEM); in ReadExec() 591 return NError(ret); in ReadExec() 594 return NError(ERRNO_NOERR); in ReadExec() 664 return NError(ENOMEM); in WriteExec() 669 return NError(ret); in WriteExec() [all …]
|
H A D | read_lines.cpp | 72 NError(EINVAL).ThrowErr(env); in InstantiateReaderIterator() 111 return NError(errno); in AsyncExec() 116 return NError(ret); in AsyncExec() 119 return NError(ERRNO_NOERR); in AsyncExec() 127 NError(EINVAL).ThrowErr(env); in Async() 134 NError(EINVAL).ThrowErr(env); in Async() 142 NError(ret).ThrowErr(env); in Async() 150 NError(ENOMEM).ThrowErr(env); in Async() 179 NError(EINVAL).ThrowErr(env); in Sync() 186 NError(EINVAL).ThrowErr(env); in Sync() [all …]
|
H A D | xattr.cpp | 70 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() 131 NError(ret).ThrowErr(env); in GetSync() 165 return NError(ret); in GetAsync() 217 return NError(errno); in SetAsync() [all …]
|
H A D | truncate.cpp | 39 NError(EINVAL).ThrowErr(env); in ParseJsFile() 45 NError(ENOMEM).ThrowErr(env); in ParseJsFile() 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_NOERR); in TruncateCore() 97 NError(EINVAL).ThrowErr(env); in Sync() [all …]
|
H A D | stat.cpp | 53 NError(EINVAL).ThrowErr(env); in ParseJsFile() 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(ENOMEM).ThrowErr(env); in Sync() 119 NError(EINVAL).ThrowErr(env); in Async() 129 NError(ENOMEM).ThrowErr(env); in Async() 137 return NError(ENOMEM); in Async() [all …]
|
H A D | read_text.cpp | 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(EINVAL).ThrowErr(env); in Sync() 174 NError(fd).ThrowErr(env); in Sync() [all …]
|
H A D | lstat.cpp | 35 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() 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(EINVAL).ThrowErr(env); in Async() 102 NError(ENOMEM).ThrowErr(env); in Async() [all …]
|
H A D | mkdtemp.cpp | 33 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() 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(EINVAL).ThrowErr(env); in Async() 99 NError(ENOMEM).ThrowErr(env); in Async() [all …]
|
H A D | rename.cpp | 36 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() 99 return NError(ENOMEM); in Async() 104 return NError(ret); in Async() [all …]
|
/ohos5.0/foundation/filemanagement/dfs_service/interfaces/kits/js/cloudfilesync/ |
H A D | cloud_file_cache_napi.cpp | 76 NError(E_PARAMS).ThrowErr(env); in Constructor() 115 NError(E_PARAMS).ThrowErr(env); in CleanCloudFileCache() 122 NError(EINVAL).ThrowErr(env); in CleanCloudFileCache() 154 NError(E_PARAMS).ThrowErr(env); in StartFileCache() 160 NError(E_PARAMS).ThrowErr(env); in StartFileCache() 171 return NError(ERRNO_NOERR); in StartFileCache() 191 NError(E_PARAMS).ThrowErr(env); in StopFileCache() 197 NError(E_PARAMS).ThrowErr(env); in StopFileCache() 220 return NError(ERRNO_NOERR); in StopFileCache() 265 return NError(ERRNO_NOERR); in StartBatchFileCache() [all …]
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/kits_impl/src/ |
H A D | storage_statistics_n_exporter.cpp | 48 NError(E_PARAMS).ThrowErr(env); in GetTotalSizeOfVolume() 56 NError(E_PARAMS).ThrowErr(env); in GetTotalSizeOfVolume() 68 return NError(ERRNO_NOERR); in GetTotalSizeOfVolume() 97 NError(E_PARAMS).ThrowErr(env); in GetFreeSizeOfVolume() 117 return NError(ERRNO_NOERR); in GetFreeSizeOfVolume() 195 return NError(ERRNO_NOERR); in GetBundleStats() 247 return NError(ERRNO_NOERR); in GetCurrentBundleStats() 288 return NError(ERRNO_NOERR); in GetSystemSize() 344 return NError(ERRNO_NOERR); in GetUserStorageStats() 391 return NError(ERRNO_NOERR); in GetTotalSize() [all …]
|
H A D | volumemanager_n_exporter.cpp | 44 NError(E_PARAMS).ThrowErr(env); in CheckVolumes() 63 return NError(ERRNO_NOERR); in GetAllVolumes() 109 NError(E_PARAMS).ThrowErr(env); in CheckMount() 127 NError(E_PARAMS).ThrowErr(env); in Mount() 137 return NError(ERRNO_NOERR); in Mount() 177 return NError(ERRNO_NOERR); in Unmount() 219 return NError(ERRNO_NOERR); in GetVolumeByUuid() 273 return NError(ERRNO_NOERR); in GetVolumeById() 337 return NError(ERRNO_NOERR); in SetVolumeDescription() 390 return NError(ERRNO_NOERR); in Format() [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_randomaccessfile/ |
H A D | randomaccessfile_n_exporter.cpp | 79 NError(EIO).ThrowErr(env); in GetFD() 96 NError(EIO).ThrowErr(env); in GetFPointer() 113 NError(EIO).ThrowErr(env); in SetFilePointerSync() 148 NError(EIO).ThrowErr(env); in ReadSync() 200 return NError(EIO); in ReadExec() 204 return NError(actLen); in ReadExec() 307 return NError(EIO); in WriteExec() 355 static NError CloseFd(int fd) in CloseFd() 361 return NError(ENOMEM); in CloseFd() 366 return NError(ret); in CloseFd() [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/kits/js/file_uri/ |
H A D | file_uri_n_exporter.cpp | 38 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() 106 NError(EINVAL).ThrowErr(env); in GetFullDirectoryUri() 112 NError(ENOENT).ThrowErr(env); in GetFullDirectoryUri() [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_file/ |
H A D | file_n_exporter.cpp | 45 NError(EINVAL).ThrowErr(env); in GetFileEntity() 50 NError(EINVAL).ThrowErr(env); in GetFileEntity() 61 NError(EINVAL).ThrowErr(env); in GetFD() 104 NError(EINVAL).ThrowErr(env); in GetPath() 110 NError(EINVAL).ThrowErr(env); in GetPath() 131 NError(EINVAL).ThrowErr(env); in GetName() 137 NError(EINVAL).ThrowErr(env); in GetName() 154 NError(ENOENT).ThrowErr(env); in GetName() 220 return NError(EIO); in Lock() 227 return NError(errno); in Lock() [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/kits/js/file_share/ |
H A D | grant_permissions.cpp | 170 NError(E_PARAMS).ThrowErr(env); in PersistPermission() 175 NError(E_PARAMS).ThrowErr(env); in PersistPermission() 181 return NError(arg->errNo); in PersistPermission() 214 NError(E_PARAMS).ThrowErr(env); in RevokePermission() 219 NError(E_PARAMS).ThrowErr(env); in RevokePermission() 225 return NError(arg->errNo); in RevokePermission() 258 NError(E_PARAMS).ThrowErr(env); in ActivatePermission() 263 NError(E_PARAMS).ThrowErr(env); in ActivatePermission() 269 return NError(arg->errNo); in ActivatePermission() 313 return NError(arg->errNo); in DeactivatePermission() [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_environment/ |
H A D | environment_n_exporter.cpp | 103 NError(E_PERMISSION).ThrowErr(env); in CheckInvalidAccess() 119 NError(EINVAL).ThrowErr(env); in GetStorageDataDir() 123 auto cbExec = []() -> NError { in GetStorageDataDir() 124 return NError(ERRNO_NOERR); in GetStorageDataDir() 157 NError(EINVAL).ThrowErr(env); in GetUserDataDir() 164 return NError(ERRNO_NOERR); in GetUserDataDir() 193 NError(E_PARAMS).ThrowErr(env); in GetUserDownloadDir() 215 NError(E_PARAMS).ThrowErr(env); in GetUserDesktopDir() 237 NError(E_PARAMS).ThrowErr(env); in GetUserDocumentDir() 257 NError(E_PARAMS).ThrowErr(env); in GetExternalStorageDir() [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/kits/js/backup/ |
H A D | session_restore_n_exporter.cpp | 428 NError(E_PERMISSION).ThrowErr(env); in Constructor() 433 NError(E_PERMISSION_SYS).ThrowErr(env); in Constructor() 506 NError(E_PERMISSION).ThrowErr(env); in AppendBundles() 511 NError(E_PERMISSION_SYS).ThrowErr(env); in AppendBundles() 578 NError(E_PERMISSION).ThrowErr(env); in PublishFile() 583 NError(E_PERMISSION_SYS).ThrowErr(env); in PublishFile() 639 NError(E_PERMISSION).ThrowErr(env); in GetFileHandle() 644 NError(E_PERMISSION_SYS).ThrowErr(env); in GetFileHandle() 692 NError(E_PERMISSION).ThrowErr(env); in Release() 745 NError(EIO).ThrowErr(exports_.env_); in Export() [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_securitylabel/ |
H A D | securitylabel_n_exporter.cpp | 35 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() 63 return NError(errno); in SetSecurityLabel() 65 return NError(ERRNO_NOERR); in SetSecurityLabel() 88 NError(EINVAL).ThrowErr(env); in SetSecurityLabelSync() 98 NError(EINVAL).ThrowErr(env); in SetSecurityLabelSync() 105 NError(EINVAL).ThrowErr(env); in SetSecurityLabelSync() 117 NError(errno).ThrowErr(env); in SetSecurityLabelSync() [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_statvfs/ |
H A D | statvfs_n_exporter.cpp | 31 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() 79 return NError(errno); in GetFreeSize() 83 return NError(ERRNO_NOERR); in GetFreeSize() 107 NError(EINVAL).ThrowErr(env); in GetTotalSizeSync() 123 NError(errno).ThrowErr(env); in GetTotalSizeSync() 155 return NError(errno); in GetTotalSize() [all …]
|