Home
last modified time | relevance | path

Searched refs:RequestManager (Results 1 – 23 of 23) sorted by relevance

/base/request/request/frameworks/native/src/
Drequest_manager.cpp31 std::mutex RequestManager::instanceLock_;
32 sptr<RequestManager> RequestManager::instance_ = nullptr;
36 RequestManager::RequestManager() : requestServiceProxy_(nullptr), deathRecipient_(nullptr) in RequestManager() function in OHOS::Request::RequestManager
40 RequestManager::~RequestManager() in ~RequestManager()
44 sptr<RequestManager> RequestManager::GetInstance() in GetInstance()
49 instance_ = new RequestManager; in GetInstance()
55 int32_t RequestManager::Create(const Config &config, int32_t &tid, sptr<NotifyInterface> listener) in Create()
73 int32_t RequestManager::Retry(int32_t &taskId, const Config &config, int32_t errorCode, sptr<Notify… in Retry()
106 void RequestManager::SetRequestServiceProxy(sptr<RequestServiceInterface> proxy) in SetRequestServiceProxy()
112 int32_t RequestManager::Start(const std::string &tid) in Start()
[all …]
Drequest_sync_load_callback.cpp32 RequestManager::GetInstance()->LoadServerSuccess(); in OnLoadSystemAbilitySuccess()
41 RequestManager::GetInstance()->LoadServerFail(); in OnLoadSystemAbilityFail()
/base/request/request/test/fuzztest/downloaduploadmanager_fuzzer/
Ddownloaduploadmanager_fuzzer.cpp74 RequestManager::GetInstance()->Create(config, tid, listener_); in CreateRequestFuzzTest()
81 RequestManager::GetInstance()->Start(tid); in StartRequestFuzzTest()
88 RequestManager::GetInstance()->Stop(tid); in StopRequestFuzzTest()
96 RequestManager::GetInstance()->Show(tid, info); in ShowRequestFuzzTest()
105 RequestManager::GetInstance()->Touch(tid, token, info); in TouchRequestFuzzTest()
115 RequestManager::GetInstance()->Search(filter, tids); in SearchRequestFuzzTest()
123 RequestManager::GetInstance()->Pause(tid, version); in PauseRequestFuzzTest()
131 RequestManager::GetInstance()->QueryMimeType(tid, mimeType); in QueryMimeTypeRequestFuzzTest()
139 RequestManager::GetInstance()->Remove(tid, version); in RemoveRequestFuzzTest()
146 RequestManager::GetInstance()->Resume(tid); in ResumeRequestFuzzTest()
[all …]
/base/request/request/frameworks/js/napi/src/legacy/
Drequest_manager.cpp30 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 &errMs… in OnTaskDone()
134 std::string RequestManager::GetFilenameFromUrl(std::string &url) in GetFilenameFromUrl()
143 std::string RequestManager::GetCacheDir(napi_env env) in GetCacheDir()
158 std::vector<std::string> RequestManager::ParseHeader(napi_env env, napi_value option) in ParseHeader()
[all …]
/base/location/services/location_locator/locator/source/
Drequest_manager.cpp41 std::mutex RequestManager::requestMutex_;
42 RequestManager::RequestManager() in RequestManager() function in OHOS::Location::RequestManager
50 RequestManager::~RequestManager() in ~RequestManager()
54 bool RequestManager::InitSystemListeners() in InitSystemListeners()
60 void RequestManager::UpdateUsingPermission(std::shared_ptr<Request> request) in UpdateUsingPermission()
75 void RequestManager::UpdateUsingLocationPermission(std::shared_ptr<Request> request) in UpdateUsingLocationPermission()
94 void RequestManager::UpdateUsingApproximatelyPermission(std::shared_ptr<Request> request) in UpdateUsingApproximatelyPermission()
113 void RequestManager::UpdateUsingBackgroundPermission(std::shared_ptr<Request> request) in UpdateUsingBackgroundPermission()
137 void RequestManager::HandleStartLocating(std::shared_ptr<Request> request) in HandleStartLocating()
158 bool RequestManager::RestorRequest(std::shared_ptr<Request> newRequest) in RestorRequest()
[all …]
Dpermission_status_change_cb.cpp26 auto requestManager = DelayedSingleton<RequestManager>::GetInstance(); in PermStateChangeCallback()
Dlocator_background_proxy.cpp104 auto requestManager = DelayedSingleton<RequestManager>::GetInstance(); in StartLocatorThread()
259 auto requestManager = DelayedSingleton<RequestManager>::GetInstance(); in UpdateListOnSuspend()
549 auto requestManager = DelayedSingleton<RequestManager>::GetInstance(); in OnForegroundApplicationChanged()
Dreport_manager.cpp79 auto requestManger = DelayedSingleton<RequestManager>::GetInstance(); in OnReportLocation()
Dlocator_ability.cpp146 requestManager_ = DelayedSingleton<RequestManager>::GetInstance(); in Init()
164 auto requestManager = DelayedSingleton<RequestManager>::GetInstance(); in ProcessEvent()
/base/location/services/location_locator/locator/include/
Drequest_manager.h32 class RequestManager : public DelayedSingleton<RequestManager> {
34 RequestManager();
35 ~RequestManager();
Dlocator_ability.h169 std::shared_ptr<RequestManager> requestManager_;
/base/request/request/frameworks/native/include/
Drequest_manager.h40 class RequestManager : public RefBase {
42 RequestManager();
43 ~RequestManager();
44 REQUEST_API static sptr<RequestManager> GetInstance();
72 static sptr<RequestManager> instance_;
/base/request/request/frameworks/js/napi/include/legacy/
Drequest_manager.h30 class RequestManager {
80 static std::map<std::string, RequestManager::DownloadDescriptor> downloadDescriptors_;
/base/request/request/frameworks/js/napi/src/
Djs_task.cpp88 if (Legacy::RequestManager::IsLegacy(env, info)) { in JsDownload()
89 return Legacy::RequestManager::Download(env, info); in JsDownload()
158 if (!RequestManager::GetInstance()->LoadRequestServer()) { in CreateExec()
164 return RequestManager::GetInstance()->Create(context->task->config_, context->tid, listener); in CreateExec()
282 context->innerCode_ = RequestManager::GetInstance()->Remove(context->tid, Version::API10); in Remove()
343 if (!RequestManager::GetInstance()->LoadRequestServer()) { in TouchInner()
348 RequestManager::GetInstance()->Touch(context->tid, context->token, context->taskInfo); in TouchInner()
527 if (!RequestManager::GetInstance()->LoadRequestServer()) { in Search()
531 context->innerCode_ = RequestManager::GetInstance()->Search(context->filter, context->tids); in Search()
565 if (!RequestManager::GetInstance()->LoadRequestServer()) { in Query()
[all …]
Drequest_event.cpp163 RequestManager::GetInstance()->On(jsParam.type, jsParam.task->GetTid(), listener); in On()
331 int32_t ret = RequestManager::GetInstance()->Start(context->task->GetTid()); in StartExec()
340 int32_t ret = RequestManager::GetInstance()->Stop(context->task->GetTid()); in StopExec()
349 int32_t ret = RequestManager::GetInstance()->Pause(context->task->GetTid(), context->version_); in PauseExec()
365 ret = RequestManager::GetInstance()->Show(context->task->GetTid(), *infoRes); in QueryExec()
382 ret = RequestManager::GetInstance()->QueryMimeType(context->task->GetTid(), context->strRes); in QueryMimeTypeExec()
428 int32_t ret = RequestManager::GetInstance()->Remove(context->task->GetTid(), context->version_); in RemoveExec()
440 int32_t ret = RequestManager::GetInstance()->Resume(context->task->GetTid()); in ResumeExec()
Drequest_module.cpp216 DECLARE_NAPI_METHOD("onDownloadComplete", Legacy::RequestManager::OnDownloadComplete), in Init()
Djs_initialize.cpp72 RequestManager::GetInstance()->Remove(task->GetTid(), version); in Initialize()
/base/location/test/location_locator/include/
Drequest_manager_test.h39 std::shared_ptr<RequestManager> requestManager_;
Dlocator_service_test.h54 std::shared_ptr<RequestManager> requestManager_;
/base/location/test/fuzztest/locator/requestmanager_fuzzer/
Drequestmanager_fuzzer.cpp29 std::shared_ptr<RequestManager> requestManager = in RequestManagerFuzzerTest()
30 DelayedSingleton<RequestManager>::GetInstance(); in RequestManagerFuzzerTest()
/base/request/request/frameworks/native/
Dlibdownload_single.map16 *RequestManager*;
/base/location/test/location_locator/source/
Drequest_manager_test.cpp39 requestManager_ = DelayedSingleton<RequestManager>::GetInstance(); in SetUp()
62 DelayedSingleton<RequestManager>::DestroyInstance(); in TearDown()
Dlocator_service_test.cpp90 requestManager_ = DelayedSingleton<RequestManager>::GetInstance(); in SetUp()
109 DelayedSingleton<RequestManager>::DestroyInstance(); in TearDown()