Home
last modified time | relevance | path

Searched refs:numXDivs (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/jni/android/graphics/
DNinePatchImpl.cpp120 xDivs, chunk.numXDivs, in NinePatch_Draw()
171 const uint8_t numXDivs = chunk.numXDivs; in NinePatch_Draw() local
185 const size_t dstBytes = ((size_t) numXDivs + 1) * sizeof(SkScalar); in NinePatch_Draw()
190 for (i = 0; i < numXDivs; i += 2) { in NinePatch_Draw()
205 numXDivs, numYDivs); in NinePatch_Draw()
254 i <= numXDivs && src.fLeft < bitmapWidth; in NinePatch_Draw()
257 if (i == numXDivs) { in NinePatch_Draw()
DBitmapFactory.cpp117 scaleDivRange(chunk->getXDivs(), chunk->numXDivs, scale, scaledWidth); in scaleNinePatchChunk()
/frameworks/base/tools/aapt2/
DPng.cpp163 assert(outPatch->numXDivs == inPatch->numXDivs); in checkNinePatchSerialization()
953 uint8_t numXDivs = 0; in do9Patch() local
995 if (!getHorizontalTicks(p, W, transparent, true, &xDivs[0], &xDivs[1], &errorMsg, &numXDivs, in do9Patch()
1011 image->info9Patch.numXDivs = numXDivs; in do9Patch()
1093 numCols = numXDivs + 1; in do9Patch()
1097 if (xDivs[numXDivs - 1] == W) { in do9Patch()
1149 for (i = xDivs[0] == 0 ? 1 : 0; i <= numXDivs && left < W; i++) { in do9Patch()
1150 if (i == numXDivs) { in do9Patch()
/frameworks/base/tools/aapt/
DImages.cpp553 uint8_t numXDivs = 0; in do_9patch() local
596 &xDivs[1], &errorMsg, &numXDivs, true) != NO_ERROR) { in do_9patch()
611 image->info9Patch.numXDivs = numXDivs; in do_9patch()
691 numCols = numXDivs + 1; in do_9patch()
695 if (xDivs[numXDivs - 1] == W) { in do_9patch()
750 i <= numXDivs && left < W; in do_9patch()
752 if (i == numXDivs) { in do_9patch()
804 assert(outPatch->numXDivs == inPatch->numXDivs); in checkNinePatchSerialization()
810 for (int i = 0; i < outPatch->numXDivs; i++) { in checkNinePatchSerialization()
/frameworks/base/libs/hwui/
DPatch.cpp56 uint32_t xCount = patch->numXDivs; in Patch()
/frameworks/base/include/androidfw/
DResourceTypes.h121 uint8_t numXDivs; member
/frameworks/base/libs/androidfw/
DResourceTypes.cpp137 patch->yDivsOffset = patch->xDivsOffset + (patch->numXDivs * sizeof(int32_t)); in fill9patchOffsets()
152 for (int i = 0; i < numXDivs; i++) { in deviceToFile()
172 for (int i = 0; i < numXDivs; i++) { in fileToDevice()
196 + numXDivs * sizeof(int32_t) in serializedSize()
219 memcpy(data, xDivs, patch.numXDivs * sizeof(int32_t)); in serialize()
220 data += patch.numXDivs * sizeof(int32_t); in serialize()