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.java72 final int bitmapHeight = imageResource.getBitmap().getHeight(); in testLoadImageUnspecifiedSize() local
74 assertEquals(options.getValue().outHeight, bitmapHeight); in testLoadImageUnspecifiedSize() local
102 final int bitmapHeight = imageResource.getBitmap().getHeight(); in testLoadImageWithDownsampling() local
104 bitmapHeight >= DOWNSAMPLE_IMAGE_SIZE && in testLoadImageWithDownsampling()
106 bitmapHeight <= DOWNSAMPLE_IMAGE_SIZE * 4)); in testLoadImageWithDownsampling()
/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/Launcher3/src/com/android/launcher3/dragndrop/
DLivePreviewWidgetCell.java79 final int bitmapWidth, bitmapHeight; in generateFromRemoteViews() local
84 bitmapHeight = (int) (viewHeight * scale); in generateFromRemoteViews()
88 bitmapHeight = viewHeight; in generateFromRemoteViews()
91 Bitmap preview = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in generateFromRemoteViews()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DAsset.java303 int bitmapHeight = mBitmap.getHeight(); in doInBackground() local
307 (float) bitmapHeight / measuredHeight); in doInBackground()
310 … mBitmap, Math.round(bitmapWidth / scale), Math.round(bitmapHeight / scale), true); in doInBackground()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DTaskThumbnailView.java361 float bitmapHeight = Math.max((isRotated ? thumbnailWidth : thumbnailHeight) in updateThumbnailMatrix() local
363 if (Math.round(bitmapHeight) < getMeasuredHeight()) { in updateThumbnailMatrix()
364 mClipBottom = bitmapHeight; in updateThumbnailMatrix()
/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()