Home
last modified time | relevance | path

Searched refs:GridOptionItemsModel (Results 1 – 7 of 7) sorted by relevance

/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/grid/domain/interactor/
DGridInteractorTest.kt24 import com.android.customization.picker.grid.shared.model.GridOptionItemsModel in <lambda>()
80 assertThat(options()).isInstanceOf(GridOptionItemsModel.Loaded::class.java) in <lambda>()
81 (options() as? GridOptionItemsModel.Loaded)?.let { loaded -> in <lambda>()
89 (options() as? GridOptionItemsModel.Loaded)?.let { loaded -> in <lambda>()
93 assertThat(options()).isInstanceOf(GridOptionItemsModel.Loaded::class.java) in <lambda>()
94 (options() as? GridOptionItemsModel.Loaded)?.let { loaded -> in <lambda>()
107 assertThat(options()).isInstanceOf(GridOptionItemsModel.Loaded::class.java) in <lambda>()
108 (options() as? GridOptionItemsModel.Loaded)?.let { loaded -> in <lambda>()
113 (options() as? GridOptionItemsModel.Loaded)?.let { loaded -> in <lambda>()
125 assertThat(options()).isInstanceOf(GridOptionItemsModel.Loaded::class.java) in <lambda>()
[all …]
DGridSnapshotRestorerTest.kt24 import com.android.customization.picker.grid.shared.model.GridOptionItemsModel in <lambda>()
97 underTest.store((repository.getOptions() as GridOptionItemsModel.Loaded).options[1]) in <lambda>()
107 return (repository.getOptions() as? GridOptionItemsModel.Loaded)?.options?.indexOfFirst { in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/domain/interactor/
DGridInteractor.kt24 import com.android.customization.picker.grid.shared.model.GridOptionItemsModel in <lambda>()
41 val options: Flow<GridOptionItemsModel> = in <lambda>()
72 return (repository.getOptions() as? GridOptionItemsModel.Loaded)?.options?.firstOrNull { in <lambda>()
88 private suspend fun reload(): GridOptionItemsModel { in <lambda>()
90 return if (model is GridOptionItemsModel.Loaded) { in <lambda>()
91 GridOptionItemsModel.Loaded( in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/grid/data/repository/
DFakeGridRepository.kt24 import com.android.customization.picker.grid.shared.model.GridOptionItemsModel in <lambda>()
51 private var options: GridOptionItemsModel = createOptions(count = initialOptionCount) in <lambda>()
53 override suspend fun getOptions(): GridOptionItemsModel { in <lambda>()
76 ): GridOptionItemsModel { in <lambda>()
78 return GridOptionItemsModel.Loaded( in <lambda>()
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/shared/model/
DGridOptionItemsModel.kt20 sealed class GridOptionItemsModel { class
23 ) : GridOptionItemsModel()
26 ) : GridOptionItemsModel()
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/data/repository/
DGridRepository.kt26 import com.android.customization.picker.grid.shared.model.GridOptionItemsModel in <lambda>()
41 suspend fun getOptions(): GridOptionItemsModel in <lambda>()
68 override suspend fun getOptions(): GridOptionItemsModel { in getSelectedOption()
84 GridOptionItemsModel.Loaded( in getSelectedOption()
92 GridOptionItemsModel.Error( in getSelectedOption()
/packages/apps/ThemePicker/src/com/android/customization/picker/grid/ui/viewmodel/
DGridScreenViewModel.kt28 import com.android.customization.picker.grid.shared.model.GridOptionItemsModel in <lambda>()
49 model: GridOptionItemsModel, in <lambda>()
62 is GridOptionItemsModel.Loaded -> in <lambda>()
86 is GridOptionItemsModel.Error -> emptyList() in <lambda>()