Home
last modified time | relevance | path

Searched refs:yDivs (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/tools/aapt/
DImages.cpp48 free(info9Patch.yDivs); in ~image_info()
434 vpatch, image->info9Patch.yDivs[0], image->info9Patch.yDivs[1], in get_color()
454 int32_t* yDivs = (int32_t*) malloc(maxSizeYDivs); in do_9patch() local
465 memset(yDivs, -1, maxSizeYDivs); in do_9patch()
504 if (get_vertical_ticks(image->rows, 0, H, transparent, true, &yDivs[0], in do_9patch()
505 &yDivs[1], &errorMsg, &numYDivs, true) != NO_ERROR) { in do_9patch()
506 errorPixel = yDivs[0]; in do_9patch()
550 image->info9Patch.yDivs = yDivs; in do_9patch()
561 image->info9Patch.paddingTop = yDivs[0]; in do_9patch()
562 image->info9Patch.paddingBottom = H - 2 - yDivs[1]; in do_9patch()
[all …]
/frameworks/base/core/jni/android/graphics/
DNinePatchImpl.cpp124 chunk.yDivs, chunk.numYDivs, in NinePatch_Draw()
149 ALOGV("======== ninepatch yDivs [%d,%d]\n", chunk.yDivs[0], chunk.yDivs[1]); in NinePatch_Draw()
175 const int32_t y0 = chunk.yDivs[0]; in NinePatch_Draw()
199 numStretchyYPixelsRemaining += chunk.yDivs[i + 1] - chunk.yDivs[i]; in NinePatch_Draw()
238 src.fBottom = chunk.yDivs[j]; in NinePatch_Draw()
DBitmapFactory.cpp108 chunk->yDivs[i] = int(chunk->yDivs[i] * scale + 0.5f); in scaleNinePatchChunk()
109 if (i > 0 && chunk->yDivs[i] == chunk->yDivs[i - 1]) { in scaleNinePatchChunk()
110 chunk->yDivs[i]++; in scaleNinePatchChunk()
/frameworks/base/libs/hwui/
DPatch.h54 void copy(const int32_t* xDivs, const int32_t* yDivs);
55 bool matches(const int32_t* xDivs, const int32_t* yDivs,
DPatchCache.cpp84 const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, in get() argument
120 mesh->copy(xDivs, yDivs); in get()
129 } else if (!mesh->matches(xDivs, yDivs, colorKey, transparentQuads)) { in get()
DPatch.cpp66 void Patch::copy(const int32_t* xDivs, const int32_t* yDivs) { in copy() argument
68 memcpy(mYDivs, yDivs, mYCount * sizeof(int32_t)); in copy()
75 bool Patch::matches(const int32_t* xDivs, const int32_t* yDivs, in matches() argument
96 if (memcmp(mYDivs, yDivs, mYCount * sizeof(int32_t))) { in matches()
97 memcpy(mYDivs, yDivs, mYCount * sizeof(int32_t)); in matches()
DDisplayListRenderer.cpp317 const int32_t* yDivs, const uint32_t* colors, uint32_t width, uint32_t height, in drawPatch() argument
325 yDivs = refBuffer<int>(yDivs, height); in drawPatch()
328 addDrawOp(new (alloc()) DrawPatchOp(bitmap, xDivs, yDivs, colors, width, height, numColors, in drawPatch()
DPatchCache.h51 const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors,
DOpenGLRenderer.h251 virtual status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
254 status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
DDisplayListRenderer.h106 virtual status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
DDisplayListOp.h908 const int32_t* yDivs, const uint32_t* colors, uint32_t width, uint32_t height, in DrawPatchOp() argument
912 mBitmap(bitmap), mxDivs(xDivs), myDivs(yDivs), in DrawPatchOp()
DOpenGLRenderer.cpp2298 status_t OpenGLRenderer::drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, in drawPatch() argument
2305 return drawPatch(bitmap, xDivs, yDivs, colors, width, height, numColors, in drawPatch()
2309 status_t OpenGLRenderer::drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, in drawPatch() argument
2319 right - left, bottom - top, xDivs, yDivs, colors, width, height, numColors); in drawPatch()
/frameworks/base/include/androidfw/
DResourceTypes.h107 yDivs(NULL), colors(NULL) { } in Res_png_9patch()
120 int32_t* yDivs; member
/frameworks/base/libs/androidfw/
DResourceTypes.cpp142 yDivs[i] = htonl(yDivs[i]); in deviceToFile()
159 yDivs[i] = ntohl(yDivs[i]); in fileToDevice()
200 memmove(data, this->yDivs, numYDivs * sizeof(int32_t)); in serialize()
216 outData->yDivs = (int32_t*) data; in deserializeInternal()
/frameworks/base/core/jni/
Dandroid_view_GLES20Canvas.cpp432 renderer->drawPatch(bitmap, &patch->xDivs[0], &patch->yDivs[0], in android_view_GLES20Canvas_drawPatch()