/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/ |
D | DualDisplayAspectRatioLayout.kt | 23 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()
|
D | DualPreviewViewPager.kt | 23 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/ |
D | SmallPreviewBinder.kt | 33 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>()
|
D | SetWallpaperDialogBinder.kt | 30 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>()
|
D | DualPreviewPagerBinder.kt | 29 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>()
|
D | SmallWallpaperPreviewBinder.kt | 29 import com.android.wallpaper.model.wallpaper.DeviceDisplayType in <lambda>() 57 deviceDisplayType: DeviceDisplayType, in <lambda>() 93 deviceDisplayType: DeviceDisplayType, in <lambda>()
|
D | PreviewPagerBinder.kt | 31 import com.android.wallpaper.model.wallpaper.DeviceDisplayType in <lambda>() 68 deviceDisplayType = DeviceDisplayType.SINGLE, in <lambda>()
|
D | PreviewActionsBinder.kt | 30 import com.android.wallpaper.model.wallpaper.DeviceDisplayType in <lambda>() 58 deviceDisplayType: DeviceDisplayType, in <lambda>()
|
D | FullWallpaperPreviewBinder.kt | 39 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/ |
D | WallpaperPreviewViewModel.kt | 25 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 …]
|
D | FullPreviewConfigViewModel.kt | 19 import com.android.wallpaper.model.wallpaper.DeviceDisplayType 28 val deviceDisplayType: DeviceDisplayType,
|
D | WorkspacePreviewConfigViewModel.kt | 18 import com.android.wallpaper.model.wallpaper.DeviceDisplayType 28 val deviceDisplayType: DeviceDisplayType,
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | DisplayUtils.kt | 25 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/ |
D | WallpaperPreviewViewModelTest.kt | 33 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/ |
D | WallpaperConnectionUtils.kt | 21 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/ |
D | DeviceDisplayType.kt | 18 enum class DeviceDisplayType { class
|