/ohos5.0/docs/en/application-dev/file-management/ |
H A D | app-file-backup-overview.md | 7 …ta. It is an extended component without the UI. It runs when a backup or restore task starts and e… 9 Application data backup and restore can be implemented in either of the following ways: 11 …restore](app-file-backup-extension.md): All applications can access the data backup and restore fr… 13 The application itself cannot trigger data backup and restore. 15 …restore (for system applications only)](app-file-backup.md): Only system applications can trigger …
|
H A D | app-file-backup-extension.md | 3 You can use **BackupExtensionAbility** to enable an application to access the backup and restore fr… 5 …essed the backup and restore framework can customize the backup and restore behavior, including wh… 41 …ement. In this case, the backup and restore service backs up or restores data based on the unified… 50 …The metadata profile defines the files to be transferred during the backup and restore process. Th… 70 …ement. In this case, the backup and restore service backs up or restores data based on the unified… 132 | allowToBackupRestore | Boolean | Yes | Whether to enable backup and restore. The default valu… 134 …at as **includes**.<br>If **excludes** is not configured, the backup and restore framework uses an… 135 …restore directory of the application. The default value is **false**. If the value is **true**, da… 136 …restore.<br/>The default value is "". <br/>You need to configure the names of the dependent applic… 146 …e the data restore mode to use based on service requirements. Assume that the temporary directory … [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_backup_test/ |
H A D | BUILD.gn | 29 "./include/restore", 41 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/include/restore", 65 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/db_upgrade_utils.cpp", 67 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/gallery_media_dao.cpp", 69 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/photo_album_dao.cpp", 71 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/photos_clone.cpp", 72 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/photos_dao.cpp", 73 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/photos_restore.cpp", 81 "./src/restore/photo_album_dao_test.cpp", 82 "./src/restore/photos_clone_test.cpp", [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/ |
H A D | BUILD.gn | 25 "./include/restore", 61 "./src/restore/db_upgrade_utils.cpp", 62 "./src/restore/gallery_db_upgrade.cpp", 63 "./src/restore/gallery_media_dao.cpp", 65 "./src/restore/photo_album_clone.cpp", 66 "./src/restore/photo_album_dao.cpp", 67 "./src/restore/photo_album_restore.cpp", 68 "./src/restore/photos_clone.cpp", 69 "./src/restore/photos_dao.cpp", 70 "./src/restore/photos_restore.cpp", [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_backup_clone_test/ |
H A D | BUILD.gn | 36 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/include/restore", 64 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/db_upgrade_utils.cpp", 65 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/gallery_db_upgrade.cpp", 66 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/gallery_media_dao.cpp", 68 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/photo_album_clone.cpp", 69 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/photo_album_dao.cpp", 70 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/photo_album_restore.cpp", 71 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/photos_clone.cpp", 72 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/photos_dao.cpp", 73 "${MEDIALIB_SERVICES_PATH}/media_backup_extension/src/restore/photos_restore.cpp", [all …]
|
/ohos5.0/docs/en/application-dev/database/ |
H A D | data-backup-and-restore.md | 6 You may need to restore a database in any of the following cases: 130 5. Use **restore()** to restore the KV store. 134 kvStore.restore(backupFile, (err) => { 136 console.error(`Fail to restore data. Code:${err.code},message:${err.message}`); 165 A database backup can be used to quickly restore a corrupted RDB store. 272 If an RDB store is corrupted, you can restore it by using the database backup. 278 …*backup()** to [perform manual backup](#manual-backup) and use **restore()** to restore data from … 305 // Perform step 2 (close result sets and then restore data). 330 3. Call **restore()** to restore data. 356 // Call restore() to restore data. [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-image-kit/ |
H A D | _image_effect___filter_delegate.md | 25 …elegate_Restore](_image_effect.md#oh_effectfilterdelegate_restore) [restore](#restore) | 反序列化效果器函数… 40 ### restore subsection 43 OH_EffectFilterDelegate_Restore ImageEffect_FilterDelegate::restore
|
/ohos5.0/docs/en/application-dev/application-models/ |
H A D | ability-recover-guideline.md | 5 …restore feature within [UIAbilityContext](../reference/apis-ability-kit/js-apis-inner-application-… 9 …by calling the **startAbility** API or clicking the icon), the UIAbility restore process is not tr… 13 - UIAbility data restore: The restored [Want](../reference/apis-ability-kit/js-apis-app-ability-wan… 17 - The UIAbility backup and restore feature supports multiple instances. Backup data is stored in th… 21 - Data restore is unavailable after device restart. 23 - The data backup and restore feature is unavailable for a [UIExtensionAbility](../reference/apis-a… 27 The UIAbility backup and restore API is provided by the [UIAbilityContext](../reference/apis-abilit… 31 | setRestoreEnabled(enabled: boolean): void | Sets whether to enable restore when the UIAbility is … 38 To enable UIAbility backup and restore during application module initialization, refer to the code … 51 To proactively save data and restore the data when the UIAbility is started, refer to the code snip…
|
/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_restore/src/ |
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() 101 ret = restore->StartRestore(); in RingtoneRestore() 127 auto restore = RingtoneRestoreFactory::CreateObj(RestoreSceneType(block->sceneCode)); in UvQueueWork() local 128 if (restore == nullptr) { in UvQueueWork() 133 block->resultSet = RingtoneRestore(restore, block->baseBackupPath); in UvQueueWork()
|
/ohos5.0/docs/en/application-dev/reference/apis-image-kit/ |
H A D | _image_effect___filter_delegate.md | 25 …elegate_Restore](_image_effect.md#oh_effectfilterdelegate_restore) [restore](#restore) | Pointer t… 41 ### restore subsection 44 OH_EffectFilterDelegate_Restore ImageEffect_FilterDelegate::restore
|
/ohos5.0/base/theme/wallpaper_mgr/frameworks/js/napi/test/unittest/src/wallpaper_js/ |
H A D | Wallpaper.test.js | 74 await wallpaper.restore(WALLPAPER_SYSTEM); 75 await wallpaper.restore(WALLPAPER_LOCKSCREEN); 350 wallpaper.restore(function (err) { 396 wallpaper.restore().then(() => { 2588 await wallpaper.restore(WALLPAPER_SYSTEM); 2602 await wallpaper.restore(WALLPAPER_SYSTEM); 2612 await wallpaper.restore(WALLPAPER_SYSTEM); 2624 await wallpaper.restore(WALLPAPER_SYSTEM); 2635 await wallpaper.restore(WALLPAPER_SYSTEM); 2684 await wallpaper.restore(WALLPAPER_SYSTEM); [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_tools/backup_tool/ |
H A D | tools_op_restore_async_test.cpp | 508 shared_ptr<SessionAsync> restore = make_shared<SessionAsync>(); variable 509 restore->session_ = {}; 510 RestoreApp(restore, bundleNames); 536 shared_ptr<SessionAsync> restore = make_shared<SessionAsync>(); variable 537 restore->session_ = {}; 538 RestoreApp(restore, bundleNames); 641 shared_ptr<SessionAsync> restore = make_shared<SessionAsync>(); variable 642 AppendBundles(restore, pathCapFile, bundleNames, type, userId); 669 shared_ptr<SessionAsync> restore = make_shared<SessionAsync>(); variable 695 shared_ptr<SessionAsync> restore = make_shared<SessionAsync>(); variable [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/v3.2-Release/ |
H A D | changelogs-wallpaper.md | 4 ## cl.wallpaper.1 getColorsSync、getMinHeightSync、getMinWidthSync、restore、setImage接口使用权限变更 19 function restore(wallpaperType: WallpaperType, callback: AsyncCallback<void>): void; 20 function restore(wallpaperType: WallpaperType): Promise<void>; 84 function restore(wallpaperType: WallpaperType): Promise<void>; 164 function restore(wallpaperType: WallpaperType): Promise<void>; 216 wallpaper.restore(wallpaper.WallpaperType.WALLPAPER_SYSTEM, (error) => { 218 console.error(`failed to restore because: ${JSON.stringify(error)}`); 221 console.log(`success to restore.`); 226 wallpaper.restore(wallpaper.WallpaperType.WALLPAPER_SYSTEM).then(() => { 227 console.log(`success to restore.`); [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_3.2.10.12/ |
H A D | changelog-wallpaper.md | 4 ## cl.wallpaper.1 getColorsSync、getMinHeightSync、getMinWidthSync、restore、setImage接口使用权限变更 19 function restore(wallpaperType: WallpaperType, callback: AsyncCallback<void>): void; 20 function restore(wallpaperType: WallpaperType): Promise<void>; 84 function restore(wallpaperType: WallpaperType): Promise<void>; 164 function restore(wallpaperType: WallpaperType): Promise<void>; 216 wallpaper.restore(wallpaper.WallpaperType.WALLPAPER_SYSTEM, (error) => { 218 console.error(`failed to restore because: ${JSON.stringify(error)}`); 221 console.log(`success to restore.`); 226 wallpaper.restore(wallpaper.WallpaperType.WALLPAPER_SYSTEM).then(() => { 227 console.log(`success to restore.`); [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.5.3/ |
H A D | changelog-wallpaper.md | 4 ## cl.wallpaper.1 getColorsSync、getMinHeightSync、getMinWidthSync、restore、setImage接口使用权限变更 19 function restore(wallpaperType: WallpaperType, callback: AsyncCallback<void>): void; 20 function restore(wallpaperType: WallpaperType): Promise<void>; 84 function restore(wallpaperType: WallpaperType): Promise<void>; 164 function restore(wallpaperType: WallpaperType): Promise<void>; 216 wallpaper.restore(wallpaper.WallpaperType.WALLPAPER_SYSTEM, (error) => { 218 console.error(`failed to restore because: ${JSON.stringify(error)}`); 221 console.log(`success to restore.`); 226 wallpaper.restore(wallpaper.WallpaperType.WALLPAPER_SYSTEM).then(() => { 227 console.log(`success to restore.`); [all …]
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_3.2.10.12/ |
H A D | changelog-wallpaper.md | 19 function restore(wallpaperType: WallpaperType, callback: AsyncCallback<void>): void; 20 function restore(wallpaperType: WallpaperType): Promise<void>; 71 function restore(wallpaperType: WallpaperType, callback: AsyncCallback<void>): void; 84 function restore(wallpaperType: WallpaperType): Promise<void>; 164 function restore(wallpaperType: WallpaperType): Promise<void>; 216 wallpaper.restore(wallpaper.WallpaperType.WALLPAPER_SYSTEM, (error) => { 218 console.error(`failed to restore because: ${JSON.stringify(error)}`); 221 console.log(`success to restore.`); 226 wallpaper.restore(wallpaper.WallpaperType.WALLPAPER_SYSTEM).then(() => { 227 console.log(`success to restore.`); [all …]
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.5.3/ |
H A D | changelog-wallpaper.md | 19 function restore(wallpaperType: WallpaperType, callback: AsyncCallback<void>): void; 20 function restore(wallpaperType: WallpaperType): Promise<void>; 71 function restore(wallpaperType: WallpaperType, callback: AsyncCallback<void>): void; 84 function restore(wallpaperType: WallpaperType): Promise<void>; 164 function restore(wallpaperType: WallpaperType): Promise<void>; 216 wallpaper.restore(wallpaper.WallpaperType.WALLPAPER_SYSTEM, (error) => { 218 console.error(`failed to restore because: ${JSON.stringify(error)}`); 221 console.log(`success to restore.`); 226 wallpaper.restore(wallpaper.WallpaperType.WALLPAPER_SYSTEM).then(() => { 227 console.log(`success to restore.`); [all …]
|
/ohos5.0/docs/en/release-notes/changelogs/v3.2-Release/ |
H A D | changelogs-wallpaper.md | 19 function restore(wallpaperType: WallpaperType, callback: AsyncCallback<void>): void; 20 function restore(wallpaperType: WallpaperType): Promise<void>; 71 function restore(wallpaperType: WallpaperType, callback: AsyncCallback<void>): void; 84 function restore(wallpaperType: WallpaperType): Promise<void>; 164 function restore(wallpaperType: WallpaperType): Promise<void>; 216 wallpaper.restore(wallpaper.WallpaperType.WALLPAPER_SYSTEM, (error) => { 218 console.error(`failed to restore because: ${JSON.stringify(error)}`); 221 console.log(`success to restore.`); 226 wallpaper.restore(wallpaper.WallpaperType.WALLPAPER_SYSTEM).then(() => { 227 console.log(`success to restore.`); [all …]
|
/ohos5.0/docs/zh-cn/application-dev/database/ |
H A D | data-backup-and-restore.md | 18 键值型数据库,通过backup接口实现数据库备份,通过restore接口实现数据库恢复,通过deletebackup接口删除数据库备份。具体接口及功能,可见[分布式键值数据库](../referen… 130 5. 使用restore()方法恢复数据。 134 kvStore.restore(backupFile, (err) => { 136 console.error(`Fail to restore data. Code:${err.code},message:${err.message}`); 278 关系型数据库通过调用backup接口可以实现[手动备份数据库](#手动备份),通过restore接口可以实现手动恢复数据库。 330 3. 调用restore接口恢复数据。 356 // 调用restore接口恢复数据 357 (store as relationalStore.RdbStore).restore(backup); 367 关系型数据库,可以通过[restore](../reference/apis-arkdata/js-apis-data-relationalStore-sys.md#restore12)接口恢复[自… 390 (store as relationalStore.RdbStore).restore("Backup.db", (err: BusinessError) => { [all …]
|
/ohos5.0/base/hiviewdfx/hilog/services/hilogd/ |
H A D | log_persister.cpp | 105 int LogPersister::InitFileRotator(const PersistRecoveryInfo& info, bool restore) in InitFileRotator() argument 124 return m_fileRotator->Init(info, restore); in InitFileRotator() 127 int LogPersister::Init(const PersistRecoveryInfo& info, bool restore) in Init() argument 156 int ret = InitFileRotator(info, restore); in Init() 161 if (int result = PrepareUncompressedFile(parentPath, restore)) { in Init() 194 int LogPersister::PrepareUncompressedFile(const std::string& parentPath, bool restore) in PrepareUncompressedFile() argument 198 FILE* plainTextFile = fopen(m_plainLogFilePath.c_str(), restore ? "r+" : "w+"); in PrepareUncompressedFile() 206 if (!restore) { in PrepareUncompressedFile() 222 if (restore) { in PrepareUncompressedFile()
|
/ohos5.0/foundation/filemanagement/app_file_service/tools/backup_tool/src/ |
H A D | tools_op_restore_async.cpp | 247 static void RestoreApp(shared_ptr<SessionAsync> restore, vector<BundleName> &bundleNames) in RestoreApp() argument 250 if (!restore || !restore->session_) { in RestoreApp() 273 restore->session_->GetFileHandle(bundleName, manageJsonPath); in RestoreApp() 286 restore->session_->GetFileHandle(bundleName, item.hashName); in RestoreApp() 332 static int32_t AppendBundles(shared_ptr<SessionAsync> restore, in AppendBundles() argument 350 …int ret = restore->session_->AppendBundles(move(fd), bundleNames, restoreType, atoi(userId.data())… in AppendBundles() 356 RestoreApp(restore, bundleNames); in AppendBundles() 365 restore->Wait(); in AppendBundles()
|
H A D | tools_op_incremental_restore_async.cpp | 254 static void RestoreApp(shared_ptr<InrementalSessionAsync> restore, vector<BundleName> &bundleNames) in RestoreApp() argument 257 if (!restore || !restore->session_) { in RestoreApp() 290 restore->session_->GetFileHandle(bundleName, manageJsonPath); in RestoreApp() 303 restore->session_->GetFileHandle(bundleName, item.hashName); in RestoreApp() 349 static int32_t AppendBundles(shared_ptr<InrementalSessionAsync> restore, in AppendBundles() argument 367 …int ret = restore->session_->AppendBundles(move(fd), bundleNames, restoreType, atoi(userId.data())… in AppendBundles() 373 RestoreApp(restore, bundleNames); in AppendBundles() 382 restore->Wait(); in AppendBundles()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_scroll_fade_painter.cpp | 51 canvas->restore(); in Paint() 100 canvas->restore(); in PaintSide() 108 canvas->restore(); in PaintSide() 116 canvas->restore(); in PaintSide() 124 canvas->restore(); in PaintSide()
|
/ohos5.0/base/hiviewdfx/hilog/services/hilogd/include/ |
H A D | log_persister.h | 60 int Init(const PersistRecoveryInfo& msg, bool restore); 81 int InitFileRotator(const PersistRecoveryInfo& msg, bool restore); 86 int PrepareUncompressedFile(const std::string& parentPath, bool restore);
|
/ohos5.0/docs/zh-cn/third-party-cases/ |
H A D | time-styles-shift.md | 85 this.ctx.restore(); //对保存的绘图上下文进行恢复 103 this.ctx.restore(); //对保存的绘图上下文进行恢复 121 this.ctx.restore(); //对保存的绘图上下文进行恢复 246 this.ctx.restore(); //对保存的绘图上下文进行恢复 259 this.ctx.restore(); //对保存的绘图上下文进行恢复 272 this.ctx.restore(); //对保存的绘图上下文进行恢复 274 this.ctx.restore(); //对保存的绘图上下文进行恢复
|