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.java437 final int lineCount = ((Button) child).getLineCount(); in onMeasure() local
438 if (lineCount < 1 || lineCount > 2) { in onMeasure()
443 if (lineCount == 1) { in onMeasure()
466 && (lineCount == 2 || accumulatedMeasures.mMeasuredWidth > targetWidth); in onMeasure()
/frameworks/base/core/tests/coretests/src/android/widget/
DTextViewTest.java209 int lineCount = layout.getLineCount(); in testHyphenationWidth() local
211 for (int i = 0; i < lineCount; ++i) { in testHyphenationWidth()
/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/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyViewTest.java527 private ViewGroup buildExpectedView(CharSequence[] choices, int lineCount) { in buildExpectedView() argument
528 return buildExpectedView(choices, lineCount, new ArrayList<>()); in buildExpectedView()
533 CharSequence[] choices, int lineCount, List<Notification.Action> actions) { in buildExpectedView() argument
543 switch (lineCount) { in buildExpectedView()
551 fail("Invalid line count " + lineCount); in buildExpectedView()
/frameworks/base/graphics/java/android/graphics/
DColorSpace.java4368 int lineCount = 10;
4371 lineCount = 7;
4380 for (int i = 1; i < lineCount - 1; i++) {
4392 for (int i = 1; i < lineCount - 1; i++) {
4407 for (int i = 1; i < lineCount - 1; i++) {
/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()
DEditor.java5706 final int lineCount = layout.getLineCount();
5713 final float lastLineBottom = layout.getLineBottom(lineCount - 1) + verticalOffset;
5722 currLine = Math.min(prevLine + 1, lineCount - 1);
DTextView.java11484 final int lineCount = layout.getLineCount(); in onProvideStructure() local
11485 if (lineCount <= 1) { in onProvideStructure()
11525 if (expandedBottomLine >= lineCount) { in onProvideStructure()
11526 expandedBottomLine = lineCount - 1; in onProvideStructure()