Home
last modified time | relevance | path

Searched refs:findViewHolderForAdapterPosition (Results 1 – 25 of 67) sorted by relevance

123

/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DItemAnimatorV2ApiTest.java62 final RecyclerView.ViewHolder target = mRecyclerView.findViewHolderForAdapterPosition(9); in changeMovedOutside()
100 mRecyclerView.findViewHolderForAdapterPosition(1); in changeMovedOutsideWithPredictiveAndTwoViewHolders()
153 final RecyclerView.ViewHolder target = mRecyclerView.findViewHolderForAdapterPosition(0); in changeMovedOutsideWithPredictive()
194 RecyclerView.ViewHolder vh = mRecyclerView.findViewHolderForAdapterPosition(2); in simpleAdd()
202 RecyclerView.ViewHolder other = mRecyclerView.findViewHolderForAdapterPosition(i); in simpleAdd()
206 RecyclerView.ViewHolder other = mRecyclerView.findViewHolderForAdapterPosition(i); in simpleAdd()
215 RecyclerView.ViewHolder vh = mRecyclerView.findViewHolderForAdapterPosition(2); in simpleRemove()
227 RecyclerView.ViewHolder other = mRecyclerView.findViewHolderForAdapterPosition(i); in simpleRemove()
231 RecyclerView.ViewHolder other = mRecyclerView.findViewHolderForAdapterPosition(i); in simpleRemove()
240 RecyclerView.ViewHolder vh = mRecyclerView.findViewHolderForAdapterPosition(2); in simpleUpdate()
[all …]
DScrollToPositionWithAutoMeasure.java81 assertThat(recyclerView.findViewHolderForAdapterPosition(targetPos), in test()
85 recyclerView.findViewHolderForAdapterPosition(targetPos).itemView); in test()
91 assertThat(recyclerView.findViewHolderForAdapterPosition(targetPos), in test()
94 recyclerView.findViewHolderForAdapterPosition(targetPos); in test()
DLinearLayoutManagerTest.java254 RecyclerView.ViewHolder toFocus = mRecyclerView.findViewHolderForAdapterPosition( in topUnfocusableViewsVisibility()
273 toFocus = mRecyclerView.findViewHolderForAdapterPosition(focusIndex); in topUnfocusableViewsVisibility()
276 toVisible = mRecyclerView.findViewHolderForAdapterPosition(visibleIndex); in topUnfocusableViewsVisibility()
339 RecyclerView.ViewHolder toFocus = mRecyclerView.findViewHolderForAdapterPosition( in bottomUnfocusableViewsVisibility()
358 toFocus = mRecyclerView.findViewHolderForAdapterPosition(focusIndex); in bottomUnfocusableViewsVisibility()
361 toVisible = mRecyclerView.findViewHolderForAdapterPosition(visibleIndex); in bottomUnfocusableViewsVisibility()
425 RecyclerView.ViewHolder toFocus = mRecyclerView.findViewHolderForAdapterPosition( in leftUnfocusableViewsVisibility()
444 toFocus = mRecyclerView.findViewHolderForAdapterPosition(focusIndex); in leftUnfocusableViewsVisibility()
447 toVisible = mRecyclerView.findViewHolderForAdapterPosition(visibleIndex); in leftUnfocusableViewsVisibility()
510 RecyclerView.ViewHolder toFocus = mRecyclerView.findViewHolderForAdapterPosition( in rightUnfocusableViewsVisibility()
[all …]
DRecyclerViewFocusRecoveryTest.java143 RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForAdapterPosition(3); in testFocusRecoveryInChange()
302 FocusViewHolder newVh = cast(mRecyclerView.findViewHolderForAdapterPosition(6)); in testFocusRecoveryAfterChangingFocusableFlag()
444 FocusViewHolder fvh = cast(mRecyclerView.findViewHolderForAdapterPosition(0)); in assertFocusAfterLayout()
463 ? cast(mRecyclerView.findViewHolderForAdapterPosition( in assertFocusAfterLayout()
466 ? cast(mRecyclerView.findViewHolderForAdapterPosition( in assertFocusAfterLayout()
468 cast(mRecyclerView.findViewHolderForAdapterPosition(0))); in assertFocusAfterLayout()
539 RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForAdapterPosition(3); in testFocusRecoveryInTypeChange()
654 RecyclerView.ViewHolder otherVh = mRecyclerView.findViewHolderForAdapterPosition(4); in testDoNotRecoverViaPositionOnNewDataSet()
696 final RecyclerView.ViewHolder oldVh = mRecyclerView.findViewHolderForAdapterPosition(pos); in focusVh()
DGridLayoutManagerTest.java161 View viewToFocus = recyclerView.findViewHolderForAdapterPosition(1).itemView; in focusSearchFailure()
233 toFocus = recyclerView.findViewHolderForAdapterPosition(focusIndex).itemView; in focusedChildStaysInViewWhenRecyclerViewShrinks()
287 toFocus = recyclerView.findViewHolderForAdapterPosition(focusIndex).itemView; in focusedChildStaysInViewWhenRecyclerViewShrinks()
364 RecyclerView.ViewHolder toFocus = recyclerView.findViewHolderForAdapterPosition(focusIndex); in topUnfocusableViewsVisibility()
388 toFocus = recyclerView.findViewHolderForAdapterPosition(focusIndex); in topUnfocusableViewsVisibility()
390 toVisible = recyclerView.findViewHolderForAdapterPosition(visibleIndex); in topUnfocusableViewsVisibility()
454 RecyclerView.ViewHolder toFocus = recyclerView.findViewHolderForAdapterPosition(focusIndex); in bottomUnfocusableViewsVisibility()
478 toFocus = recyclerView.findViewHolderForAdapterPosition(focusIndex); in bottomUnfocusableViewsVisibility()
480 toVisible = recyclerView.findViewHolderForAdapterPosition(visibleIndex); in bottomUnfocusableViewsVisibility()
544 RecyclerView.ViewHolder toFocus = recyclerView.findViewHolderForAdapterPosition(focusIndex); in leftUnfocusableViewsVisibility()
[all …]
DLinearLayoutManagerWrapContentWithAspectRatioTest.java154 View itemView1 = recyclerView.findViewHolderForAdapterPosition(0).itemView; in wrapContentAffectsOtherOrientation()
160 View itemView2 = recyclerView.findViewHolderForAdapterPosition(1).itemView; in wrapContentAffectsOtherOrientation()
166 View itemView3 = recyclerView.findViewHolderForAdapterPosition(2).itemView; in wrapContentAffectsOtherOrientation()
DStaggeredGridLayoutManagerTest.java454 View viewToFocus = mRecyclerView.findViewHolderForAdapterPosition(1).itemView; in focusSearchFailure()
564 RecyclerView.ViewHolder toFocus = mRecyclerView.findViewHolderForAdapterPosition( in topUnfocusableViewsVisibility()
591 toVisible = mRecyclerView.findViewHolderForAdapterPosition(i); in topUnfocusableViewsVisibility()
677 RecyclerView.ViewHolder toFocus = mRecyclerView.findViewHolderForAdapterPosition( in bottomUnfocusableViewsVisibility()
704 toVisible = mRecyclerView.findViewHolderForAdapterPosition(i); in bottomUnfocusableViewsVisibility()
786 RecyclerView.ViewHolder toFocus = mRecyclerView.findViewHolderForAdapterPosition( in leftUnfocusableViewsVisibility()
813 toVisible = mRecyclerView.findViewHolderForAdapterPosition(i); in leftUnfocusableViewsVisibility()
894 RecyclerView.ViewHolder toFocus = mRecyclerView.findViewHolderForAdapterPosition( in rightUnfocusableViewsVisibility()
921 toVisible = mRecyclerView.findViewHolderForAdapterPosition(i); in rightUnfocusableViewsVisibility()
1026 mRecyclerView.findViewHolderForAdapterPosition(fullSpanIndex)); in temporaryGapHandling()
DItemTouchHelperTest.java153 .findViewHolderForAdapterPosition(1); in attachToNullRecycleViewDuringLongPress()
182 .findViewHolderForAdapterPosition(1); in attachToAnotherRecycleViewDuringLongPress()
201 .findViewHolderForAdapterPosition(1); in basicSwipeTest()
DFocusSearchNavigationTest.java140 RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i); in focusSearchForward()
163 lastViewHolder = mRecyclerView.findViewHolderForAdapterPosition(--i); in focusSearchBackwards()
169 RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i); in focusSearchBackwards()
DLinearLayoutManagerBaseConfigSetTest.java237 final RecyclerView.ViewHolder vh = mRecyclerView.findViewHolderForAdapterPosition(500); in dontRecycleViewsTranslatedOutOfBoundsFromStart()
271 final RecyclerView.ViewHolder vh = mRecyclerView.findViewHolderForAdapterPosition(500); in dontRecycleViewsTranslatedOutOfBoundsFromEnd()
DLinearLayoutManagerPrepareForDropTest.java185 assertSame(fromChild, mRecyclerView.findViewHolderForAdapterPosition(toPos).itemView); in prepareForDropTest()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
DHeadersSupportFragmentTest.java68 gridView.findViewHolderForAdapterPosition(0); in defaultScale()
96 gridView.findViewHolderForAdapterPosition(0); in disableScale()
123 gridView.findViewHolderForAdapterPosition(0); in disableScaleInConstructor()
DHeadersFragmentTest.java71 gridView.findViewHolderForAdapterPosition(0); in defaultScale()
99 gridView.findViewHolderForAdapterPosition(0); in disableScale()
126 gridView.findViewHolderForAdapterPosition(0); in disableScaleInConstructor()
DRowsFragmentTest.java156 View row0 = gridView.findViewHolderForAdapterPosition(0).itemView; in defaultAlignment()
163 View row1 = gridView.findViewHolderForAdapterPosition(1).itemView; in defaultAlignment()
202 assertNotNull(gridView.findViewHolderForAdapterPosition(7)); in selectBeforeSetAdapter()
236 assertNotNull(gridView.findViewHolderForAdapterPosition(7)); in selectBeforeAddData()
264 assertNotNull(gridView.findViewHolderForAdapterPosition(7)); in selectAfterAddData()
307 assertNotNull(gridView.findViewHolderForAdapterPosition(7)); in restoreSelection()
348 gridView.findViewHolderForAdapterPosition(lastRowPos + 1); in prefetchChildItemsBeforeAttach()
DRowsSupportFragmentTest.java153 View row0 = gridView.findViewHolderForAdapterPosition(0).itemView; in defaultAlignment()
160 View row1 = gridView.findViewHolderForAdapterPosition(1).itemView; in defaultAlignment()
199 assertNotNull(gridView.findViewHolderForAdapterPosition(7)); in selectBeforeSetAdapter()
233 assertNotNull(gridView.findViewHolderForAdapterPosition(7)); in selectBeforeAddData()
261 assertNotNull(gridView.findViewHolderForAdapterPosition(7)); in selectAfterAddData()
304 assertNotNull(gridView.findViewHolderForAdapterPosition(7)); in restoreSelection()
345 gridView.findViewHolderForAdapterPosition(lastRowPos + 1); in prefetchChildItemsBeforeAttach()
/frameworks/support/car/src/androidTest/java/androidx/car/widget/
DSubheaderListItemTest.java87 .findViewHolderForAdapterPosition(position); in getViewHolderAtPosition()
92 .findViewHolderForAdapterPosition(position); in getTextViewHolderAtPosition()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DGridWidgetTest.java1152 RecyclerView.ViewHolder vh = mGridView.findViewHolderForAdapterPosition(i); in testDontPruneMovingItem()
1204 RecyclerView.ViewHolder moveViewHolder = mGridView.findViewHolderForAdapterPosition(51); in testMoveItemToTheRight()
1268 RecyclerView.ViewHolder moveViewHolder = mGridView.findViewHolderForAdapterPosition(1499); in testMoveItemToTheLeft()
1698 assertTrue(mGridView.findViewHolderForAdapterPosition(existing_position[0]) in testScrollInSmoothScrolling()
1864 mGridView.findViewHolderForAdapterPosition(0).itemView.getRight()); in testItemMovedHorizontalRtl()
1898 assertEquals(topPadding, mGridView.findViewHolderForAdapterPosition(0).itemView in testScrollSecondaryCannotScroll()
1904 assertEquals(topPadding, mGridView.findViewHolderForAdapterPosition(300).itemView in testScrollSecondaryCannotScroll()
1941 assertEquals(topPadding, mGridView.findViewHolderForAdapterPosition(0).itemView.getTop()); in testScrollSecondaryNeedScroll()
1944 view = mGridView.findViewHolderForAdapterPosition(4).itemView; in testScrollSecondaryNeedScroll()
1948 view = mGridView.findViewHolderForAdapterPosition(8).itemView; in testScrollSecondaryNeedScroll()
[all …]
/frameworks/support/car/src/androidTest/java/androidx/car/drawer/
DCarDrawerTest.java99 .findViewHolderForAdapterPosition(position); in getViewHolderAtPositionInDrawer()
/frameworks/support/recyclerview-selection/src/main/java/androidx/recyclerview/selection/
DDefaultBandHost.java153 return mRecyclerView.findViewHolderForAdapterPosition(pos) != null; in hasView()
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DRecyclerViewParallax.java150 : recyclerView.findViewHolderForAdapterPosition(mAdapterPosition); in updateValue()
/frameworks/support/leanback/src/main/java/androidx/leanback/app/
DVerticalGridFragment.java157 if (mGridViewHolder.getGridView().findViewHolderForAdapterPosition(mSelectedPosition) in showOrHideTitle()
DVerticalGridSupportFragment.java152 if (mGridViewHolder.getGridView().findViewHolderForAdapterPosition(mSelectedPosition) in showOrHideTitle()
DPlaybackFragment.java114 .findViewHolderForAdapterPosition(0); in resetFocus()
259 verticalView.findViewHolderForAdapterPosition(0);
544 .findViewHolderForAdapterPosition(0); in loadControlRowAnimator()
DPlaybackSupportFragment.java109 .findViewHolderForAdapterPosition(0); in resetFocus()
252 verticalView.findViewHolderForAdapterPosition(0);
537 .findViewHolderForAdapterPosition(0); in loadControlRowAnimator()
DRowsSupportFragment.java275 verticalView.findViewHolderForAdapterPosition(position)); in getRowViewHolder()
584 .findViewHolderForAdapterPosition(position)); in findRowViewHolderByPosition()

123