Searched refs:bitmapWidth (Results 1 – 8 of 8) sorted by relevance
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GeometryMathUtils.java | 429 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/ |
D | FilterCropRepresentation.java | 96 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/ |
D | ImageRequestTest.java | 71 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/ |
D | DecodedImageResource.java | 194 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/widget/ |
D | WidgetImageView.java | 85 float bitmapWidth = mDrawable.getIntrinsicWidth(); in updateDstRectF() local 87 final float scale = bitmapWidth > myWidth ? myWidth / bitmapWidth : 1; in updateDstRectF() 88 float scaledWidth = bitmapWidth * scale; in updateDstRectF()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
D | Asset.java | 398 int bitmapWidth = mBitmap.getWidth(); in doInBackground() local 402 (float) bitmapWidth / measuredWidth, in doInBackground() 406 mBitmap, Math.round(bitmapWidth / scale), Math.round(bitmapHeight / scale), in doInBackground()
|
/packages/apps/TV/src/com/android/tv/util/images/ |
D | ImageLoader.java | 448 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/ |
D | MultiToggleImageButton.java | 404 int bitmapWidth = (width*2) + ((mParentSize - width)/2); in combine() local 406 bitmap = Bitmap.createBitmap(bitmapWidth, height, Bitmap.Config.ARGB_8888); in combine()
|