Home
last modified time | relevance | path

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

/frameworks/base/libs/androidfw/
DPng.cpp161 assert(outPatch->numYDivs == inPatch->numYDivs); in checkNinePatchSerialization()
937 uint8_t numYDivs = 0; in do9Patch() local
986 &errorMsg, &numYDivs, true)) { in do9Patch()
994 image->info9Patch.numYDivs = numYDivs; in do9Patch()
1080 numRows = numYDivs + 1; in do9Patch()
1084 if (yDivs[numYDivs - 1] == H) { in do9Patch()
1120 for (j = (yDivs[0] == 0 ? 1 : 0); j <= numYDivs && top < H; j++) { in do9Patch()
1121 if (j == numYDivs) { in do9Patch()
DNinePatch.cpp591 data.numYDivs = static_cast<uint8_t>(vertical_stretch_regions.size()) * 2; in SerializeBase()
DResourceTypes.cpp152 patch->colorsOffset = patch->yDivsOffset + (patch->numYDivs * sizeof(int32_t)); in fill9patchOffsets()
170 for (int i = 0; i < numYDivs; i++) { in deviceToFile()
190 for (int i = 0; i < numYDivs; i++) { in fileToDevice()
211 + numYDivs * sizeof(int32_t) in serializedSize()
235 memcpy(data, yDivs, patch.numYDivs * sizeof(int32_t)); in serialize()
236 data += patch.numYDivs * sizeof(int32_t); in serialize()
/frameworks/base/tools/aapt/
DImages.cpp555 uint8_t numYDivs = 0; in do_9patch() local
605 &yDivs[1], &errorMsg, &numYDivs, true) != NO_ERROR) { in do_9patch()
613 image->info9Patch.numYDivs = numYDivs; in do_9patch()
699 numRows = numYDivs + 1; in do_9patch()
703 if (yDivs[numYDivs - 1] == H) { in do_9patch()
740 j <= numYDivs && top < H; in do_9patch()
742 if (j == numYDivs) { in do_9patch()
806 assert(outPatch->numYDivs == inPatch->numYDivs); in checkNinePatchSerialization()
814 for (int i = 0; i < outPatch->numYDivs; i++) { in checkNinePatchSerialization()
/frameworks/base/libs/hwui/jni/
DNinePatchPeeker.cpp91 scaleDivRange(mPatch->getYDivs(), mPatch->numYDivs, scaleY, scaledHeight - 1); in scale()
/frameworks/base/libs/hwui/
DNinePatchUtils.h25 lattice->fYCount = chunk.numYDivs; in SetLatticeDivs()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h149 uint8_t numYDivs; member