Searched refs:yDivs (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/tools/aapt/ |
D | Images.cpp | 41 xDivs(NULL), yDivs(NULL), colors(NULL), allocRows(NULL) { } in image_info() 54 free(yDivs); in ~image_info() 59 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors); in serialize9patch() 72 int32_t* yDivs; member 553 int32_t* yDivs = image->yDivs = (int32_t*) malloc(maxSizeYDivs); in do_9patch() local 565 memset(yDivs, -1, maxSizeYDivs); in do_9patch() 604 if (get_vertical_ticks(image->rows, 0, H, transparent, true, &yDivs[0], in do_9patch() 605 &yDivs[1], &errorMsg, &numYDivs, true) != NO_ERROR) { in do_9patch() 606 errorPixel = yDivs[0]; in do_9patch() 664 image->info9Patch.paddingTop = yDivs[0]; in do_9patch() [all …]
|
/frameworks/base/libs/androidfw/ |
D | Png.cpp | 45 delete[] yDivs; in ~PngInfo() 49 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors.data()); in serialize9Patch() 61 int32_t* yDivs = nullptr; member 935 int32_t* yDivs = image->yDivs = new int32_t[H]; in do9Patch() local 947 memset(yDivs, -1, maxSizeYDivs); in do9Patch() 985 if (!getVerticalTicks(image->rows.data(), 0, H, transparent, true, &yDivs[0], &yDivs[1], in do9Patch() 987 errorPixel = yDivs[0]; in do9Patch() 1042 image->info9Patch.paddingTop = yDivs[0]; in do9Patch() 1043 image->info9Patch.paddingBottom = H - 2 - yDivs[1]; in do9Patch() 1081 if (yDivs[0] == 0) { // Row 1 is strechable in do9Patch() [all …]
|
D | ResourceTypes.cpp | 169 int32_t* yDivs = getYDivs(); in deviceToFile() local 171 yDivs[i] = htonl(yDivs[i]); in deviceToFile() 189 int32_t* yDivs = getYDivs(); in fileToDevice() local 191 yDivs[i] = ntohl(yDivs[i]); in fileToDevice() 216 const int32_t* yDivs, const uint32_t* colors) in serialize() argument 221 serialize(patch, xDivs, yDivs, colors, newData); in serialize() 226 const int32_t* yDivs, const uint32_t* colors, void* outData) in serialize() argument 235 memcpy(data, yDivs, patch.numYDivs * sizeof(int32_t)); in serialize()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | CanvasOpTests.cpp | 529 const int yDivs[] = { 10, 40 }; in TEST() local 534 SkCanvas::Lattice lattice = { xDivs, yDivs, fillTypes[0], 2, in TEST()
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ResourceTypes.h | 182 const int32_t* yDivs, const uint32_t* colors); 185 const int32_t* yDivs, const uint32_t* colors, void* outData);
|