/ohos5.0/base/request/request/frameworks/cj/ffi/include/ |
H A D | cj_initialize.h | 28 using OHOS::Request::ExceptionError; 44 …static ExceptionError ParseConfig(OHOS::AbilityRuntime::Context *context, const CConfig *ffiConfig… 45 …static ExceptionError ParseBundleName(const std::shared_ptr<OHOS::AbilityRuntime::Context> &contex… 63 …static ExceptionError CheckFileSpec(const std::shared_ptr<OHOS::AbilityRuntime::Context> &context,… 64 …static ExceptionError CheckFilePath(const std::shared_ptr<OHOS::AbilityRuntime::Context> &context,… 70 static ExceptionError GetFD(const std::string &path, const Config &config, int32_t &fd); 82 static ExceptionError CheckUploadBodyFiles(Config &config, const std::string &filePath); 83 static ExceptionError UploadBodyFileProc(std::string &fileName, Config &config);
|
H A D | cj_request_task.h | 35 using OHOS::Request::ExceptionError; 44 static ExceptionError Remove(const std::string &tid); 75 ExceptionError Create(OHOS::AbilityRuntime::Context* context, Config &config); 76 ExceptionError On(std::string type, std::string &taskId, void (*callback)(CProgress progress)); 77 ExceptionError Off(std::string event, CFunc callback);
|
H A D | cj_request_common.h | 27 using OHOS::Request::ExceptionError; 33 ExceptionError ConvertError(int32_t errorCode);
|
H A D | cj_request_impl.h | 28 using OHOS::Request::ExceptionError; 48 static RetError Convert2RetErr(ExceptionError &err);
|
/ohos5.0/base/request/request/frameworks/js/napi/include/ |
H A D | js_initialize.h | 53 static ExceptionError InitParam( 94 …static bool CheckUploadBodyFiles(const std::string &filePath, Config &config, ExceptionError &erro… 95 static bool CheckPathIsFile(const std::string &path, ExceptionError &error); 96 …static bool CheckPathOverWrite(const std::string &path, const Config &config, ExceptionError &erro… 97 static bool GetFdUpload(const std::string &path, const Config &config, ExceptionError &error); 98 static bool GetFdDownload(const std::string &path, const Config &config, ExceptionError &error); 116 FileSpec &file, ExceptionError &error); 118 FileSpec &file, ExceptionError &error); 120 …st std::shared_ptr<OHOS::AbilityRuntime::Context> &context, Config &config, ExceptionError &error); 122 …st std::shared_ptr<OHOS::AbilityRuntime::Context> &context, Config &config, ExceptionError &error); [all …]
|
H A D | js_task.h | 105 static ExceptionError ParseGetTask( 107 static ExceptionError ParseTid(napi_env env, size_t argc, napi_value *argv, std::string &tid); 110 static ExceptionError ParseSearch(napi_env env, size_t argc, napi_value *argv, Filter &filter); 115 static ExceptionError ParseTouch(
|
H A D | async_call.h | 84 ExceptionError error; in CreateErr()
|
H A D | request_event.h | 85 static ExceptionError ParseOnOffParameters(
|
H A D | napi_utils.h | 82 void ConvertError(int32_t errorCode, ExceptionError &err);
|
/ohos5.0/base/request/request/frameworks/cj/ffi/src/ |
H A D | cj_initialize.cpp | 54 ExceptionError CJInitialize::ParseBundleName(const std::shared_ptr<OHOS::AbilityRuntime::Context> &… in ParseBundleName() 496 ExceptionError CJInitialize::UploadBodyFileProc(std::string &fileName, Config &config) in UploadBodyFileProc() 520 ExceptionError CJInitialize::CheckUploadBodyFiles(Config &config, const std::string &filePath) in CheckUploadBodyFiles() 542 ExceptionError ret = UploadBodyFileProc(fileName, config); in CheckUploadBodyFiles() 564 ExceptionError CJInitialize::GetFD(const std::string &path, const Config &config, int32_t &fd) in GetFD() 566 ExceptionError error = { .code = ExceptionErrorCode::E_OK }; in GetFD() 646 ExceptionError CJInitialize::CheckFileSpec(const std::shared_ptr<OHOS::AbilityRuntime::Context> &co… in CheckFileSpec() 649 ExceptionError err = { .code = ExceptionErrorCode::E_OK }; in CheckFileSpec() 684 ExceptionError CJInitialize::CheckFilePath(const std::shared_ptr<OHOS::AbilityRuntime::Context> &co… in CheckFilePath() 687 ExceptionError err = { .code = ExceptionErrorCode::E_OK }; in CheckFilePath() [all …]
|
H A D | cj_request_impl.cpp | 75 RetError CJRequestImpl::Convert2RetErr(ExceptionError &err) in Convert2RetErr() 133 ExceptionError result = CJInitialize::ParseConfig(context, ffiConfig, config); in CreateTask() 165 ExceptionError result = CJTask::Remove(taskId); in RemoveTask() 189 ExceptionError result = task->On(event, taskId, callback); in ProgressOn() 208 ExceptionError result = task->Off(event, callback); in ProgressOff()
|
H A D | cj_request_task.cpp | 264 ExceptionError CJTask::Create(Context* context, Config &config) in Create() 303 ExceptionError CJTask::Remove(const std::string &tid) in Remove() 325 ExceptionError CJTask::On(std::string type, std::string &taskId, void (*callback)(CProgress progres… in On() 355 ExceptionError CJTask::Off(std::string event, CFunc callback) in Off()
|
H A D | cj_request_common.cpp | 85 ExceptionError ConvertError(int32_t errorCode) in ConvertError() 87 ExceptionError err{}; in ConvertError()
|
/ohos5.0/base/request/request/frameworks/js/napi/src/ |
H A D | js_task.cpp | 336 ExceptionError err = ParseGetTask(context->env_, argc, argv, context); in GetTask() 438 ExceptionError err = { .code = E_OK }; in ParseGetTask() 511 ExceptionError err = ParseTid(context->env_, argc, argv, context->tid); in Remove() 537 ExceptionError JsTask::ParseTid(napi_env env, size_t argc, napi_value *argv, std::string &tid) in ParseTid() 539 ExceptionError err = { .code = E_OK }; in ParseTid() 567 ExceptionError err = ParseTid(context->env_, argc, argv, context->tid); in Show() 590 ExceptionError err = ParseTouch(context->env_, argc, argv, context); in Touch() 630 ExceptionError err = { .code = E_OK }; in ParseTouch() 685 ExceptionError err = { .code = E_OK }; in ParseSearch() 810 ExceptionError err = ParseSearch(context->env_, argc, argv, context->filter); in Search() [all …]
|
H A D | js_initialize.cpp | 69 ExceptionError err = InitParam(env, argv, context, config); in Initialize() 98 ExceptionError JsInitialize::InitParam( in InitParam() 102 ExceptionError err = { .code = E_OK }; in InitParam() 166 …const std::shared_ptr<OHOS::AbilityRuntime::Context> &context, Config &config, ExceptionError &err… in CheckFilePath() 189 bool JsInitialize::CheckUploadBodyFiles(const std::string &filePath, Config &config, ExceptionError… in CheckUploadBodyFiles() 236 bool JsInitialize::CheckPathIsFile(const std::string &path, ExceptionError &error) in CheckPathIsFile() 252 bool JsInitialize::GetFdDownload(const std::string &path, const Config &config, ExceptionError &err… in GetFdDownload() 288 bool JsInitialize::GetFdUpload(const std::string &path, const Config &config, ExceptionError &error) in GetFdUpload() 1013 const Config &config, FileSpec &file, ExceptionError &error) in CheckUserFileSpec() 1042 …const std::shared_ptr<OHOS::AbilityRuntime::Context> &context, Config &config, ExceptionError &err… in CheckUploadFiles() [all …]
|
H A D | request_event.cpp | 137 ExceptionError err = ParseOnOffParameters(env, info, true, jsParam); in On() 181 ExceptionError err = ParseOnOffParameters(env, info, false, jsParam); in Off() 245 ExceptionError RequestEvent::ParseOnOffParameters( in ParseOnOffParameters() 248 ExceptionError err = { .code = E_OK }; in ParseOnOffParameters()
|
H A D | napi_utils.cpp | 628 void ConvertError(int32_t errorCode, ExceptionError &err) in ConvertError()
|
/ohos5.0/base/request/request/common/include/ |
H A D | constant.h | 52 struct ExceptionError { struct
|