Home
last modified time | relevance | path

Searched refs:topLine (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/text/method/
DBaseMovementMethod.java424 final int topLine = getTopLine(widget); in getScrollBoundsLeft() local
426 if (topLine > bottomLine) { in getScrollBoundsLeft()
430 for (int line = topLine; line <= bottomLine; line++) { in getScrollBoundsLeft()
441 final int topLine = getTopLine(widget); in getScrollBoundsRight() local
443 if (topLine > bottomLine) { in getScrollBoundsRight()
447 for (int line = topLine; line <= bottomLine; line++) { in getScrollBoundsRight()
511 int topLine = layout.getLineForVertical(top); in scrollUp() local
512 if (layout.getLineTop(topLine) == top) { in scrollUp()
515 topLine -= 1; in scrollUp()
517 if (topLine >= 0) { in scrollUp()
[all …]
/frameworks/base/core/java/android/widget/
DTextView.java8961 final int topLine; in onProvideStructure() local
8965 topLine = getLineAtCoordinateUnclamped(0); in onProvideStructure()
8970 topLine = getLineAtCoordinateUnclamped(-topWindowLocation); in onProvideStructure()
8975 int expandedTopLine = topLine - (bottomLine-topLine)/2; in onProvideStructure()
8979 int expandedBottomLine = bottomLine + (bottomLine-topLine)/2; in onProvideStructure()
9004 final int[] lineOffsets = new int[bottomLine-topLine+1]; in onProvideStructure()
9005 final int[] lineBaselines = new int[bottomLine-topLine+1]; in onProvideStructure()
9007 for (int i=topLine; i<=bottomLine; i++) { in onProvideStructure()
9008 lineOffsets[i-topLine] = layout.getLineStart(i); in onProvideStructure()
9009 lineBaselines[i-topLine] = layout.getLineBaseline(i) + baselineOffset; in onProvideStructure()