Searched refs:focusedRect (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/java/android/view/ |
D | FocusFinder.java | 79 public View findNextFocusFromRect(ViewGroup root, Rect focusedRect, int direction) { in findNextFocusFromRect() argument 80 mFocusedRect.set(focusedRect); in findNextFocusFromRect() 84 private View findNextFocus(ViewGroup root, View focused, Rect focusedRect, int direction) { in findNextFocus() argument 97 next = findNextFocus(root, focused, focusedRect, direction, focusables); in findNextFocus() 116 private View findNextFocus(ViewGroup root, View focused, Rect focusedRect, in findNextFocus() argument 119 if (focusedRect == null) { in findNextFocus() 120 focusedRect = mFocusedRect; in findNextFocus() 123 focused.getFocusedRect(focusedRect); in findNextFocus() 124 root.offsetDescendantRectToMyCoords(focused, focusedRect); in findNextFocus() 126 if (focusedRect == null) { in findNextFocus() [all …]
|
/frameworks/support/v4/java/android/support/v4/widget/ |
D | FocusStrategy.java | 141 @Nullable T focused, @NonNull Rect focusedRect, int direction) { in findNextFocusInAbsoluteDirection() argument 144 final Rect bestCandidateRect = new Rect(focusedRect); in findNextFocusInAbsoluteDirection() 148 bestCandidateRect.offset(focusedRect.width() + 1, 0); in findNextFocusInAbsoluteDirection() 151 bestCandidateRect.offset(-(focusedRect.width() + 1), 0); in findNextFocusInAbsoluteDirection() 154 bestCandidateRect.offset(0, focusedRect.height() + 1); in findNextFocusInAbsoluteDirection() 157 bestCandidateRect.offset(0, -(focusedRect.height() + 1)); in findNextFocusInAbsoluteDirection() 176 if (isBetterCandidate(direction, focusedRect, focusableRect, bestCandidateRect)) { in findNextFocusInAbsoluteDirection()
|
/frameworks/base/core/java/android/widget/ |
D | ListView.java | 2515 Rect focusedRect = mTempRect; in handleHorizontalFocusWithinListItem() local 2517 currentFocus.getFocusedRect(focusedRect); in handleHorizontalFocusWithinListItem() 2518 offsetDescendantRectToMyCoords(currentFocus, focusedRect); in handleHorizontalFocusWithinListItem() 2519 offsetRectIntoDescendantCoords(nextFocus, focusedRect); in handleHorizontalFocusWithinListItem() 2521 focusedRect = null; in handleHorizontalFocusWithinListItem() 2523 if (nextFocus.requestFocus(direction, focusedRect)) { in handleHorizontalFocusWithinListItem()
|