Home | History | Annotate | Download | only in widget

Lines Matching defs:newFocus

2737         View newFocus;
2740 newFocus = FocusFinder.getInstance().findNextFocus(this, oldFocus, direction);
2762 newFocus = FocusFinder.getInstance().findNextFocusFromRect(this, mTempRect, direction);
2765 if (newFocus != null) {
2766 final int positionOfNewFocus = positionOfNewFocus(newFocus);
2779 int focusScroll = amountToScrollToNewFocus(direction, newFocus, positionOfNewFocus);
2784 newFocus.requestFocus(direction);
2787 } else if (distanceToView(newFocus) < maxScrollAmount){
2792 newFocus.requestFocus(direction);
2801 * @param newFocus The view that would have focus.
2802 * @return the position that contains newFocus
2804 private int positionOfNewFocus(View newFocus) {
2808 if (isViewAncestorOf(newFocus, child)) {
2812 throw new IllegalArgumentException("newFocus is not a child of any of the"
2829 * Determine how much we need to scroll in order to get newFocus in view.
2832 * @param newFocus The view that would take focus.
2833 * @param positionOfNewFocus The position of the list item containing newFocus
2837 private int amountToScrollToNewFocus(int direction, View newFocus, int positionOfNewFocus) {
2839 newFocus.getDrawingRect(mTempRect);
2840 offsetDescendantRectToMyCoords(newFocus, mTempRect);