Searched refs:maxLines (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
H A DImageFloatingTextView.java84 int maxLines;
86 maxLines = mMaxLinesForHeight;
88 maxLines = getMaxLines() >= 0 ? getMaxLines() : Integer.MAX_VALUE;
90 builder.setMaxLines(maxLines);
91 mLayoutMaxLines = maxLines;
133 int maxLines = layout.getLineCount() - 1;
134 while (maxLines > 1 && layout.getLineBottom(maxLines - 1) > availableHeight) {
135 maxLines--;
138 maxLines
[all...]
/frameworks/base/core/java/android/util/
H A DLocalLog.java34 public LocalLog(int maxLines) { argument
35 mMaxLines = Math.max(0, maxLines);
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DResizingTextView.java218 final int maxLines = getMaxLines();
219 if (maxLines > 1) {
220 resizeText = lineCount == maxLines;
H A DAbstractDetailsDescriptionPresenter.java112 final int maxLines = titleLines > 1 ? mBodyMinLines : mBodyMaxLines;
113 if (mBody.getMaxLines() != maxLines) {
114 mBody.setMaxLines(maxLines);
H A DGuidedActionsStylist.java783 private static void setMaxLines(TextView view, int maxLines) { argument
786 if (maxLines == 1) {
790 view.setMaxLines(maxLines);
/frameworks/support/compat/src/androidTest/java/android/support/v4/testutils/
H A DTextViewActions.java39 public static ViewAction setMaxLines(final int maxLines) { argument
56 textView.setMaxLines(maxLines);
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/
H A DAppCompatibility.java186 * @param maxLines
189 private static String truncate(String text, int maxLines) { argument
192 for (int i = 0; i < maxLines && i < lines.length; i++) {
196 if (lines.length > maxLines) {
198 ret.append(lines.length - maxLines);
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DAppCompatTextViewAutoSizeHelper.java675 final int maxLines = Build.VERSION.SDK_INT >= 16 ? mTextView.getMaxLines() : -1;
689 text, alignment, Math.round(availableSpace.right), maxLines)
693 if (maxLines != -1 && (layout.getLineCount() > maxLines
708 Layout.Alignment alignment, int availableWidth, int maxLines) {
725 .setMaxLines(maxLines == -1 ? Integer.MAX_VALUE : maxLines)
707 createStaticLayoutForMeasuring(CharSequence text, Layout.Alignment alignment, int availableWidth, int maxLines) argument
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DWifiDiagnostics.java597 private ArrayList<String> getLogcat(int maxLines) { argument
598 ArrayList<String> lines = new ArrayList<String>(maxLines);
600 Process process = mJavaRuntime.exec(String.format("logcat -t %d", maxLines));
619 private LimitedCircularArray<String> getKernelLog(int maxLines) { argument
621 LimitedCircularArray<String> lines = new LimitedCircularArray<String>(maxLines);
/frameworks/support/v7/appcompat/src/androidTest/java/androidx/appcompat/widget/
H A DAppCompatBaseAutoSizeTest.java110 final int maxLines = i;
114 autoSizeView.setMaxLines(maxLines);
126 autoSizeView.setMaxLines(maxLines + 1);
136 final int maxLines = i;
140 autoSizeView.setMaxLines(maxLines);
152 autoSizeView.setMaxLines(maxLines - 1);
/frameworks/base/core/java/android/text/
H A DStaticLayout.java311 * @param maxLines maximum number of lines in the layout
316 public Builder setMaxLines(@IntRange(from = 0) int maxLines) { argument
317 mMaxLines = maxLines;
508 TextUtils.TruncateAt ellipsize, int ellipsizedWidth, int maxLines) {
523 .setMaxLines(maxLines);
553 mMaximumVisibleLineCount = maxLines;
1034 // special case for non-ellipsized last visible line when maxLines is set
1331 + " maxLines:" + mMaximumVisibleLineCount
1393 * If maxLines is set, ellipsize is not set, and the actual line count of text is greater than
1395 * starting from the top of the layout. If maxLines i
503 StaticLayout(CharSequence source, int bufstart, int bufend, TextPaint paint, int outerwidth, Alignment align, TextDirectionHeuristic textDir, float spacingmult, float spacingadd, boolean includepad, TextUtils.TruncateAt ellipsize, int ellipsizedWidth, int maxLines) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/text/
H A DStaticLayoutTest.java517 TextUtils.TruncateAt ellipsize, int maxLines) {
524 maxLines);
588 // The white spaces in this text will be trailing if maxLines is larger than 1, but
516 createEllipsizeStaticLayout(CharSequence text, TextUtils.TruncateAt ellipsize, int maxLines) argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DSubscriptionController.java108 public ScLocalLog(int maxLines) { argument
110 mMaxLines = maxLines;
/frameworks/base/core/java/android/widget/
H A DTextView.java2533 * top Drawable if any and any extra space to keep more than maxLines
2570 * bottom Drawable if any and any extra space to keep more than maxLines
2639 * Drawable if any, the extra space to keep more than maxLines
2648 * Drawable if any, the extra space to keep more than maxLines
4810 * Sets the height of the TextView to be at most {@code maxLines} tall.
4816 * @param maxLines the maximum height of TextView in terms of number of lines
4824 public void setMaxLines(int maxLines) { argument
4825 mMaximum = maxLines;
8723 final int maxLines = getMaxLines();
8748 if (maxLines !
[all...]

Completed in 331 milliseconds