/frameworks/base/core/java/android/transition/ |
D | TransitionUtils.java | 128 int bitmapWidth = (int) (width * scale); in createDrawableBitmap() local 138 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight); in createDrawableBitmap() 174 int bitmapWidth = Math.round(bounds.width()); 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() 178 bitmapWidth *= scale; in createViewBitmap() 184 final Canvas canvas = picture.beginRecording(bitmapWidth, bitmapHeight); in createViewBitmap()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | RedEyeFilter.java | 154 int bitmapWidth = mWidth / 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/ |
D | GlifPatternDrawable.java | 112 final int bitmapWidth = bitmap.getWidth(); in draw() local 116 if (drawableWidth > bitmapWidth && bitmapWidth < VIEWBOX_WIDTH * MAX_CACHED_BITMAP_SCALE) { in draw() 245 int bitmapWidth = bitmap.getWidth(); in scaleCanvasToBounds() local 247 float scaleX = drawableBounds.width() / (float) bitmapWidth; in scaleCanvasToBounds() 255 canvas.scale(scaleY / scaleX, 1f, SCALE_FOCUS_X * bitmapWidth, 0f); in scaleCanvasToBounds()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
D | PdfManipulationService.java | 105 public void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, in renderPage() argument 127 displayScale = Math.min((float) bitmapWidth / srcWidthPts, in renderPage() 133 displayScale = (float) bitmapWidth / dstWidthPts; in renderPage() 141 matrix.postTranslate(bitmapWidth - srcWidthPts * displayScale, 0); in renderPage() 153 clip.right = (int) (bitmapWidth - paddingRightPts * displayScale); in renderPage() 160 Bitmap bitmap = getBitmapForSize(bitmapWidth, bitmapHeight); in renderPage()
|
D | IPdfRenderer.aidl | 29 oneway void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, in renderPage() argument
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | PageContentRepository.java | 361 final int bitmapWidth; field in PageContentRepository.RenderSpec 365 public RenderSpec(int bitmapWidth, int bitmapHeight, in RenderSpec() argument 367 this.bitmapWidth = bitmapWidth; in RenderSpec() 388 if (bitmapWidth != other.bitmapWidth) { in equals() 403 return bitmap.getWidth() == bitmapWidth in hasSameSize() 409 int result = bitmapWidth; in hashCode() 590 final int bitmapSizeInBytes = renderSpec.bitmapWidth * renderSpec.bitmapHeight in startPreload() 838 final int bitmapSizeInBytes = mRenderSpec.bitmapWidth in onPreExecute() 877 Bitmap bitmap = Bitmap.createBitmap(mRenderSpec.bitmapWidth, in onPreExecute()
|
/frameworks/ex/framesequence/src/android/support/rastermill/ |
D | FrameSequenceDrawable.java | 409 final int bitmapWidth = getIntrinsicWidth(); in draw() local 411 final float scaleX = 1.0f * bounds.width() / bitmapWidth; in draw() 426 (bitmapWidth - scaledDiameterX) / 2.0f, in draw() 428 (bitmapWidth + scaledDiameterX) / 2.0f, in draw()
|
/frameworks/base/core/java/com/android/internal/graphics/palette/ |
D | Palette.java | 900 final int bitmapWidth = bitmap.getWidth(); 902 final int[] pixels = new int[bitmapWidth * bitmapHeight]; 903 bitmap.getPixels(pixels, 0, bitmapWidth, 0, 0, bitmapWidth, bitmapHeight); 917 System.arraycopy(pixels, ((row + mRegion.top) * bitmapWidth) + mRegion.left,
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | Icon.java | 876 int bitmapWidth = bitmap.getWidth(); in scaleDownIfNecessary() local 878 if (bitmapWidth > maxWidth || bitmapHeight > maxHeight) { in scaleDownIfNecessary() 879 float scale = Math.min((float) maxWidth / bitmapWidth, in scaleDownIfNecessary() 882 Math.max(1, (int) (scale * bitmapWidth)), in scaleDownIfNecessary()
|