Searched refs:xDivs (Results 1 - 6 of 6) sorted by relevance

/frameworks/base/libs/hwui/
H A DPatch.cpp83 const int32_t* xDivs = patch->getXDivs(); local
98 stretchSize += xDivs[i] - xDivs[i - 1];
144 generateRow(xDivs, xCount, vertex, y1, y2, v1, v2, stretchX, rescaleX,
156 generateRow(xDivs, xCount, vertex, y1, y2, v1, 1.0f, stretchX, rescaleX,
171 void Patch::generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& vertex, argument
182 float stepX = xDivs[i];
H A DPatch.h64 void generateRow(const int32_t* xDivs, uint32_t xCount, TextureVertex*& vertex,
/frameworks/base/core/jni/android/graphics/
H A DNinePatchImpl.cpp119 const int32_t* xDivs = chunk.getXDivs(); local
125 xDivs, chunk.numXDivs,
150 ALOGV("======== ninepatch xDivs [%d,%d]\n", xDivs[0], xDivs[1]);
176 const int32_t x0 = xDivs[0];
196 numStretchyXPixelsRemaining += xDivs[i + 1] - xDivs[i];
266 src.fRight = xDivs[i];
/frameworks/base/tools/aapt/
H A DImages.cpp39 xDivs(NULL), yDivs(NULL), colors(NULL), allocRows(NULL) { }
51 free(xDivs);
57 void* serialized = Res_png_9patch::serialize(info9Patch, xDivs, yDivs, colors);
69 int32_t* xDivs; member in struct:image_info
559 hpatch, image->xDivs[0], image->xDivs[1],
581 int32_t* xDivs = image->xDivs = (int32_t*) malloc(maxSizeXDivs); local
593 memset(xDivs, -1, maxSizeXDivs);
625 if (get_horizontal_ticks(p, W, transparent, true, &xDivs[
[all...]
/frameworks/base/include/androidfw/
H A DResourceTypes.h94 * xDivs and yDivs are arrays of horizontal and vertical pixel
125 // The offset (from the start of this structure) to the xDivs & yDivs
128 // the xDivs, yDivs and colors arrays immediately after the location
154 static void* serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs,
157 static void serialize(const Res_png_9patch& patchHeader, const int32_t* xDivs,
166 // 0 to xDivs[0]-1 and the second patch includes the pixels
167 // from xDivs[0] to xDivs[1]-1.
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp148 int32_t* xDivs = getXDivs(); local
150 xDivs[i] = htonl(xDivs[i]);
168 int32_t* xDivs = getXDivs(); local
170 xDivs[i] = ntohl(xDivs[i]);
198 void* Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, argument
204 serialize(patch, xDivs, yDivs, colors, newData);
208 void Res_png_9patch::serialize(const Res_png_9patch& patch, const int32_t* xDivs, argument
216 memcpy(data, xDivs, patc
[all...]

Completed in 161 milliseconds