/frameworks/base/tools/aapt/ |
D | Images.cpp | 48 free(info9Patch.yDivs); in ~image_info() 434 vpatch, image->info9Patch.yDivs[0], image->info9Patch.yDivs[1], in get_color() 454 int32_t* yDivs = (int32_t*) malloc(maxSizeYDivs); in do_9patch() local 465 memset(yDivs, -1, maxSizeYDivs); in do_9patch() 504 if (get_vertical_ticks(image->rows, 0, H, transparent, true, &yDivs[0], in do_9patch() 505 &yDivs[1], &errorMsg, &numYDivs, true) != NO_ERROR) { in do_9patch() 506 errorPixel = yDivs[0]; in do_9patch() 550 image->info9Patch.yDivs = yDivs; in do_9patch() 561 image->info9Patch.paddingTop = yDivs[0]; in do_9patch() 562 image->info9Patch.paddingBottom = H - 2 - yDivs[1]; in do_9patch() [all …]
|
/frameworks/base/core/jni/android/graphics/ |
D | NinePatchImpl.cpp | 124 chunk.yDivs, chunk.numYDivs, in NinePatch_Draw() 149 ALOGV("======== ninepatch yDivs [%d,%d]\n", chunk.yDivs[0], chunk.yDivs[1]); in NinePatch_Draw() 175 const int32_t y0 = chunk.yDivs[0]; in NinePatch_Draw() 199 numStretchyYPixelsRemaining += chunk.yDivs[i + 1] - chunk.yDivs[i]; in NinePatch_Draw() 238 src.fBottom = chunk.yDivs[j]; in NinePatch_Draw()
|
D | BitmapFactory.cpp | 108 chunk->yDivs[i] = int(chunk->yDivs[i] * scale + 0.5f); in scaleNinePatchChunk() 109 if (i > 0 && chunk->yDivs[i] == chunk->yDivs[i - 1]) { in scaleNinePatchChunk() 110 chunk->yDivs[i]++; in scaleNinePatchChunk()
|
/frameworks/base/libs/hwui/ |
D | Patch.h | 54 void copy(const int32_t* xDivs, const int32_t* yDivs); 55 bool matches(const int32_t* xDivs, const int32_t* yDivs,
|
D | PatchCache.cpp | 84 const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors, in get() argument 120 mesh->copy(xDivs, yDivs); in get() 129 } else if (!mesh->matches(xDivs, yDivs, colorKey, transparentQuads)) { in get()
|
D | Patch.cpp | 66 void Patch::copy(const int32_t* xDivs, const int32_t* yDivs) { in copy() argument 68 memcpy(mYDivs, yDivs, mYCount * sizeof(int32_t)); in copy() 75 bool Patch::matches(const int32_t* xDivs, const int32_t* yDivs, in matches() argument 96 if (memcmp(mYDivs, yDivs, mYCount * sizeof(int32_t))) { in matches() 97 memcpy(mYDivs, yDivs, mYCount * sizeof(int32_t)); in matches()
|
D | DisplayListRenderer.cpp | 317 const int32_t* yDivs, const uint32_t* colors, uint32_t width, uint32_t height, in drawPatch() argument 325 yDivs = refBuffer<int>(yDivs, height); in drawPatch() 328 addDrawOp(new (alloc()) DrawPatchOp(bitmap, xDivs, yDivs, colors, width, height, numColors, in drawPatch()
|
D | PatchCache.h | 51 const int32_t* xDivs, const int32_t* yDivs, const uint32_t* colors,
|
D | OpenGLRenderer.h | 251 virtual status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, 254 status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
|
D | DisplayListRenderer.h | 106 virtual status_t drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs,
|
D | DisplayListOp.h | 908 const int32_t* yDivs, const uint32_t* colors, uint32_t width, uint32_t height, in DrawPatchOp() argument 912 mBitmap(bitmap), mxDivs(xDivs), myDivs(yDivs), in DrawPatchOp()
|
D | OpenGLRenderer.cpp | 2298 status_t OpenGLRenderer::drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, in drawPatch() argument 2305 return drawPatch(bitmap, xDivs, yDivs, colors, width, height, numColors, in drawPatch() 2309 status_t OpenGLRenderer::drawPatch(SkBitmap* bitmap, const int32_t* xDivs, const int32_t* yDivs, in drawPatch() argument 2319 right - left, bottom - top, xDivs, yDivs, colors, width, height, numColors); in drawPatch()
|
/frameworks/base/include/androidfw/ |
D | ResourceTypes.h | 107 yDivs(NULL), colors(NULL) { } in Res_png_9patch() 120 int32_t* yDivs; member
|
/frameworks/base/libs/androidfw/ |
D | ResourceTypes.cpp | 142 yDivs[i] = htonl(yDivs[i]); in deviceToFile() 159 yDivs[i] = ntohl(yDivs[i]); in fileToDevice() 200 memmove(data, this->yDivs, numYDivs * sizeof(int32_t)); in serialize() 216 outData->yDivs = (int32_t*) data; in deserializeInternal()
|
/frameworks/base/core/jni/ |
D | android_view_GLES20Canvas.cpp | 432 renderer->drawPatch(bitmap, &patch->xDivs[0], &patch->yDivs[0], in android_view_GLES20Canvas_drawPatch()
|