/foundation/filemanagement/dfs_service/frameworks/native/cloudsync_kit_inner/src/ |
H A D | cloud_download_uri_manager.cpp | 43 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 D | cloud_sync_manager_impl.cpp | 232 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 D | cloud_sync_common.cpp | 96 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 D | cloud_sync_service_proxy.cpp | 604 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 D | cloud_download_callback_stub.cpp | 67 uriMgr.CheckDownloadIdPathMap(progress->downloadId); in HandleOnProcess()
|
/foundation/filemanagement/dfs_service/frameworks/native/cloudsync_kit_inner/include/ |
H A D | cloud_download_uri_manager.h | 30 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 D | cloud_sync_service_proxy.h | 46 int64_t &downloadId) override; 48 int32_t StopFileCache(const int64_t &downloadId, bool needClean = false) override;
|
H A D | cloud_sync_manager_impl.h | 50 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 D | cloud_file_cache_napi.cpp | 229 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 D | cloud_file_napi.cpp | 125 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 D | i_cloud_sync_service.h | 45 int64_t &downloadId) = 0; 47 virtual int32_t StopFileCache(const int64_t &downloadId, bool needClean = false) = 0;
|
H A D | cloud_sync_manager.h | 108 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 D | cloud_sync_common.h | 43 int64_t downloadId; member 49 // member for batch download(same downloadId)
|
/foundation/filemanagement/dfs_service/frameworks/native/cloud_file_kit_inner/src/ |
H A D | data_sync_manager.cpp | 70 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 D | data_sync_manager.h | 49 int64_t &downloadId); 54 const int64_t &downloadId,
|
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_api/cloudsync_impl/include/ |
H A D | i_cloud_sync_service_mock.h | 104 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 D | cloud_sync_service_stub.cpp | 390 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 D | cloud_sync_service.cpp | 539 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 D | cloud_sync_service_proxy_lite.cpp | 211 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 D | cloud_sync_service.h | 56 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 D | clouddownloadcallbackstub_fuzzer.cpp | 61 downloadProgressObj.downloadId = fuzzData.GetData<int64_t>(); in HandleOnProcessFuzzTest()
|
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/ipc/ |
H A D | cloud_sync_service_stub_test.cpp | 47 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 D | cloud_sync_service_proxy_test.cpp | 580 int64_t downloadId = 0; in HWTEST_F() local 581 int result = proxy_->StartFileCache(uriVec, downloadId); in HWTEST_F()
|