Lines Matching refs:previouslyFocusedRect
476 @Nullable Rect previouslyFocusedRect) {
484 int row = findClosestRow(previouslyFocusedRect);
489 int row = findClosestRow(previouslyFocusedRect) + 1;
494 final int col = findClosestColumn(previouslyFocusedRect);
500 final int col = findClosestColumn(previouslyFocusedRect);
510 super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
514 * Returns the row (0 indexed) closest to previouslyFocusedRect or center if null.
516 private int findClosestRow(@Nullable Rect previouslyFocusedRect) {
517 if (previouslyFocusedRect == null) {
520 int centerY = previouslyFocusedRect.centerY();
541 * Returns the column (0 indexed) closest to the previouslyFocusedRect or center if null.
544 private int findClosestColumn(@Nullable Rect previouslyFocusedRect) {
545 if (previouslyFocusedRect == null) {
548 int centerX = previouslyFocusedRect.centerX() - mPaddingLeft;