Lines Matching refs:root

52      * Find the next view to take focus in root's descendants, starting from the view
54 * @param root Contains focused
59 public final View findNextFocus(ViewGroup root, View focused, int direction) {
63 View userSetNextFocus = focused.findUserSetNextFocus(root, direction);
73 root.offsetDescendantRectToMyCoords(focused, mFocusedRect);
75 // make up a rect at top left or bottom right of root
79 final int rootTop = root.getScrollY();
80 final int rootLeft = root.getScrollX();
86 final int rootBottom = root.getScrollY() + root.getHeight();
87 final int rootRight = root.getScrollX() + root.getWidth();
93 return findNextFocus(root, focused, mFocusedRect, direction);
97 * Find the next view to take focus in root's descendants, searching from
98 * a particular rectangle in root's coordinates.
99 * @param root Contains focusedRect.
104 public View findNextFocusFromRect(ViewGroup root, Rect focusedRect, int direction) {
105 return findNextFocus(root, null, focusedRect, direction);
108 private View findNextFocus(ViewGroup root, View focused, Rect focusedRect, int direction) {
109 ArrayList<View> focusables = root.getFocusables(direction);
134 // only interested in other non-root views
135 if (focusable == focused || focusable == root) continue;
139 root.offsetDescendantRectToMyCoords(focusable, mOtherRect);
385 * @param root The root of the tree in which to search
393 public View findNearestTouchable(ViewGroup root, int x, int y, int direction, int[] deltas) {
394 ArrayList<View> touchables = root.getTouchables();
400 int edgeSlop = ViewConfiguration.get(root.mContext).getScaledEdgeSlop();
411 root.offsetRectBetweenParentAndChild(touchable, touchableBounds, true, true);