Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java429 private static Matrix getFullGeometryMatrix(GeometryHolder holder, int bitmapWidth, in getFullGeometryMatrix() argument
431 float centerX = bitmapWidth / 2f; in getFullGeometryMatrix()
440 public static Matrix getFullGeometryToScreenMatrix(GeometryHolder holder, int bitmapWidth, in getFullGeometryToScreenMatrix() argument
443 int bw = bitmapWidth; in getFullGeometryToScreenMatrix()
445 bh = bitmapWidth; in getFullGeometryToScreenMatrix()
450 float s = Math.min(viewWidth / (float) bitmapWidth, viewHeight / (float) bitmapHeight); in getFullGeometryToScreenMatrix()
451 Matrix m = getFullGeometryMatrix(holder, bitmapWidth, bitmapHeight); in getFullGeometryToScreenMatrix()
457 public static RectF getTrueCropRect(GeometryHolder holder, int bitmapWidth, int bitmapHeight) { in getTrueCropRect() argument
459 FilterCropRepresentation.findScaledCrop(r, bitmapWidth, bitmapHeight); in getTrueCropRect()
462 Matrix m1 = getFullGeometryMatrix(holder, bitmapWidth, bitmapHeight); in getTrueCropRect()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterCropRepresentation.java96 public static void findScaledCrop(RectF crop, int bitmapWidth, int bitmapHeight) { in findScaledCrop() argument
97 crop.left *= bitmapWidth; in findScaledCrop()
99 crop.right *= bitmapWidth; in findScaledCrop()
107 public static void findNormalizedCrop(RectF crop, int bitmapWidth, int bitmapHeight) { in findNormalizedCrop() argument
108 crop.left /= bitmapWidth; in findNormalizedCrop()
110 crop.right /= bitmapWidth; in findNormalizedCrop()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DImageRequestTest.java71 final int bitmapWidth = imageResource.getBitmap().getWidth(); in testLoadImageUnspecifiedSize() local
73 assertEquals(options.getValue().outWidth, bitmapWidth); in testLoadImageUnspecifiedSize() local
101 final int bitmapWidth = imageResource.getBitmap().getWidth(); in testLoadImageWithDownsampling() local
103 assertTrue(bitmapWidth >= DOWNSAMPLE_IMAGE_SIZE && in testLoadImageWithDownsampling()
105 (bitmapWidth <= DOWNSAMPLE_IMAGE_SIZE * 4 || in testLoadImageWithDownsampling()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DDecodedImageResource.java194 final int bitmapWidth = bitmap.getWidth(); in loadMediaBlocking() local
201 if (bitmapWidth > 0 && bitmapHeight > 0 && in loadMediaBlocking()
206 (float) descriptor.desiredWidth / bitmapWidth, in loadMediaBlocking()
208 final int targetWidth = (int) (bitmapWidth * targetScale); in loadMediaBlocking()
212 targetWidth != bitmapWidth && targetHeight != bitmapHeight) { in loadMediaBlocking()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DLivePreviewWidgetCell.java79 final int bitmapWidth, bitmapHeight; in generateFromRemoteViews() local
83 bitmapWidth = previewSize; in generateFromRemoteViews()
87 bitmapWidth = viewWidth; in generateFromRemoteViews()
91 Bitmap preview = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in generateFromRemoteViews()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetImageView.java94 float bitmapWidth = mBitmap.getWidth(); in updateDstRectF() local
96 final float scale = bitmapWidth > myWidth ? myWidth / bitmapWidth : 1; in updateDstRectF()
97 float scaledWidth = bitmapWidth * scale; in updateDstRectF()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DAsset.java300 int bitmapWidth = mBitmap.getWidth(); in doInBackground() local
304 (float) bitmapWidth / measuredWidth, in doInBackground()
308 mBitmap, Math.round(bitmapWidth / scale), Math.round(bitmapHeight / scale), in doInBackground()
/packages/apps/TV/src/com/android/tv/util/images/
DImageLoader.java448 int bitmapWidth; in getAspectRatioFromPosterArtUri() local
457 bitmapWidth = bitmapInfo.bitmap.getWidth(); in getAspectRatioFromPosterArtUri()
459 bitmapAspectRatio = (float) bitmapWidth / bitmapHeight; in getAspectRatioFromPosterArtUri()
/packages/apps/Camera2/src/com/android/camera/
DMultiToggleImageButton.java404 int bitmapWidth = (width*2) + ((mParentSize - width)/2); in combine() local
406 bitmap = Bitmap.createBitmap(bitmapWidth, height, Bitmap.Config.ARGB_8888); in combine()