Lines Matching refs:showRect
5666 Rect showRect = new Rect(
5675 showRect.left = Math.max(0, mSelectCursorBase.x - buffer);
5676 showRect.right = caretTop.x + buffer;
5678 showRect.left = Math.max(0, caretTop.x - buffer);
5679 showRect.right = mSelectCursorBase.x + buffer;
5685 showRect.top = Math.max(0, caretTop.y - buffer);
5686 showRect.bottom = mSelectCursorBase.y + buffer;
5688 showRect.top = Math.max(0, mSelectCursorBase.y - buffer);
5689 showRect.bottom = caretTop.y + buffer;
5693 if (visibleRect.contains(showRect)) {
5698 if (visibleRect.left > showRect.left) {
5700 scrollX += showRect.left - visibleRect.left;
5701 } else if (visibleRect.right < showRect.right) {
5703 scrollX += showRect.right - visibleRect.right;
5706 if (visibleRect.top > showRect.top) {
5707 scrollY += showRect.top - visibleRect.top;
5708 } else if (visibleRect.bottom < showRect.bottom) {
5709 scrollY += showRect.bottom - visibleRect.bottom;