Home
last modified time | relevance | path

Searched refs:breakIndex (Results 1 – 4 of 4) sorted by relevance

/frameworks/layoutlib/bridge/src/android/graphics/text/
DGreedyLineBreaker.java40 int breakIndex = 0, goodBreakIndex = 0; in computeBreaks() local
86 i = breakIndex; // no +1 because of i++ in computeBreaks()
89 result.mLineBreakOffset.add(mPrimitives.get(breakIndex).location); in computeBreaks()
93 result.mLineFlags.add(firstTabIndex < breakIndex ? TAB_MASK : 0); in computeBreaks()
127 if (i > breakIndex && (printedWidth <= maxWidth || !breakFound)) { in computeBreaks()
129 breakIndex = i; in computeBreaks()
140 if (i > breakIndex && (printedWidth <= maxWidth || !breakFound)) { in computeBreaks()
142 breakIndex = i; in computeBreaks()
157 result.mLineBreakOffset.add(mPrimitives.get(breakIndex).location); in computeBreaks()
161 result.mLineFlags.add(firstTabIndex < breakIndex ? TAB_MASK : 0); in computeBreaks()
DOptimizingLineBreaker.java115 int breakIndex = desperateBreak(lastBreak, numBreaks, maxWidth, lineMetrics); in computeBreaks() local
116 opt[breakIndex] = new Node(lastBreak, lines + 1, 0 /*doesn't matter*/, in computeBreaks()
118 active.add(breakIndex); in computeBreaks()
119 lastBreak = breakIndex; in computeBreaks()
120 i = breakIndex; // incremented by i++ in computeBreaks()
176 int breakIndex = 0, firstTabIndex = Integer.MAX_VALUE; in desperateBreak() local
198 breakIndex = i; in desperateBreak()
205 lineMetrics.mHasTabs = (start <= firstTabIndex && firstTabIndex < breakIndex); in desperateBreak()
206 return breakIndex; in desperateBreak()
DLineBreaker_Delegate.java202 int breakIndex = 0; in computePrimitives() local
210 while (breakIndex < breaksSize && breaks.get(breakIndex) < i) { in computePrimitives()
211 breakIndex++; in computePrimitives()
215 if (breakIndex < breaksSize && breaks.get(breakIndex) == i) { in computePrimitives()
/frameworks/base/core/java/android/text/
DStaticLayout.java821 int breakIndex = 0; in generate()
847 while (breakIndex < breakCount && paraStart + breaks[breakIndex] < spanStart) { in generate()
848 breakIndex++; in generate()
851 while (breakIndex < breakCount && paraStart + breaks[breakIndex] <= spanEnd) { in generate()
852 int endPos = paraStart + breaks[breakIndex]; in generate()
857 ? Math.min(fmAscent, Math.round(ascents[breakIndex])) in generate()
860 ? Math.max(fmDescent, Math.round(descents[breakIndex])) in generate()
866 hasTabs[breakIndex], hyphenEdits[breakIndex], needMultiply, in generate()
868 paraStart, ellipsize, ellipsizedWidth, lineWidths[breakIndex], in generate()
882 breakIndex++; in generate()