Searched refs:LINE_HEIGHT (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | EditTextCursorAnchorInfoTest.java | 59 private static final int LINE_HEIGHT = 12; field in EditTextCursorAnchorInfoTest 69 new RectF(0f, 0f, 10f, LINE_HEIGHT), 70 new RectF(0f, LINE_HEIGHT, 20f, 2 * LINE_HEIGHT), 71 new RectF(0f, 2 * LINE_HEIGHT, 30f, 3 * LINE_HEIGHT), 72 new RectF(0f, 3 * LINE_HEIGHT, 40f, 4 * LINE_HEIGHT), 73 new RectF(0f, 4 * LINE_HEIGHT, 50f, 5 * LINE_HEIGHT)); 212 assertThat(lineBounds.get(0)).isEqualTo(new RectF(0f, 0f, 10f, LINE_HEIGHT)); in testVisibleLineBounds_allVisible_withLineSpacing() 214 float line1Top = LINE_HEIGHT + lineSpacing; in testVisibleLineBounds_allVisible_withLineSpacing() 215 float line1Bottom = line1Top + LINE_HEIGHT; in testVisibleLineBounds_allVisible_withLineSpacing() 218 float line2Top = 2 * (LINE_HEIGHT + lineSpacing); in testVisibleLineBounds_allVisible_withLineSpacing() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | MessagingLinearLayoutTest.java | 132 public static final int LINE_HEIGHT = 50; field in MessagingLinearLayoutTest.FakeImageFloatingTextView 143 return Math.max(LINE_HEIGHT, getMeasuredHeight()); in getLayoutHeight() 169 if (size <= LINE_HEIGHT) { 172 return (size / LINE_HEIGHT) * LINE_HEIGHT; 181 return LINE_HEIGHT * getLineCount();
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | LayoutTest.java | 73 private static final int LINE_HEIGHT = 12; field in LayoutTest 272 assertEquals(LINE_HEIGHT, layout.getLineBottom(0)); in testGetLineBottom() 595 return LINE_HEIGHT * (line); in getLineTop() 656 float expected_y = (i + 1) * LINE_HEIGHT - LINE_DESCENT; in testDraw() 671 RectF selectionRect = new RectF(0f, 0f, mWidth / 2f, LINE_HEIGHT); in highContrastTextEnabled_testDrawSelectionAndHighlight_drawsHighContrastSelectionAndHighlight() 724 RectF selectionRect = new RectF(0f, 0f, mWidth / 2f, LINE_HEIGHT); in highContrastTextEnabled_testDrawHighlight_drawsHighContrastHighlight() 777 RectF selectionRect = new RectF(0f, 0f, mWidth / 2f, LINE_HEIGHT); in highContrastTextDisabledByDefault_testDrawHighlight_drawsNormalHighlightBehind() 829 RectF selectionRect = new RectF(0f, 0f, mWidth / 2f, LINE_HEIGHT); in highContrastTextEnabledButFlagOff_testDrawHighlight_drawsNormalHighlightBehind() 918 expect.that(drawCommand.rect.height()).isAtLeast(LINE_HEIGHT); in highContrastTextEnabled_testDrawLightText_drawsBlackBackgroundRects() 920 float expectedY = (numBackgroundsFound) * (LINE_HEIGHT + LINE_DESCENT); in highContrastTextEnabled_testDrawLightText_drawsBlackBackgroundRects()
|