Home
last modified time | relevance | path

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

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DRecyclerViewFocusRecoveryTest.java142 RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForAdapterPosition(3); in testFocusRecoveryInChange()
143 assertFocusTransition(oldVh, newVh, false); in testFocusRecoveryInChange()
301 FocusViewHolder newVh = cast(mRecyclerView.findViewHolderForAdapterPosition(6)); in testFocusRecoveryAfterChangingFocusableFlag() local
302 assertThat("VH should no longer be focusable", newVh.getViewToFocus().isFocusable(), in testFocusRecoveryAfterChangingFocusableFlag()
491 RecyclerView.ViewHolder newVh, boolean typeChanged) { in assertFocusTransition() argument
496 assertFocus(newVh, false); in assertFocusTransition()
499 assertThat("test sanity", newVh, notNullValue()); in assertFocusTransition()
501 assertThat(oldVh, sameInstance(newVh)); in assertFocusTransition()
503 assertThat(oldVh, not(sameInstance(newVh))); in assertFocusTransition()
506 assertFocus(newVh, true); in assertFocusTransition()
[all …]
DItemAnimatorV2ApiTest.java276 final RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForAdapterPosition(2); in updateWithDuplicateViewHolder() local
277 assertNotSame(vh, newVh); in updateWithDuplicateViewHolder()
281 assertSame(newVh, log.newHolder); in updateWithDuplicateViewHolder()
285 assertTrue(mAnimator.postLayoutInfoMap.containsKey(newVh)); in updateWithDuplicateViewHolder()
319 final RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForAdapterPosition(2); in updateWithOneDuplicateAndOneInPlace() local
321 assertNotSame(replaced, newVh); in updateWithOneDuplicateAndOneInPlace()
336 assertSame(newVh, logReplaced.newHolder); in updateWithOneDuplicateAndOneInPlace()
343 assertTrue(mAnimator.postLayoutInfoMap.containsKey(newVh)); in updateWithOneDuplicateAndOneInPlace()
574 final RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForAdapterPosition(2); in notifyUpdateWithChangedAdapterType() local
581 assertNotSame(vh, newVh); in notifyUpdateWithChangedAdapterType()
[all …]
DRecyclerViewAnimationsTest.java87 RecyclerView.ViewHolder newVh = mRecyclerView.findViewHolderForAdapterPosition(3); in keepFocusAfterChangeAnimation() local
88 assertNotNull("test sanity", newVh); in keepFocusAfterChangeAnimation()
89 assertNotSame(oldVh, newVh); in keepFocusAfterChangeAnimation()
91 assertTrue(newVh.itemView.hasFocus()); in keepFocusAfterChangeAnimation()