Home
last modified time | relevance | path

Searched refs:backupUtils (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/communal/data/backup/
DCommunalBackupHelperTest.kt53 private lateinit var backupUtils: CommunalBackupUtils variable in com.android.systemui.communal.data.backup.CommunalBackupHelperTest
69 backupUtils = CommunalBackupUtils(context) in setup()
73 underTest = CommunalBackupHelper(UserHandle.SYSTEM, backupUtils) in setup()
91 val restoredState = backupUtils.readBytesFromDisk().toCommunalHubState() in backupAndRestoreCommunalHub()
114 val helper = CommunalBackupHelper(UserHandle.CURRENT, backupUtils) in backup_skippedForNonSystemUser()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/data/repository/
DCommunalWidgetRepositoryImplTest.kt80 private lateinit var backupUtils: CommunalBackupUtils variable in com.android.systemui.communal.data.repository.CommunalWidgetRepositoryImplTest
104 backupUtils = CommunalBackupUtils(kosmos.applicationContext) in setUp()
122 backupUtils, in setUp()
401 backupUtils.writeBytesToDisk(byteArrayOf(1, 2, 3, 4, 5, 6)) in restoreWidgets_deleteStateFileIfRestoreFails()
402 assertThat(backupUtils.fileExists()).isTrue() in restoreWidgets_deleteStateFileIfRestoreFails()
409 assertThat(backupUtils.fileExists()).isFalse() in restoreWidgets_deleteStateFileIfRestoreFails()
416 backupUtils.writeBytesToDisk(fakeState.toByteArray()) in restoreWidgets_deleteStateFileAfterWidgetsRestored()
417 assertThat(backupUtils.fileExists()).isTrue() in restoreWidgets_deleteStateFileAfterWidgetsRestored()
430 assertThat(backupUtils.fileExists()).isFalse() in restoreWidgets_deleteStateFileAfterWidgetsRestored()
437 backupUtils.writeBytesToDisk(fakeState.toByteArray()) in restoreWidgets_restoredWidgetsNotRegisteredWithHostAreSkipped()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/communal/data/repository/
DCommunalWidgetRepository.kt99 private val backupUtils: CommunalBackupUtils, constant
222 state = backupUtils.readBytesFromDisk().toCommunalHubState() in restoreWidgets()
267 backupUtils.clear() in restoreWidgets()
285 backupUtils.clear() in abortRestoreWidgets()