Home
last modified time | relevance | path

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

/frameworks/base/tools/layoutlib/bridge/src/android/text/
DGreedyLineBreaker.java43 int breakIndex = 0, goodBreakIndex = 0; in computeBreaks() local
86 i = breakIndex; // no +1 because of i++ in computeBreaks()
89 breakInfo.mBreaksList.add(mPrimitives.get(breakIndex).location); in computeBreaks()
91 breakInfo.mFlagsList.add(firstTabIndex < breakIndex); in computeBreaks()
123 if (i > breakIndex && (printedWidth <= maxWidth || !breakFound)) { in computeBreaks()
125 breakIndex = i; in computeBreaks()
136 if (i > breakIndex && (printedWidth <= maxWidth || !breakFound)) { in computeBreaks()
138 breakIndex = i; in computeBreaks()
151 breakInfo.mBreaksList.add(mPrimitives.get(breakIndex).location); in computeBreaks()
153 breakInfo.mFlagsList.add(firstTabIndex < breakIndex); in computeBreaks()
DOptimizingLineBreaker.java112 int breakIndex = desperateBreak(lastBreak, numBreaks, maxWidth, lineMetrics); in computeBreaks() local
113 opt[breakIndex] = new Node(lastBreak, lines + 1, 0 /*doesn't matter*/, in computeBreaks()
115 active.add(breakIndex); in computeBreaks()
116 lastBreak = breakIndex; in computeBreaks()
117 i = breakIndex; // incremented by i++ in computeBreaks()
187 int breakIndex = 0, firstTabIndex = Integer.MAX_VALUE; in desperateBreak() local
209 breakIndex = i; in desperateBreak()
216 lineMetrics.mHasTabs = (start <= firstTabIndex && firstTabIndex < breakIndex); in desperateBreak()
217 return breakIndex; in desperateBreak()
DStaticLayout_Delegate.java181 int breakIndex = 0; in computePrimitives() local
189 while (breakIndex < breaksSize && breaks.get(breakIndex) < i) { in computePrimitives()
190 breakIndex++; in computePrimitives()
194 if (breakIndex < breaksSize && breaks.get(breakIndex) == i) { in computePrimitives()
/frameworks/base/core/java/android/text/
DStaticLayout.java774 int breakIndex = 0;
800 while (breakIndex < breakCount && paraStart + breaks[breakIndex] < spanStart) {
801 breakIndex++;
804 while (breakIndex < breakCount && paraStart + breaks[breakIndex] <= spanEnd) {
805 int endPos = paraStart + breaks[breakIndex];
811 v, spacingmult, spacingadd, chooseHt,chooseHtv, fm, flags[breakIndex],
814 lineWidths[breakIndex], paint, moreChars);
827 breakIndex++;