Home
last modified time | relevance | path

Searched refs:wallpaperPreviewViewModel (Results 1 – 12 of 12) sorted by relevance

/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DWallpaperPreviewViewModelTest.kt90 private lateinit var wallpaperPreviewViewModel: WallpaperPreviewViewModel variable in com.android.wallpaper.picker.preview.ui.viewmodel.WallpaperPreviewViewModelTest
166 wallpaperPreviewViewModel = activity.viewModels<WallpaperPreviewViewModel>().value in homePreviewUtils()
168 wallpaperPreviewViewModel.staticWallpaperPreviewViewModel in homePreviewUtils()
175 assertThat(wallpaperPreviewViewModel.isViewAsHome).isTrue() in startActivity_withViewAsHome_setsToViewModel()
181 val isClickable = collectLastValue(wallpaperPreviewViewModel.isSmallPreviewClickable)() in smallPreviewClickable_byDefault()
192 val isClickable = collectLastValue(wallpaperPreviewViewModel.isSmallPreviewClickable)() in smallPreviewNotClickable_whenEffectInProgress()
200 wallpaperPreviewViewModel.setSmallPreviewSelectedTab(Screen.HOME_SCREEN) in clickSmallPreview_isSelectedPreview_updatesFullWorkspacePreviewConfig()
203 wallpaperPreviewViewModel.onSmallPreviewClicked( in clickSmallPreview_isSelectedPreview_updatesFullWorkspacePreviewConfig()
212 collectLastValue(wallpaperPreviewViewModel.fullWorkspacePreviewConfigViewModel)() in clickSmallPreview_isSelectedPreview_updatesFullWorkspacePreviewConfig()
226 wallpaperPreviewViewModel.setSmallPreviewSelectedTab(Screen.LOCK_SCREEN) in clickSmallPreview_isSelectedPreview_updatesFullWallpaperPreviewConfig()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/binder/
DSetWallpaperDialogBinder.kt47 wallpaperPreviewViewModel: WallpaperPreviewViewModel, in <lambda>()
64 wallpaperPreviewViewModel, in <lambda>()
73 wallpaperPreviewViewModel, in <lambda>()
88 wallpaperPreviewViewModel.showSetWallpaperDialog.collect { show -> in <lambda>()
96 wallpaperPreviewViewModel.setWallpaperDialogOnConfirmButtonClicked.collect { in <lambda>()
108 wallpaperPreviewViewModel.setWallpaperDialogSelectedScreens.collect { in <lambda>()
116 wallpaperPreviewViewModel, in <lambda>()
127 wallpaperPreviewViewModel: WallpaperPreviewViewModel, in <lambda>()
142 DeviceDisplayType.FOLDED to wallpaperPreviewViewModel.smallerDisplaySize, in <lambda>()
144 wallpaperPreviewViewModel.wallpaperDisplaySize.value, in <lambda>()
[all …]
DDualPreviewPagerBinder.kt45 wallpaperPreviewViewModel: WallpaperPreviewViewModel, in <lambda>()
58 wallpaperPreviewViewModel.smallPreviewTabs.size - position - 1 in <lambda>()
102 viewModel = wallpaperPreviewViewModel.smallTooltipViewModel, in <lambda>()
111 DeviceDisplayType.FOLDED to wallpaperPreviewViewModel.smallerDisplaySize, in <lambda>()
113 wallpaperPreviewViewModel.wallpaperDisplaySize.value, in <lambda>()
124 viewModel = wallpaperPreviewViewModel, in <lambda>()
126 screen = wallpaperPreviewViewModel.smallPreviewTabs[positionLTR], in <lambda>()
145 wallpaperPreviewViewModel.setSmallPreviewSelectedTabIndex(positionLTR) in <lambda>()
160 wallpaperPreviewViewModel.smallPreviewSelectedTabIndex.collect { position -> in <lambda>()
DTabsBinder.kt32 wallpaperPreviewViewModel: WallpaperPreviewViewModel, in bind()
35 tabs.setOnTabSelected { wallpaperPreviewViewModel.setSmallPreviewSelectedTabIndex(it) } in bind()
38 wallpaperPreviewViewModel.smallPreviewTabs.map { in bind()
50 tabs.setTab(wallpaperPreviewViewModel.getSmallPreviewTabIndex()) in bind()
51 wallpaperPreviewViewModel.smallPreviewSelectedTabIndex.collect { in bind()
DPreviewPagerBinder.kt46 wallpaperPreviewViewModel: WallpaperPreviewViewModel, in <lambda>()
58 viewModel = wallpaperPreviewViewModel.smallTooltipViewModel, in <lambda>()
65 viewModel = wallpaperPreviewViewModel, in <lambda>()
66 screen = wallpaperPreviewViewModel.smallPreviewTabs[position], in <lambda>()
100 wallpaperPreviewViewModel.setSmallPreviewSelectedTabIndex(position) in <lambda>()
107 wallpaperPreviewViewModel.smallPreviewSelectedTabIndex.collect { in <lambda>()
DPreviewSelectorBinder.kt35 wallpaperPreviewViewModel: WallpaperPreviewViewModel, in bind()
49 wallpaperPreviewViewModel, in bind()
58 TabsBinder.bind(tabs, wallpaperPreviewViewModel, viewLifecycleOwner) in bind()
DDualPreviewSelectorBinder.kt36 wallpaperPreviewViewModel: WallpaperPreviewViewModel, in bind()
47 wallpaperPreviewViewModel, in bind()
57 TabsBinder.bind(tabs, wallpaperPreviewViewModel, viewLifecycleOwner) in bind()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/fragment/
DCreativeEditPreviewFragment.kt53 private val wallpaperPreviewViewModel by activityViewModels<WallpaperPreviewViewModel>() constant
63 wallpaperPreviewViewModel.setDefaultFullPreviewConfigViewModel( in onCreateView()
85 wallpaperPreviewViewModel.resetFullPreviewConfigViewModel() in onCreateView()
86 wallpaperPreviewViewModel.isCurrentlyEditingCreativeWallpaper = false in onCreateView()
110 wallpaperPreviewViewModel.isCurrentlyEditingCreativeWallpaper = false in onCreateView()
116 wallpaperPreviewViewModel.resetFullPreviewConfigViewModel() in onCreateView()
121 if (!wallpaperPreviewViewModel.isCurrentlyEditingCreativeWallpaper) { in onCreateView()
122 wallpaperPreviewViewModel.isCurrentlyEditingCreativeWallpaper = true in onCreateView()
135 viewModel = wallpaperPreviewViewModel, in onViewStateRestored()
DSmallPreviewFragment.kt72 private val wallpaperPreviewViewModel by activityViewModels<WallpaperPreviewViewModel>() in <lambda>() constant
108 viewModel = wallpaperPreviewViewModel, in <lambda>()
115 viewModel = wallpaperPreviewViewModel, in <lambda>()
124 wallpaperPreviewViewModel.resetFullPreviewConfigViewModel() in <lambda>()
162 .resetTransition(wallpaperPreviewViewModel.getSmallPreviewTabIndex()) in <lambda>()
196 wallpaperPreviewViewModel, in <lambda>()
201 wallpaperPreviewViewModel.fullPreviewConfigViewModel.value, in <lambda>()
221 wallpaperPreviewViewModel, in <lambda>()
226 wallpaperPreviewViewModel.fullPreviewConfigViewModel.value, in <lambda>()
256 previewViewModel = wallpaperPreviewViewModel, in <lambda>()
[all …]
DSetWallpaperDialogFragment.kt55 private val wallpaperPreviewViewModel by activityViewModels<WallpaperPreviewViewModel>() constant
86 wallpaperPreviewViewModel, in onCreateDialog()
100 if (wallpaperPreviewViewModel.isNewTask) { in onCreateDialog()
108 if (wallpaperPreviewViewModel.isViewAsHome) LAUNCH_SOURCE_LAUNCHER in onCreateDialog()
132 wallpaperPreviewViewModel.dismissSetWallpaperDialog() in onDismiss()
DFullPreviewFragment.kt52 private val wallpaperPreviewViewModel by activityViewModels<WallpaperPreviewViewModel>() in <lambda>() constant
78 viewModel = wallpaperPreviewViewModel, in <lambda>()
86 viewModel = wallpaperPreviewViewModel, in <lambda>()
92 viewModel = wallpaperPreviewViewModel.fullTooltipViewModel, in <lambda>()
109 viewModel = wallpaperPreviewViewModel, in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/
DWallpaperPreviewActivity.kt70 private val wallpaperPreviewViewModel: WallpaperPreviewViewModel by viewModels() in <lambda>() constant in com.android.wallpaper.picker.preview.ui.WallpaperPreviewActivity
76 wallpaperPreviewViewModel.updateDisplayConfiguration() in <lambda>()
77 wallpaperPreviewViewModel.setIsWallpaperColorPreviewEnabled( in <lambda>()
105 wallpaperPreviewViewModel.isNewTask = intent.getBooleanExtra(IS_NEW_TASK, false) in <lambda>()
112 wallpaperPreviewViewModel.setWhichPreview(whichPreview) in <lambda>()
115 wallpaperPreviewViewModel.setCropHints(it) in <lambda>()
177 (wallpaperPreviewViewModel.wallpaper.value as? WallpaperModel.LiveWallpaperModel)?.let { in <lambda>()
183 val currentWallpaperDisplay = wallpaperPreviewViewModel.wallpaperDisplaySize.value in <lambda>()
188 wallpaperPreviewViewModel.smallerDisplaySize in <lambda>()