/base/request/request/test/unittest/cpp_test/fwkTest/src/ |
H A D | request_manager_test.cpp | 81 EXPECT_NE(RequestManager::GetInstance(), nullptr); in HWTEST_F() 85 RequestManager::GetInstance()->Create(config, seq, tid); in HWTEST_F() 96 EXPECT_NE(RequestManager::GetInstance(), nullptr); in HWTEST_F() 102 RequestManager::GetInstance()->Create(config, seq, tid); in HWTEST_F() 103 RequestManager::GetInstance()->RequestManager::GetInstance()->GetTask(tidStr, token, config); in HWTEST_F() 114 EXPECT_NE(RequestManager::GetInstance(), nullptr); in HWTEST_F() 116 RequestManager::GetInstance()->Start(tidStr); in HWTEST_F() 127 EXPECT_NE(RequestManager::GetInstance(), nullptr); in HWTEST_F() 129 RequestManager in HWTEST_F() [all...] |
/base/request/request/frameworks/native/src/ |
H A D | request_manager.cpp | 22 const std::unique_ptr<RequestManager> &RequestManager::GetInstance()
in GetInstance() 24 static std::unique_ptr<RequestManager> instance(new RequestManager());
in GetInstance() 28 int32_t RequestManager::Create(const Config &config, int32_t seq, std::string &tid)
in Create() 32 int32_t RequestManager::GetTask(const std::string &tid, const std::string &token, Config &config)
in GetTask() 36 int32_t RequestManager::Start(const std::string &tid)
in Start() 40 int32_t RequestManager::Stop(const std::string &tid)
in Stop() 45 int32_t RequestManager::Query(const std::string &tid, TaskInfo &info)
in Query() 50 int32_t RequestManager [all...] |
/base/request/request/frameworks/native/include/ |
H A D | request_manager.h | 26 class RequestManager {
class 28 REQUEST_API static const std::unique_ptr<RequestManager> &GetInstance();
64 RequestManager() = default;
65 RequestManager(const RequestManager &) = delete;
66 RequestManager(RequestManager &&) = delete;
67 RequestManager &operator=(const RequestManager &) = delete;
|
/base/location/services/location_locator/locator/source/ |
H A D | request_manager.cpp | 56 ffrt::mutex RequestManager::requestMutex_; 58 RequestManager* RequestManager::GetInstance() in GetInstance() 60 static RequestManager data; in GetInstance() 64 RequestManager::RequestManager() in RequestManager() function in OHOS::Location::RequestManager 74 RequestManager::~RequestManager() in ~RequestManager() 78 bool RequestManager::InitSystemListeners() in InitSystemListeners() 84 bool RequestManager [all...] |
H A D | permission_status_change_cb.cpp | 26 auto requestManager = RequestManager::GetInstance(); in PermStateChangeCallback()
|
H A D | report_manager.cpp | 88 auto requestManger = RequestManager::GetInstance(); in OnReportLocation() 151 RequestManager::GetInstance()->ReportLocationError(LOCATING_FAILED_LOCATION_PERMISSION_DENIED, request); in ProcessRequestForReport() 158 RequestManager::GetInstance()->UpdateLocationError(request); in ProcessRequestForReport() 203 RequestManager::GetInstance()->ReportLocationError(LOCATING_FAILED_BACKGROUND_PERMISSION_DENIED, request); in GetPermittedLocation() 229 RequestManager::GetInstance()->ReportLocationError(LOCATING_FAILED_LOCATION_PERMISSION_DENIED, request); in GetPermittedLocation()
|
H A D | locator_ability.cpp | 136 requestManager_ = RequestManager::GetInstance(); in LocatorAbility() 1897 auto requestManager = RequestManager::GetInstance(); in InitRequestManagerEvent() 1905 auto requestManager = RequestManager::GetInstance(); in ApplyRequirementsEvent() 1969 auto requestManager = RequestManager::GetInstance(); in StartLocatingEvent() 1982 auto requestManager = RequestManager::GetInstance(); in StopLocatingEvent() 2010 auto requestManager = RequestManager::GetInstance(); in RegLocationErrorEvent() 2023 auto requestManager = RequestManager::GetInstance(); in UnRegLocationErrorEvent() 2061 RequestManager::GetInstance()->ReportLocationError(errCode, request); in ReportNetworkLocatingErrorEvent() 2126 auto requestManager = RequestManager::GetInstance(); in SyncStillMovementState() 2135 auto requestManager = RequestManager in SyncIdleState() [all...] |
H A D | locator_background_proxy.cpp | 133 auto requestManager = RequestManager::GetInstance(); in StartLocatorThread() 487 auto requestManager = RequestManager::GetInstance(); in OnForegroundApplicationChanged()
|
/base/request/request/frameworks/cj/ffi/src/ |
H A D | cj_app_state_callback.cpp | 24 using OHOS::Request::RequestManager; 29 if (RequestManager::GetInstance()->IsSaReady()) { in OnAbilityForeground() 34 RequestManager::GetInstance()->LoadRequestServer(); in OnAbilityForeground()
|
H A D | cj_request_event.cpp | 30 using OHOS::Request::RequestManager; 98 return (ExceptionErrorCode)RequestManager::GetInstance()->Start(task->GetTidStr()); in StartExec() 103 return (ExceptionErrorCode)RequestManager::GetInstance()->Stop(task->GetTidStr()); in StopExec() 108 return (ExceptionErrorCode)RequestManager::GetInstance()->Pause(task->GetTidStr(), Version::API10); in PauseExec() 113 if (!RequestManager::GetInstance()->LoadRequestServer()) { in ResumeExec() 117 return (ExceptionErrorCode)RequestManager::GetInstance()->Resume(task->GetTidStr()); in ResumeExec()
|
H A D | cj_request_task.cpp | 43 using OHOS::Request::RequestManager; 69 RequestManager::GetInstance()->RemoveAllListeners(GetTidStr()); in ~CJTask() 268 int32_t seq = RequestManager::GetInstance()->GetNextSeq(); in Create() 271 RequestManager::GetInstance()->RestoreListener(CJTask::ReloadListener); in Create() 272 if (!RequestManager::GetInstance()->LoadRequestServer()) { in Create() 282 int32_t err = RequestManager::GetInstance()->Create(config_, seq, taskId_); in Create() 295 RequestManager::GetInstance()->AddListener( in Create() 309 int32_t seq = RequestManager::GetInstance()->GetNextSeq(); in GetTask() 312 if (!RequestManager::GetInstance()->LoadRequestServer()) { in GetTask() 327 int32_t result = RequestManager in GetTask() [all...] |
H A D | cj_notify_data_listener.cpp | 26 using OHOS::Request::RequestManager; 36 RequestManager::GetInstance()->AddListener(this->taskId_, this->type_, shared_from_this()); in AddListener() 44 RequestManager::GetInstance()->RemoveListener(this->taskId_, this->type_, shared_from_this()); in RemoveListener()
|
/base/request/request/frameworks/js/napi/src/legacy/ |
H A D | request_manager.cpp | 30 std::map<std::string, RequestManager::DownloadDescriptor> RequestManager::downloadDescriptors_;
31 std::mutex RequestManager::lock_;
32 std::atomic<uint32_t> RequestManager::taskId_;
34 bool RequestManager::IsLegacy(napi_env env, napi_callback_info info)
in IsLegacy() 45 std::string RequestManager::GetTaskToken()
in GetTaskToken() 51 void RequestManager::CallFunctionAsync(napi_env env, napi_ref func, const ArgsGenerator &generator)
in CallFunctionAsync() 99 void RequestManager::OnTaskDone(const std::string &token, bool successful, const std::string &errMsg)
in OnTaskDone() 133 std::string RequestManager::GetFilenameFromUrl(std::string &url)
in GetFilenameFromUrl() 142 std::string RequestManager [all...] |
/base/request/request/frameworks/js/napi/src/ |
H A D | app_state_callback.cpp | 26 if (RequestManager::GetInstance()->IsSaReady()) { in OnAbilityForeground() 40 RequestManager::GetInstance()->LoadRequestServer(); in OnAbilityForeground()
|
H A D | request_event.cpp | 134 int32_t seq = RequestManager::GetInstance()->GetNextSeq();
in On() 178 int32_t seq = RequestManager::GetInstance()->GetNextSeq();
in Off() 299 int32_t seq = RequestManager::GetInstance()->GetNextSeq();
in Exec() 395 int32_t ret = RequestManager::GetInstance()->Start(tid);
in StartExec() 404 int32_t ret = RequestManager::GetInstance()->Stop(context->task->GetTid());
in StopExec() 413 int32_t ret = RequestManager::GetInstance()->Pause(context->task->GetTid(), context->version_);
in PauseExec() 427 if (!RequestManager::GetInstance()->LoadRequestServer()) {
in QueryExec() 431 ret = RequestManager::GetInstance()->Show(context->task->GetTid(), infoRes);
in QueryExec() 442 if (!RequestManager::GetInstance()->LoadRequestServer()) {
in QueryMimeTypeExec() 446 ret = RequestManager in QueryMimeTypeExec() [all...] |
H A D | js_response_listener.cpp | 31 RequestManager::GetInstance()->AddListener(this->taskId_, this->type_, shared_from_this()); in AddListener() 43 RequestManager::GetInstance()->RemoveListener(this->taskId_, this->type_, shared_from_this()); in RemoveListener()
|
H A D | js_task.cpp | 89 int32_t seq = RequestManager::GetInstance()->GetNextSeq();
in JsUpload() 102 int32_t seq = RequestManager::GetInstance()->GetNextSeq();
in JsDownload() 104 if (Legacy::RequestManager::IsLegacy(env, info)) {
in JsDownload() 105 return Legacy::RequestManager::Download(env, info);
in JsDownload() 112 int32_t seq = RequestManager::GetInstance()->GetNextSeq();
in JsRequestFile() 119 int32_t seq = RequestManager::GetInstance()->GetNextSeq();
in JsCreate() 191 if (!RequestManager::GetInstance()->LoadRequestServer()) {
in CreateExec() 200 int32_t ret = RequestManager::GetInstance()->Create(context->task->config_, seq, context->tid);
in CreateExec() 216 RequestManager::GetInstance()->AddListener(
in AddRemoveListener() 330 int32_t seq = RequestManager in GetTask() [all...] |
H A D | js_notify_data_listener.cpp | 37 RequestManager::GetInstance()->AddListener(this->taskId_, this->type_, shared_from_this()); in AddListener() 49 RequestManager::GetInstance()->RemoveListener(this->taskId_, this->type_, shared_from_this()); in RemoveListener()
|
/base/request/request/test/fuzztest/downloaduploadmanager_fuzzer/ |
H A D | downloaduploadmanager_fuzzer.cpp | 82 int32_t seq = RequestManager::GetInstance()->GetNextSeq(); in CreateRequestFuzzTest() 83 RequestManager::GetInstance()->Create(config, seq, tid); in CreateRequestFuzzTest() 90 RequestManager::GetInstance()->Start(tid); in StartRequestFuzzTest() 97 RequestManager::GetInstance()->Stop(tid); in StopRequestFuzzTest() 105 RequestManager::GetInstance()->Show(tid, info); in ShowRequestFuzzTest() 114 RequestManager::GetInstance()->Touch(tid, token, info); in TouchRequestFuzzTest() 124 RequestManager::GetInstance()->Search(filter, tids); in SearchRequestFuzzTest() 132 RequestManager::GetInstance()->Pause(tid, version); in PauseRequestFuzzTest() 140 RequestManager::GetInstance()->QueryMimeType(tid, mimeType); in QueryMimeTypeRequestFuzzTest() 148 RequestManager in RemoveRequestFuzzTest() [all...] |
/base/location/services/location_locator/locator/include/ |
H A D | request_manager.h | 55 class RequestManager { class 57 RequestManager(); 58 ~RequestManager(); 72 static RequestManager* GetInstance();
|
/base/location/test/location_locator/include/ |
H A D | locator_service_test.h | 54 RequestManager* requestManager_;
|
/base/location/test/location_manager/include/ |
H A D | request_manager_test.h | 39 RequestManager* requestManager_;
|
/base/request/request/frameworks/js/napi/include/legacy/ |
H A D | request_manager.h | 31 class RequestManager {
class 81 static std::map<std::string, RequestManager::DownloadDescriptor> downloadDescriptors_;
|
/base/location/test/fuzztest/locator/requestmanager_fuzzer/ |
H A D | requestmanager_fuzzer.cpp | 29 RequestManager* requestManager = in RequestManagerFuzzerTest() 30 RequestManager::GetInstance(); in RequestManagerFuzzerTest()
|
/base/location/test/location_manager/source/ |
H A D | locator_ability_test.cpp | 230 locatorAbility->requestManager_ = RequestManager::GetInstance(); in HWTEST_F() 391 locatorAbility->requestManager_ = RequestManager::GetInstance(); in HWTEST_F()
|