Home
last modified time | relevance | path

Searched refs:assetInfoObj (Results 1 - 14 of 14) sorted by relevance

/foundation/filemanagement/dfs_service/frameworks/native/cloudsync_kit_inner/src/
H A Dcloud_sync_asset_manager_impl.cpp59 AssetInfoObj assetInfoObj(assetInfo); in DownloadFile()
60 int32_t ret = CloudSyncServiceProxy->DownloadFile(userId, bundleName, assetInfoObj); in DownloadFile()
77 std::vector<AssetInfoObj> assetInfoObj; in DownloadFiles() local
80 assetInfoObj.emplace_back(obj); in DownloadFiles()
82 int32_t ret = CloudSyncServiceProxy->DownloadFiles(userId, bundleName, assetInfoObj, assetResultMap); in DownloadFiles()
117 AssetInfoObj assetInfoObj(assetInfo); in DownloadFile()
118 int32_t ret = CloudSyncServiceProxy->DownloadAsset(taskId, userId, bundleName, networkId, assetInfoObj); in DownloadFile()
H A Dcloud_sync_service_proxy.cpp858 AssetInfoObj &assetInfoObj) in DownloadFile()
880 if (!data.WriteParcelable(&assetInfoObj)) { in DownloadFile()
902 const std::vector<AssetInfoObj> &assetInfoObj, in DownloadFiles()
925 if (assetInfoObj.size() > INT_MAX || in DownloadFiles()
926 assetInfoObj.size() == 0 || in DownloadFiles()
927 !data.WriteInt32(assetInfoObj.size())) { in DownloadFiles()
932 for (const auto &obj : assetInfoObj) { in DownloadFiles()
934 LOGE("Failed to send the assetInfoObj"); in DownloadFiles()
963 AssetInfoObj &assetInfoObj) in DownloadAsset()
995 if (!data.WriteParcelable(&assetInfoObj)) { in DownloadAsset()
856 DownloadFile(const int32_t userId, const std::string &bundleName, AssetInfoObj &assetInfoObj) DownloadFile() argument
900 DownloadFiles(const int32_t userId, const std::string &bundleName, const std::vector<AssetInfoObj> &assetInfoObj, std::vector<bool> &assetResultMap) DownloadFiles() argument
959 DownloadAsset(const uint64_t taskId, const int32_t userId, const std::string &bundleName, const std::string &networkId, AssetInfoObj &assetInfoObj) DownloadAsset() argument
[all...]
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_api/cloudsync_impl/
H A Dcloud_sync_service_proxy_test.cpp667 AssetInfoObj assetInfoObj; in HWTEST_F() local
669 int ret = proxy_->DownloadFile(userId, bundleName, assetInfoObj); in HWTEST_F()
685 AssetInfoObj assetInfoObj; in HWTEST_F() local
687 int ret = proxy_->DownloadFile(userId, bundleName, assetInfoObj); in HWTEST_F()
703 std::vector<AssetInfoObj> assetInfoObj; in HWTEST_F() local
705 int ret = proxy_->DownloadFiles(userId, bundleName, assetInfoObj, assetResultMap); in HWTEST_F()
722 std::vector<AssetInfoObj> assetInfoObj; in HWTEST_F() local
723 assetInfoObj.push_back(obj); in HWTEST_F()
726 int ret = proxy_->DownloadFiles(userId, bundleName, assetInfoObj, assetResultMap); in HWTEST_F()
743 std::vector<AssetInfoObj> assetInfoObj; in HWTEST_F() local
765 AssetInfoObj assetInfoObj; HWTEST_F() local
785 AssetInfoObj assetInfoObj; HWTEST_F() local
[all...]
/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloudsync_kit_inner/
H A Di_cloud_sync_service.h51 virtual int32_t DownloadFile(const int32_t userId, const std::string &bundleName, AssetInfoObj &assetInfoObj) = 0;
54 const std::vector<AssetInfoObj> &assetInfoObj,
60 AssetInfoObj &assetInfoObj) = 0;
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/ipc/
H A Dcloud_sync_service_test.cpp449 AssetInfoObj assetInfoObj; in HWTEST_F() local
450 assetInfoObj.uri = uri; in HWTEST_F()
451 int ret = g_servicePtr_->DownloadFile(userId, bundleName, assetInfoObj); in HWTEST_F()
475 AssetInfoObj assetInfoObj; in HWTEST_F() local
476 assetInfoObj.uri = uri; in HWTEST_F()
477 int ret = g_servicePtr_->DownloadAsset(taskId, userId, bundleName, networkId, assetInfoObj); in HWTEST_F()
500 AssetInfoObj assetInfoObj; in HWTEST_F() local
501 int ret = g_servicePtr_->DownloadAsset(taskId, userId, bundleName, networkId, assetInfoObj); in HWTEST_F()
H A Dcloud_sync_service_stub_test.cpp54 int32_t(const int32_t userId, const std::string &bundleName, AssetInfoObj &assetInfoObj));
58 const std::vector<AssetInfoObj> &assetInfoObj,
65 AssetInfoObj &assetInfoObj));
/foundation/filemanagement/dfs_service/frameworks/native/cloudsync_kit_inner/include/
H A Dcloud_sync_service_proxy.h52 int32_t DownloadFile(const int32_t userId, const std::string &bundleName, AssetInfoObj &assetInfoObj) override;
55 const std::vector<AssetInfoObj> &assetInfoObj,
60 AssetInfoObj &assetInfoObj) override;
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_api/cloudsync_impl/include/
H A Di_cloud_sync_service_mock.h128 int32_t DownloadFile(const int32_t userId, const std::string &bundleName, AssetInfoObj &assetInfoObj) in DownloadFile() argument
134 const std::vector<AssetInfoObj> &assetInfoObj, in DownloadFiles()
156 AssetInfoObj &assetInfoObj) in DownloadAsset()
132 DownloadFiles(const int32_t userId, const std::string &bundleName, const std::vector<AssetInfoObj> &assetInfoObj, std::vector<bool> &assetResultMap) DownloadFiles() argument
152 DownloadAsset(const uint64_t taskId, const int32_t userId, const std::string &bundleName, const std::string &networkId, AssetInfoObj &assetInfoObj) DownloadAsset() argument
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/ipc/
H A Dcloud_sync_service_stub.cpp502 sptr<AssetInfoObj> assetInfoObj = data.ReadParcelable<AssetInfoObj>(); in HandleDownloadFile() local
503 if (!assetInfoObj) { in HandleDownloadFile()
507 int32_t res = DownloadFile(userId, bundleName, *assetInfoObj); in HandleDownloadFile()
527 std::vector<AssetInfoObj> assetInfoObj; in HandleDownloadFiles() local
537 assetInfoObj.emplace_back(*obj); in HandleDownloadFiles()
541 int32_t res = DownloadFiles(userId, bundleName, assetInfoObj, assetResultMap); in HandleDownloadFiles()
563 sptr<AssetInfoObj> assetInfoObj = data.ReadParcelable<AssetInfoObj>(); in HandleDownloadAsset() local
564 if (!assetInfoObj) { in HandleDownloadAsset()
568 int32_t res = DownloadAsset(taskId, userId, bundleName, networkId, *assetInfoObj); in HandleDownloadAsset()
H A Dcloud_sync_service.cpp625 int32_t CloudSyncService::DownloadFile(const int32_t userId, const std::string &bundleName, AssetInfoObj &assetInfoObj) in DownloadFile() argument
640 asset.assetName = assetInfoObj.assetName; in DownloadFile()
642 asset.uri = GetHmdfsPath(assetInfoObj.uri, userId); in DownloadFile()
644 LOGE("fail to get download path from %{public}s", GetAnonyString(assetInfoObj.uri).c_str()); in DownloadFile()
649 DownloadAssetInfo assetsToDownload{assetInfoObj.recordType, assetInfoObj.recordId, {}, asset, {}}; in DownloadFile()
657 const std::vector<AssetInfoObj> &assetInfoObj, std::vector<bool> &assetResultMap) in DownloadFiles()
672 for (const auto &obj: assetInfoObj) { in DownloadFiles()
694 AssetInfoObj &assetInfoObj) in DownloadAsset()
705 string uri = assetInfoObj in DownloadAsset()
656 DownloadFiles(const int32_t userId, const std::string &bundleName, const std::vector<AssetInfoObj> &assetInfoObj, std::vector<bool> &assetResultMap) DownloadFiles() argument
690 DownloadAsset(const uint64_t taskId, const int32_t userId, const std::string &bundleName, const std::string &networkId, AssetInfoObj &assetInfoObj) DownloadAsset() argument
[all...]
/foundation/filemanagement/dfs_service/frameworks/native/cloudsync_kit_inner_lite/src/
H A Dcloud_sync_service_proxy_lite.cpp243 AssetInfoObj &assetInfoObj) in DownloadFile()
250 const std::vector<AssetInfoObj> &assetInfoObj, in DownloadFiles()
260 AssetInfoObj &assetInfoObj) in DownloadAsset()
241 DownloadFile(const int32_t userId, const std::string &bundleName, AssetInfoObj &assetInfoObj) DownloadFile() argument
248 DownloadFiles(const int32_t userId, const std::string &bundleName, const std::vector<AssetInfoObj> &assetInfoObj, std::vector<bool> &assetResultMap) DownloadFiles() argument
256 DownloadAsset(const uint64_t taskId, const int32_t userId, const std::string &bundleName, const std::string &networkId, AssetInfoObj &assetInfoObj) DownloadAsset() argument
/foundation/filemanagement/dfs_service/services/cloudsyncservice/include/ipc/
H A Dcloud_sync_service.h62 int32_t DownloadFile(const int32_t userId, const std::string &bundleName, AssetInfoObj &assetInfoObj) override;
65 const std::vector<AssetInfoObj> &assetInfoObj,
71 AssetInfoObj &assetInfoObj) override;
/foundation/filemanagement/dfs_service/test/mock/ipc/
H A Dcloud_sync_service_proxy_mock.cpp81 int32_t DownloadFile(const int32_t userId, const std::string &bundleName, AssetInfoObj &assetInfoObj) in DownloadFile() argument
/foundation/filemanagement/dfs_service/test/fuzztest/cloudsyncservicestub_fuzzer/
H A Dcloudsyncservicestub_fuzzer.cpp202 AssetInfoObj assetInfoObj(assetInfo); in HandleDownloadFileFuzzTest()
203 datas.WriteParcelable(&assetInfoObj); in HandleDownloadFileFuzzTest()
561 AssetInfoObj assetInfoObj(assetInfo); in HandleDownloadFilesFuzzTest()
562 datas.WriteParcelable(&assetInfoObj); in HandleDownloadFilesFuzzTest()
599 AssetInfoObj assetInfoObj(assetInfo); in HandleDownloadAssetFuzzTest()
600 datas.WriteParcelable(&assetInfoObj); in HandleDownloadAssetFuzzTest()

Completed in 12 milliseconds