Searched refs:getDisplayedChild (Results 1 – 3 of 3) sorted by relevance
28 assertEquals(0, viewAnimator.getDisplayedChild()); in getDisplayedChildWhenEmpty_shouldDefaultToZero()34 assertEquals(0, viewAnimator.getDisplayedChild()); in getDisplayedChild_shouldDefaultToZero()42 assertEquals(2, viewAnimator.getDisplayedChild()); in setDisplayedChild_shouldUpdateDisplayedChildIndex()60 assertEquals(0, viewAnimator.getDisplayedChild()); in showNext_shouldDisplayNextChild()62 assertEquals(1, viewAnimator.getDisplayedChild()); in showNext_shouldDisplayNextChild()64 assertEquals(0, viewAnimator.getDisplayedChild()); in showNext_shouldDisplayNextChild()71 assertEquals(0, viewAnimator.getDisplayedChild()); in showPrevious_shouldDisplayPreviousChild()73 assertEquals(1, viewAnimator.getDisplayedChild()); in showPrevious_shouldDisplayPreviousChild()75 assertEquals(0, viewAnimator.getDisplayedChild()); in showPrevious_shouldDisplayPreviousChild()
15 protected int getDisplayedChild() { in getDisplayedChild() method in ShadowViewAnimator30 return ((ViewGroup) realView).getChildAt(getDisplayedChild()); in getCurrentView()35 setDisplayedChild((getDisplayedChild() + 1) % ((ViewGroup) realView).getChildCount()); in showNext()40 …setDisplayedChild(getDisplayedChild() == 0 ? ((ViewGroup) realView).getChildCount() - 1 : getDispl… in showPrevious()
213 if (flip.getDisplayedChild() == flipIndex) { in closeBridge()223 if (flip.getDisplayedChild() >= numChildren && numChildren > 0) { in closeBridge()