Home
last modified time | relevance | path

Searched refs:getLineCount (Results 1 – 25 of 33) 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()
/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()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingTextMessage.java106 if (measuredTooSmall && getLineCount() <= 1) { in getMeasuredType()
113 if (layout.getEllipsisCount(layout.getLineCount() - 1) > 0) { in getMeasuredType()
128 return getLineCount();
DDialogTitle.java56 final int lineCount = layout.getLineCount(); in onMeasure()
DImageFloatingTextView.java133 int maxLines = layout.getLineCount() - 1; in onMeasure()
DSubtitleView.java304 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()
DTextView.java2676 if (mLayout.getLineCount() <= mMaximum) { in getExtendedPaddingTop()
2713 if (mLayout.getLineCount() <= mMaximum) { in getExtendedPaddingBottom()
7966 if (!mSingleLine && getLineCount() == 1 && canMarquee() in onDraw()
8058 public int getLineCount() { in getLineCount() method in TextView.Drawables
8059 return mLayout != null ? mLayout.getLineCount() : 0; in getLineCount()
9175 if (width > 0.0f && mLayout != null && getLineCount() == 1 && !mUserSetTextScaleX in compressText()
9194 int n = layout.getLineCount(); in desired()
9410 if (mMaxMode == LINES && mLayout.getLineCount() > mMaximum) { in onMeasure()
9530 if (maxLines != -1 && layout.getLineCount() > maxLines) { in suggestedSizeFitsInSpace()
9565 int linecount = layout.getLineCount(); in getDesiredHeight()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DMessagingLinearLayoutTest.java176 public int getLineCount() {
181 return LINE_HEIGHT * getLineCount();
/frameworks/base/core/java/android/text/
DSelection.java287 if (line < layout.getLineCount() - 1) { in moveDown()
376 if (line < layout.getLineCount() - 1) { in extendDown()
491 if (line == layout.getLineCount() - 1) in findEdge()
DDynamicLayout.java578 endline = getLineCount(); in reflow()
580 boolean islast = (endline == getLineCount()); in reflow()
613 int n = reflowed.getLineCount(); in reflow()
1004 public int getLineCount() { in getLineCount() method in DynamicLayout
DLayout.java682 final int bottom = Math.min(getLineTop(getLineCount()), dbottom); in getLineRangeForDraw()
793 return getLineTop(getLineCount()); in getHeight()
839 public abstract int getLineCount(); in getLineCount() method in Layout
1483 int high = getLineCount(), low = -1, guess; in getLineForVertical()
1506 int high = getLineCount(), low = -1, guess; in getLineForOffset()
1558 if (line == getLineCount() - 1) { in getOffsetForHorizontal()
1689 if (line == getLineCount() - 1) { in getLineVisibleEnd()
1773 if (line < getLineCount() - 1) { in getOffsetToLeftRightOf()
DStaticLayout.java765 int breakCount = res.getLineCount(); in generate()
1207 public int getLineCount() {
1246 if (line > getLineCount()) {
DBoringLayout.java378 public int getLineCount() { in getLineCount() method in BoringLayout
/frameworks/base/core/java/android/text/method/
DBaseMovementMethod.java546 final int limit = layout.getLineCount() - 1; in scrollDown()
590 if (bottomLine <= layout.getLineCount() - 1) { in scrollPageDown()
627 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.java209 int lineCount = layout.getLineCount(); in testHyphenationWidth()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileView.java110 if (mLabel.getLineCount() > MAX_LABEL_LINES || !TextUtils.isEmpty(mSecondLine.getText()) in onMeasure()
/frameworks/base/graphics/java/android/graphics/text/
DLineBreaker.java367 public @IntRange(from = 0) int getLineCount() { in getLineCount() method in LineBreaker.Result
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleFlyoutView.java218 if (mFlyoutText.getLineCount() > 1) { in showFlyout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java432 final int lineCount = ((Button) child).getLineCount(); in onMeasure()
715 if (button.getLineCount() > 2 || newWidth >= oldWidth) { in squeezeButtonToTextWidth()
/frameworks/opt/chips/src/com/android/ex/chips/
DRecipientEditTextView.java709 final int desiredPos = mCoords[1] + height / getLineCount(); in scrollBottomIntoView()
1189 .abs(getLineCount() - line)) + getPaddingBottom()); in calculateOffsetFromBottomToTop()
2475 if (!isPhoneQuery() && getLineCount() > mMaxLines) { in createMoreChip()
2476 setMaxLines(getLineCount()); in createMoreChip()

12