Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/transition/
DTransitionUtils.java129 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()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
DRedEyeFilter.java155 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()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DGlifPatternDrawable.java113 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()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java362 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()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
DPdfManipulationService.java105 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()
DIPdfRenderer.aidl29 oneway void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, in renderPage() argument
/frameworks/ex/framesequence/src/android/support/rastermill/
DFrameSequenceDrawable.java410 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()
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java877 int bitmapHeight = bitmap.getHeight(); in scaleDownIfNecessary() local
878 if (bitmapWidth > maxWidth || bitmapHeight > maxHeight) { in scaleDownIfNecessary()
880 (float) maxHeight / bitmapHeight); in scaleDownIfNecessary()
883 Math.max(1, (int) (scale * bitmapHeight)), in scaleDownIfNecessary()
/frameworks/base/core/java/com/android/internal/graphics/palette/
DPalette.java901 final int bitmapHeight = bitmap.getHeight();
902 final int[] pixels = new int[bitmapWidth * bitmapHeight];
903 bitmap.getPixels(pixels, 0, bitmapWidth, 0, 0, bitmapWidth, bitmapHeight);