/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/ui/viewmodel/ |
D | WallpaperPreviewViewModelTest.kt | 90 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/ |
D | SetWallpaperDialogBinder.kt | 47 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 …]
|
D | DualPreviewPagerBinder.kt | 45 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>()
|
D | TabsBinder.kt | 32 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()
|
D | PreviewPagerBinder.kt | 46 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>()
|
D | PreviewSelectorBinder.kt | 35 wallpaperPreviewViewModel: WallpaperPreviewViewModel, in bind() 49 wallpaperPreviewViewModel, in bind() 58 TabsBinder.bind(tabs, wallpaperPreviewViewModel, viewLifecycleOwner) in bind()
|
D | DualPreviewSelectorBinder.kt | 36 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/ |
D | CreativeEditPreviewFragment.kt | 53 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()
|
D | SmallPreviewFragment.kt | 72 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 …]
|
D | SetWallpaperDialogFragment.kt | 55 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()
|
D | FullPreviewFragment.kt | 52 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/ |
D | WallpaperPreviewActivity.kt | 70 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>()
|