Searched refs:viewToFocus (Results 1 – 4 of 4) sorted by relevance
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
D | StaggeredGridLayoutManagerTest.java | 454 View viewToFocus = mRecyclerView.findViewHolderForAdapterPosition(1).itemView; in focusSearchFailure() local 455 assertTrue(requestFocus(viewToFocus, true)); in focusSearchFailure() 456 assertSame(viewToFocus, mRecyclerView.getFocusedChild()); in focusSearchFailure() 458 View focusedView = viewToFocus; in focusSearchFailure() 566 View viewToFocus = toFocus.itemView; in topUnfocusableViewsVisibility() local 567 assertTrue(requestFocus(viewToFocus, true)); in topUnfocusableViewsVisibility() 568 assertSame(viewToFocus, mRecyclerView.getFocusedChild()); in topUnfocusableViewsVisibility() 573 View focusedView = viewToFocus; in topUnfocusableViewsVisibility() 679 View viewToFocus = toFocus.itemView; in bottomUnfocusableViewsVisibility() local 680 assertTrue(requestFocus(viewToFocus, true)); in bottomUnfocusableViewsVisibility() [all …]
|
D | GridLayoutManagerTest.java | 161 View viewToFocus = recyclerView.findViewHolderForAdapterPosition(1).itemView; in focusSearchFailure() local 162 assertTrue(requestFocus(viewToFocus, true)); in focusSearchFailure() 163 assertSame(viewToFocus, recyclerView.getFocusedChild()); in focusSearchFailure() 165 View focusedView = viewToFocus; in focusSearchFailure() 365 View viewToFocus = toFocus.itemView; in topUnfocusableViewsVisibility() local 366 assertTrue(requestFocus(viewToFocus, true)); in topUnfocusableViewsVisibility() 367 assertSame(viewToFocus, recyclerView.getFocusedChild()); in topUnfocusableViewsVisibility() 455 View viewToFocus = toFocus.itemView; in bottomUnfocusableViewsVisibility() local 456 assertTrue(requestFocus(viewToFocus, true)); in bottomUnfocusableViewsVisibility() 457 assertSame(viewToFocus, recyclerView.getFocusedChild()); in bottomUnfocusableViewsVisibility() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | RecyclerView.java | 3380 View viewToFocus = null; in recoverFocusFromState() local 3390 viewToFocus = findNextViewToFocus(); in recoverFocusFromState() 3395 viewToFocus = focusTarget.itemView; in recoverFocusFromState() 3398 if (viewToFocus != null) { in recoverFocusFromState() 3400 View child = viewToFocus.findViewById(mState.mFocusedSubChildId); in recoverFocusFromState() 3402 viewToFocus = child; in recoverFocusFromState() 3405 viewToFocus.requestFocus(); in recoverFocusFromState()
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
D | RecyclerView.java | 3717 View viewToFocus = null; in recoverFocusFromState() local 3727 viewToFocus = findNextViewToFocus(); in recoverFocusFromState() 3732 viewToFocus = focusTarget.itemView; in recoverFocusFromState() 3735 if (viewToFocus != null) { in recoverFocusFromState() 3737 View child = viewToFocus.findViewById(mState.mFocusedSubChildId); in recoverFocusFromState() 3739 viewToFocus = child; in recoverFocusFromState() 3742 viewToFocus.requestFocus(); in recoverFocusFromState()
|