Home
last modified time | relevance | path

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

/frameworks/support/v4/java/android/support/v4/app/
DSharedElementCallback.java191 int bitmapHeight = Math.round(screenBounds.height()); in onCaptureSharedElementSnapshot() local
193 if (bitmapWidth > 0 && bitmapHeight > 0) { in onCaptureSharedElementSnapshot()
194 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight)); in onCaptureSharedElementSnapshot()
196 bitmapHeight *= scale; in onCaptureSharedElementSnapshot()
203 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in onCaptureSharedElementSnapshot()
226 int bitmapHeight = (int) (height * scale); in createDrawableBitmap() local
227 Bitmap bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in createDrawableBitmap()
234 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.cpp40 Patch::Patch(const float bitmapWidth, const float bitmapHeight, in Patch() argument
95 const float fixed = bitmapHeight - stretchSize; in Patch()
122 float v2 = std::max(0.0f, stepY - vOffset) / bitmapHeight; in Patch()
123 v1 += vOffset / bitmapHeight; in Patch()
131 v1 = stepY / bitmapHeight; in Patch()
136 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.cpp250 const uint32_t bitmapWidth, const uint32_t bitmapHeight, in get() argument
253 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch); in get()
258 Patch* newMesh = new Patch(bitmapWidth, bitmapHeight, in get()
DPatch.h42 Patch(const float bitmapWidth, const float bitmapHeight,
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java338 final int bitmapHeight; field in PageContentRepository.RenderSpec
341 public RenderSpec(int bitmapWidth, int bitmapHeight, in RenderSpec() argument
344 this.bitmapHeight = bitmapHeight; in RenderSpec()
361 if (bitmapHeight != other.bitmapHeight) { in equals()
380 && bitmap.getHeight() == bitmapHeight; in hasSameSize()
386 result = 31 * result + bitmapHeight; in hashCode()
526 final int bitmapSizeInBytes = renderSpec.bitmapWidth * renderSpec.bitmapHeight in startPreload()
769 * mRenderSpec.bitmapHeight * BYTES_PER_PIXEL; in onPreExecute()
808 mRenderSpec.bitmapHeight, Bitmap.Config.ARGB_8888); in onPreExecute()
/frameworks/support/v4/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/support/v4/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/packages/PrintSpooler/src/com/android/printspooler/renderer/
DPdfManipulationService.java105 public void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, in renderPage() argument
129 (float) bitmapHeight / srcHeightPts); in renderPage()
132 displayScale = (float) bitmapHeight / dstHeightPts; in renderPage()
155 clip.bottom = (int) (bitmapHeight - paddingBottomPts * displayScale); in renderPage()
161 Bitmap bitmap = getBitmapForSize(bitmapWidth, bitmapHeight); in renderPage()
DIPdfRenderer.aidl29 oneway void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, in renderPage() argument
/frameworks/base/core/jni/android/graphics/
DNinePatchImpl.cpp181 const int bitmapHeight = bitmap.height(); in NinePatch_Draw() local
198 int numFixedYPixelsRemaining = bitmapHeight - numStretchyYPixelsRemaining; in NinePatch_Draw()
227 j <= numYDivs && src.fTop < bitmapHeight; in NinePatch_Draw()
232 src.fBottom = bitmapHeight; in NinePatch_Draw()
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java216 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, in gravityCompatApply() argument
/frameworks/base/core/java/android/text/
DTextLine.java244 float bitmapHeight = bm.getHeight(); in draw() local
245 float scale = -bmAscent / bitmapHeight; in draw()
/frameworks/base/libs/hwui/font/
DFont.cpp212 uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) { in drawCachedGlyphBitmap() argument