Home
last modified time | relevance | path

Searched refs:TestAdapter (Results 1 – 8 of 8) sorted by relevance

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DRecyclerViewLayoutTest.java77 TestAdapter adapter = new TestAdapter(100); in testScrollToPositionCallback()
203 TestAdapter adapter = new TestAdapter(100); in scrollInBothDirection()
269 TestAdapter adapter = new TestAdapter(100); in scrollInOtherOrientationTest()
320 TestAdapter testAdapter = new TestAdapter(10) { in transientStateRecycleTest()
371 final TestAdapter adapter = new TestAdapter(10); in testAdapterPositionInvalidation()
409 public void run(TestAdapter adapter) throws Throwable { in testAdapterPositionsRemoveItems()
418 public void run(TestAdapter adapter) throws Throwable { in testAdapterPositionsRemoveItemsBefore()
427 public void run(TestAdapter adapter) throws Throwable { in testAdapterPositionsAddItemsBefore()
436 public void run(TestAdapter adapter) throws Throwable { in testAdapterPositionsAddItemsInside()
445 public void run(TestAdapter adapter) throws Throwable { in testAdapterPositionsMoveItems()
[all …]
DAdapterHelperTest.java50 TestAdapter mTestAdapter;
52 TestAdapter mPreProcessClone; // we clone adapter pre-process to run operations to see result
54 private List<TestAdapter.Item> mPreLayoutItems;
73 mPreLayoutItems = new ArrayList<TestAdapter.Item>(); in cleanState()
195 mTestAdapter = new TestAdapter(count, mAdapterHelper); in setupBasic()
847 TestAdapter.Item item = mPreProcessClone.mItems.get(i); in preProcess()
876 private void assertAdaptersEqual(TestAdapter a1, TestAdapter a2) { in assertAdaptersEqual()
879 TestAdapter.Item item = a1.mItems.get(i); in assertAdaptersEqual()
932 TestAdapter.Item item = mTestAdapter.mItems.get(i); in rm()
946 static class TestAdapter { class in AdapterHelperTest
[all …]
DRecyclerViewAnimationsTest.java44 TestAdapter mTestAdapter;
65 TestAdapter testAdapter) in setupBasic()
70 mTestAdapter = new TestAdapter(itemCount); in setupBasic()
142 TestAdapter adapter = new TestAdapter(50) { in testAddRemoveSamePass()
250 TestAdapter testAdapter = new TestAdapter(10) { in changeAnimTest()
339 final TestAdapter adapter = new TestAdapter(1000) { in testRecycleDuringAnimations()
408 final TestAdapter adapter = new TestAdapter(itemCount) { in testStableIdNotifyDataSetChanged()
418 void onRun(TestAdapter testAdapter) throws Throwable { in testStableIdNotifyDataSetChanged()
444 TestAdapter adapter = new TestAdapter(10) { in getItemForDeletedViewTest()
764 void onRun(TestAdapter adapter) throws Throwable { in testAddDelete2()
[all …]
DRecyclerViewAccessibilityTest.java58 final TestAdapter adapter = new TestAdapter(10); in onInitializeAccessibilityNodeInfoTest()
DLinearLayoutManagerTest.java61 TestAdapter mTestAdapter;
95 mTestAdapter = config.mTestAdapter == null ? new TestAdapter(config.mItemCount) in setupByConfig()
375 final TestAdapter adapter = new TestAdapter(300) { in testRecycleDuringAnimations()
526 final TestAdapter newAdapter = new TestAdapter(100) { in getFirstLastChildrenTest()
1107 TestAdapter mTestAdapter;
1119 Config adapter(TestAdapter adapter) { in adapter()
DBaseRecyclerViewInstrumentationTest.java361 TestAdapter testAdapter = (TestAdapter) mRecyclerView.getAdapter(); in assertVisibleItemPositions()
469 class TestAdapter extends RecyclerView.Adapter<TestViewHolder> class in BaseRecyclerViewInstrumentationTest
475 TestAdapter(int count) { in TestAdapter() method in BaseRecyclerViewInstrumentationTest.TestAdapter
592 TestAdapter.super.notifyItemRangeChanged(positions[i], 1); in changePositionsAndNotify()
DStaggeredGridLayoutManagerTest.java503 final TestAdapter newAdapter = new TestAdapter(100) { in getFirstLastChildrenTest()
1823 class GridTestAdapter extends TestAdapter {
DGridLayoutManagerTest.java662 class GridTestAdapter extends TestAdapter {