Home
last modified time | relevance | path

Searched refs:downloadId (Results 1 - 23 of 23) sorted by relevance

/foundation/filemanagement/dfs_service/frameworks/native/cloudsync_kit_inner/src/
H A Dcloud_download_uri_manager.cpp43 int32_t CloudDownloadUriManager::AddDownloadIdToPath(int64_t &downloadId, std::vector<std::string> &pathVec) in AddDownloadIdToPath() argument
46 if (downloadIdPathMap_.find(downloadId) == downloadIdPathMap_.end()) { in AddDownloadIdToPath()
47 downloadIdPathMap_[downloadId] = pathVec; in AddDownloadIdToPath()
48 LOGI("download_file : AddDownloadIdToPath add downloadId %{public}lld, downloadIdPathMap_ size is %{pulibc}zu", in AddDownloadIdToPath()
49 static_cast<long long>(downloadId), downloadIdPathMap_.size()); in AddDownloadIdToPath()
63 void CloudDownloadUriManager::CheckDownloadIdPathMap(int64_t &downloadId) in CheckDownloadIdPathMap() argument
67 if (downloadIdPathMap_.find(downloadId) != downloadIdPathMap_.end()) { in CheckDownloadIdPathMap()
68 std::vector<std::string> pathVec = downloadIdPathMap_[downloadId]; in CheckDownloadIdPathMap()
78 downloadIdPathMap_.erase(downloadId); in CheckDownloadIdPathMap()
79 LOGI("download_file : remove downloadId [ in CheckDownloadIdPathMap()
85 RemoveUri(const int64_t &downloadId) RemoveUri() argument
[all...]
H A Dcloud_sync_manager_impl.cpp232 int64_t downloadId = 0; in StartFileCache() local
241 int32_t ret = CloudSyncServiceProxy->StartFileCache(uriVec, downloadId); in StartFileCache()
246 int32_t CloudSyncManagerImpl::StartFileCache(const std::vector<std::string> &uriVec, int64_t &downloadId) in StartFileCache() argument
263 int32_t ret = CloudSyncServiceProxy->StartFileCache(uriVec, downloadId); in StartFileCache()
282 int32_t CloudSyncManagerImpl::StopFileCache(const int64_t &downloadId, bool needClean) in StopFileCache() argument
291 int32_t ret = CloudSyncServiceProxy->StopFileCache(downloadId, needClean); in StopFileCache()
H A Dcloud_sync_common.cpp96 if (!parcel.WriteInt64(downloadId)) { in Marshalling()
97 LOGE("failed to write downloadId"); in Marshalling()
272 if (!parcel.ReadInt64(downloadId)) { in ReadFromParcel()
273 LOGE("failed to read downloadId"); in ReadFromParcel()
294 ss << " downloadId: " << downloadId; in to_string() local
H A Dcloud_sync_service_proxy.cpp604 int64_t &downloadId) in StartFileCache()
650 downloadId = reply.ReadInt64(); in StartFileCache()
653 uriMgr.AddDownloadIdToPath(downloadId, pathVec); in StartFileCache()
655 LOGI("StartFileCache Success, downloadId: %{public}lld", static_cast<long long>(downloadId)); in StartFileCache()
709 int32_t CloudSyncServiceProxy::StopFileCache(const int64_t &downloadId, bool needClean) in StopFileCache() argument
721 LOGI("StopFileCache Start, downloadId: %{public}lld, needClean: %{public}d", in StopFileCache()
722 static_cast<long long>(downloadId), needClean); in StopFileCache()
724 if (!data.WriteInt64(downloadId)) { in StopFileCache()
746 uriMgr.RemoveUri(downloadId); in StopFileCache()
603 StartFileCache(const std::vector<std::string> &uriVec, int64_t &downloadId) StartFileCache() argument
[all...]
H A Dcloud_download_callback_stub.cpp67 uriMgr.CheckDownloadIdPathMap(progress->downloadId); in HandleOnProcess()
/foundation/filemanagement/dfs_service/frameworks/native/cloudsync_kit_inner/include/
H A Dcloud_download_uri_manager.h30 int32_t AddDownloadIdToPath(int64_t &downloadId, std::vector<std::string> &pathVec);
33 void CheckDownloadIdPathMap(int64_t &downloadId);
34 void RemoveUri(const int64_t &downloadId);
H A Dcloud_sync_service_proxy.h46 int64_t &downloadId) override;
48 int32_t StopFileCache(const int64_t &downloadId, bool needClean = false) override;
H A Dcloud_sync_manager_impl.h50 int32_t StartFileCache(const std::vector<std::string> &uriVec, int64_t &downloadId) override;
52 int32_t StopFileCache(const int64_t &downloadId, bool needClean = false) override;
/foundation/filemanagement/dfs_service/interfaces/kits/js/cloudfilesync/
H A Dcloud_file_cache_napi.cpp229 int64_t downloadId; member
251 int32_t ret = CloudSyncManager::GetInstance().StartFileCache(fileUris->uriList, fileUris->downloadId); in StartBatchFileCache()
264 return NVal::CreateInt64(env, fileUris->downloadId); in StartBatchFileCache()
281 auto [succ, downloadId] = NVal(env, funcArg[NARG_POS::FIRST]).ToInt64(); in StopBatchFileCache()
282 if (!succ || downloadId <= 0) { in StopBatchFileCache()
303 auto cbExec = [downloadId = downloadId, needClean]() -> NError { in StopBatchFileCache()
304 int32_t ret = CloudSyncManager::GetInstance().StopFileCache(downloadId, needClean); in StopBatchFileCache()
H A Dcloud_file_napi.cpp125 obj.AddProp("taskId", NVal::CreateInt64(env, msg->downloadProgress_.downloadId).val_); in OnComplete()
/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloudsync_kit_inner/
H A Di_cloud_sync_service.h45 int64_t &downloadId) = 0;
47 virtual int32_t StopFileCache(const int64_t &downloadId, bool needClean = false) = 0;
H A Dcloud_sync_manager.h108 virtual int32_t StartFileCache(const std::vector<std::string> &pathVec, int64_t &downloadId) = 0;
110 virtual int32_t StopFileCache(const int64_t &downloadId, bool needClean = false) = 0;
H A Dcloud_sync_common.h43 int64_t downloadId; member
49 // member for batch download(same downloadId)
/foundation/filemanagement/dfs_service/frameworks/native/cloud_file_kit_inner/src/
H A Ddata_sync_manager.cpp70 int64_t &downloadId) in StartDownloadFile()
83 const int64_t &downloadId, in StopFileCache()
68 StartDownloadFile(const BundleNameUserInfo &bundleNameUserInfo, const std::vector<std::string> pathVec, int64_t &downloadId) StartDownloadFile() argument
82 StopFileCache(const BundleNameUserInfo &bundleNameUserInfo, const int64_t &downloadId, bool needClean) StopFileCache() argument
/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloud_file_kit_inner/
H A Ddata_sync_manager.h49 int64_t &downloadId);
54 const int64_t &downloadId,
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_api/cloudsync_impl/include/
H A Di_cloud_sync_service_mock.h104 int32_t StartFileCache(const std::vector<std::string> &pathVec, int64_t &downloadId) in StartFileCache() argument
112 int32_t StopFileCache(const int64_t &downloadId, bool needClean = false) in StopFileCache() argument
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/ipc/
H A Dcloud_sync_service_stub.cpp390 int64_t downloadId = 0; in HandleStartFileCache() local
391 int32_t res = StartFileCache(pathVec, downloadId); in HandleStartFileCache()
392 reply.WriteInt64(downloadId); in HandleStartFileCache()
429 int64_t downloadId = data.ReadInt64(); in HandleStopFileCache() local
432 int32_t res = StopFileCache(downloadId, needClean); in HandleStopFileCache()
H A Dcloud_sync_service.cpp539 int64_t &downloadId) in StartFileCache()
548 return dataSyncManager_->StartDownloadFile(bundleNameUserInfo, uriVec, downloadId); in StartFileCache()
560 int64_t downloadId = 0; in StartDownloadFile() local
562 return dataSyncManager_->StartDownloadFile(bundleNameUserInfo, pathVec, downloadId); in StartDownloadFile()
576 int32_t CloudSyncService::StopFileCache(const int64_t &downloadId, bool needClean) in StopFileCache() argument
584 return dataSyncManager_->StopFileCache(bundleNameUserInfo, downloadId, needClean); in StopFileCache()
538 StartFileCache(const std::vector<std::string> &uriVec, int64_t &downloadId) StartFileCache() argument
/foundation/filemanagement/dfs_service/frameworks/native/cloudsync_kit_inner_lite/src/
H A Dcloud_sync_service_proxy_lite.cpp211 int64_t &downloadId) in StartFileCache()
221 int32_t CloudSyncServiceProxy::StopFileCache(const int64_t &downloadId, bool needClean) in StopFileCache() argument
210 StartFileCache(const std::vector<std::string> &uriVec, int64_t &downloadId) StartFileCache() argument
/foundation/filemanagement/dfs_service/services/cloudsyncservice/include/ipc/
H A Dcloud_sync_service.h56 int64_t &downloadId) override;
58 int32_t StopFileCache(const int64_t &downloadId, bool needClean = false) override;
/foundation/filemanagement/dfs_service/test/fuzztest/clouddownloadcallbackstub_fuzzer/
H A Dclouddownloadcallbackstub_fuzzer.cpp61 downloadProgressObj.downloadId = fuzzData.GetData<int64_t>(); in HandleOnProcessFuzzTest()
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/ipc/
H A Dcloud_sync_service_stub_test.cpp47 MOCK_METHOD2(StartFileCache, int32_t(const std::vector<std::string> &pathVec, int64_t &downloadId));
49 MOCK_METHOD2(StopFileCache, int32_t(const int64_t &downloadId, bool needClean));
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_api/cloudsync_impl/
H A Dcloud_sync_service_proxy_test.cpp580 int64_t downloadId = 0; in HWTEST_F() local
581 int result = proxy_->StartFileCache(uriVec, downloadId); in HWTEST_F()

Completed in 13 milliseconds