Searched refs:WallpaperCropUtils (Results 1 – 9 of 9) sorted by relevance
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/ |
D | ImagePreviewFragment.java | 72 import com.android.wallpaper.util.WallpaperCropUtils; 430 WallpaperCropUtils.calculateVisibleRect(mRawWallpaperSize, crop); in setDefaultWallpaperZoomAndScroll() 432 if (WallpaperCropUtils.isRtl(requireContext())) { in setDefaultWallpaperZoomAndScroll() 446 final float defaultWallpaperZoom = WallpaperCropUtils.calculateMinZoom( in setDefaultWallpaperZoomAndScroll() 473 Point cropSurfaceSize = WallpaperCropUtils.calculateCropSurfaceSize(res, maxCrop, minCrop); in calculateCropRect() 475 return WallpaperCropUtils.calculateCropRect(appContext, hostViewSize, in calculateCropRect() 546 float scale = WallpaperCropUtils.getSystemWallpaperMaximumScale(context); in surfaceCreated() 554 if (WallpaperCropUtils.isRtl(context)) { in surfaceCreated()
|
D | WallpaperPreviewBitmapTransformation.java | 28 import com.android.wallpaper.util.WallpaperCropUtils; 57 float scale = WallpaperCropUtils.calculateMinZoom( in transform() 64 Point scaledThumbnailToScreenSize = WallpaperCropUtils.calculateCenterPosition( in transform()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | WallpaperCropUtils.java | 33 public final class WallpaperCropUtils { class 42 private WallpaperCropUtils() { in WallpaperCropUtils() method in WallpaperCropUtils 175 WallpaperCropUtils.adjustCurrentWallpaperCropRect(context, wallpaperSize, in calculateDefaultCenter() 290 Point defaultCropSize = WallpaperCropUtils.getDefaultCropSurfaceSize( in calculateCropRect()
|
D | BitmapProcessor.java | 59 WallpaperCropUtils.fitToSize(rect, outWidth / DOWNSAMPLE, outHeight / DOWNSAMPLE); in blur()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | WallpaperSetter.java | 33 import com.android.wallpaper.util.WallpaperCropUtils; 92 WallpaperCropUtils.calculateVisibleRect(dimensions, screenSize); in setCurrentWallpaper() 93 float wallpaperScale = WallpaperCropUtils.calculateMinZoom(dimensions, screenSize); in setCurrentWallpaper() 94 Rect cropRect = WallpaperCropUtils.calculateCropRect( in setCurrentWallpaper()
|
D | DefaultWallpaperPersister.java | 50 import com.android.wallpaper.util.WallpaperCropUtils; 431 Point defaultCropSurfaceSize = WallpaperCropUtils.getDefaultCropSurfaceSize( in cropAndSetWallpaperBitmapInRotationStatic() 438 WallpaperCropUtils.calculateMinZoom(wallpaperSize, screenSize); in cropAndSetWallpaperBitmapInRotationStatic() 440 PointF centerPosition = WallpaperCropUtils.calculateDefaultCenter(mAppContext, in cropAndSetWallpaperBitmapInRotationStatic() 441 wallpaperSize, WallpaperCropUtils.calculateVisibleRect(wallpaperSize, screenSize)); in cropAndSetWallpaperBitmapInRotationStatic() 449 Rect cropRect = WallpaperCropUtils.calculateCropRect(mAppContext, minWallpaperZoom, in cropAndSetWallpaperBitmapInRotationStatic()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | Asset.java | 40 import com.android.wallpaper.util.WallpaperCropUtils; 293 WallpaperCropUtils.calculateVisibleRect(dimensions, screenSize); in loadPreviewImage() 298 WallpaperCropUtils.isRtl(activity), in loadPreviewImage() 367 WallpaperCropUtils.adjustCropRect(context, cropRect, true /* zoomIn */); in adjustCropRect()
|
D | CurrentWallpaperAssetVN.java | 34 import com.android.wallpaper.util.WallpaperCropUtils; 143 WallpaperCropUtils.adjustCurrentWallpaperCropRect(context, assetDimensions, cropRect); in adjustCropRect()
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/ |
D | PreviewActivityTest.java | 60 import com.android.wallpaper.util.WallpaperCropUtils; 413 Point defaultCropSurfaceSize = WallpaperCropUtils.getDefaultCropSurfaceSize( in testSetsDefaultWallpaperZoomAndScroll() 421 expectedWallpaperZoom = WallpaperCropUtils.calculateMinZoom( in testSetsDefaultWallpaperZoomAndScroll() 431 Point cropSurfaceToScreen = WallpaperCropUtils.calculateCenterPosition( in testSetsDefaultWallpaperZoomAndScroll() 433 Point wallpaperToCropSurface = WallpaperCropUtils.calculateCenterPosition( in testSetsDefaultWallpaperZoomAndScroll()
|