Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DPatchCache.h50 Patch* get(const float bitmapWidth, const float bitmapHeight,
69 PatchDescription(): bitmapWidth(0), bitmapHeight(0), pixelWidth(0), pixelHeight(0), in PatchDescription()
73 PatchDescription(const float bitmapWidth, const float bitmapHeight, in PatchDescription()
77 bitmapWidth(bitmapWidth), bitmapHeight(bitmapHeight), in PatchDescription()
85 LTE_FLOAT(bitmapHeight) { in LTE_FLOAT()
104 float bitmapHeight; member
DPatchCache.cpp53 Patch* PatchCache::get(const float bitmapWidth, const float bitmapHeight, in get() argument
75 const PatchDescription description(bitmapWidth, bitmapHeight, in get()
87 width, height, pixelWidth, pixelHeight, bitmapWidth, bitmapHeight); in get()
92 mesh->updateVertices(bitmapWidth, bitmapHeight, 0.0f, 0.0f, pixelWidth, pixelHeight); in get()
102 mesh->updateVertices(bitmapWidth, bitmapHeight, 0.0f, 0.0f, pixelWidth, pixelHeight); in get()
DPatch.cpp109 void Patch::updateVertices(const float bitmapWidth, const float bitmapHeight, in updateVertices() argument
144 const float fixed = bitmapHeight - stretchSize; in updateVertices()
167 float v2 = fmax(0.0f, stepY - 0.5f) / bitmapHeight; in updateVertices()
182 v1 = (stepY + 0.5f) / bitmapHeight; in updateVertices()
187 if (previousStepY != bitmapHeight) { in updateVertices()
DPatch.h51 void updateVertices(const float bitmapWidth, const float bitmapHeight,
/frameworks/base/media/java/android/media/videoeditor/
DMediaImageItem.java947 float bitmapWidth, bitmapHeight; in scaleImage() local
956 bitmapHeight = (float)Math.ceil(nativeHeight / dx); in scaleImage()
958 bitmapHeight = (float)Math.floor(nativeHeight / dx); in scaleImage()
968 bitmapHeight = height; in scaleImage()
984 bitmapHeight = height; in scaleImage()
998 (int)bitmapHeight, in scaleImage()
1004 (int)bitmapHeight), sResizePaint); in scaleImage()
/frameworks/base/core/jni/android/graphics/
DNinePatchImpl.cpp187 const int bitmapHeight = bitmap.height(); in NinePatch_Draw() local
201 int numFixedYPixelsRemaining = bitmapHeight - numStretchyYPixelsRemaining; in NinePatch_Draw()
230 j <= numYDivs && src.fTop < bitmapHeight; in NinePatch_Draw()
235 src.fBottom = bitmapHeight; in NinePatch_Draw()
/frameworks/base/core/java/android/text/
DTextLine.java235 float bitmapHeight = bm.getHeight(); in draw() local
236 float scale = -bmAscent / bitmapHeight; in draw()