Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/compile/
DPng.cpp169 assert(outPatch->numXDivs == inPatch->numXDivs); in checkNinePatchSerialization()
988 uint8_t numXDivs = 0; in do9Patch() local
1031 &errorMsg, &numXDivs, true)) { in do9Patch()
1046 image->info9Patch.numXDivs = numXDivs; in do9Patch()
1133 numCols = numXDivs + 1; in do9Patch()
1137 if (xDivs[numXDivs - 1] == W) { in do9Patch()
1189 for (i = xDivs[0] == 0 ? 1 : 0; i <= numXDivs && left < W; i++) { in do9Patch()
1190 if (i == numXDivs) { in do9Patch()
DNinePatch.cpp610 data.numXDivs = static_cast<uint8_t>(horizontal_stretch_regions.size()) * 2; in SerializeBase()
/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/jni/
DNinePatchPeeker.cpp85 scaleDivRange(mPatch->getXDivs(), mPatch->numXDivs, scaleX, scaledWidth - 1); in scale()
/frameworks/base/libs/hwui/
DNinePatchUtils.h24 lattice->fXCount = chunk.numXDivs; in SetLatticeDivs()
/frameworks/base/libs/androidfw/
DResourceTypes.cpp141 patch->yDivsOffset = patch->xDivsOffset + (patch->numXDivs * sizeof(int32_t)); in fill9patchOffsets()
156 for (int i = 0; i < numXDivs; i++) { in deviceToFile()
176 for (int i = 0; i < numXDivs; i++) { in fileToDevice()
200 + numXDivs * sizeof(int32_t) in serializedSize()
223 memcpy(data, xDivs, patch.numXDivs * sizeof(int32_t)); in serialize()
224 data += patch.numXDivs * sizeof(int32_t); in serialize()
/frameworks/base/libs/androidfw/include/androidfw/
DResourceTypes.h128 uint8_t numXDivs; member