Searched refs:getLineStart (Results 1 – 6 of 6) sorted by relevance
173 assertEquals(0, mDynamicLayout.getLineStart(LINE0)); in testLineLayout()174 assertEquals(TEXT[0].length(), mDynamicLayout.getLineStart(LINE1)); in testLineLayout()175 assertEquals(TEXT[0].length() + TEXT[1].length(), mDynamicLayout.getLineStart(LINE2)); in testLineLayout()
112 assertEquals(0, mBoringLayout.getLineStart(0)); in testPreconditions()113 assertEquals(DEFAULT_CHAR_SEQUENCE.length(), mBoringLayout.getLineStart(1)); in testPreconditions()114 assertEquals(DEFAULT_CHAR_SEQUENCE.length(), mBoringLayout.getLineStart(10)); in testPreconditions()
122 int lineStart = staticLayout.getLineStart(line); in debugLayout()143 int lineStart = staticLayout.getLineStart(line); in layout()171 int lineStart = staticLayout.getLineStart(line); in layoutMaxLines()
308 assertTrue(mDefaultLayout.getLineStart(0) >= 0); in testGetLineStart()309 assertTrue(mDefaultLayout.getLineStart(1) >= 0); in testGetLineStart()312 mDefaultLayout.getLineStart(-1); in testGetLineStart()318 mDefaultLayout.getLineStart(LARGER_THAN_LINE_COUNT); in testGetLineStart()
329 public int getLineStart(int line) { in getLineStart() method in LayoutTest.MockLayout
470 int x = (mView.getLayout().getLineStart(line) + mView.getLayout().getLineEnd(line)) / 2; in performMotionOnLine()