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

/frameworks/layoutlib/bridge/src/android/text/
H A DGreedyLineBreaker.java38 public void computeBreaks(@NonNull LineBreaks lineBreaks) { argument
156 breakInfo.copyTo(lineBreaks);
164 public void copyTo(LineBreaks lineBreaks) { argument
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
[all...]
H A DOptimizingLineBreaker.java136 private static void resize(LineBreaks lineBreaks, int size) { argument
137 if (lineBreaks.breaks.length == size) {
144 int toCopy = Math.min(size, lineBreaks.breaks.length);
145 System.arraycopy(lineBreaks.breaks, 0, breaks, 0, toCopy);
146 System.arraycopy(lineBreaks.widths, 0, widths, 0, toCopy);
147 System.arraycopy(lineBreaks.flags, 0, flags, 0, toCopy);
149 lineBreaks.breaks = breaks;
150 lineBreaks.widths = widths;
151 lineBreaks.flags = flags;
/frameworks/base/core/java/android/text/
H A DStaticLayout.java619 LineBreaks lineBreaks = new LineBreaks(); // TODO: move to builder to avoid allocation costs
768 lineBreaks,
769 lineBreaks.breaks.length,
770 lineBreaks.breaks,
771 lineBreaks.widths,
772 lineBreaks.ascents,
773 lineBreaks.descents,
774 lineBreaks.flags,
777 final int[] breaks = lineBreaks.breaks;
778 final float[] lineWidths = lineBreaks
[all...]

Completed in 10 milliseconds