Home
last modified time | relevance | path

Searched refs:maxLines (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
DImageFloatingTextView.java84 int maxLines; in makeSingleLayout() local
86 maxLines = mMaxLinesForHeight; in makeSingleLayout()
88 maxLines = getMaxLines() >= 0 ? getMaxLines() : Integer.MAX_VALUE; in makeSingleLayout()
90 builder.setMaxLines(maxLines); in makeSingleLayout()
91 mLayoutMaxLines = maxLines; in makeSingleLayout()
133 int maxLines = layout.getLineCount() - 1; in onMeasure() local
134 while (maxLines > 1 && layout.getLineBottom(maxLines - 1) > availableHeight) { in onMeasure()
135 maxLines--; in onMeasure()
138 maxLines = Math.min(getMaxLines(), maxLines); in onMeasure()
141 if (maxLines != mLayoutMaxLines) { in onMeasure()
[all …]
/frameworks/base/core/java/android/util/
DLocalLog.java37 public LocalLog(int maxLines) { in LocalLog() argument
38 mMaxLines = Math.max(0, maxLines); in LocalLog()
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/
DAppCompatibility.java190 private static String truncate(String text, int maxLines) { in truncate() argument
193 for (int i = 0; i < maxLines && i < lines.length; i++) { in truncate()
197 if (lines.length > maxLines) { in truncate()
199 ret.append(lines.length - maxLines); in truncate()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiDiagnostics.java642 private ArrayList<String> getLogcat(int maxLines) { in getLogcat() argument
643 ArrayList<String> lines = new ArrayList<String>(maxLines); in getLogcat()
645 Process process = mJavaRuntime.exec(String.format("logcat -t %d", maxLines)); in getLogcat()
664 private LimitedCircularArray<String> getKernelLog(int maxLines) { in getKernelLog() argument
666 LimitedCircularArray<String> lines = new LimitedCircularArray<String>(maxLines); in getKernelLog()
/frameworks/base/core/java/android/text/
DStaticLayout.java311 public Builder setMaxLines(@IntRange(from = 0) int maxLines) { in setMaxLines()
312 mMaxLines = maxLines; in setMaxLines()
498 TextUtils.TruncateAt ellipsize, int ellipsizedWidth, int maxLines) { in StaticLayout() argument
513 .setMaxLines(maxLines); in StaticLayout()
543 mMaximumVisibleLineCount = maxLines; in StaticLayout()
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutTest.java519 TextUtils.TruncateAt ellipsize, int maxLines) { in createEllipsizeStaticLayout() argument
526 maxLines); in createEllipsizeStaticLayout()
/frameworks/base/core/java/android/widget/
DTextView.java5336 public void setMaxLines(int maxLines) { in setMaxLines() argument
5337 mMaximum = maxLines; in setMaxLines()
9495 final int maxLines = getMaxLines(); in suggestedSizeFitsInSpace() local
9520 if (maxLines != -1 && layout.getLineCount() > maxLines) { in suggestedSizeFitsInSpace()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...