Home
last modified time | relevance | path

Searched refs:focusIndex (Results 1 – 5 of 5) sorted by relevance

/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DLinearLayoutManagerTest.java119 int focusIndex = recyclerView.getChildAdapterPosition(toFocus); in focusedChildStaysInViewWhenRecyclerViewShrinks() local
140 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() local
252 View newFocused = mRecyclerView.getChildAt(focusIndex); in topUnfocusableViewsVisibility()
255 focusIndex); in topUnfocusableViewsVisibility()
[all …]
DGridLayoutManagerTest.java231 int focusIndex = recyclerView.getChildAdapterPosition(toFocus); in focusedChildStaysInViewWhenRecyclerViewShrinks() local
232 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 …]
DStaggeredGridLayoutManagerTest.java563 int focusIndex = 1; in topUnfocusableViewsVisibility() local
565 focusIndex); in topUnfocusableViewsVisibility()
676 int focusIndex = 1; in bottomUnfocusableViewsVisibility() local
678 focusIndex); in bottomUnfocusableViewsVisibility()
785 int focusIndex = 1; in leftUnfocusableViewsVisibility() local
787 focusIndex); in leftUnfocusableViewsVisibility()
893 int focusIndex = 1; in rightUnfocusableViewsVisibility() local
895 focusIndex); in rightUnfocusableViewsVisibility()
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DGridLayoutManager.java3545 int focusIndex = recyclerView.indexOfChild(view); in getChildDrawingOrder() local
3548 if (i < focusIndex) { in getChildDrawingOrder()
3551 return focusIndex + childCount - 1 - i; in getChildDrawingOrder()
3553 return focusIndex; in getChildDrawingOrder()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DGridWidgetTest.java2516 int focusIndex = mGridView.getSelectedPosition(); in testPendingSmoothScrollAndRemove() local
2517 int topEdge = mGridView.getLayoutManager().findViewByPosition(focusIndex).getTop(); in testPendingSmoothScrollAndRemove()
2527 mGridView.getLayoutManager().findViewByPosition(focusIndex).getTop()); in testPendingSmoothScrollAndRemove()