Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DPatch.cpp82 const int32_t* xDivs = patch->xDivs; in createMesh() local
97 stretchSize += xDivs[i] - xDivs[i - 1]; in createMesh()
143 generateRow(xDivs, xCount, vertex, y1, y2, v1, v2, stretchX, rescaleX, in createMesh()
155 generateRow(xDivs, xCount, vertex, y1, y2, v1, 1.0f, stretchX, rescaleX, in createMesh()
170 void Patch::generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& vertex, in generateRow() argument
181 float stepX = xDivs[i]; in generateRow()
DPatch.h63 void generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& vertex,
/frameworks/base/tools/aapt/
DImages.cpp47 free(info9Patch.xDivs); in ~image_info()
431 hpatch, image->info9Patch.xDivs[0], image->info9Patch.xDivs[1], in get_color()
453 int32_t* xDivs = (int32_t*) malloc(maxSizeXDivs); in do_9patch() local
464 memset(xDivs, -1, maxSizeXDivs); in do_9patch()
496 if (get_horizontal_ticks(p, W, transparent, true, &xDivs[0], in do_9patch()
497 &xDivs[1], &errorMsg, &numXDivs, true) != NO_ERROR) { in do_9patch()
498 errorPixel = xDivs[0]; in do_9patch()
549 image->info9Patch.xDivs = xDivs; in do_9patch()
554 image->info9Patch.paddingLeft = xDivs[0]; in do_9patch()
555 image->info9Patch.paddingRight = W - 2 - xDivs[1]; in do_9patch()
[all …]
/frameworks/base/core/jni/android/graphics/
DNinePatchImpl.cpp123 chunk.xDivs, chunk.numXDivs, in NinePatch_Draw()
148 ALOGV("======== ninepatch xDivs [%d,%d]\n", chunk.xDivs[0], chunk.xDivs[1]); in NinePatch_Draw()
174 const int32_t x0 = chunk.xDivs[0]; in NinePatch_Draw()
194 numStretchyXPixelsRemaining += chunk.xDivs[i + 1] - chunk.xDivs[i]; in NinePatch_Draw()
263 src.fRight = chunk.xDivs[i]; in NinePatch_Draw()
DBitmapFactory.cpp111 chunk->xDivs[i] = int(chunk->xDivs[i] * scale + 0.5f); in scaleNinePatchChunk()
112 if (i > 0 && chunk->xDivs[i] == chunk->xDivs[i - 1]) { in scaleNinePatchChunk()
113 chunk->xDivs[i]++; in scaleNinePatchChunk()
/frameworks/base/include/androidfw/
DResourceTypes.h106 Res_png_9patch() : wasDeserialized(false), xDivs(NULL), in Res_png_9patch()
119 int32_t* xDivs; member
/frameworks/base/libs/androidfw/
DResourceTypes.cpp138 xDivs[i] = htonl(xDivs[i]); in deviceToFile()
155 xDivs[i] = ntohl(xDivs[i]); in fileToDevice()
197 memmove(data, this->xDivs, numXDivs * sizeof(int32_t)); in serialize()
213 outData->xDivs = (int32_t*) data; in deserializeInternal()