Home | History | Annotate | Download | only in widget

Lines Matching refs:newFocus

3088         View newFocus;
3091 newFocus = FocusFinder.getInstance().findNextFocus(this, oldFocus, direction);
3113 newFocus = FocusFinder.getInstance().findNextFocusFromRect(this, mTempRect, direction);
3116 if (newFocus != null) {
3117 final int positionOfNewFocus = positionOfNewFocus(newFocus);
3130 int focusScroll = amountToScrollToNewFocus(direction, newFocus, positionOfNewFocus);
3135 newFocus.requestFocus(direction);
3138 } else if (distanceToView(newFocus) < maxScrollAmount){
3143 newFocus.requestFocus(direction);
3152 * @param newFocus The view that would have focus.
3153 * @return the position that contains newFocus
3155 private int positionOfNewFocus(View newFocus) {
3159 if (isViewAncestorOf(newFocus, child)) {
3163 throw new IllegalArgumentException("newFocus is not a child of any of the"
3180 * Determine how much we need to scroll in order to get newFocus in view.
3183 * @param newFocus The view that would take focus.
3184 * @param positionOfNewFocus The position of the list item containing newFocus
3188 private int amountToScrollToNewFocus(int direction, View newFocus, int positionOfNewFocus) {
3190 newFocus.getDrawingRect(mTempRect);
3191 offsetDescendantRectToMyCoords(newFocus, mTempRect);