Home
last modified time | relevance | path

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

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/util/
DFullResImageViewUtil.kt22 import com.android.wallpaper.util.WallpaperCropUtils
50 WallpaperCropUtils.calculateVisibleRect(rawWallpaperSize, viewSize) in getScaleAndCenter()
61 WallpaperCropUtils.calculateMinZoom( in getScaleAndCenter()
66 WallpaperCropUtils.calculateMinZoom( in getScaleAndCenter()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/binder/
DStaticWallpaperPreviewBinder.kt36 import com.android.wallpaper.util.WallpaperCropUtils in <lambda>()
94 WallpaperCropUtils.calculateVisibleRect( in <lambda>()
101 WallpaperCropUtils.calculateMinZoom( in <lambda>()
107 WallpaperCropUtils.calculateCropSurfaceSize( in <lambda>()
163 WallpaperCropUtils.getSystemWallpaperMaximumScale( in <lambda>()
DFullWallpaperPreviewBinder.kt51 import com.android.wallpaper.util.WallpaperCropUtils in <lambda>()
265 WallpaperCropUtils.calculateCropSurfaceSize( in <lambda>()
336 val scale = WallpaperCropUtils.getSystemWallpaperMaximumScale(applicationContext) in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/
DSystemScaledSubsamplingScaleImageView.kt20 import com.android.wallpaper.util.WallpaperCropUtils
32 val scale = WallpaperCropUtils.getSystemWallpaperMaximumScale(context) in onMeasure()
39 val scale = WallpaperCropUtils.getSystemWallpaperMaximumScale(context) in onLayout()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DWallpaperPreviewBitmapTransformation.java28 import com.android.wallpaper.util.WallpaperCropUtils;
57 float scale = WallpaperCropUtils.calculateMinZoom( in transform()
64 Point scaledThumbnailToScreenSize = WallpaperCropUtils.calculateCenterPosition( in transform()
DImagePreviewFragment.java75 import com.android.wallpaper.util.WallpaperCropUtils;
224 float screenScale = WallpaperCropUtils.getScaleOfScreenResolution( in setWallpaper()
405 WallpaperCropUtils.calculateVisibleRect(mRawWallpaperSize, crop); in setDefaultWallpaperZoomAndScroll()
422 final float defaultWallpaperZoom = WallpaperCropUtils.calculateMinZoom( in setDefaultWallpaperZoomAndScroll()
447 Point cropSurfaceSize = WallpaperCropUtils.calculateCropSurfaceSize(res, maxCrop, minCrop, in calculateCropRect()
449 Rect result = WallpaperCropUtils.calculateCropRect(appContext, hostViewSize, in calculateCropRect()
496 float scale = WallpaperCropUtils.getSystemWallpaperMaximumScale(context); in surfaceCreated()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DWallpaperCropUtils.java33 public final class WallpaperCropUtils { class
42 private WallpaperCropUtils() { in WallpaperCropUtils() method in WallpaperCropUtils
176 WallpaperCropUtils.adjustCurrentWallpaperCropRect(context, wallpaperSize, in calculateDefaultCenter()
304 Point defaultCropSize = WallpaperCropUtils.getDefaultCropSurfaceSize( in calculateCropRect()
DBitmapProcessor.java44 WallpaperCropUtils.fitToSize(rect, outWidth / DOWNSAMPLE, outHeight / DOWNSAMPLE); in createLowResBitmap()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPersister.java54 import com.android.wallpaper.util.WallpaperCropUtils;
308 Point defaultCropSurfaceSize = WallpaperCropUtils.getDefaultCropSurfaceSize( in cropAndSetWallpaperBitmapInRotationStatic()
314 WallpaperCropUtils.calculateMinZoom(wallpaperSize, screenSize); in cropAndSetWallpaperBitmapInRotationStatic()
316 PointF centerPosition = WallpaperCropUtils.calculateDefaultCenter(mAppContext, in cropAndSetWallpaperBitmapInRotationStatic()
317 wallpaperSize, WallpaperCropUtils.calculateVisibleRect(wallpaperSize, screenSize)); in cropAndSetWallpaperBitmapInRotationStatic()
325 Rect cropRect = WallpaperCropUtils.calculateCropRect(mAppContext, minWallpaperZoom, in cropAndSetWallpaperBitmapInRotationStatic()
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/
DPreviewActivityTest.java63 import com.android.wallpaper.util.WallpaperCropUtils;
465 Point defaultCropSurfaceSize = WallpaperCropUtils.getDefaultCropSurfaceSize( in testSetsDefaultWallpaperZoomAndScroll()
473 expectedWallpaperZoom = WallpaperCropUtils.calculateMinZoom( in testSetsDefaultWallpaperZoomAndScroll()
483 Point cropSurfaceToScreen = WallpaperCropUtils.calculateCenterPosition( in testSetsDefaultWallpaperZoomAndScroll()
485 Point wallpaperToCropSurface = WallpaperCropUtils.calculateCenterPosition( in testSetsDefaultWallpaperZoomAndScroll()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DCurrentWallpaperAsset.java34 import com.android.wallpaper.util.WallpaperCropUtils;
148 WallpaperCropUtils.adjustCurrentWallpaperCropRect(context, assetDimensions, cropRect); in adjustCropRect()
DAsset.java43 import com.android.wallpaper.util.WallpaperCropUtils;
371 WallpaperCropUtils.calculateVisibleRect(dimensions, screenSize); in loadPreviewImage()
461 WallpaperCropUtils.adjustCropRect(context, cropRect, true /* zoomIn */); in adjustCropRect()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/data/content/
DWallpaperClientImpl.kt61 import com.android.wallpaper.util.WallpaperCropUtils in <lambda>()
653 WallpaperCropUtils.calculateCropRect( in <lambda>()