/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/common/ |
H A D | common_func.cpp | 53 NapiBusinessError().ThrowErr(env, EINVAL); in GetAdler32Arg() 63 NapiBusinessError().ThrowErr(env, EINVAL); in GetAdler32Arg() 79 NapiBusinessError().ThrowErr(env, EINVAL); in GetCrc64Arg() 89 NapiBusinessError().ThrowErr(env, EINVAL); in GetCrc64Arg() 107 NapiBusinessError().ThrowErr(env, EINVAL); in GetAdler32CombineArg() 114 NapiBusinessError().ThrowErr(env, EINVAL); in GetAdler32CombineArg() 121 NapiBusinessError().ThrowErr(env, EINVAL); in GetAdler32CombineArg() 151 NapiBusinessError().ThrowErr(env, EFAULT); in SetZStreamValue() 160 NapiBusinessError().ThrowErr(env, EINVAL); in SetZStreamValue() 263 NapiBusinessError().ThrowErr(env, EINVAL); in GetZstreamArg() [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_stream/ |
H A D | stream_n_exporter.cpp | 63 NError(EINVAL).ThrowErr(env); in FlushSync() 75 NError(EIO).ThrowErr(env); in FlushSync() 82 NError(errno).ThrowErr(env); in FlushSync() 93 NError(EINVAL).ThrowErr(env); in Flush() 105 NError(EIO).ThrowErr(env); in Flush() 155 NError(EIO).ThrowErr(env); in ReadSync() 178 NError(EIO).ThrowErr(env); in ReadSync() 196 NError(EIO).ThrowErr(env); in CloseSync() 223 NError(EIO).ThrowErr(env); in WriteSync() 245 NError(EIO).ThrowErr(env); in WriteSync() [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() 165 NError(EINVAL).ThrowErr(env); in GetParent() 277 NError(errno).ThrowErr(env); in TryLock() [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_randomaccessfile/ |
H A D | randomaccessfile_n_exporter.cpp | 73 NError(EINVAL).ThrowErr(env); in GetFD() 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() 239 NError(EIO).ThrowErr(env); in Read() 256 NError(EIO).ThrowErr(env); in WriteSync() 349 NError(EIO).ThrowErr(env); in Write() 382 NError(EIO).ThrowErr(env); in CloseSync() 387 err.ThrowErr(env); in CloseSync() [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() 191 NError(E_PARAMS).ThrowErr(env); in StopFileCache() 197 NError(E_PARAMS).ThrowErr(env); in StopFileCache() 245 NError(E_PARAMS).ThrowErr(env); in StartBatchFileCache() 253 NError(E_PARAMS).ThrowErr(env); in StartBatchFileCache() 285 NError(E_PARAMS).ThrowErr(env); in StopBatchFileCache() [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() 113 NError(E_PERMISSION_SYS).ThrowErr(env); in GetStorageDataDir() 119 NError(EINVAL).ThrowErr(env); in GetStorageDataDir() 157 NError(EINVAL).ThrowErr(env); in GetUserDataDir() 193 NError(E_PARAMS).ThrowErr(env); in GetUserDownloadDir() 199 NError(E_UNKNOWN_ERROR).ThrowErr(env); in GetUserDownloadDir() 215 NError(E_PARAMS).ThrowErr(env); in GetUserDesktopDir() 221 NError(E_UNKNOWN_ERROR).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/file_api/interfaces/kits/js/src/mod_statfs/ |
H A D | statfs_n_exporter.cpp | 38 NError(EINVAL).ThrowErr(env, "Invalid path"); in GetFrSizeSync() 45 NError(errno).ThrowErr(env, "Failed get info"); in GetFrSizeSync() 65 NError(EINVAL).ThrowErr(env, "Invalid path"); in GetFrSize() 110 NError(EINVAL).ThrowErr(env, "Invalid path"); in GetBSizeSync() 117 NError(errno).ThrowErr(env); in GetBSizeSync() 135 NError(EINVAL).ThrowErr(env, "Invalid path"); in GetBSize() 186 NError(errno).ThrowErr(env); in GetBAvailSync() 255 NError(errno).ThrowErr(env); in GetBlocksSync() 324 NError(errno).ThrowErr(env); in GetBFreeSync() 393 NError(errno).ThrowErr(env); in GetFreeBytesSync() [all …]
|
/ohos5.0/base/sensors/sensor/frameworks/js/napi/src/ |
H A D | sensor_js.cpp | 313 ThrowErr(env, ret, "SubscribeSensor fail"); in Once() 418 ThrowErr(env, ret, "SubscribeSensor fail"); in On() 512 ThrowErr(env, ret, "UnsubscribeSensor fail"); in Off() 651 ThrowErr(env, PARAMETER_ERROR, "Get axisY fail"); in TransformCoordinateSystem() 721 ThrowErr(env, ret, "Get angle modify fail"); in GetAngleModify() 762 ThrowErr(env, ret, "Get direction fail"); in GetDirection() 803 ThrowErr(env, ret, "CreateQuaternion fail"); in CreateQuaternion() 849 ThrowErr(env, ret, "Get altitude fail"); in GetAltitude() 887 ThrowErr(env, ret, "Get geomagnetic dip fail"); in GetGeomagneticDip() 1048 ThrowErr(env, ret, "Get sensor list fail"); in GetSensorListSync() [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_dir/ |
H A D | dir_n_exporter.cpp | 49 UniError(EIO).ThrowErr(env, "Cannot get entity of Dir"); in GetDirEntity() 59 UniError(EBADF).ThrowErr(env, "Dir has been closed yet"); in CloseSync() 78 UniError(EIO).ThrowErr(env, "Cannot get entity of Dir"); in Close() 83 UniError(EBADF).ThrowErr(env, "Dir has been closed yet"); in Close() 231 UniError(errno).ThrowErr(env); in ReadSync() 239 UniError(errno).ThrowErr(env); in ReadSync() 298 UniError(EINVAL).ThrowErr(env); in DoListFileVector2NV() 303 UniError(EINVAL).ThrowErr(env); in DoListFileVector2NV() 334 UniError(EINVAL).ThrowErr(env, "Invalid listNum"); in ListFile() 387 UniError(EINVAL).ThrowErr(env, "Invalid listNum"); in ListFileSync() [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/properties/ |
H A D | prop_n_exporter.cpp | 74 UniError(EINVAL).ThrowErr(env, "Invalid path"); in AccessSync() 88 UniError(errno).ThrowErr(env); in AccessSync() 105 UniError(EINVAL).ThrowErr(env, "Invalid path"); in Access() 260 UniError(errno).ThrowErr(env); in MkdirSync() 279 UniError(EINVAL).ThrowErr(env, "Invalid fd"); in FchmodSync() 292 UniError(errno).ThrowErr(env); in FchmodSync() 312 UniError(EINVAL).ThrowErr(env, "Invalid fd"); in FchownSync() 332 UniError(errno).ThrowErr(env); in FchownSync() 372 UniError(errno).ThrowErr(env); in ReadSync() 545 UniError(errno).ThrowErr(env); in UnlinkSync() [all …]
|
H A D | open.cpp | 37 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in Sync() 45 UniError(EINVAL).ThrowErr(env, "Invalid path"); in Sync() 53 UniError(EINVAL).ThrowErr(env, "Invalid flags"); in Sync() 69 UniError(EINVAL).ThrowErr(env, "called with O_CREAT/O_TMPFILE but no mode"); in Sync() 75 UniError(EINVAL).ThrowErr(env, "Invalid mode"); in Sync() 82 UniError(errno).ThrowErr(env, "Filename too long"); in Sync() 85 UniError(errno).ThrowErr(env); in Sync() 111 UniError(EINVAL).ThrowErr(env, "Invalid flags"); in ParseFlags() 123 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in Async() 128 UniError(EINVAL).ThrowErr(env, "Invalid path"); in Async() [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_stream/ |
H A D | stream_n_exporter.cpp | 45 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in ReadSync() 54 UniError(EBADF).ThrowErr(env, "Stream may have been closed"); in ReadSync() 70 UniError(errno).ThrowErr(env); in ReadSync() 76 UniError(errno).ThrowErr(env); in ReadSync() 113 UniError(EBADF).ThrowErr(env, "Stream may has been closed"); in WriteSync() 129 UniError(errno).ThrowErr(env); in WriteSync() 135 UniError(errno).ThrowErr(env); in WriteSync() 165 UniError(EBADF).ThrowErr(env, "Stream may has been closed"); in Write() 182 UniError(errno).ThrowErr(env); in Write() 252 UniError(errno).ThrowErr(env); in Read() [all …]
|
/ohos5.0/foundation/filemanagement/user_file_service/interfaces/kits/native/recent/ |
H A D | recent_n_exporter.cpp | 72 NError(errno).ThrowErr(env); in SetFileTime() 92 NError(EINVAL).ThrowErr(env); in AddRecentFile() 101 NError(errno).ThrowErr(env); in AddRecentFile() 119 NError(errno).ThrowErr(env); in AddRecentFile() 124 NError(errno).ThrowErr(env); in AddRecentFile() 140 NError(EINVAL).ThrowErr(env); in RemoveRecentFile() 149 NError(errno).ThrowErr(env); in RemoveRecentFile() 155 NError(errno).ThrowErr(env); in RemoveRecentFile() 301 NError(ENOMEM).ThrowErr(env); in ListFileCore() 308 NError(errno).ThrowErr(env); in ListFileCore() [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
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() 124 NError(EINVAL).ThrowErr(env); in GetSync() 131 NError(ret).ThrowErr(env); in GetSync() 142 NError(EINVAL).ThrowErr(env); in GetAsync() [all …]
|
H A D | utimes.cpp | 34 NError(EINVAL).ThrowErr(env); in Sync() 41 NError(EINVAL).ThrowErr(env); in Sync() 48 NError(EINVAL).ThrowErr(env); in Sync() 56 NError(ENOMEM).ThrowErr(env); in Sync() 63 NError(ret).ThrowErr(env); in Sync() 71 NError(ENOMEM).ThrowErr(env); in Sync() 80 NError(ret).ThrowErr(env); in Sync()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/class_tasksignal/ |
H A D | task_signal_n_exporter.cpp | 42 NError(EINVAL).ThrowErr(env); in Constructor() 49 NError(ENOMEM).ThrowErr(env); in Constructor() 55 NError(EIO).ThrowErr(env); in Constructor() 72 NError(EIO).ThrowErr(exports_.env_); in Export() 79 NError(EIO).ThrowErr(exports_.env_); in Export() 90 NError(EINVAL).ThrowErr(env); in Cancel() 97 NError(EINVAL).ThrowErr(env); in Cancel() 103 NError(CANCEL_ERR).ThrowErr(env); in Cancel() 115 NError(EINVAL).ThrowErr(env); in OnCancel() 121 NError(EINVAL).ThrowErr(env); in OnCancel()
|
/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() 88 NError(EINVAL).ThrowErr(env); in SetSecurityLabelSync() 98 NError(EINVAL).ThrowErr(env); in SetSecurityLabelSync() 105 NError(EINVAL).ThrowErr(env); in SetSecurityLabelSync() 111 NError(EINVAL).ThrowErr(env); in SetSecurityLabelSync() 117 NError(errno).ThrowErr(env); in SetSecurityLabelSync() 129 NError(EINVAL).ThrowErr(env); in GetSecurityLabel() [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/kits/js/file_share/ |
H A D | grant_permissions.cpp | 164 NError(E_PERMISSION).ThrowErr(env); in PersistPermission() 170 NError(E_PARAMS).ThrowErr(env); in PersistPermission() 175 NError(E_PARAMS).ThrowErr(env); in PersistPermission() 214 NError(E_PARAMS).ThrowErr(env); in RevokePermission() 219 NError(E_PARAMS).ThrowErr(env); in RevokePermission() 258 NError(E_PARAMS).ThrowErr(env); in ActivatePermission() 263 NError(E_PARAMS).ThrowErr(env); in ActivatePermission() 302 NError(E_PARAMS).ThrowErr(env); in DeactivatePermission() 307 NError(E_PARAMS).ThrowErr(env); in DeactivatePermission() 346 NError(E_PARAMS).ThrowErr(env); in CheckPersistentPermission() [all …]
|
/ohos5.0/foundation/filemanagement/user_file_service/frameworks/js/napi/file_access_module/root_info/ |
H A D | napi_root_iterator_exporter.cpp | 37 NError(E_GETRESULT).ThrowErr(exports_.env_); in Export() 43 NError(E_GETRESULT).ThrowErr(exports_.env_); in Export() 54 NError(EINVAL).ThrowErr(env); in Constructor() 60 NError(E_GETRESULT).ThrowErr(env); in Constructor() 65 NError(E_GETRESULT).ThrowErr(env); in Constructor() 76 NError(EINVAL).ThrowErr(env); in Next() 83 NError(E_GETRESULT).ThrowErr(env); in Next() 89 NError(E_GETRESULT).ThrowErr(env); in Next() 95 NError(E_GETRESULT).ThrowErr(env); in Next()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fileio/class_stat/ |
H A D | stat_n_exporter.cpp | 42 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in CheckStatMode() 94 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetDev() 110 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetIno() 126 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetMode() 142 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetNlink() 158 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetUid() 174 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetGid() 190 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetRdev() 206 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetSize() 222 UniError(EINVAL).ThrowErr(env, "Number of arguments unmatched"); in GetBlksize() [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/interfaces/kits/js/backup/ |
H A D | prop_n_operation.cpp | 173 NError(E_PERMISSION).ThrowErr(env); in Async() 204 NError(E_PERMISSION).ThrowErr(env); in DoGetBackupInfo() 223 NError(EINVAL).ThrowErr(env); in DoGetBackupInfo() 289 NError(E_PERMISSION).ThrowErr(env); in DoUpdateTimer() 300 NError(E_PARAMS).ThrowErr(env); in DoUpdateTimer() 307 NError(E_PARAMS).ThrowErr(env); in DoUpdateTimer() 314 NError(E_PARAMS).ThrowErr(env); in DoUpdateTimer() 337 NError(E_PERMISSION).ThrowErr(env); in DoUpdateSendRate() 348 NError(E_PARAMS).ThrowErr(env); in DoUpdateSendRate() 355 NError(E_PARAMS).ThrowErr(env); in DoUpdateSendRate() [all …]
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_hash/class_hashstream/ |
H A D | hashstream_n_exporter.cpp | 59 NError(ENOMEM).ThrowErr(env); in SetHsEntity() 89 NError(EIO).ThrowErr(env); in SetHsEntity() 100 NError(EINVAL).ThrowErr(env); in Constructor() 107 NError(EINVAL).ThrowErr(env); in Constructor() 114 NError(EINVAL).ThrowErr(env); in Constructor() 126 NError(EINVAL).ThrowErr(env); in Digest() 132 NError(EIO).ThrowErr(env); in Digest() 168 NError(EINVAL).ThrowErr(env); in Update() 175 NError(EINVAL).ThrowErr(env); in Update() 182 NError(EIO).ThrowErr(env); in Update() [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() 97 NError(E_PARAMS).ThrowErr(env); in GetFreeSizeOfVolume() 105 NError(E_PARAMS).ThrowErr(env); in GetFreeSizeOfVolume() 140 NError(E_PARAMS).ThrowErr(env); in ExtractNameAndIndex() 147 NError(E_PARAMS).ThrowErr(env); in ExtractNameAndIndex() 167 NError(E_PARAMS).ThrowErr(env); in ExtractNameAndIndex() 182 NError(E_PARAMS).ThrowErr(env); in GetBundleStats() 224 NError(E_PARAMS).ThrowErr(env); in GetCurrentBundleStats() 278 NError(E_PARAMS).ThrowErr(env); in GetSystemSize() [all …]
|
/ohos5.0/base/msdp/device_status/frameworks/js/napi/src/ |
H A D | devicestatus_napi.cpp | 213 ThrowErr(env, PARAM_ERROR, "Bad parameters"); in CheckSubscribeParam() 229 ThrowErr(env, PARAM_ERROR, "Failed to get mode"); in CheckSubscribeParam() 255 ThrowErr(env, PARAM_ERROR, "Bad parameters"); in CheckGetParam() 271 ThrowErr(env, PARAM_ERROR, "Failed to get mode"); in CheckGetParam() 276 ThrowErr(env, PARAM_ERROR, "Type is illegal"); in CheckGetParam() 294 ThrowErr(env, PARAM_ERROR, "Failed to get mode"); in GetParameters() 299 ThrowErr(env, PARAM_ERROR, "Type is illegal"); in GetParameters() 309 ThrowErr(env, PARAM_ERROR, "Event is illegal"); in GetParameters() 386 ThrowErr(env, PARAM_ERROR, "Type is illegal"); in SubscribeDeviceStatus() 390 ThrowErr(env, PARAM_ERROR, "Event is illegal"); in SubscribeDeviceStatus() [all …]
|