Home
last modified time | relevance | path

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

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/
DDualDisplayAspectRatioLayout.kt23 import com.android.wallpaper.model.wallpaper.DeviceDisplayType
35 private var previewDisplaySizes: Map<DeviceDisplayType, Point>? = null
59 val smallDisplaySize = checkNotNull(getPreviewDisplaySize(DeviceDisplayType.FOLDED)) in onMeasure()
60 val largeDisplaySize = checkNotNull(getPreviewDisplaySize(DeviceDisplayType.UNFOLDED)) in onMeasure()
137 fun setDisplaySizes(displaySizes: Map<DeviceDisplayType, Point>) { in setDisplaySizes()
141 fun getPreviewDisplaySize(display: DeviceDisplayType): Point? { in getPreviewDisplaySize()
147 fun DeviceDisplayType.getViewId(): Int { in DeviceDisplayType() method
149 DeviceDisplayType.SINGLE -> in DeviceDisplayType()
153 DeviceDisplayType.FOLDED -> R.id.small_preview_folded_preview in DeviceDisplayType()
154 DeviceDisplayType.UNFOLDED -> R.id.small_preview_unfolded_preview in DeviceDisplayType()
DDualPreviewViewPager.kt23 import com.android.wallpaper.model.wallpaper.DeviceDisplayType
34 private var previewDisplaySizes: Map<DeviceDisplayType, Point>? = null
50 getPreviewDisplaySize(DeviceDisplayType.FOLDED).let { it.x.toFloat() / it.y } in onMeasure()
53 getPreviewDisplaySize(DeviceDisplayType.UNFOLDED).let { it.x.toFloat() / it.y } in onMeasure()
66 fun setDisplaySizes(displaySizes: Map<DeviceDisplayType, Point>) { in setDisplaySizes()
76 private fun getPreviewDisplaySize(display: DeviceDisplayType): Point { in getPreviewDisplaySize()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/binder/
DSmallPreviewBinder.kt33 import com.android.wallpaper.model.wallpaper.DeviceDisplayType in <lambda>()
48 deviceDisplayType: DeviceDisplayType, in <lambda>()
60 DeviceDisplayType.FOLDED -> in <lambda>()
62 DeviceDisplayType.UNFOLDED -> in <lambda>()
81 DeviceDisplayType.SINGLE -> in <lambda>()
83 DeviceDisplayType.FOLDED -> in <lambda>()
85 DeviceDisplayType.UNFOLDED -> in <lambda>()
90 DeviceDisplayType.SINGLE -> in <lambda>()
92 DeviceDisplayType.FOLDED -> in <lambda>()
94 DeviceDisplayType.UNFOLDED -> in <lambda>()
DSetWallpaperDialogBinder.kt30 import com.android.wallpaper.model.wallpaper.DeviceDisplayType in <lambda>()
142 DeviceDisplayType.FOLDED to wallpaperPreviewViewModel.smallerDisplaySize, in <lambda>()
143 DeviceDisplayType.UNFOLDED to in <lambda>()
147 DeviceDisplayType.FOLDABLE_DISPLAY_TYPES.forEach { display -> in <lambda>()
189 deviceDisplayType = DeviceDisplayType.SINGLE, in <lambda>()
DDualPreviewPagerBinder.kt29 import com.android.wallpaper.model.wallpaper.DeviceDisplayType in <lambda>()
111 DeviceDisplayType.FOLDED to wallpaperPreviewViewModel.smallerDisplaySize, in <lambda>()
112 DeviceDisplayType.UNFOLDED to in <lambda>()
118 DeviceDisplayType.FOLDABLE_DISPLAY_TYPES.forEach { display -> in <lambda>()
DSmallWallpaperPreviewBinder.kt29 import com.android.wallpaper.model.wallpaper.DeviceDisplayType in <lambda>()
57 deviceDisplayType: DeviceDisplayType, in <lambda>()
93 deviceDisplayType: DeviceDisplayType, in <lambda>()
DPreviewPagerBinder.kt31 import com.android.wallpaper.model.wallpaper.DeviceDisplayType in <lambda>()
68 deviceDisplayType = DeviceDisplayType.SINGLE, in <lambda>()
DPreviewActionsBinder.kt30 import com.android.wallpaper.model.wallpaper.DeviceDisplayType in <lambda>()
58 deviceDisplayType: DeviceDisplayType, in <lambda>()
DFullWallpaperPreviewBinder.kt39 import com.android.wallpaper.model.wallpaper.DeviceDisplayType in <lambda>()
143 DeviceDisplayType.FOLDED -> R.string.folded_device_state_description in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DWallpaperPreviewViewModel.kt25 import com.android.wallpaper.model.wallpaper.DeviceDisplayType in <lambda>()
227 DeviceDisplayType.SINGLE -> wallpaperDisplaySize in <lambda>()
228 DeviceDisplayType.FOLDED -> smallerDisplaySize in <lambda>()
229 DeviceDisplayType.UNFOLDED -> wallpaperDisplaySize in <lambda>()
380 deviceDisplayType: DeviceDisplayType, in <lambda>()
400 fun getDisplayId(deviceDisplayType: DeviceDisplayType): Int { in <lambda>()
402 DeviceDisplayType.SINGLE -> { in <lambda>()
405 DeviceDisplayType.FOLDED -> { in <lambda>()
408 DeviceDisplayType.UNFOLDED -> { in <lambda>()
421 deviceDisplayType: DeviceDisplayType, in <lambda>()
[all …]
DFullPreviewConfigViewModel.kt19 import com.android.wallpaper.model.wallpaper.DeviceDisplayType
28 val deviceDisplayType: DeviceDisplayType,
DWorkspacePreviewConfigViewModel.kt18 import com.android.wallpaper.model.wallpaper.DeviceDisplayType
28 val deviceDisplayType: DeviceDisplayType,
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DDisplayUtils.kt25 import com.android.wallpaper.model.wallpaper.DeviceDisplayType in <lambda>()
177 fun getCurrentDisplayType(context: Context): DeviceDisplayType { in <lambda>()
179 return DeviceDisplayType.SINGLE in <lambda>()
182 DeviceDisplayType.UNFOLDED in <lambda>()
184 DeviceDisplayType.FOLDED in <lambda>()
/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/ui/viewmodel/
DWallpaperPreviewViewModelTest.kt33 import com.android.wallpaper.model.wallpaper.DeviceDisplayType
205 DeviceDisplayType.UNFOLDED, in clickSmallPreview_isSelectedPreview_updatesFullWorkspacePreviewConfig()
213 assertThat(config?.deviceDisplayType).isEqualTo(DeviceDisplayType.UNFOLDED) in clickSmallPreview_isSelectedPreview_updatesFullWorkspacePreviewConfig()
231 DeviceDisplayType.SINGLE in clickSmallPreview_isSelectedPreview_updatesFullWallpaperPreviewConfig()
240 assertThat(config.deviceDisplayType).isEqualTo(DeviceDisplayType.SINGLE) in clickSmallPreview_isSelectedPreview_updatesFullWallpaperPreviewConfig()
257 DeviceDisplayType.UNFOLDED, in clickSmallPreview_isNotSelectedPreview_doesNotUpdateFullWorkspacePreviewConfig()
284 DeviceDisplayType.UNFOLDED in clickCropButton_updatesCropHintsInfo()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/wallpaperconnection/
DWallpaperConnectionUtils.kt21 import com.android.wallpaper.model.wallpaper.DeviceDisplayType in <lambda>()
347 val deviceDisplayType: DeviceDisplayType, in <lambda>()
362 DeviceDisplayType.SINGLE -> wallpaperDisplaySize in <lambda>()
363 DeviceDisplayType.FOLDED -> smallDisplaySize in <lambda>()
364 DeviceDisplayType.UNFOLDED -> wallpaperDisplaySize in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/model/wallpaper/
DDeviceDisplayType.kt18 enum class DeviceDisplayType { class