Home
last modified time | relevance | path

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

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerTest.java122 int focusIndex = mRecyclerView.getChildAdapterPosition(toFocus); in editTextVisibility() local
135 assertThat("Child at position " + focusIndex + " should be focused", in editTextVisibility()
141 assertTrue("Child view at adapter pos " + focusIndex + " should be fully visible.", in editTextVisibility()
155 assertThat("Child at position " + focusIndex + " should be focused", in editTextVisibility()
157 assertTrue("Child view at adapter pos " + focusIndex + " should be fully visible.", in editTextVisibility()
162 focusIndex = mRecyclerView.getChildAdapterPosition(toFocus); in editTextVisibility()
173 assertTrue("Child view at adapter pos " + focusIndex + " should be fully visible.", in editTextVisibility()
227 int focusIndex = 0; in topUnfocusableViewsVisibility() local
228 View newFocused = mRecyclerView.getChildAt(focusIndex); in topUnfocusableViewsVisibility()
231 focusIndex); in topUnfocusableViewsVisibility()
[all …]
DGridLayoutManagerTest.java224 int focusIndex = mRecyclerView.getChildAdapterPosition(toFocus); in editTextVisibility() local
225 focusIndex = (focusIndex / spanCount) * spanCount + 1; in editTextVisibility()
226 toFocus = mRecyclerView.findViewHolderForAdapterPosition(focusIndex).itemView; in editTextVisibility()
227 assertTrue(focusIndex >= 1 && focusIndex < itemCount); in editTextVisibility()
240 assertThat("Child at position " + focusIndex + " should be focused", in editTextVisibility()
242 assertTrue("Child view at adapter pos " + focusIndex + " should be fully visible.", in editTextVisibility()
256 assertTrue("Child view at adapter pos " + focusIndex + " should be fully visible.", in editTextVisibility()
261 focusIndex = mRecyclerView.getChildAdapterPosition(toFocus); in editTextVisibility()
262 focusIndex = (focusIndex / spanCount) * spanCount + (spanCount - 1); in editTextVisibility()
263 toFocus = mRecyclerView.findViewHolderForAdapterPosition(focusIndex).itemView; in editTextVisibility()
[all …]
DStaggeredGridLayoutManagerTest.java480 int focusIndex = 1; in topUnfocusableViewsVisibility() local
482 focusIndex); in topUnfocusableViewsVisibility()
593 int focusIndex = 1; in bottomUnfocusableViewsVisibility() local
595 focusIndex); in bottomUnfocusableViewsVisibility()
702 int focusIndex = 1; in leftUnfocusableViewsVisibility() local
704 focusIndex); in leftUnfocusableViewsVisibility()
810 int focusIndex = 1; in rightUnfocusableViewsVisibility() local
812 focusIndex); in rightUnfocusableViewsVisibility()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGridLayoutManager.java3428 int focusIndex = recyclerView.indexOfChild(view); in getChildDrawingOrder() local
3431 if (i < focusIndex) { in getChildDrawingOrder()
3434 return focusIndex + childCount - 1 - i; in getChildDrawingOrder()
3436 return focusIndex; in getChildDrawingOrder()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DGridWidgetTest.java2136 int focusIndex = mGridView.getSelectedPosition(); in testPendingSmoothScrollAndRemove() local
2137 int topEdge = mGridView.getLayoutManager().findViewByPosition(focusIndex).getTop(); in testPendingSmoothScrollAndRemove()
2147 mGridView.getLayoutManager().findViewByPosition(focusIndex).getTop()); in testPendingSmoothScrollAndRemove()