Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DPatch.cpp50 TextureVertex* Patch::createMesh(const float bitmapWidth, const float bitmapHeight, in createMesh() argument
53 return createMesh(bitmapWidth, bitmapHeight, width, height, mapper, patch); in createMesh()
56 TextureVertex* Patch::createMesh(const float bitmapWidth, const float bitmapHeight, in createMesh() argument
113 const float fixed = bitmapHeight - stretchSize; in createMesh()
140 float v2 = fmax(0.0f, stepY - vOffset) / bitmapHeight; in createMesh()
141 v1 += vOffset / bitmapHeight; in createMesh()
149 v1 = stepY / bitmapHeight; in createMesh()
154 if (previousStepY != bitmapHeight) { in createMesh()
DPatchCache.h58 const uint32_t bitmapWidth, const uint32_t bitmapHeight,
97 PatchDescription(const uint32_t bitmapWidth, const uint32_t bitmapHeight, in PatchDescription()
99 mPatch(patch), mBitmapWidth(bitmapWidth), mBitmapHeight(bitmapHeight), in PatchDescription()
DPatch.h58 TextureVertex* createMesh(const float bitmapWidth, const float bitmapHeight,
60 TextureVertex* createMesh(const float bitmapWidth, const float bitmapHeight,
DPatchCache.cpp242 const uint32_t bitmapWidth, const uint32_t bitmapHeight, in get() argument
245 const PatchDescription description(bitmapWidth, bitmapHeight, pixelWidth, pixelHeight, patch); in get()
254 vertices = newMesh->createMesh(bitmapWidth, bitmapHeight, in get()
257 vertices = newMesh->createMesh(bitmapWidth, bitmapHeight, in get()
/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/core/java/android/transition/
DTransitionUtils.java127 int bitmapHeight = Math.round(bounds.height()); in createViewBitmap() local
128 if (bitmapWidth > 0 && bitmapHeight > 0) { in createViewBitmap()
129 float scale = Math.min(1f, ((float)MAX_IMAGE_SIZE) / (bitmapWidth * bitmapHeight)); in createViewBitmap()
131 bitmapHeight *= scale; in createViewBitmap()
134 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in createViewBitmap()
/frameworks/support/v4/java/android/support/v4/app/
DSharedElementCallback.java142 int bitmapHeight = Math.round(screenBounds.height()); in onCaptureSharedElementSnapshot() local
144 if (bitmapWidth > 0 && bitmapHeight > 0) { in onCaptureSharedElementSnapshot()
150 bitmap = Bitmap.createBitmap(bitmapWidth, bitmapHeight, Bitmap.Config.ARGB_8888); in onCaptureSharedElementSnapshot()
/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/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
DPdfManipulationService.java99 public void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, in renderPage() argument
123 (float) bitmapHeight / srcHeightPts); in renderPage()
126 displayScale = (float) bitmapHeight / dstHeightPts; in renderPage()
149 clip.bottom = (int) (bitmapHeight - paddingBottomPts * displayScale); in renderPage()
155 Bitmap bitmap = getBitmapForSize(bitmapWidth, bitmapHeight); in renderPage()
DIPdfRenderer.aidl29 oneway void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, in renderPage() argument
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java337 final int bitmapHeight; field in PageContentRepository.RenderSpec
340 public RenderSpec(int bitmapWidth, int bitmapHeight, in RenderSpec() argument
343 this.bitmapHeight = bitmapHeight; in RenderSpec()
360 if (bitmapHeight != other.bitmapHeight) { in equals()
379 && bitmap.getHeight() == bitmapHeight; in hasSameSize()
385 result = 31 * result + bitmapHeight; in hashCode()
566 final int bitmapSizeInBytes = renderSpec.bitmapWidth * renderSpec.bitmapHeight in startPreload()
724 * mRenderSpec.bitmapHeight * BYTES_PER_PIXEL; in onPreExecute()
763 mRenderSpec.bitmapHeight, Bitmap.Config.ARGB_8888); in onPreExecute()
/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/core/jni/android/graphics/
DNinePatchImpl.cpp189 const int bitmapHeight = bitmap.height(); in NinePatch_Draw() local
203 int numFixedYPixelsRemaining = bitmapHeight - numStretchyYPixelsRemaining; in NinePatch_Draw()
232 j <= numYDivs && src.fTop < bitmapHeight; in NinePatch_Draw()
237 src.fBottom = bitmapHeight; in NinePatch_Draw()
/frameworks/support/v4/donut/android/support/v4/graphics/drawable/
DRoundedBitmapDrawable.java213 void gravityCompatApply(int gravity, int bitmapWidth, int bitmapHeight, in gravityCompatApply() argument
/frameworks/base/core/java/android/text/
DTextLine.java241 float bitmapHeight = bm.getHeight(); in draw() local
242 float scale = -bmAscent / bitmapHeight; in draw()
/frameworks/base/libs/hwui/font/
DFont.cpp213 uint32_t bitmapWidth, uint32_t bitmapHeight, Rect* bounds, const float* pos) { in drawCachedGlyphBitmap() argument