/base/request/request/frameworks/native/src/ |
D | request_manager.cpp | 31 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 …]
|
D | request_sync_load_callback.cpp | 32 RequestManager::GetInstance()->LoadServerSuccess(); in OnLoadSystemAbilitySuccess() 41 RequestManager::GetInstance()->LoadServerFail(); in OnLoadSystemAbilityFail()
|
/base/request/request/test/fuzztest/downloaduploadmanager_fuzzer/ |
D | downloaduploadmanager_fuzzer.cpp | 74 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/ |
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 &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/ |
D | request_manager.cpp | 41 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 …]
|
D | permission_status_change_cb.cpp | 26 auto requestManager = DelayedSingleton<RequestManager>::GetInstance(); in PermStateChangeCallback()
|
D | locator_background_proxy.cpp | 104 auto requestManager = DelayedSingleton<RequestManager>::GetInstance(); in StartLocatorThread() 259 auto requestManager = DelayedSingleton<RequestManager>::GetInstance(); in UpdateListOnSuspend() 549 auto requestManager = DelayedSingleton<RequestManager>::GetInstance(); in OnForegroundApplicationChanged()
|
D | report_manager.cpp | 79 auto requestManger = DelayedSingleton<RequestManager>::GetInstance(); in OnReportLocation()
|
D | locator_ability.cpp | 146 requestManager_ = DelayedSingleton<RequestManager>::GetInstance(); in Init() 164 auto requestManager = DelayedSingleton<RequestManager>::GetInstance(); in ProcessEvent()
|
/base/location/services/location_locator/locator/include/ |
D | request_manager.h | 32 class RequestManager : public DelayedSingleton<RequestManager> { 34 RequestManager(); 35 ~RequestManager();
|
D | locator_ability.h | 169 std::shared_ptr<RequestManager> requestManager_;
|
/base/request/request/frameworks/native/include/ |
D | request_manager.h | 40 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/ |
D | request_manager.h | 30 class RequestManager { 80 static std::map<std::string, RequestManager::DownloadDescriptor> downloadDescriptors_;
|
/base/request/request/frameworks/js/napi/src/ |
D | js_task.cpp | 88 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 …]
|
D | request_event.cpp | 163 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()
|
D | request_module.cpp | 216 DECLARE_NAPI_METHOD("onDownloadComplete", Legacy::RequestManager::OnDownloadComplete), in Init()
|
D | js_initialize.cpp | 72 RequestManager::GetInstance()->Remove(task->GetTid(), version); in Initialize()
|
/base/location/test/location_locator/include/ |
D | request_manager_test.h | 39 std::shared_ptr<RequestManager> requestManager_;
|
D | locator_service_test.h | 54 std::shared_ptr<RequestManager> requestManager_;
|
/base/location/test/fuzztest/locator/requestmanager_fuzzer/ |
D | requestmanager_fuzzer.cpp | 29 std::shared_ptr<RequestManager> requestManager = in RequestManagerFuzzerTest() 30 DelayedSingleton<RequestManager>::GetInstance(); in RequestManagerFuzzerTest()
|
/base/request/request/frameworks/native/ |
D | libdownload_single.map | 16 *RequestManager*;
|
/base/location/test/location_locator/source/ |
D | request_manager_test.cpp | 39 requestManager_ = DelayedSingleton<RequestManager>::GetInstance(); in SetUp() 62 DelayedSingleton<RequestManager>::DestroyInstance(); in TearDown()
|
D | locator_service_test.cpp | 90 requestManager_ = DelayedSingleton<RequestManager>::GetInstance(); in SetUp() 109 DelayedSingleton<RequestManager>::DestroyInstance(); in TearDown()
|