Home
last modified time | relevance | path

Searched refs:lineBreaks (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/tools/layoutlib/bridge/src/android/text/
DGreedyLineBreaker.java38 public void computeBreaks(@NonNull LineBreaks lineBreaks) { in computeBreaks() argument
156 breakInfo.copyTo(lineBreaks); in computeBreaks()
164 public void copyTo(LineBreaks lineBreaks) {
165 if (lineBreaks.breaks.length != mBreaksList.size()) {
166 lineBreaks.breaks = new int[mBreaksList.size()];
167 lineBreaks.widths = new float[mWidthsList.size()];
168 lineBreaks.flags = new int[mFlagsList.size()];
173 lineBreaks.breaks[i] = b;
178 lineBreaks.widths[i] = b;
183 lineBreaks.flags[i] = b ? TAB_MASK : 0;
DOptimizingLineBreaker.java136 private static void resize(LineBreaks lineBreaks, int size) { in resize() argument
137 if (lineBreaks.breaks.length == size) { in resize()
144 int toCopy = Math.min(size, lineBreaks.breaks.length); in resize()
145 System.arraycopy(lineBreaks.breaks, 0, breaks, 0, toCopy); in resize()
146 System.arraycopy(lineBreaks.widths, 0, widths, 0, toCopy); in resize()
147 System.arraycopy(lineBreaks.flags, 0, flags, 0, toCopy); in resize()
149 lineBreaks.breaks = breaks; in resize()
150 lineBreaks.widths = widths; in resize()
151 lineBreaks.flags = flags; in resize()
/frameworks/base/core/java/android/text/
DStaticLayout.java573 … LineBreaks lineBreaks = new LineBreaks(); // TODO: move to builder to avoid allocation costs
739 int breakCount = nComputeLineBreaks(b.mNativePtr, lineBreaks, lineBreaks.breaks,
740 lineBreaks.widths, lineBreaks.flags, lineBreaks.breaks.length);
742 int[] breaks = lineBreaks.breaks;
743 float[] lineWidths = lineBreaks.widths;
744 int[] flags = lineBreaks.flags;