Searched refs:backupUtils (Results 1 – 3 of 3) sorted by relevance
53 private lateinit var backupUtils: CommunalBackupUtils variable in com.android.systemui.communal.data.backup.CommunalBackupHelperTest69 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()
80 private lateinit var backupUtils: CommunalBackupUtils variable in com.android.systemui.communal.data.repository.CommunalWidgetRepositoryImplTest104 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 …]
99 private val backupUtils: CommunalBackupUtils, constant222 state = backupUtils.readBytesFromDisk().toCommunalHubState() in restoreWidgets()267 backupUtils.clear() in restoreWidgets()285 backupUtils.clear() in abortRestoreWidgets()