Home
last modified time | relevance | path

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

/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DGridWidgetTest.java1672 final int[] existing_position = new int[1]; in testScrollInSmoothScrolling() local
1676 existing_position[0] = mGridView.getChildAdapterPosition( in testScrollInSmoothScrolling()
1679 existing_position[0] = existing_position[0] + 3; in testScrollInSmoothScrolling()
1683 mGridView.smoothScrollToPosition(existing_position[0]); in testScrollInSmoothScrolling()
1685 mGridView.scrollToPosition(existing_position[0]); in testScrollInSmoothScrolling()
1689 mGridView.setSelectedPositionSmooth(existing_position[0]); in testScrollInSmoothScrolling()
1691 mGridView.setSelectedPosition(existing_position[0]); in testScrollInSmoothScrolling()
1697 assertEquals(existing_position[0], mGridView.getSelectedPosition()); in testScrollInSmoothScrolling()
1698 assertTrue(mGridView.findViewHolderForAdapterPosition(existing_position[0]) in testScrollInSmoothScrolling()