Searched defs:prevLine (Results 1 - 1 of 1) sorted by relevance

/frameworks/base/core/java/android/widget/
H A DEditor.java5597 private int getCurrentLineAdjustedForSlop(Layout layout, int prevLine, float y) { argument
5599 if (layout == null || prevLine > layout.getLineCount()
5600 || layout.getLineCount() <= 0 || prevLine < 0) {
5605 if (Math.abs(trueLine - prevLine) >= 2) {
5615 final float prevLineTop = layout.getLineTop(prevLine) + verticalOffset;
5619 final float prevLineBottom = layout.getLineBottom(prevLine) + verticalOffset;
5625 currLine = Math.max(prevLine - 1, 0);
5627 currLine = Math.min(prevLine + 1, lineCount - 1);
5629 currLine = prevLine;

Completed in 98 milliseconds