Home
last modified time | relevance | path

Searched refs:isFirstDownload (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/
H A Dvirtual_cloud_syncer.cpp24 int VirtualCloudSyncer::DoDownload(CloudSyncer::TaskId taskId, bool isFirstDownload) in DoDownload() argument
33 return CloudSyncer::DoDownload(taskId, isFirstDownload); in DoDownload()
36 …yncer::DoDownloadInNeed(const CloudTaskInfo &taskInfo, const bool needUpload, bool isFirstDownload) in DoDownloadInNeed() argument
45 return CloudSyncer::DoDownloadInNeed(taskInfo, needUpload, isFirstDownload); in DoDownloadInNeed()
H A Dvirtual_cloud_syncer.h25 int DoDownload(TaskId taskId, bool isFirstDownload) override;
27 …int DoDownloadInNeed(const CloudTaskInfo &taskInfo, const bool needUpload, bool isFirstDownload) o…
H A Dcloud_syncer_test.h356 int CallDoDownloadInNeed(bool needUpload, bool isFirstDownload) in CallDoDownloadInNeed() argument
363 return DoDownloadInNeed(taskInfo, needUpload, isFirstDownload); in CallDoDownloadInNeed()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/cloud/
H A Dcloud_syncer.h107 bool isFirstDownload = false; member
152 const bool isFirstDownload);
158 …l int DoDownloadInNeed(const CloudTaskInfo &taskInfo, const bool needUpload, bool isFirstDownload);
162 virtual int DoDownload(CloudSyncer::TaskId taskId, bool isFirstDownload);
164 int DoDownloadInner(CloudSyncer::TaskId taskId, SyncParam &param, bool isFirstDownload);
232 void NotifyInDownload(CloudSyncer::TaskId taskId, SyncParam &param, bool isFirstDownload);
315 int DownloadOneBatch(TaskId taskId, SyncParam &param, bool isFirstDownload);
326 int DownloadDataFromCloud(TaskId taskId, SyncParam &param, bool &abort, bool isFirstDownload);
385 … PrepareAndDownload(const std::string &table, const CloudTaskInfo &taskInfo, bool isFirstDownload);
H A Dcloud_syncer.cpp246 bool isFirstDownload = true; in DoSync() local
265 isFirstDownload = false; in DoSync()
270 currentContext_.isFirstDownload = isFirstDownload; in DoSync()
357 bool isFirstDownload; in SyncMachineDoDownload() local
362 isFirstDownload = currentContext_.isFirstDownload; in SyncMachineDoDownload()
985 if (!isFirstDownload && param.downloadData.data.empty()) { in NotifyInDownload()
1127 errCode = DoDownloadInner(taskId, param, isFirstDownload); in DoDownload()
1956 (void)NotifyInDownload(taskId, param, isFirstDownload); in DownloadOneBatch()
2072 bool isFirstDownload) in DownloadDataFromCloud() argument
2089 if (ret == E_OK || isFirstDownload) { in DownloadDataFromCloud()
[all …]
H A Dcloud_syncer_extend.cpp528 …::PrepareAndDownload(const std::string &table, const CloudTaskInfo &taskInfo, bool isFirstDownload) in PrepareAndDownload() argument
553 errCode = DoDownload(taskInfo.taskId, isFirstDownload); in PrepareAndDownload()
626 const bool isFirstDownload) in DoNotifyInNeed() argument
633 isNeedNotify = isFirstDownload && !currentContext_.isNeedUpload; in DoNotifyInNeed()
687 …yncer::DoDownloadInNeed(const CloudTaskInfo &taskInfo, const bool needUpload, bool isFirstDownload) in DoDownloadInNeed() argument
702 int errCode = PrepareAndDownload(table, taskInfo, isFirstDownload); in DoDownloadInNeed()
731 DoNotifyInNeed(taskInfo.taskId, needNotifyTables, isFirstDownload); in DoDownloadInNeed()