/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | GeometryMathUtils.java | 430 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() 451 Matrix m = getFullGeometryMatrix(holder, bitmapWidth, bitmapHeight); in getFullGeometryToScreenMatrix() 459 FilterCropRepresentation.findScaledCrop(r, bitmapWidth, bitmapHeight); in getTrueCropRect() 462 Matrix m1 = getFullGeometryMatrix(holder, bitmapWidth, bitmapHeight); in getTrueCropRect() 469 int bitmapWidth, int bitmapHeight, int viewWidth, int viewHeight) { in getCropSelectionToScreenMatrix() argument 470 Matrix m = getFullGeometryMatrix(holder, bitmapWidth, bitmapHeight); in getCropSelectionToScreenMatrix() [all …]
|
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
H A D | FilterCropRepresentation.java | 96 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()
|
/aosp12/frameworks/base/core/java/android/transition/ |
H A D | TransitionUtils.java | 129 int bitmapHeight = (int) (height * scale); in createDrawableBitmap() local 138 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight); in createDrawableBitmap() 175 int bitmapHeight = Math.round(bounds.height()); in createViewBitmap() local 176 if (bitmapWidth > 0 && bitmapHeight > 0) { in createViewBitmap() 177 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight)); in createViewBitmap() 179 bitmapHeight *= scale; in createViewBitmap() 184 final Canvas canvas = picture.beginRecording(bitmapWidth, bitmapHeight); in createViewBitmap()
|
/aosp12/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/ |
H A D | ImageRequestTest.java | 72 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()
|
/aosp12/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
H A D | RedEyeFilter.java | 155 int bitmapHeight = mHeight / 2; in createRedEyeFrame() local 157 … Bitmap redEyeBitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in createRedEyeFrame() 160 mRadius = Math.max(MIN_RADIUS, RADIUS_RATIO * Math.min(bitmapWidth, bitmapHeight)); in createRedEyeFrame() 163 mCanvas.drawCircle(mCenters[i] * bitmapWidth, mCenters[i + 1] * bitmapHeight, in createRedEyeFrame() 167 FrameFormat format = ImageFormat.create(bitmapWidth, bitmapHeight, in createRedEyeFrame()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
H A D | DecodedImageResource.java | 195 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()
|
/aosp12/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | GlifPatternDrawable.java | 113 final int bitmapHeight = bitmap.getHeight(); in draw() local 118 } else if (drawableHeight > bitmapHeight in draw() 119 && bitmapHeight < VIEWBOX_HEIGHT * MAX_CACHED_BITMAP_SCALE) { in draw() 246 int bitmapHeight = bitmap.getHeight(); in scaleCanvasToBounds() local 248 float scaleY = drawableBounds.height() / (float) bitmapHeight; in scaleCanvasToBounds() 259 canvas.scale(1f, scaleX / scaleY, 0f, SCALE_FOCUS_Y * bitmapHeight); in scaleCanvasToBounds()
|
/aosp12/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
H A D | PageContentRepository.java | 362 final int bitmapHeight; field in PageContentRepository.RenderSpec 365 public RenderSpec(int bitmapWidth, int bitmapHeight, in RenderSpec() argument 368 this.bitmapHeight = bitmapHeight; in RenderSpec() 385 if (bitmapHeight != other.bitmapHeight) { in equals() 404 && bitmap.getHeight() == bitmapHeight; in hasSameSize() 410 result = 31 * result + bitmapHeight; in hashCode() 590 final int bitmapSizeInBytes = renderSpec.bitmapWidth * renderSpec.bitmapHeight in startPreload() 839 * mRenderSpec.bitmapHeight * BYTES_PER_PIXEL; in onPreExecute() 878 mRenderSpec.bitmapHeight, Bitmap.Config.ARGB_8888); in onPreExecute()
|
/aosp12/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
H A D | PdfManipulationService.java | 105 public void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, in renderPage() argument 128 (float) bitmapHeight / srcHeightPts); in renderPage() 131 displayScale = (float) bitmapHeight / dstHeightPts; in renderPage() 154 clip.bottom = (int) (bitmapHeight - paddingBottomPts * displayScale); in renderPage() 160 Bitmap bitmap = getBitmapForSize(bitmapWidth, bitmapHeight); in renderPage()
|
H A D | IPdfRenderer.aidl | 29 oneway void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, in renderPage() argument
|
/aosp12/frameworks/ex/framesequence/src/android/support/rastermill/ |
H A D | FrameSequenceDrawable.java | 410 final int bitmapHeight = getIntrinsicHeight(); in draw() local 412 final float scaleY = 1.0f * bounds.height() / bitmapHeight; in draw() 427 (bitmapHeight - scaledDiameterY) / 2.0f, in draw() 429 (bitmapHeight + scaledDiameterY) / 2.0f); in draw()
|
/aosp12/frameworks/base/core/java/com/android/internal/graphics/palette/ |
H A D | Palette.java | 402 int bitmapHeight = bitmap.getHeight(); 403 int[] pixels = new int[bitmapWidth * bitmapHeight]; 404 bitmap.getPixels(pixels, 0, bitmapWidth, 0, 0, bitmapWidth, bitmapHeight);
|
/aosp12/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/ |
H A D | Asset.java | 399 int bitmapHeight = mBitmap.getHeight(); in doInBackground() local 403 (float) bitmapHeight / measuredHeight); in doInBackground() 406 mBitmap, Math.round(bitmapWidth / scale), Math.round(bitmapHeight / scale), in doInBackground()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
H A D | BubbleIconFactory.java | 112 final int bitmapHeight = c.getHeight() - 2 * (int) ringStrokeWidth; in getBadgeBitmap() local 115 bitmapHeight, /* filter */ true); in getBadgeBitmap()
|
/aosp12/packages/apps/TV/src/com/android/tv/util/images/ |
H A D | ImageLoader.java | 449 int bitmapHeight; in getAspectRatioFromPosterArtUri() local 458 bitmapHeight = bitmapInfo.bitmap.getHeight(); in getAspectRatioFromPosterArtUri() 459 bitmapAspectRatio = (float) bitmapWidth / bitmapHeight; in getAspectRatioFromPosterArtUri()
|
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | Icon.java | 964 int bitmapHeight = bitmap.getHeight(); in scaleDownIfNecessary() local 965 if (bitmapWidth > maxWidth || bitmapHeight > maxHeight) { in scaleDownIfNecessary() 967 (float) maxHeight / bitmapHeight); in scaleDownIfNecessary() 970 Math.max(1, (int) (scale * bitmapHeight)), in scaleDownIfNecessary()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/ |
H A D | MultiToggleImageButton.java | 395 int bitmapHeight = (height*2) + ((mParentSize - height)/2); in combine() local 397 bitmap = Bitmap.createBitmap(width, bitmapHeight, Bitmap.Config.ARGB_8888); in combine()
|