Android APIs
public class

RecyclerViewLayoutTest

extends BaseRecyclerViewInstrumentationTest
java.lang.Object
   ↳ junit.framework.Assert
     ↳ junit.framework.TestCase
       ↳ android.test.InstrumentationTestCase
         ↳ android.test.ActivityTestCase
           ↳ android.test.ActivityInstrumentationTestCase2<android.support.v7.widget.TestActivity>
             ↳ android.support.v7.widget.BaseRecyclerViewInstrumentationTest
               ↳ android.support.v7.widget.RecyclerViewLayoutTest

Summary

[Expand]
Inherited Fields
From class android.support.v7.widget.BaseRecyclerViewInstrumentationTest
Public Constructors
RecyclerViewLayoutTest()
Public Methods
void accessRecyclerOnOnMeasureTest(boolean enablePredictiveAnimations)
void adapterChangeDuringScrollTest(String msg, int orientation, Runnable onScrollRunnable)
void adapterChangeInMainThreadTest(String msg, Runnable onLayoutRunnable)
void adapterPositionsTest(RecyclerViewLayoutTest.AdapterRunnable adapterChanges)
void addItemDecoration(RecyclerView recyclerView, RecyclerView.ItemDecoration itemDecoration)
void callbacksDuringAdapterChange(boolean swap)
void drag(ViewGroup view, float fromX, float toX, float fromY, float toY, int stepCount)
void findViewByIdTest(boolean supportPredictive)
void focusRectOnScreenTest(boolean addItemDecors)
void incompatibleAdapterTest(boolean useCustomPool)
void invalidateDecorOffsets(RecyclerView recyclerView)
void recycleScrapTest(boolean useRecycler)
void removeItemDecoration(RecyclerView recyclerView, RecyclerView.ItemDecoration itemDecoration)
void scrollInBothDirection(int horizontalScrollCount, int verticalScrollCount, int horizontalVelocity, int verticalVelocity)
void scrollInOtherOrientationTest(boolean horizontal, boolean drag)
void smoothScrollTest(boolean removeItem)
void stableIdsMoveTest(boolean supportsPredictive)
void testAccessRecyclerOnOnMeasure()
void testAdapterChangeDuringLayout()
void testAdapterChangeDuringScroll()
void testAdapterPositionInvalidation()
void testAdapterPositionsAddItemsBefore()
void testAdapterPositionsAddItemsInside()
void testAdapterPositionsBasic()
void testAdapterPositionsMoveItems()
void testAdapterPositionsNotifyDataSetChanged()
void testAdapterPositionsRemoveItems()
void testAdapterPositionsRemoveItemsBefore()
void testAvoidLeakingRecyclerViewIfViewIsNotRecycled()
void testAvoidLeakingRecyclerViewViaViewHolder()
void testCallbacksDuringAdapterSet()
void testCallbacksDuringAdapterSwap()
void testConsecutiveSmoothScroll()
void testDetachWithoutLayoutManager()
void testDragVertical()
void testDraglHorizontal()
void testFindIgnoredByPosition()
void testFindViewById()
void testFlingHorizontal()
void testFlingVertical()
void testFocusRectOnScreenWithDecorOffsets()
void testFocusRectOnScreenWithout()
void testInvalidateAllDecorOffsets()
void testInvalidateDecorOffsets()
void testMovingViaStableIds()
void testNotifyDataSetChangedWithStableIds()
void testRecycleIgnored()
void testRecycleOnDetach()
void testRecycleScrap()
void testScrollHorizontalOnly()
void testScrollHorizontalOnlyReverse()
void testScrollInBothDirectionEqual()
void testScrollInBothDirectionEqualReverse()
void testScrollInBothDirectionMoreHorizontal()
void testScrollInBothDirectionMoreHorizontalReverse()
void testScrollInBothDirectionMoreVertical()
void testScrollInBothDirectionMoreVerticalReverse()
void testScrollStateDrag()
void testScrollStateForFling()
void testScrollStateForFlingWithStop()
void testScrollStateForSmoothScroll()
void testScrollStateForSmoothScrollWithStop()
void testScrollToPositionCallback()
void testScrollVerticalOnly()
void testScrollVerticalOnlyReverse()
void testSetCompatibleAdapter()
void testSetIncompatibleAdapter()
void testSmoothScrollWithRemovedItems()
void testState()
void testTransientStateDontRecycle()
void testTransientStateRecycleViaAdapter()
void testTransientStateRecycleViaTransientStateCleanup()
void testTypeForCache()
void testTypeForExistingViews()
void testUpdateHiddenView()
void testUpdatesAfterDetach()
void testUpdatesWhileDetached()
void transientStateRecycleTest(boolean succeed, boolean unsetTransientState)
[Expand]
Inherited Methods
From class android.support.v7.widget.BaseRecyclerViewInstrumentationTest
From class android.test.ActivityInstrumentationTestCase2
From class android.test.ActivityTestCase
From class android.test.InstrumentationTestCase
From class junit.framework.TestCase
From class junit.framework.Assert
From class java.lang.Object
From interface junit.framework.Test

Public Constructors

public RecyclerViewLayoutTest ()

Public Methods

public void accessRecyclerOnOnMeasureTest (boolean enablePredictiveAnimations)

Throws
Throwable

public void adapterChangeDuringScrollTest (String msg, int orientation, Runnable onScrollRunnable)

Throws
Throwable

public void adapterChangeInMainThreadTest (String msg, Runnable onLayoutRunnable)

Throws
Throwable

public void adapterPositionsTest (RecyclerViewLayoutTest.AdapterRunnable adapterChanges)

