Searched refs:bitmapHeight (Results 1 - 21 of 21) sorted by relevance

/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
H A DIPdfRenderer.aidl29 oneway void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight,
H A DPdfManipulationService.java105 public void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, argument
128 (float) bitmapHeight / srcHeightPts);
131 displayScale = (float) bitmapHeight / dstHeightPts;
154 clip.bottom = (int) (bitmapHeight - paddingBottomPts * displayScale);
160 Bitmap bitmap = getBitmapForSize(bitmapWidth, bitmapHeight);
/frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/
H A DRoundedBitmapDrawable21.java54 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, argument
56 Gravity.apply(gravity, bitmapWidth, bitmapHeight,
H A DRoundedBitmapDrawableFactory.java60 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, argument
62 GravityCompat.apply(gravity, bitmapWidth, bitmapHeight,
H A DRoundedBitmapDrawable.java221 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, argument
/frameworks/support/compat/src/main/java/androidx/core/app/
H A DSharedElementCallback.java190 int bitmapHeight = Math.round(screenBounds.height());
192 if (bitmapWidth > 0 && bitmapHeight > 0) {
193 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
195 bitmapHeight = (int) (bitmapHeight * scale);
202 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
225 int bitmapHeight = (int) (height * scale);
226 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
233 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DRedEyeFilter.java155 int bitmapHeight = mHeight / 2;
157 Bitmap redEyeBitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
160 mRadius = Math.max(MIN_RADIUS, RADIUS_RATIO * Math.min(bitmapWidth, bitmapHeight));
163 mCanvas.drawCircle(mCenters[i] * bitmapWidth, mCenters[i + 1] * bitmapHeight,
167 FrameFormat format = ImageFormat.create(bitmapWidth, bitmapHeight,
/frameworks/base/core/java/android/transition/
H A DTransitionUtils.java129 int bitmapHeight = (int) (height * scale);
138 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight);
175 int bitmapHeight = Math.round(bounds.height());
176 if (bitmapWidth > 0 && bitmapHeight > 0) {
177 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
179 bitmapHeight *= scale;
184 final Canvas canvas = picture.beginRecording(bitmapWidth, bitmapHeight);
/frameworks/support/transition/src/main/java/androidx/transition/
H A DTransitionUtils.java112 int bitmapHeight = Math.round(bounds.height());
113 if (bitmapWidth > 0 && bitmapHeight > 0) {
114 float scale = Math.min(1f, ((float) MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight));
116 bitmapHeight = Math.round(bitmapHeight * scale);
123 final Canvas canvas = picture.beginRecording(bitmapWidth, bitmapHeight);
130 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888);
/frameworks/base/libs/hwui/
H A DPatchCache.h56 const Patch* get(const uint32_t bitmapWidth, const uint32_t bitmapHeight,
87 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, argument
92 , mBitmapHeight(bitmapHeight)
H A DPatch.cpp38 Patch::Patch(const float bitmapWidth, const float bitmapHeight, float width, float height, argument
92 const float fixed = bitmapHeight - stretchSize;
119 float v2 = std::max(0.0f, stepY - vOffset) / bitmapHeight;
120 v1 += vOffset / bitmapHeight;
128 v1 = stepY / bitmapHeight;
133 if (previousStepY != bitmapHeight) {
H A DPatch.h42 Patch(const float bitmapWidth, const float bitmapHeight, float width, float height,
H A DPatchCache.cpp226 const Patch* PatchCache::get(const uint32_t bitmapWidth, const uint32_t bitmapHeight, argument
229 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch);
234 new Patch(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, sIdentity, patch);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
H A DGlifPatternDrawable.java114 final int bitmapHeight = bitmap.getHeight();
120 } else if (drawableHeight > bitmapHeight
121 && bitmapHeight < VIEWBOX_HEIGHT * MAX_CACHED_BITMAP_SCALE) {
252 int bitmapHeight = bitmap.getHeight();
254 float scaleY = drawableBounds.height() / (float) bitmapHeight;
265 canvas.scale(1f, scaleX / scaleY, 0f, SCALE_FOCUS_Y * bitmapHeight);
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/
H A DTestUtils.java58 final int bitmapHeight = view.getHeight();
61 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight,
151 int bitmapWidth, int bitmapHeight, @ColorInt int color,
154 for (int row = 0; row < bitmapHeight; row++) {
164 + bitmapWidth + "," + bitmapHeight + ") found "
150 assertAllPixelsOfColor(String failMessagePrefix, @NonNull Bitmap bitmap, int bitmapWidth, int bitmapHeight, @ColorInt int color, int allowedComponentVariance, boolean throwExceptionIfFails) argument
/frameworks/ex/framesequence/src/android/support/rastermill/
H A DFrameSequenceDrawable.java410 final int bitmapHeight = getIntrinsicHeight();
412 final float scaleY = 1.0f * bounds.height() / bitmapHeight;
427 (bitmapHeight - scaledDiameterY) / 2.0f,
429 (bitmapHeight + scaledDiameterY) / 2.0f);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DPageContentRepository.java362 final int bitmapHeight; field in class:PageContentRepository.RenderSpec
365 public RenderSpec(int bitmapWidth, int bitmapHeight, argument
368 this.bitmapHeight = bitmapHeight;
385 if (bitmapHeight != other.bitmapHeight) {
404 && bitmap.getHeight() == bitmapHeight;
410 result = 31 * result + bitmapHeight;
590 final int bitmapSizeInBytes = renderSpec.bitmapWidth * renderSpec.bitmapHeight
839 * mRenderSpec.bitmapHeight * BYTES_PER_PIXE
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DIcon.java854 int bitmapHeight = bitmap.getHeight();
855 if (bitmapWidth > maxWidth || bitmapHeight > maxHeight) {
857 (float) maxHeight / bitmapHeight);
860 Math.max(1, (int) (scale * bitmapHeight)),
/frameworks/base/core/java/com/android/internal/graphics/palette/
H A 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);
/frameworks/support/palette/src/main/java/androidx/palette/graphics/
H A DPalette.java886 final int bitmapHeight = bitmap.getHeight();
887 final int[] pixels = new int[bitmapWidth * bitmapHeight];
888 bitmap.getPixels(pixels, 0, bitmapWidth, 0, 0, bitmapWidth, bitmapHeight);
/frameworks/base/libs/hwui/font/
H A DFont.cpp205 uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds,
204 drawCachedGlyphBitmap(CachedGlyphInfo* glyph, int x, int y, uint8_t* bitmap, uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) argument

Completed in 2340 milliseconds