Lines Matching refs:previouslyFocusedRect
477 @Nullable Rect previouslyFocusedRect) {
485 int row = findClosestRow(previouslyFocusedRect);
490 int row = findClosestRow(previouslyFocusedRect) + 1;
495 final int col = findClosestColumn(previouslyFocusedRect);
501 final int col = findClosestColumn(previouslyFocusedRect);
511 super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
515 * Returns the row (0 indexed) closest to previouslyFocusedRect or center if null.
517 private int findClosestRow(@Nullable Rect previouslyFocusedRect) {
518 if (previouslyFocusedRect == null) {
521 int centerY = previouslyFocusedRect.centerY();
542 * Returns the column (0 indexed) closest to the previouslyFocusedRect or center if null.
545 private int findClosestColumn(@Nullable Rect previouslyFocusedRect) {
546 if (previouslyFocusedRect == null) {
549 int centerX = previouslyFocusedRect.centerX() - mPaddingLeft;