Home
last modified time | relevance | path

Searched refs:RestorableSnapshot (Results 1 – 16 of 16) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/undo/domain/interactor/
DSnapshotStore.kt20 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot
23 fun retrieve(): RestorableSnapshot in retrieve()
24 fun store(snapshot: RestorableSnapshot) in retrieve()
28 override fun retrieve(): RestorableSnapshot { in retrieve()
29 return RestorableSnapshot(emptyMap()) in retrieve()
32 override fun store(snapshot: RestorableSnapshot) = Unit in retrieve()
DSnapshotRestorer.kt20 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot
33 suspend fun setUpSnapshotRestorer(store: SnapshotStore): RestorableSnapshot
36 suspend fun restoreToSnapshot(snapshot: RestorableSnapshot)
DUndoInteractor.kt21 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot in <lambda>()
64 override fun retrieve(): RestorableSnapshot { in <lambda>()
72 override fun store(snapshot: RestorableSnapshot) { in <lambda>()
/packages/apps/WallpaperPicker2/tests/common/src/com/android/wallpaper/testing/
DUndoTestUtil.kt22 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot
31 fun snapshot(ownerId: Int, version: Int): RestorableSnapshot { in snapshot()
32 return RestorableSnapshot( in snapshot()
44 var restored: RestorableSnapshot? = null
53 ): RestorableSnapshot { in setUpSnapshotRestorer()
61 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in restoreToSnapshot()
DFakeSnapshotStore.kt21 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot
24 initialSnapshot: RestorableSnapshot = RestorableSnapshot(emptyMap()),
28 override fun retrieve(): RestorableSnapshot { in retrieve()
32 override fun store(snapshot: RestorableSnapshot) { in store()
/packages/apps/ThemePicker/src/com/android/customization/model/themedicon/domain/interactor/
DThemedIconSnapshotRestorer.kt22 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot
32 override suspend fun setUpSnapshotRestorer(store: SnapshotStore): RestorableSnapshot { in setUpSnapshotRestorer()
37 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in restoreToSnapshot()
51 ): RestorableSnapshot { in snapshot()
52 return RestorableSnapshot( in snapshot()
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/domain/interactor/
DGridSnapshotRestorer.kt24 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot in <lambda>()
33 override suspend fun setUpSnapshotRestorer(store: SnapshotStore): RestorableSnapshot { in <lambda>()
40 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in <lambda>()
61 private fun snapshot(option: GridOptionItemModel?): RestorableSnapshot { in <lambda>()
62 return RestorableSnapshot( in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/quickaffordance/domain/interactor/
DKeyguardQuickAffordanceSnapshotRestorer.kt23 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot in <lambda>()
39 ): RestorableSnapshot { in <lambda>()
44 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in <lambda>()
65 private suspend fun snapshot(): RestorableSnapshot { in <lambda>()
66 return RestorableSnapshot( in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/notifications/domain/interactor/
DNotificationsSnapshotRestorer.kt23 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot
41 ): RestorableSnapshot { in setUpSnapshotRestorer()
58 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in restoreToSnapshot()
64 private fun snapshot(model: NotificationSnapshotModel): RestorableSnapshot { in snapshot()
65 return RestorableSnapshot( in snapshot()
/packages/apps/ThemePicker/src/com/android/customization/picker/color/domain/interactor/
DColorPickerSnapshotRestorer.kt24 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot in <lambda>()
40 ): RestorableSnapshot { in <lambda>()
46 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in <lambda>()
67 private fun snapshot(colorOptionModel: ColorOptionModel? = null): RestorableSnapshot { in <lambda>()
73 return RestorableSnapshot(snapshotMap) in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/model/mode/
DDarkModeSnapshotRestorer.kt25 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot in <lambda>()
62 override suspend fun setUpSnapshotRestorer(store: SnapshotStore): RestorableSnapshot { in <lambda>()
69 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in <lambda>()
86 ): RestorableSnapshot { in <lambda>()
87 return RestorableSnapshot( in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/domain/interactor/
DClockPickerSnapshotRestorer.kt25 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot in <lambda>()
35 ): RestorableSnapshot { in <lambda>()
41 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in <lambda>()
69 private fun snapshot(clockSnapshotModel: ClockSnapshotModel? = null): RestorableSnapshot { in <lambda>()
83 return RestorableSnapshot(options) in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/domain/interactor/
DWallpaperSnapshotRestorer.kt25 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot in <lambda>()
43 ): RestorableSnapshot { in <lambda>()
50 snapshot: RestorableSnapshot, in <lambda>()
93 ): RestorableSnapshot { in <lambda>()
94 return RestorableSnapshot( in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/undo/data/repository/
DUndoRepository.kt20 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot
28 private val snapshotByOwnerId = mutableMapOf<Int, RestorableSnapshot>()
36 fun putSnapshot(ownerId: Int, snapshot: RestorableSnapshot) { in putSnapshot()
41 fun getSnapshot(ownerId: Int): RestorableSnapshot? { in getSnapshot()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/undo/shared/model/
DRestorableSnapshot.kt21 data class RestorableSnapshot( class
45 ): RestorableSnapshot { in copy()
48 return RestorableSnapshot( in copy()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/customization/domain/interactor/
DWallpaperSnapshotRestorerTest.kt26 import com.android.wallpaper.picker.undo.shared.model.RestorableSnapshot in <lambda>()
49 private lateinit var storedSnapshots: MutableList<RestorableSnapshot> in <lambda>()
59 override fun store(snapshot: RestorableSnapshot) { in <lambda>()
63 override fun retrieve(): RestorableSnapshot { in <lambda>()