Searched refs:wallpaperSize (Results 1 – 6 of 6) sorted by relevance
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/ |
D | WallpaperCropUtils.java | 172 public static PointF calculateDefaultCenter(Context context, Point wallpaperSize, in calculateDefaultCenter() argument 175 WallpaperCropUtils.adjustCurrentWallpaperCropRect(context, wallpaperSize, in calculateDefaultCenter() 193 public static Rect calculateCropRect(Context context, float wallpaperZoom, Point wallpaperSize, in calculateCropRect() argument 196 int scaledWallpaperWidth = Math.round(wallpaperSize.x * wallpaperZoom); in calculateCropRect() 197 int scaledWallpaperHeight = Math.round(wallpaperSize.y * wallpaperZoom); in calculateCropRect() 322 public static void fitToSize(Rect wallpaperSize, int outWidth, int outHeight) { in fitToSize() argument 323 if (wallpaperSize.isEmpty()) { in fitToSize() 327 float maxSizeIn = Math.max(wallpaperSize.width(), wallpaperSize.height()); in fitToSize() 332 wallpaperSize.left = (int) (wallpaperSize.left * scale + 0.5f); in fitToSize() 333 wallpaperSize.top = (int) (wallpaperSize.top * scale + 0.5f); in fitToSize() [all …]
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/ |
D | WallpaperCropActivity.java | 278 Point wallpaperSize = WallpaperUtils.getDefaultWallpaperSize( in onLoadRequestComplete() local 281 wallpaperSize.x, wallpaperSize.y, false /* leftAligned */); in onLoadRequestComplete() 282 mCropView.setScale(req.scaleAndOffsetProvider.getScale(wallpaperSize, crop)); in onLoadRequestComplete() 476 float getScale(Point wallpaperSize, RectF crop);
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/tileinfo/ |
D | ResourceWallpaperInfo.java | 32 public float getScale(Point wallpaperSize, RectF crop) { in onClick() 33 return wallpaperSize.x /crop.width(); in onClick()
|
D | DefaultWallpaperInfo.java | 45 public float getScale(Point wallpaperSize, RectF crop) { in onClick()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultWallpaperPersister.java | 427 Point wallpaperSize = new Point(wallpaperBitmap.getWidth(), wallpaperBitmap.getHeight()); in cropAndSetWallpaperBitmapInRotationStatic() local 438 WallpaperCropUtils.calculateMinZoom(wallpaperSize, screenSize); in cropAndSetWallpaperBitmapInRotationStatic() 441 wallpaperSize, WallpaperCropUtils.calculateVisibleRect(wallpaperSize, screenSize)); in cropAndSetWallpaperBitmapInRotationStatic() 450 wallpaperSize, defaultCropSurfaceSize, screenSize, offsetX, offsetY); in cropAndSetWallpaperBitmapInRotationStatic()
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/ |
D | PreviewActivityTest.java | 418 Point wallpaperSize = new Point(asset.getBitmap().getWidth(), in testSetsDefaultWallpaperZoomAndScroll() local 422 wallpaperSize, defaultCropSurfaceSize); in testSetsDefaultWallpaperZoomAndScroll() 429 (int) (wallpaperSize.x * expectedWallpaperZoom), in testSetsDefaultWallpaperZoomAndScroll() 430 (int) (wallpaperSize.y * expectedWallpaperZoom)); in testSetsDefaultWallpaperZoomAndScroll()
|