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.java11506 final int topLine; in onProvideStructure() local
11510 topLine = getLineAtCoordinateUnclamped(0); in onProvideStructure()
11515 topLine = getLineAtCoordinateUnclamped(-topWindowLocation); in onProvideStructure()
11520 int expandedTopLine = topLine - (bottomLine - topLine) / 2; in onProvideStructure()
11524 int expandedBottomLine = bottomLine + (bottomLine - topLine) / 2; in onProvideStructure()
11557 final int[] lineOffsets = new int[bottomLine - topLine + 1]; in onProvideStructure()
11558 final int[] lineBaselines = new int[bottomLine - topLine + 1]; in onProvideStructure()
11560 for (int i = topLine; i <= bottomLine; i++) { in onProvideStructure()
11561 lineOffsets[i - topLine] = layout.getLineStart(i); in onProvideStructure()
11562 lineBaselines[i - topLine] = layout.getLineBaseline(i) + baselineOffset; in onProvideStructure()