Home
last modified time | relevance | path

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

/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DRecyclerViewFocusRecoveryTest.java130 final RecyclerView.ViewHolder oldVh = focusVh(3); in testFocusRecoveryInChange() local
144 assertFocusTransition(oldVh, newVh, false); in testFocusRecoveryInChange()
491 private void assertFocusTransition(RecyclerView.ViewHolder oldVh, in assertFocusTransition() argument
502 assertThat(oldVh, sameInstance(newVh)); in assertFocusTransition()
504 assertThat(oldVh, not(sameInstance(newVh))); in assertFocusTransition()
505 assertFocus(oldVh, false); in assertFocusTransition()
527 final RecyclerView.ViewHolder oldVh = focusVh(3); in testFocusRecoveryInTypeChange() local
540 assertFocusTransition(oldVh, newVh, true); in testFocusRecoveryInTypeChange()
541 assertThat("test sanity", oldVh.getItemViewType(), not(newVh.getItemViewType())); in testFocusRecoveryInTypeChange()
568 RecyclerView.ViewHolder oldVh = focusVh(4); in recoverAdapterChangeViaStableId() local
[all …]
DRecyclerViewAnimationsTest.java75 final RecyclerView.ViewHolder oldVh = mRecyclerView.findViewHolderForAdapterPosition(3); in keepFocusAfterChangeAnimation() local
76 assertNotNull("test sanity", oldVh); in keepFocusAfterChangeAnimation()
80 oldVh.itemView.requestFocus(); in keepFocusAfterChangeAnimation()
83 assertTrue("test sanity", oldVh.itemView.hasFocus()); in keepFocusAfterChangeAnimation()
90 assertNotSame(oldVh, newVh); in keepFocusAfterChangeAnimation()
91 assertFalse(oldVh.itemView.hasFocus()); in keepFocusAfterChangeAnimation()