/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/ |
D | ImageWallpaperTest.java | 225 private void setBitmapDimensions(int bitmapWidth, int bitmapHeight) { 227 .thenReturn(new Rect(0, 0, bitmapWidth, bitmapHeight)); 228 when(mWallpaperBitmap.getWidth()).thenReturn(bitmapWidth); 232 private void testMinSurfaceHelper(int bitmapWidth, int bitmapHeight) { 233 testSurfaceHelper(bitmapWidth, bitmapHeight, 234 Math.max(ImageWallpaper.CanvasEngine.MIN_SURFACE_WIDTH, bitmapWidth), 238 private void testSurfaceHelper(int bitmapWidth, int bitmapHeight, 242 setBitmapDimensions(bitmapWidth, bitmapHeight);
|
/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/base/core/java/com/android/internal/graphics/palette/ |
D | Palette.java | 401 int bitmapWidth = bitmap.getWidth(); 403 int[] pixels = new int[bitmapWidth * bitmapHeight]; 404 bitmap.getPixels(pixels, 0, bitmapWidth, 0, 0, bitmapWidth, bitmapHeight); 420 ((row + mRegion.top) * bitmapWidth) + mRegion.left,
|
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/ |
D | RadioMetadataTest.java | 539 int bitmapWidth = 20; in build_withRadioMetadataAboveSizeRequirement() local 541 int bitmapHeightResized = (bitmapHeight * bitmapWidthResized) / bitmapWidth; in build_withRadioMetadataAboveSizeRequirement() 544 doReturn(bitmapWidth).when(mBitmapValue).getWidth(); in build_withRadioMetadataAboveSizeRequirement()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | Icon.java | 1141 int bitmapWidth = bitmap.getWidth(); in scaleDownIfNecessary() local 1143 if (bitmapWidth > maxWidth || bitmapHeight > maxHeight) { in scaleDownIfNecessary() 1144 float scale = Math.min((float) maxWidth / bitmapWidth, in scaleDownIfNecessary() 1147 Math.max(1, (int) (scale * bitmapWidth)), in scaleDownIfNecessary()
|