Home
last modified time | relevance | path

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

/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.java304 final int lineCount = layout.getLineCount(); in onDraw() local
316 for (int i = 0; i < lineCount; i++) { in onDraw()
334 for (int i = 0; i < lineCount; i++) { in onDraw()
350 for (int i = 0; i < lineCount; i++) { in onDraw()
360 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()
DLayoutTest.java227 final int lineCount = text.split("\n").length; in testGetLineExtra_returnsZeroByDefault() local
228 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/tests/AppLaunchWear/src/com/android/tests/applaunch/
DAppLaunch.java817 int lineCount = 1; in parseLaunchTimeAndWrite() local
823 if (lineCount == 2 && line.contains(WARNING_MESSAGE)) { in parseLaunchTimeAndWrite()
826 if (lineCount == (2 + addLineForWarning) && line.contains(SUCCESS_MESSAGE)) { in parseLaunchTimeAndWrite()
830 if (launchSuccess && lineCount == (5 + addLineForWarning)) { in parseLaunchTimeAndWrite()
837 if (lineCount == (9 + addLineForWarning)) { in parseLaunchTimeAndWrite()
843 } else if (lineCount == (10 + addLineForWarning)) { in parseLaunchTimeAndWrite()
853 lineCount++; in parseLaunchTimeAndWrite()
/frameworks/base/core/java/android/text/method/
DBaseMovementMethod.java627 final int lineCount = layout.getLineCount(); in scrollBottom() local
628 if (getBottomLine(widget) <= lineCount - 1) { in scrollBottom()
630 layout.getLineTop(lineCount) - getInnerHeight(widget)); in scrollBottom()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSmartReplyView.java263 final int lineCount = ((Button) child).getLineCount(); in onMeasure() local
264 if (lineCount < 1 || lineCount > 2) { in onMeasure()
269 if (lineCount == 1) { in onMeasure()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java134 int lineCount = layout.getLineCount(); in testHyphenationWidth() local
136 for (int i = 0; i < lineCount; ++i) { in testHyphenationWidth()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DDualHeightHorizontalLinearLayout.kt123 if (tv.lineCount < 2) { in <lambda>()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardBuilder.java1750 int lineCount = 0; in appendPhotoLine() local
1758 lineCount++; in appendPhotoLine()
1759 if (lineCount > maxNum) { in appendPhotoLine()
1763 lineCount = 0; in appendPhotoLine()
2089 int lineCount = 0; in encodeQuotedPrintable() local
2102 lineCount += 3; in encodeQuotedPrintable()
2104 if (lineCount >= 67) { in encodeQuotedPrintable()
2113 lineCount = 0; in encodeQuotedPrintable()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DTextInterpolator.kt425 for (lineNo in 0 until layout.lineCount) { // Shape all lines. in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java570 private ViewGroup buildExpectedView(CharSequence[] choices, int lineCount) { in buildExpectedView() argument
571 return buildExpectedView(choices, lineCount, new ArrayList<>()); in buildExpectedView()
576 CharSequence[] choices, int lineCount, List<Notification.Action> actions) { in buildExpectedView() argument
/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()
DTextView.java11793 final int lineCount = layout.getLineCount(); in onProvideStructure() local
11794 if (lineCount <= 1) { in onProvideStructure()
11834 if (expandedBottomLine >= lineCount) { in onProvideStructure()
11835 expandedBottomLine = lineCount - 1; in onProvideStructure()