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

/frameworks/base/core/java/android/widget/
H A DEditor.java5092 private int getCurrentLineAdjustedForSlop(Layout layout, int prevLine, float y) { argument
5094 if (layout == null || prevLine > layout.getLineCount()
5095 || layout.getLineCount() <= 0 || prevLine < 0) {
5100 if (Math.abs(trueLine - prevLine) >= 2) {
5110 final float prevLineTop = layout.getLineTop(prevLine) + verticalOffset;
5114 final float prevLineBottom = layout.getLineBottom(prevLine) + verticalOffset;
5120 currLine = Math.max(prevLine - 1, 0);
5122 currLine = Math.min(prevLine + 1, lineCount - 1);
5124 currLine = prevLine;

Completed in 72 milliseconds