Home
last modified time | relevance | path

Searched refs:backupPath (Results 1 - 25 of 31) sorted by relevance

12

/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/backup/src/
H A Dbackup_manager.cpp62 auto backupPath = DirectoryManager::GetInstance().GetStoreBackupPath(meta) + "/" + AUTO_BACKUP_NAME; in Init() local
65 RollBackData(backupPath); in Init()
68 CleanData(backupPath); in Init()
140 auto backupPath = DirectoryManager::GetInstance().GetStoreBackupPath(meta); in DoBackup() local
141 std::string backupFullPath = backupPath + "/" + AUTO_BACKUP_NAME; in DoBackup()
170 auto backupPath = path + BACKUP_BK_POSTFIX; in KeepData() local
171 CopyFile(path, backupPath, true); in KeepData()
177 auto backupPath = path + BACKUP_BK_POSTFIX; in SaveData() local
183 RemoveFile(backupPath.c_str()); in SaveData()
189 auto backupPath in RollBackData() local
197 auto backupPath = path + BACKUP_BK_POSTFIX; CleanData() local
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/
H A Dkvdb_exporter.cpp28 void KVDBExporter::Exporter(const StoreMetaData &meta, const std::string &backupPath, bool &result) in Exporter() argument
36 manager.GetKvStore(meta.storeId, dbOption, [&manager, &backupPath, &dbPassword, &result] in Exporter()
43 dbstatus = delegate->Export(backupPath, dbPassword); in Exporter()
49 .append(backupPath) in Exporter()
H A Dkvdb_exporter.h29 static void Exporter(const StoreMetaData &meta, const std::string &backupPath, bool &result);
/foundation/multimedia/ringtone_library/services/ringtone_restore/src/
H A Dringtone_restore.cpp37 int32_t RingtoneRestore::Init(const std::string &backupPath) in Init() argument
40 if (backupPath.empty()) { in Init()
44 dbPath_ = backupPath + RINGTONE_LIBRARY_DB_PATH_EL1 + "/rdb" + "/" + RINGTONE_LIBRARY_DB_NAME; in Init()
47 dbPath_ = backupPath + RINGTONE_LIBRARY_DB_PATH + "/rdb" + "/" + RINGTONE_LIBRARY_DB_NAME; in Init()
53 backupPath_ = backupPath; in Init()
54 if (RingtoneRestoreBase::Init(backupPath) != E_OK) { in Init()
H A Dringtone_dualfwk_restore.cpp68 int32_t RingtoneDualFwkRestore::LoadDualFwkConf(const std::string &backupPath) in LoadDualFwkConf() argument
76 confLoader.Load(conf, RESTORE_SCENE_TYPE_DUAL_UPGRADE, backupPath); in LoadDualFwkConf()
115 int32_t RingtoneDualFwkRestore::Init(const std::string &backupPath) in Init() argument
118 if (backupPath.empty()) { in Init()
129 if (LoadDualFwkConf(backupPath + "/" + DUALFWK_SOUND_CONF_XML) != E_SUCCESS) { in Init()
133 if (RingtoneRestoreBase::Init(backupPath) != E_OK) { in Init()
496 int32_t RingtoneDualFwkRestoreClone::LoadDualFwkConf(const std::string &backupPath) in LoadDualFwkConf() argument
504 confLoader.Load(conf, RESTORE_SCENE_TYPE_DUAL_CLONE, backupPath); in LoadDualFwkConf()
H A Dringtone_restore_napi.cpp96 static int32_t RingtoneRestore(std::unique_ptr<RestoreInterface> &restore, string backupPath) in RingtoneRestore() argument
99 if ((restore != nullptr) && (restore->Init(backupPath)) == Media::E_OK) { in RingtoneRestore()
183 RINGTONE_INFO_LOG("sceneCode: %{public}d, backupPath: %{private}s", sceneCode, baseBackupPath.c_str()); in JSStartRestore()
/foundation/multimedia/ringtone_library/services/ringtone_restore/include/
H A Dringtone_dualfwk_restore.h35 int32_t Init(const std::string &backupPath) override;
42 virtual int32_t LoadDualFwkConf(const std::string &backupPath) override;
62 virtual int32_t LoadDualFwkConf(const std::string &backupPath) override;
H A Dringtone_restore_base.h30 int32_t Init(const std::string &backupPath) override;
41 virtual int32_t LoadDualFwkConf(const std::string &backupPath) { return -1; } in LoadDualFwkConf() argument
H A Drestore_interface.h28 virtual int32_t Init(const std::string &backupPath) = 0;
H A Dringtone_restore.h30 int32_t Init(const std::string &backupPath) override;
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Dconnection_pool.cpp360 int ConnPool::ChangeDbFileForRestore(const std::string &newPath, const std::string &backupPath, in ChangeDbFileForRestore() argument
363 if (!writers_.IsFull() || config_.GetPath() == backupPath || newPath == backupPath) { in ChangeDbFileForRestore()
375 retVal = connection->Restore(backupPath, newKey, slaveStatus); in ChangeDbFileForRestore()
384 return RestoreByDbSqliteType(newPath, backupPath, slaveStatus); in ChangeDbFileForRestore()
387 int ConnPool::RestoreByDbSqliteType(const std::string &newPath, const std::string &backupPath, SlaveStatus &slaveStatus) in RestoreByDbSqliteType() argument
389 if (SqliteUtils::IsSlaveDbName(backupPath) && config_.GetHaMode() != HAMode::SINGLE) { in RestoreByDbSqliteType()
394 return connection->Restore(backupPath, {}, slaveStatus); in RestoreByDbSqliteType()
397 return RestoreMasterDb(newPath, backupPath); in RestoreByDbSqliteType()
400 int ConnPool::RestoreMasterDb(const std::string &newPath, const std::string &backupPath) in RestoreMasterDb() argument
[all...]
H A Drdb_store.cpp426 int RdbStore::Restore(const std::string &backupPath, const std::vector<uint8_t> &newKey) in Restore() argument
428 (void)backupPath; in Restore()
/foundation/multimedia/ringtone_library/test/unittest/ringtone_dualfwk_restore_test/src/
H A Dringtone_dualfwk_restore_test.cpp148 string backupPath = ""; in HWTEST_F() local
149 int32_t res = g_restoreDualFwkService->Init(backupPath); in HWTEST_F()
151 backupPath = "/data/test"; in HWTEST_F()
152 res = g_restoreDualFwkService->Init(backupPath); in HWTEST_F()
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
H A Dconnection_pool.h57 int ChangeDbFileForRestore(const std::string &newPath, const std::string &backupPath,
126 int RestoreByDbSqliteType(const std::string &newPath, const std::string &backupPath, SlaveStatus &slaveStatus);
127 int RestoreMasterDb(const std::string &newPath, const std::string &backupPath);
H A Drdb_store_impl.h117 int Restore(const std::string &backupPath, const std::vector<uint8_t> &newKey) override;
205 int GetDestPath(const std::string &backupPath, std::string &destPath);
/foundation/distributeddatamgr/preferences/frameworks/native/src/
H A Dpreferences_helper.cpp221 std::string backupPath = MakeFilePath(filePath, STR_BACKUP); in DeletePreferences() local
227 std::remove(backupPath.c_str()); in DeletePreferences()
237 if (IsFileExist(filePath) || IsFileExist(backupPath) || IsFileExist(brokenPath)) { in DeletePreferences()
/foundation/multimedia/ringtone_library/test/unittest/ringtone_restore_test/src/
H A Dringtone_restore_test.cpp236 const string backupPath; in HWTEST_F() local
237 auto ret = g_restoreService->Init(backupPath); in HWTEST_F()
272 const string backupPath = "/data/local/tmp/test"; in HWTEST_F() local
273 auto val = g_restoreService->Init(backupPath); in HWTEST_F()
/foundation/distributeddatamgr/relational_store/test/ndk/unittest/
H A Drdb_store_test.cpp431 std::string backupPath = "backup.db"; in HWTEST_F() local
432 errCode = OH_Rdb_Backup(storeTestRdbStore_, backupPath.c_str()); in HWTEST_F()
434 errCode = OH_Rdb_Restore(storeTestRdbStore_, backupPath.c_str()); in HWTEST_F()
465 std::string backupPath = " "; in HWTEST_F() local
466 errCode = OH_Rdb_Backup(storeTestRdbStore_, backupPath.c_str()); in HWTEST_F()
468 errCode = OH_Rdb_Restore(storeTestRdbStore_, backupPath.c_str()); in HWTEST_F()
478 backupPath = ""; in HWTEST_F()
479 errCode = OH_Rdb_Backup(storeTestRdbStore_, backupPath.c_str()); in HWTEST_F()
482 backupPath = RDB_TEST_PATH + std::string("/backup/backup.db"); in HWTEST_F()
483 errCode = OH_Rdb_Backup(storeTestRdbStore_, backupPath in HWTEST_F()
[all...]
/foundation/bundlemanager/app_domain_verify/test/unittest/mock/include/
H A Dmock_rdb.h218 int Restore(const std::string& backupPath, const std::vector<uint8_t>& newKey) override
223 const std::string newPath, const std::string backupPath, const std::vector<uint8_t>& newKey) in ChangeDbFileForRestore()
222 ChangeDbFileForRestore( const std::string newPath, const std::string backupPath, const std::vector<uint8_t>& newKey) ChangeDbFileForRestore() argument
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/include/
H A Dmock_app_provision_info.h223 virtual int Restore(const std::string &backupPath, const std::vector<uint8_t> &newKey) in Restore() argument
227 virtual int ChangeDbFileForRestore(const std::string newPath, const std::string backupPath, in ChangeDbFileForRestore() argument
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/mock/include/
H A Drdb_store_impl.h68 int Restore(const std::string &backupPath, const std::vector<uint8_t> &newKey) override;
113 int GetDestPath(const std::string &backupPath, std::string &destPath);
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dbackup_manager.cpp60 auto backupPath = topPath + "/" + storeId; in Init()
61 auto backupFiles = StoreUtil::GetFiles(backupPath); in Init()
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/
H A Drdb_store_impl_test.cpp499 const std::string backupPath = DATABASE_NAME; in HWTEST_F() local
505 errCode = connectionPool->ChangeDbFileForRestore(newPath, backupPath, newKey, curStatus); in HWTEST_F()
509 errCode = connectionPool->ChangeDbFileForRestore(newPath, backupPath, newKey, curStatus); in HWTEST_F()
513 errCode = connectionPool->ChangeDbFileForRestore(newPath2, backupPath, newKey, curStatus); in HWTEST_F()
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_rdb_callback_test/include/
H A Drdbstore_mock.h156 MOCK_METHOD2(Restore, int(const std::string &backupPath, const std::vector<uint8_t> &newKey));
/foundation/filemanagement/dfs_service/test/unittests/clouddisk_database/mock/
H A Drdb_assistant.h173 MOCK_METHOD2(Restore, int(const std::string &backupPath, const std::vector<uint8_t> &newKey));

Completed in 15 milliseconds

12