Home
last modified time | relevance | path

Searched refs:yDivs (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()
53 free(yDivs); in ~image_info()
58 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors); in serialize9patch()
71 int32_t* yDivs; member
552 int32_t* yDivs = image->yDivs = (int32_t*) malloc(maxSizeYDivs); in do_9patch() local
564 memset(yDivs, -1, maxSizeYDivs); in do_9patch()
603 if (get_vertical_ticks(image->rows, 0, H, transparent, true, &yDivs[0], in do_9patch()
604 &yDivs[1], &errorMsg, &numYDivs, true) != NO_ERROR) { in do_9patch()
605 errorPixel = yDivs[0]; in do_9patch()
663 image->info9Patch.paddingTop = yDivs[0]; in do_9patch()
[all …]
/frameworks/base/tools/aapt2/compile/
DPng.cpp47 delete[] yDivs; in ~PngInfo()
52 yDivs, colors.data()); in serialize9Patch()
64 int32_t* yDivs = nullptr; member
987 int32_t* yDivs = image->yDivs = new int32_t[H]; in do9Patch() local
999 memset(yDivs, -1, maxSizeYDivs); in do9Patch()
1038 if (!getVerticalTicks(image->rows.data(), 0, H, transparent, true, &yDivs[0], in do9Patch()
1039 &yDivs[1], &errorMsg, &numYDivs, true)) { in do9Patch()
1040 errorPixel = yDivs[0]; in do9Patch()
1102 image->info9Patch.paddingTop = yDivs[0]; in do9Patch()
1103 image->info9Patch.paddingBottom = H - 2 - yDivs[1]; in do9Patch()
[all …]
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h160 const int32_t* yDivs, const uint32_t* colors);
163 const int32_t* yDivs, const uint32_t* colors, void* outData);
/frameworks/base/libs/androidfw/
DResourceTypes.cpp159 int32_t* yDivs = getYDivs(); in deviceToFile() local
161 yDivs[i] = htonl(yDivs[i]); in deviceToFile()
179 int32_t* yDivs = getYDivs(); in fileToDevice() local
181 yDivs[i] = ntohl(yDivs[i]); in fileToDevice()
206 const int32_t* yDivs, const uint32_t* colors) in serialize() argument
211 serialize(patch, xDivs, yDivs, colors, newData); in serialize()
216 const int32_t* yDivs, const uint32_t* colors, void* outData) in serialize() argument
225 memcpy(data, yDivs, patch.numYDivs * sizeof(int32_t)); in serialize()