Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/
DImageWallpaperTest.java225 private void setBitmapDimensions(int bitmapWidth, int bitmapHeight) {
227 .thenReturn(new Rect(0, 0, bitmapWidth, bitmapHeight));
229 when(mWallpaperBitmap.getHeight()).thenReturn(bitmapHeight);
232 private void testMinSurfaceHelper(int bitmapWidth, int bitmapHeight) {
233 testSurfaceHelper(bitmapWidth, bitmapHeight,
235 Math.max(ImageWallpaper.CanvasEngine.MIN_SURFACE_HEIGHT, bitmapHeight));
238 private void testSurfaceHelper(int bitmapWidth, int bitmapHeight,
242 setBitmapDimensions(bitmapWidth, bitmapHeight);
/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/base/core/java/com/android/internal/graphics/palette/
DPalette.java402 int bitmapHeight = bitmap.getHeight();
403 int[] pixels = new int[bitmapWidth * bitmapHeight];
404 bitmap.getPixels(pixels, 0, bitmapWidth, 0, 0, bitmapWidth, bitmapHeight);
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/
DRadioMetadataTest.java538 int bitmapHeight = 10; in build_withRadioMetadataAboveSizeRequirement() local
541 int bitmapHeightResized = (bitmapHeight * bitmapWidthResized) / bitmapWidth; in build_withRadioMetadataAboveSizeRequirement()
543 doReturn(bitmapHeight).when(mBitmapValue).getHeight(); in build_withRadioMetadataAboveSizeRequirement()
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java1142 int bitmapHeight = bitmap.getHeight(); in scaleDownIfNecessary() local
1143 if (bitmapWidth > maxWidth || bitmapHeight > maxHeight) { in scaleDownIfNecessary()
1145 (float) maxHeight / bitmapHeight); in scaleDownIfNecessary()
1148 Math.max(1, (int) (scale * bitmapHeight)), in scaleDownIfNecessary()