Throws
Throwable

public void addItemDecoration (RecyclerView recyclerView, RecyclerView.ItemDecoration itemDecoration)

Throws
Throwable

public void callbacksDuringAdapterChange (boolean swap)

Throws
Throwable

public void drag (ViewGroup view, float fromX, float toX, float fromY, float toY, int stepCount)

Throws
Throwable

public void findViewByIdTest (boolean supportPredictive)

Throws
Throwable

public void focusRectOnScreenTest (boolean addItemDecors)

Throws
Throwable

public void incompatibleAdapterTest (boolean useCustomPool)

Throws
Throwable

public void invalidateDecorOffsets (RecyclerView recyclerView)

Throws
Throwable

public void recycleScrapTest (boolean useRecycler)

Throws
Throwable

public void removeItemDecoration (RecyclerView recyclerView, RecyclerView.ItemDecoration itemDecoration)

Throws
Throwable

public void scrollInBothDirection (int horizontalScrollCount, int verticalScrollCount, int horizontalVelocity, int verticalVelocity)

Throws
Throwable

public void scrollInOtherOrientationTest (boolean horizontal, boolean drag)

Throws
Throwable

public void smoothScrollTest (boolean removeItem)

Throws
Throwable

public void stableIdsMoveTest (boolean supportsPredictive)

Throws
Throwable

public void testAccessRecyclerOnOnMeasure ()

Throws
Throwable

public void testAdapterChangeDuringLayout ()

Throws
Throwable

public void testAdapterChangeDuringScroll ()

Throws
Throwable

public void testAdapterPositionInvalidation ()

Throws
Throwable

public void testAdapterPositionsAddItemsBefore ()

Throws
Throwable

public void testAdapterPositionsAddItemsInside ()

Throws
Throwable

public void testAdapterPositionsBasic ()

Throws
Throwable

public void testAdapterPositionsMoveItems ()

Throws
Throwable

public void testAdapterPositionsNotifyDataSetChanged ()

Throws
Throwable

public void testAdapterPositionsRemoveItems ()

Throws
Throwable

public void testAdapterPositionsRemoveItemsBefore ()

Throws
Throwable

public void testAvoidLeakingRecyclerViewIfViewIsNotRecycled ()

Throws
Throwable

public void testAvoidLeakingRecyclerViewViaViewHolder ()

Throws
Throwable

public void testCallbacksDuringAdapterSet ()

Throws
Throwable

public void testCallbacksDuringAdapterSwap ()

Throws
Throwable

public void testConsecutiveSmoothScroll ()

Throws
Throwable

public void testDetachWithoutLayoutManager ()

Throws
Throwable

public void testDragVertical ()

Throws
Throwable

public void testDraglHorizontal ()

Throws
Throwable

public void testFindIgnoredByPosition ()

Throws
Throwable

public void testFindViewById ()

Throws
Throwable

public void testFlingHorizontal ()

Throws
Throwable

public void testFlingVertical ()

Throws
Throwable

public void testFocusRectOnScreenWithDecorOffsets ()

Throws
Throwable

public void testFocusRectOnScreenWithout ()

Throws
Throwable

public void testInvalidateAllDecorOffsets ()

Throws
Throwable

public void testInvalidateDecorOffsets ()

Throws
Throwable

public void testMovingViaStableIds ()

Throws
Throwable

public void testNotifyDataSetChangedWithStableIds ()

Throws
Throwable

public void testRecycleIgnored ()

Throws
Throwable

public void testRecycleOnDetach ()

Throws
Throwable

public void testRecycleScrap ()

Throws
Throwable

public void testScrollHorizontalOnly ()

Throws
Throwable

public void testScrollHorizontalOnlyReverse ()

Throws
Throwable

public void testScrollInBothDirectionEqual ()

Throws
Throwable

public void testScrollInBothDirectionEqualReverse ()

Throws
Throwable

public void testScrollInBothDirectionMoreHorizontal ()

Throws
Throwable

public void testScrollInBothDirectionMoreHorizontalReverse ()

Throws
Throwable

public void testScrollInBothDirectionMoreVertical ()

Throws
Throwable

public void testScrollInBothDirectionMoreVerticalReverse ()

Throws
Throwable

public void testScrollStateDrag ()

Throws
Throwable

public void testScrollStateForFling ()

Throws
Throwable

public void testScrollStateForFlingWithStop ()

Throws
Throwable

public void testScrollStateForSmoothScroll ()

Throws
Throwable

public void testScrollStateForSmoothScrollWithStop ()

Throws
Throwable

public void testScrollToPositionCallback ()

Throws
Throwable

public void testScrollVerticalOnly ()

Throws
Throwable

public void testScrollVerticalOnlyReverse ()

Throws
Throwable

public void testSetCompatibleAdapter ()

Throws
Throwable

public void testSetIncompatibleAdapter ()

Throws
Throwable

public void testSmoothScrollWithRemovedItems ()

Throws
Throwable

public void testState ()

Throws
Throwable

public void testTransientStateDontRecycle ()

Throws
Throwable

public void testTransientStateRecycleViaAdapter ()

Throws
Throwable

public void testTransientStateRecycleViaTransientStateCleanup ()

Throws
Throwable

public void testTypeForCache ()

Throws
Throwable

public void testTypeForExistingViews ()

Throws
Throwable

public void testUpdateHiddenView ()

Throws
Throwable

public void testUpdatesAfterDetach ()

Throws
Throwable

public void testUpdatesWhileDetached ()

Throws
Throwable

public void transientStateRecycleTest (boolean succeed, boolean unsetTransientState)

Throws
Throwable