/frameworks/base/libs/hwui/ |
D | Patch.cpp | 63 const int32_t* xDivs = patch->getXDivs(); in Patch() local 78 stretchSize += xDivs[i] - xDivs[i - 1]; in Patch() 124 generateRow(xDivs, xCount, vertex, y1, y2, v1, v2, stretchX, rescaleX, in Patch() 136 generateRow(xDivs, xCount, vertex, y1, y2, v1, 1.0f, stretchX, rescaleX, in Patch() 147 void Patch::generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& vertex, in generateRow() argument 158 float stepX = xDivs[i]; in generateRow()
|
D | Patch.h | 61 void generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& vertex,
|
/frameworks/base/libs/hwui/utils/ |
D | NinePatchImpl.cpp | 112 const int32_t* xDivs = chunk.getXDivs(); in Draw() local 118 xDivs, chunk.numXDivs, in Draw() 141 ALOGV("======== ninepatch xDivs [%d,%d]\n", xDivs[0], xDivs[1]); in Draw() 166 const int32_t x0 = xDivs[0]; in Draw() 189 numStretchyXPixelsRemaining += xDivs[i + 1] - xDivs[i]; in Draw() 259 src.fRight = xDivs[i]; in Draw()
|
/frameworks/base/tools/aapt/ |
D | Images.cpp | 40 xDivs(NULL), yDivs(NULL), colors(NULL), allocRows(NULL) { } in image_info() 52 free(xDivs); in ~image_info() 58 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors); in serialize9patch() 70 int32_t* xDivs; member 551 int32_t* xDivs = image->xDivs = (int32_t*) malloc(maxSizeXDivs); in do_9patch() local 563 memset(xDivs, -1, maxSizeXDivs); in do_9patch() 595 if (get_horizontal_ticks(p, W, transparent, true, &xDivs[0], in do_9patch() 596 &xDivs[1], &errorMsg, &numXDivs, true) != NO_ERROR) { in do_9patch() 597 errorPixel = xDivs[0]; in do_9patch() 656 image->info9Patch.paddingLeft = xDivs[0]; in do_9patch() [all …]
|
/frameworks/base/tools/aapt2/compile/ |
D | Png.cpp | 43 delete[] xDivs; in ~PngInfo() 48 void* serialized = android::Res_png_9patch::serialize(info9Patch, xDivs, yDivs, in serialize9Patch() 60 int32_t* xDivs = nullptr; member 949 int32_t* xDivs = image->xDivs = new int32_t[W]; in do9Patch() local 961 memset(xDivs, -1, maxSizeXDivs); in do9Patch() 993 if (!getHorizontalTicks(p, W, transparent, true, &xDivs[0], &xDivs[1], &errorMsg, &numXDivs, in do9Patch() 995 errorPixel = xDivs[0]; in do9Patch() 1054 image->info9Patch.paddingLeft = xDivs[0]; in do9Patch() 1055 image->info9Patch.paddingRight = W - 2 - xDivs[1]; in do9Patch() 1092 if (xDivs[0] == 0) { // Column 1 is strechable in do9Patch() [all …]
|
/frameworks/base/include/androidfw/ |
D | ResourceTypes.h | 157 static void* serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs, 160 static void serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs,
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 153 int32_t* xDivs = getXDivs(); in deviceToFile() local 155 xDivs[i] = htonl(xDivs[i]); in deviceToFile() 173 int32_t* xDivs = getXDivs(); in fileToDevice() local 175 xDivs[i] = ntohl(xDivs[i]); in fileToDevice() 203 void* Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, in serialize() argument 209 serialize(patch, xDivs, yDivs, colors, newData); in serialize() 213 void Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, in serialize() argument 221 memcpy(data, xDivs, patch.numXDivs * sizeof(int32_t)); in serialize()
|