Home
last modified time | relevance | path

Searched refs:lineCount (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DDialogTitle.java55 final int lineCount = layout.getLineCount(); in onMeasure() local
56 if (lineCount > 0) { in onMeasure()
57 final int ellipsisCount = layout.getEllipsisCount(lineCount - 1); in onMeasure()
/frameworks/base/core/java/com/android/internal/widget/
DDialogTitle.java56 final int lineCount = layout.getLineCount(); in onMeasure() local
57 if (lineCount > 0) { in onMeasure()
58 final int ellipsisCount = layout.getEllipsisCount(lineCount - 1); in onMeasure()
DSubtitleView.java305 final int lineCount = layout.getLineCount(); in onDraw() local
317 for (int i = 0; i < lineCount; i++) { in onDraw()
335 for (int i = 0; i < lineCount; i++) { in onDraw()
351 for (int i = 0; i < lineCount; i++) { in onDraw()
361 for (int i = 0; i < lineCount; i++) { in onDraw()
DActionBarView.java864 final int lineCount = titleLayout.getLineCount(); in isTitleTruncated() local
865 for (int i = 0; i < lineCount; i++) { in isTitleTruncated()
/frameworks/base/core/tests/coretests/src/android/text/
DDynamicLayoutTest.java142 final int lineCount = staticLayout.getLineCount(); in testGetLineExtra_withoutLinespacing() local
143 assertEquals(lineCount, dynamicLayout.getLineCount()); in testGetLineExtra_withoutLinespacing()
144 for (int i = 0; i < lineCount; i++) { in testGetLineExtra_withoutLinespacing()
173 final int lineCount = staticLayout.getLineCount(); in testGetLineExtra_withLinespacing() local
174 assertEquals(lineCount, dynamicLayout.getLineCount()); in testGetLineExtra_withLinespacing()
175 for (int i = 0; i < lineCount - 1; i++) { in testGetLineExtra_withLinespacing()
DDynamicLayoutOffsetMappingTest.java203 final int lineCount = lineBreaks.length - 1; in assertLineRange() local
204 assertThat(layout.getLineCount()).isEqualTo(lineCount); in assertLineRange()
205 for (int line = 0; line < lineCount; ++line) { in assertLineRange()
208 assertThat(layout.getLineEnd(lineCount - 1)).isEqualTo(lineBreaks[lineCount]); in assertLineRange()
DLayoutTest.java247 final int lineCount = text.split("\n").length; in testGetLineExtra_returnsZeroByDefault() local
248 for (int i = 0; i < lineCount; i++) { in testGetLineExtra_returnsZeroByDefault()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DTextViewTransformState.java98 int lineCount = mText.getLineCount(); in transformScale() local
99 return lineCount == 1 && lineCount == otherTvs.mText.getLineCount() in transformScale()
/frameworks/base/core/java/android/text/method/
DBaseMovementMethod.java656 final int lineCount = layout.getLineCount(); in scrollBottom() local
657 if (getBottomLine(widget) <= lineCount - 1) { in scrollBottom()
659 layout.getLineTop(lineCount) - getInnerHeight(widget)); in scrollBottom()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java281 final int lineCount = ((Button) child).getLineCount(); in onMeasure() local
282 if (lineCount < 1) { in onMeasure()
288 if (lineCount > 2) { in onMeasure()
294 if (lineCount == 1) { in onMeasure()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardBuilder.java1754 int lineCount = 0; in appendPhotoLine() local
1762 lineCount++; in appendPhotoLine()
1763 if (lineCount > maxNum) { in appendPhotoLine()
1767 lineCount = 0; in appendPhotoLine()
2093 int lineCount = 0; in encodeQuotedPrintable() local
2106 lineCount += 3; in encodeQuotedPrintable()
2108 if (lineCount >= 67) { in encodeQuotedPrintable()
2117 lineCount = 0; in encodeQuotedPrintable()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java145 int lineCount = layout.getLineCount(); in testHyphenationWidth() local
147 for (int i = 0; i < lineCount; ++i) { in testHyphenationWidth()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java608 private ViewGroup buildExpectedView(CharSequence[] choices, int lineCount) { in buildExpectedView() argument
609 return buildExpectedView(choices, lineCount, new ArrayList<>()); in buildExpectedView()
614 CharSequence[] choices, int lineCount, List<Notification.Action> actions) { in buildExpectedView() argument
/frameworks/base/packages/SystemUI/animation/src/com/android/systemui/animation/
DTextInterpolator.kt494 for (lineNo in 0 until layout.lineCount) { // Shape all lines. in <lambda>()
/frameworks/base/media/java/android/media/
DWebVttRenderer.java1744 final int lineCount = lines.length; in update() local
1745 for (int i = 0; i < lineCount; i++) { in update()
/frameworks/base/core/java/android/widget/
DToolbar.java621 final int lineCount = titleLayout.getLineCount(); in isTitleTruncated() local
622 for (int i = 0; i < lineCount; i++) { in isTitleTruncated()