/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/backup/src/ |
H A D | backup_manager.cpp | 62 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 D | kvdb_exporter.cpp | 28 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 D | kvdb_exporter.h | 29 static void Exporter(const StoreMetaData &meta, const std::string &backupPath, bool &result);
|
/foundation/multimedia/ringtone_library/services/ringtone_restore/src/ |
H A D | ringtone_restore.cpp | 37 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 D | ringtone_dualfwk_restore.cpp | 68 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 D | ringtone_restore_napi.cpp | 96 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 D | ringtone_dualfwk_restore.h | 35 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 D | ringtone_restore_base.h | 30 int32_t Init(const std::string &backupPath) override; 41 virtual int32_t LoadDualFwkConf(const std::string &backupPath) { return -1; } in LoadDualFwkConf() argument
|
H A D | restore_interface.h | 28 virtual int32_t Init(const std::string &backupPath) = 0;
|
H A D | ringtone_restore.h | 30 int32_t Init(const std::string &backupPath) override;
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | connection_pool.cpp | 360 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 D | rdb_store.cpp | 426 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 D | ringtone_dualfwk_restore_test.cpp | 148 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 D | connection_pool.h | 57 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 D | rdb_store_impl.h | 117 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 D | preferences_helper.cpp | 221 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 D | ringtone_restore_test.cpp | 236 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 D | rdb_store_test.cpp | 431 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 D | mock_rdb.h | 218 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 D | mock_app_provision_info.h | 223 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 D | rdb_store_impl.h | 68 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 D | backup_manager.cpp | 60 auto backupPath = topPath + "/" + storeId; in Init() 61 auto backupFiles = StoreUtil::GetFiles(backupPath); in Init()
|
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
H A D | rdb_store_impl_test.cpp | 499 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 D | rdbstore_mock.h | 156 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 D | rdb_assistant.h | 173 MOCK_METHOD2(Restore, int(const std::string &backupPath, const std::vector<uint8_t> &newKey));
|