Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt/
DImages.cpp41 xDivs(NULL), yDivs(NULL), colors(NULL), allocRows(NULL) { } in image_info()
53 free(xDivs); in ~image_info()
59 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors); in serialize9patch()
71 int32_t* xDivs; member
552 int32_t* xDivs = image->xDivs = (int32_t*) malloc(maxSizeXDivs); in do_9patch() local
564 memset(xDivs, -1, maxSizeXDivs); in do_9patch()
596 if (get_horizontal_ticks(p, W, transparent, true, &xDivs[0], in do_9patch()
597 &xDivs[1], &errorMsg, &numXDivs, true) != NO_ERROR) { in do_9patch()
598 errorPixel = xDivs[0]; in do_9patch()
657 image->info9Patch.paddingLeft = xDivs[0]; in do_9patch()
[all …]
/frameworks/base/libs/androidfw/
DPng.cpp44 delete[] xDivs; in ~PngInfo()
49 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors.data()); in serialize9Patch()
60 int32_t* xDivs = nullptr; member
934 int32_t* xDivs = image->xDivs = new int32_t[W]; in do9Patch() local
946 memset(xDivs, -1, maxSizeXDivs); in do9Patch()
977 if (!getHorizontalTicks(p, W, transparent, true, &xDivs[0], &xDivs[1], &errorMsg, &numXDivs, in do9Patch()
979 errorPixel = xDivs[0]; in do9Patch()
1035 image->info9Patch.paddingLeft = xDivs[0]; in do9Patch()
1036 image->info9Patch.paddingRight = W - 2 - xDivs[1]; in do9Patch()
1074 if (xDivs[0] == 0) { // Column 1 is strechable in do9Patch()
[all …]
DResourceTypes.cpp165 int32_t* xDivs = getXDivs(); in deviceToFile() local
167 xDivs[i] = htonl(xDivs[i]); in deviceToFile()
185 int32_t* xDivs = getXDivs(); in fileToDevice() local
187 xDivs[i] = ntohl(xDivs[i]); in fileToDevice()
215 void* Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, in serialize() argument
221 serialize(patch, xDivs, yDivs, colors, newData); in serialize()
225 void Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, in serialize() argument
233 memcpy(data, xDivs, patch.numXDivs * sizeof(int32_t)); in serialize()
/frameworks/base/libs/hwui/tests/unit/
DCanvasOpTests.cpp528 const int xDivs[] = { 20, 50 }; in TEST() local
534 SkCanvas::Lattice lattice = { xDivs, yDivs, fillTypes[0], 2, in TEST()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h181 static void* serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs,
184 static void serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs,