Home
last modified time | relevance | path

Searched refs:bitmapHeight (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java430 int bitmapHeight) { in getFullGeometryMatrix() argument
432 float centerY = bitmapHeight / 2f; in getFullGeometryMatrix()
441 int bitmapHeight, int viewWidth, int viewHeight) { in getFullGeometryToScreenMatrix() argument
442 int bh = bitmapHeight; in getFullGeometryToScreenMatrix()
446 bw = bitmapHeight; 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
98 crop.top *= bitmapHeight; in findScaledCrop()
100 crop.bottom *= bitmapHeight; in findScaledCrop()
107 public static void findNormalizedCrop(RectF crop, int bitmapWidth, int bitmapHeight) { in findNormalizedCrop() argument
109 crop.top /= bitmapHeight; in findNormalizedCrop()
111 crop.bottom /= bitmapHeight; in findNormalizedCrop()
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
DImageRequestTest.java73 final int bitmapHeight = imageResource.getBitmap().getHeight(); in testLoadImageUnspecifiedSize() local
75 assertEquals(options.getValue().outHeight, bitmapHeight); in testLoadImageUnspecifiedSize() local
103 final int bitmapHeight = imageResource.getBitmap().getHeight(); in testLoadImageWithDownsampling() local
105 bitmapHeight >= DOWNSAMPLE_IMAGE_SIZE && in testLoadImageWithDownsampling()
107 bitmapHeight <= DOWNSAMPLE_IMAGE_SIZE * 4)); in testLoadImageWithDownsampling()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetImageView.java79 final float bitmapHeight = mDrawable.getIntrinsicHeight(); in updateDstRectF() local
80 final float bitmapAspectRatio = bitmapWidth / bitmapHeight; in updateDstRectF()
86 : myHeight / bitmapHeight; in updateDstRectF()
89 final float scaledHeight = bitmapHeight * scale; in updateDstRectF()
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
DDecodedImageResource.java195 final int bitmapHeight = bitmap.getHeight(); in loadMediaBlocking() local
201 if (bitmapWidth > 0 && bitmapHeight > 0 && in loadMediaBlocking()
207 (float) descriptor.desiredHeight / bitmapHeight); in loadMediaBlocking()
209 final int targetHeight = (int) (bitmapHeight * targetScale); in loadMediaBlocking()
212 targetWidth != bitmapWidth && targetHeight != bitmapHeight) { in loadMediaBlocking()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DAsset.java475 int bitmapHeight = bitmap.getHeight(); in centerCropBitmap() local
479 (float) bitmapHeight / measuredHeight); in centerCropBitmap()
482 bitmap, Math.round(bitmapWidth / scale), Math.round(bitmapHeight / scale), in centerCropBitmap()
/packages/apps/TV/src/com/android/tv/util/images/
DImageLoader.java449 int bitmapHeight; in getAspectRatioFromPosterArtUri() local
458 bitmapHeight = bitmapInfo.bitmap.getHeight(); in getAspectRatioFromPosterArtUri()
459 bitmapAspectRatio = (float) bitmapWidth / bitmapHeight; in getAspectRatioFromPosterArtUri()
/packages/apps/Camera2/src/com/android/camera/
DMultiToggleImageButton.java395 int bitmapHeight = (height*2) + ((mParentSize - height)/2); in combine() local
397 bitmap = Bitmap.createBitmap(width, bitmapHeight, Bitmap.Config.ARGB_8888); in combine()