Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt/
DImages.cpp40 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/
DPng.cpp46 delete[] xDivs; in ~PngInfo()
51 void* serialized = android::Res_png_9patch::serialize(info9Patch, xDivs, in serialize9Patch()
63 int32_t* xDivs = nullptr; member
986 int32_t* xDivs = image->xDivs = new int32_t[W]; in do9Patch() local
998 memset(xDivs, -1, maxSizeXDivs); in do9Patch()
1030 if (!getHorizontalTicks(p, W, transparent, true, &xDivs[0], &xDivs[1], in do9Patch()
1032 errorPixel = xDivs[0]; in do9Patch()
1095 image->info9Patch.paddingLeft = xDivs[0]; in do9Patch()
1096 image->info9Patch.paddingRight = W - 2 - xDivs[1]; in do9Patch()
1134 if (xDivs[0] == 0) { // Column 1 is strechable in do9Patch()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h159 static void* serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs,
162 static void serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs,
/frameworks/base/libs/androidfw/
DResourceTypes.cpp155 int32_t* xDivs = getXDivs(); in deviceToFile() local
157 xDivs[i] = htonl(xDivs[i]); in deviceToFile()
175 int32_t* xDivs = getXDivs(); in fileToDevice() local
177 xDivs[i] = ntohl(xDivs[i]); in fileToDevice()
205 void* Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, in serialize() argument
211 serialize(patch, xDivs, yDivs, colors, newData); in serialize()
215 void Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, in serialize() argument
223 memcpy(data, xDivs, patch.numXDivs * sizeof(int32_t)); in serialize()