Home
last modified time | relevance | path

Searched refs:testAdapter (Results 1 – 16 of 16) sorted by relevance

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerSavedStateTest.java99 scrollToPosition(testAdapter().getItemCount() * 3 / 4); in params()
112 scrollToPositionWithOffset(testAdapter().getItemCount() / 3, in params()
126 scrollToPositionWithOffset(testAdapter().getItemCount() * 2 / 3, in params()
218 position = testAdapter().getItemCount() / 2; in params()
224 return testAdapter().getItemCount() == 0; in params()
234 if (testAdapter().getItemCount() > 0) { in params()
357 protected TestAdapter testAdapter() { in testAdapter() method in LinearLayoutManagerSavedStateTest.PostLayoutRunnable
392 protected TestAdapter testAdapter() { in testAdapter() method in LinearLayoutManagerSavedStateTest.PostRestoreRunnable
DRecyclerViewLayoutTest.java1237 final TestAdapter testAdapter = new TestAdapter(10); in assertPendingUpdatesAndLayoutTest() local
1238 setupBasic(recyclerView, layoutManager, testAdapter, false); in assertPendingUpdatesAndLayoutTest()
1244 runnable.run(testAdapter); in assertPendingUpdatesAndLayoutTest()
1273 TestAdapter testAdapter = new TestAdapter(10); in hasPendingUpdatesBeforeFirstLayout() local
1274 setupBasic(recyclerView, layoutManager, testAdapter, false); in hasPendingUpdatesBeforeFirstLayout()
1282 TestAdapter testAdapter = new TestAdapter(10); in noPendingUpdatesAfterLayout() local
1283 setupBasic(recyclerView, layoutManager, testAdapter, true); in noPendingUpdatesAfterLayout()
1291 public void run(TestAdapter testAdapter) throws Throwable { in hasPendingUpdatesAfterItemIsRemoved()
1292 testAdapter.deleteAndNotify(1, 1); in hasPendingUpdatesAfterItemIsRemoved()
1300 public void run(TestAdapter testAdapter) throws Throwable { in hasPendingUpdatesAfterItemIsInserted()
[all …]
DGridLayoutManagerCustomSizeInScrollDirectionTest.java70 final GridTestAdapter testAdapter = new GridTestAdapter(10) { in customSizeInScrollDirectionTest() local
95 testAdapter.setFullSpan(3, 5); in customSizeInScrollDirectionTest()
96 final RecyclerView rv = setupBasic(mConfig, testAdapter); in customSizeInScrollDirectionTest()
DBaseGridLayoutManagerTest.java47 public RecyclerView setupBasic(Config config, GridTestAdapter testAdapter) throws Throwable { in setupBasic() argument
49 mAdapter = testAdapter; in setupBasic()
DBaseRecyclerViewAnimationsTest.java60 TestAdapter testAdapter) in setupBasic() argument
64 if (testAdapter == null) { in setupBasic()
67 mTestAdapter = testAdapter; in setupBasic()
496 abstract void onRun(TestAdapter testAdapter) throws Throwable; in onRun() argument
DRecyclerViewAnimationsTest.java839 TestAdapter testAdapter = new TestAdapter(10) { in changeAnimTest() local
864 testAdapter.setHasStableIds(hasStableIds); in changeAnimTest()
865 setupBasic(testAdapter.getItemCount(), 0, 10, testAdapter); in changeAnimTest() local
926 TestAdapter testAdapter = new TestAdapter(10) { in testChangeWithPayload() local
952 testAdapter.setHasStableIds(false); in testChangeWithPayload()
953 setupBasic(testAdapter.getItemCount(), 0, 10, testAdapter); in testChangeWithPayload() local
1130 void onRun(TestAdapter testAdapter) throws Throwable { in stableIdNotifyDataSetChanged()
DBaseWrapContentTest.java82 TestAdapter testAdapter = new TestAdapter(20) { in unspecifiedWithHintTest() local
91 rv.setAdapter(testAdapter); in unspecifiedWithHintTest()
DBaseRecyclerViewInstrumentationTest.java585 TestAdapter testAdapter = (TestAdapter) mRecyclerView.getAdapter(); in assertVisibleItemPositions() local
596 testAdapter.mItems.get(vh.mPosition), item); in assertVisibleItemPositions()
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/
DRSTestCore.java47 private ArrayAdapter<UnitTest> testAdapter; field in RSTestCore
121testAdapter = new ArrayAdapter<UnitTest>(mCtx, android.R.layout.simple_list_item_1, unitTests); in init()
122 mCtx.setListAdapter(testAdapter); in init()
140 if (testAdapter != null) in checkAndRunNextTest()
141 testAdapter.notifyDataSetChanged(); in checkAndRunNextTest()
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
DRSTestCore.java47 private ArrayAdapter<UnitTest> testAdapter; field in RSTestCore
127testAdapter = new ArrayAdapter<UnitTest>(mCtx, android.R.layout.simple_list_item_1, unitTests); in init()
128 mCtx.setListAdapter(testAdapter); in init()
146 if (testAdapter != null) in checkAndRunNextTest()
147 testAdapter.notifyDataSetChanged(); in checkAndRunNextTest()
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
DRSTestCore.java47 private ArrayAdapter<UnitTest> testAdapter; field in RSTestCore
140testAdapter = new ArrayAdapter<UnitTest>(mCtx, android.R.layout.simple_list_item_1, unitTests); in init()
141 mCtx.setListAdapter(testAdapter); in init()
159 if (testAdapter != null) in checkAndRunNextTest()
160 testAdapter.notifyDataSetChanged(); in checkAndRunNextTest()
/frameworks/opt/setupwizard/library/full-support/test/src/com/android/setupwizardlib/test/
DRecyclerItemAdapterTest.java51 public void testAdapter() { in testAdapter() method in RecyclerItemAdapterTest
DGlifRecyclerLayoutTest.java66 public void testAdapter() { in testAdapter() method in GlifRecyclerLayoutTest
DSetupWizardRecyclerLayoutTest.java66 public void testAdapter() { in testAdapter() method in SetupWizardRecyclerLayoutTest
/frameworks/opt/setupwizard/library/test/src/com/android/setupwizardlib/test/
DItemAdapterTest.java49 public void testAdapter() { in testAdapter() method in ItemAdapterTest
DGlifListLayoutTest.java81 public void testAdapter() { in testAdapter() method in GlifListLayoutTest