Searched refs:focusIndex (Results 1 – 5 of 5) sorted by relevance
119 int focusIndex = recyclerView.getChildAdapterPosition(toFocus); in focusedChildStaysInViewWhenRecyclerViewShrinks() local140 assertThat("Child at position " + focusIndex + " should be focused", in focusedChildStaysInViewWhenRecyclerViewShrinks()146 assertThat("Child view at adapter pos " + focusIndex + " should be fully visible.", in focusedChildStaysInViewWhenRecyclerViewShrinks()167 assertThat("Child at position " + focusIndex + " should be focused", in focusedChildStaysInViewWhenRecyclerViewShrinks()169 assertTrue("Child view at adapter pos " + focusIndex + " should be fully visible.", in focusedChildStaysInViewWhenRecyclerViewShrinks()176 focusIndex = recyclerView.getChildAdapterPosition(toFocus); in focusedChildStaysInViewWhenRecyclerViewShrinks()197 assertTrue("Child view at adapter pos " + focusIndex + " should be fully visible.", in focusedChildStaysInViewWhenRecyclerViewShrinks()251 int focusIndex = 0; in topUnfocusableViewsVisibility() local252 View newFocused = mRecyclerView.getChildAt(focusIndex); in topUnfocusableViewsVisibility()255 focusIndex); in topUnfocusableViewsVisibility()[all …]
231 int focusIndex = recyclerView.getChildAdapterPosition(toFocus); in focusedChildStaysInViewWhenRecyclerViewShrinks() local232 focusIndex = (focusIndex / spanCount) * spanCount + 1; in focusedChildStaysInViewWhenRecyclerViewShrinks()233 toFocus = recyclerView.findViewHolderForAdapterPosition(focusIndex).itemView; in focusedChildStaysInViewWhenRecyclerViewShrinks()234 assertTrue(focusIndex >= 1 && focusIndex < itemCount); in focusedChildStaysInViewWhenRecyclerViewShrinks()255 assertThat("Child at position " + focusIndex + " should be focused", in focusedChildStaysInViewWhenRecyclerViewShrinks()257 assertTrue("Child view at adapter pos " + focusIndex + " should be fully visible.", in focusedChildStaysInViewWhenRecyclerViewShrinks()278 assertTrue("Child view at adapter pos " + focusIndex + " should be fully visible.", in focusedChildStaysInViewWhenRecyclerViewShrinks()285 focusIndex = recyclerView.getChildAdapterPosition(toFocus); in focusedChildStaysInViewWhenRecyclerViewShrinks()286 focusIndex = (focusIndex / spanCount) * spanCount + (spanCount - 1); in focusedChildStaysInViewWhenRecyclerViewShrinks()287 toFocus = recyclerView.findViewHolderForAdapterPosition(focusIndex).itemView; in focusedChildStaysInViewWhenRecyclerViewShrinks()[all …]
563 int focusIndex = 1; in topUnfocusableViewsVisibility() local565 focusIndex); in topUnfocusableViewsVisibility()676 int focusIndex = 1; in bottomUnfocusableViewsVisibility() local678 focusIndex); in bottomUnfocusableViewsVisibility()785 int focusIndex = 1; in leftUnfocusableViewsVisibility() local787 focusIndex); in leftUnfocusableViewsVisibility()893 int focusIndex = 1; in rightUnfocusableViewsVisibility() local895 focusIndex); in rightUnfocusableViewsVisibility()
3545 int focusIndex = recyclerView.indexOfChild(view); in getChildDrawingOrder() local3548 if (i < focusIndex) { in getChildDrawingOrder()3551 return focusIndex + childCount - 1 - i; in getChildDrawingOrder()3553 return focusIndex; in getChildDrawingOrder()
2516 int focusIndex = mGridView.getSelectedPosition(); in testPendingSmoothScrollAndRemove() local2517 int topEdge = mGridView.getLayoutManager().findViewByPosition(focusIndex).getTop(); in testPendingSmoothScrollAndRemove()2527 mGridView.getLayoutManager().findViewByPosition(focusIndex).getTop()); in testPendingSmoothScrollAndRemove()