Home
last modified time | relevance | path

Searched refs:getLineCount (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DTextViewTransformState.java52 && mText.getLineCount() == otherTvs.mText.getLineCount() in sameAs()
98 int lineCount = mText.getLineCount(); in transformScale()
99 return lineCount == 1 && lineCount == otherTvs.mText.getLineCount() in transformScale()
125 int lines = l.getLineCount(); in getEllipsisCount()
DMessagingLayoutTransformState.java236 return layout != null && layout.getEllipsisCount(layout.getLineCount() - 1) > 0; in hasEllipses()
/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutTest.java142 final int lineCount = staticLayout.getLineCount(); in testGetLineExtra_withoutLinespacing()
143 assertEquals(lineCount, dynamicLayout.getLineCount()); in testGetLineExtra_withoutLinespacing()
173 final int lineCount = staticLayout.getLineCount(); in testGetLineExtra_withLinespacing()
174 assertEquals(lineCount, dynamicLayout.getLineCount()); in testGetLineExtra_withLinespacing()
251 assertEquals(3, layout.getLineCount()); in testFallbackLineSpacing()
265 assertEquals(3, layout.getLineCount()); in testFallbackLineSpacing()
278 assertEquals(3, layout.getLineCount()); in testFallbackLineSpacing()
DStaticLayoutTest.java397 assertEquals(lines, l.getLineCount()); in assertLinesMetrics()
747 .getLineCount(); in testLocaleSpanAffectsHyphenation()
758 .getLineCount(); in testLocaleSpanAffectsHyphenation()
777 .getLineCount(); in testLocaleSpanAffectsHyphenation()
792 .getLineCount(); in testLocaleSpanAffectsHyphenation()
851 assertEquals(4, layout.getLineCount());
869 assertEquals(4, layout.getLineCount());
884 assertEquals(4, layout.getLineCount());
899 assertEquals(2, layout.getLineCount());
910 assertEquals(2, layout.getLineCount());
[all …]
DStaticLayoutDirectionsTest.java141 if (l.getLineCount() != 2) { in testTrailingWhitespace()
142 throw new RuntimeException("expected 2 lines, got: " + l.getLineCount()); in testTrailingWhitespace()
DDynamicLayoutOffsetMappingTest.java204 assertThat(layout.getLineCount()).isEqualTo(lineCount); in assertLineRange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsItem.java65 if (messageLayout.getLineCount() > 0) { in isTruncated()
68 messageLayout.getLineCount() - 1); in isTruncated()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingTextMessage.java113 if (measuredTooSmall && getLineCount() <= 1) { in getMeasuredType()
120 if (layout.getEllipsisCount(layout.getLineCount() - 1) > 0) { in getMeasuredType()
135 return getLineCount();
DDialogTitle.java56 final int lineCount = layout.getLineCount(); in onMeasure()
DImageFloatingTextView.java182 int maxLines = layout.getLineCount(); in onMeasure()
DSubtitleView.java305 final int lineCount = layout.getLineCount(); in onDraw()
/frameworks/base/core/java/android/widget/
DAccessibilityIterators.java70 if (nextLine >= mLayout.getLineCount()) { in following()
155 final int lastLineTop = mLayout.getLineTop(mLayout.getLineCount() - 1); in following()
157 ? mLayout.getLineForVertical(nextPageStartY) - 1 : mLayout.getLineCount() - 1; in following()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DMessagingLinearLayoutTest.java176 public int getLineCount() {
181 return LINE_HEIGHT * getLineCount();
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DDialogTitle.java55 final int lineCount = layout.getLineCount(); in onMeasure()
/frameworks/base/core/java/android/text/
DSelection.java288 if (line < layout.getLineCount() - 1) { in moveDown()
471 if (line < layout.getLineCount() - 1) { in extendDown()
586 if (line == layout.getLineCount() - 1) in findEdge()
DDynamicLayout.java716 endline = getLineCount(); in reflow()
718 boolean islast = (endline == getLineCount()); in reflow()
756 int n = reflowed.getLineCount(); in reflow()
1147 public int getLineCount() { in getLineCount() method in DynamicLayout
1279 before = dynamicLayout.getLineEnd(dynamicLayout.getLineCount() - 1); in onTextChanged()
DLayout.java1140 final int bottom = Math.min(getLineTop(getLineCount()), dbottom); in getLineRangeForDraw()
1219 return getLineTop(getLineCount()); in getHeight()
1236 public abstract int getLineCount(); in getLineCount() method in Layout
1258 for (int line = 0; line < getLineCount(); ++line) { in computeDrawingBoundingBox()
2151 int high = getLineCount(), low = -1, guess; in getLineForVertical()
2174 int high = getLineCount(), low = -1, guess; in getLineForOffset()
2227 if (line == getLineCount() - 1) { in getOffsetForHorizontal()
2371 if (startLine >= getLineCount()) { in getRangeForRect()
2760 if (line == getLineCount() - 1) { in getLineVisibleEnd()
2849 if (line < getLineCount() - 1) { in getOffsetToLeftRightOf()
DStaticLayout.java948 int breakCount = res.getLineCount(); in generate()
1430 public int getLineCount() {
1469 if (line > getLineCount()) {
DBoringLayout.java621 public int getLineCount() { in getLineCount() method in BoringLayout
/frameworks/base/core/java/android/text/method/
DBaseMovementMethod.java575 final int limit = layout.getLineCount() - 1; in scrollDown()
619 if (bottomLine <= layout.getLineCount() - 1) { in scrollPageDown()
656 final int lineCount = layout.getLineCount(); in scrollBottom()
DScrollingMovementMethod.java105 int line = layout.getLineCount() - 1; in onTakeFocus()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewFallbackLineSpacingTest.java120 assertEquals(3, layout.getLineCount()); in testFallbackLineSpacing()
DTextViewTest.java145 int lineCount = layout.getLineCount(); in testHyphenationWidth()
/frameworks/base/graphics/java/android/graphics/text/
DLineBreaker.java404 public @IntRange(from = 0) int getLineCount() { in getLineCount() method in LineBreaker.Result
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java281 final int lineCount = ((Button) child).getLineCount(); in onMeasure()
618 if (button.getLineCount() > 2 || newWidth >= oldWidth) { in squeezeButtonToTextWidth()

12