Home
last modified time | relevance | path

Searched refs:WallpaperCropUtils (Results 1 – 9 of 9) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DImagePreviewFragment.java72 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()
DWallpaperPreviewBitmapTransformation.java28 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/
DWallpaperCropUtils.java33 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()
DBitmapProcessor.java59 WallpaperCropUtils.fitToSize(rect, outWidth / DOWNSAMPLE, outHeight / DOWNSAMPLE); in blur()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DWallpaperSetter.java33 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()
DDefaultWallpaperPersister.java50 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/
DAsset.java40 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()
DCurrentWallpaperAssetVN.java34 import com.android.wallpaper.util.WallpaperCropUtils;
143 WallpaperCropUtils.adjustCurrentWallpaperCropRect(context, assetDimensions, cropRect); in adjustCropRect()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/
DPreviewActivityTest.java60 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()