Home
last modified time | relevance | path

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

/frameworks/support/compat/java/android/support/v4/app/
DSharedElementCallback.java190 int bitmapHeight = Math.round(screenBounds.height()); in onCaptureSharedElementSnapshot() local
192 if (bitmapWidth > 0 && bitmapHeight > 0) { in onCaptureSharedElementSnapshot()
193 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight)); in onCaptureSharedElementSnapshot()
195 bitmapHeight *= scale; in onCaptureSharedElementSnapshot()
202 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in onCaptureSharedElementSnapshot()
225 int bitmapHeight = (int) (height * scale); in createDrawableBitmap() local
226 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in createDrawableBitmap()
233 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight); in createDrawableBitmap()
/frameworks/base/core/java/android/transition/
DTransitionUtils.java128 int bitmapHeight = (int) (height * scale); in createDrawableBitmap() local
129 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in createDrawableBitmap()
136 drawable.setBounds(0, 0, bitmapWidth, bitmapHeight); in createDrawableBitmap()
158 int bitmapHeight = Math.round(bounds.height()); in createViewBitmap() local
159 if (bitmapWidth > 0 && bitmapHeight > 0) { in createViewBitmap()
160 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight)); in createViewBitmap()
162 bitmapHeight *= scale; in createViewBitmap()
165 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); 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/base/libs/hwui/
DPatch.cpp38 Patch::Patch(const float bitmapWidth, const float bitmapHeight, in Patch() argument
93 const float fixed = bitmapHeight - stretchSize; in Patch()
120 float v2 = std::max(0.0f, stepY - vOffset) / bitmapHeight; in Patch()
121 v1 += vOffset / bitmapHeight; in Patch()
129 v1 = stepY / bitmapHeight; in Patch()
134 if (previousStepY != bitmapHeight) { in Patch()
DPatchCache.h59 const uint32_t bitmapWidth, const uint32_t bitmapHeight,
98 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, in PatchDescription()
100 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight), in PatchDescription()
DPatchCache.cpp240 const uint32_t bitmapWidth, const uint32_t bitmapHeight, in get() argument
243 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch); in get()
248 Patch* newMesh = new Patch(bitmapWidth, bitmapHeight, in get()
DPatch.h42 Patch(const float bitmapWidth, const float bitmapHeight,
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/
DGlifPatternDrawable.java115 final int bitmapHeight = bitmap.getHeight(); in draw() local
121 } else if (drawableHeight > bitmapHeight in draw()
122 && bitmapHeight < VIEWBOX_HEIGHT * MAX_CACHED_BITMAP_SCALE) { in draw()
260 int bitmapHeight = bitmap.getHeight(); in scaleCanvasToBounds() local
262 float scaleY = drawableBounds.height() / (float) bitmapHeight; in scaleCanvasToBounds()
273 canvas.scale(1f, scaleX / scaleY, 0f, SCALE_FOCUS_Y * bitmapHeight); in scaleCanvasToBounds()
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
DTestUtils.java52 final int bitmapHeight = view.getHeight(); in getCombinedBackgroundBitmap() local
55 final Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, in getCombinedBackgroundBitmap()
145 int bitmapWidth, int bitmapHeight, @ColorInt int color, in assertAllPixelsOfColor() argument
148 for (int row = 0; row < bitmapHeight; row++) { in assertAllPixelsOfColor()
158 + bitmapWidth + "," + bitmapHeight + ") found " in assertAllPixelsOfColor()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java339 final int bitmapHeight; field in PageContentRepository.RenderSpec
342 public RenderSpec(int bitmapWidth, int bitmapHeight, in RenderSpec() argument
345 this.bitmapHeight = bitmapHeight; in RenderSpec()
362 if (bitmapHeight != other.bitmapHeight) { in equals()
381 && bitmap.getHeight() == bitmapHeight; in hasSameSize()
387 result = 31 * result + bitmapHeight; in hashCode()
532 final int bitmapSizeInBytes = renderSpec.bitmapWidth * renderSpec.bitmapHeight in startPreload()
776 * mRenderSpec.bitmapHeight * BYTES_PER_PIXEL; in onPreExecute()
815 mRenderSpec.bitmapHeight, Bitmap.Config.ARGB_8888); in onPreExecute()
/frameworks/support/core-utils/api21/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable21.java51 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, in gravityCompatApply() argument
53 Gravity.apply(gravity, bitmapWidth, bitmapHeight, in gravityCompatApply()
/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/support/core-utils/java/android/support/v4/graphics/drawable/
DRoundedBitmapDrawableFactory.java55 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, in gravityCompatApply() argument
57 GravityCompat.apply(gravity, bitmapWidth, bitmapHeight, in gravityCompatApply()
/frameworks/base/libs/hwui/utils/
DNinePatchImpl.cpp179 const int bitmapHeight = bitmap.height(); in Draw() local
196 int numFixedYPixelsRemaining = bitmapHeight - numStretchyYPixelsRemaining; in Draw()
225 j <= numYDivs && src.fTop < bitmapHeight; in Draw()
230 src.fBottom = bitmapHeight; in Draw()
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/
DPalette.java880 final int bitmapHeight = bitmap.getHeight();
881 final int[] pixels = new int[bitmapWidth * bitmapHeight];
882 bitmap.getPixels(pixels, 0, bitmapWidth, 0, 0, bitmapWidth, bitmapHeight);
/frameworks/support/core-utils/gingerbread/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java216 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, in gravityCompatApply() argument
/frameworks/base/libs/hwui/font/
DFont.cpp207 uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) { in drawCachedGlyphBitmap() argument