Home
last modified time | relevance | path

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

/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/
DRSoVTestCore.java45 private ArrayAdapter<UnitTest> testAdapter; field in RSoVTestCore
78testAdapter = new ArrayAdapter<UnitTest>(mCtx, android.R.layout.simple_list_item_1, unitTests); in init()
79 mCtx.setListAdapter(testAdapter); in init()
97 if (testAdapter != null) in checkAndRunNextTest()
98 testAdapter.notifyDataSetChanged(); in checkAndRunNextTest()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerSavedStateTest.java100 scrollToPosition(testAdapter().getItemCount() * 3 / 4); in params()
113 scrollToPositionWithOffset(testAdapter().getItemCount() / 3, in params()
127 scrollToPositionWithOffset(testAdapter().getItemCount() * 2 / 3, in params()
219 position = testAdapter().getItemCount() / 2; in params()
225 return testAdapter().getItemCount() == 0; in params()
235 if (testAdapter().getItemCount() > 0) { in params()
358 protected TestAdapter testAdapter() { in testAdapter() method in LinearLayoutManagerSavedStateTest.PostLayoutRunnable
393 protected TestAdapter testAdapter() { in testAdapter() method in LinearLayoutManagerSavedStateTest.PostRestoreRunnable
DRecyclerViewLayoutTest.java1536 final TestAdapter testAdapter = new TestAdapter(10); in assertPendingUpdatesAndLayoutTest() local
1537 setupBasic(recyclerView, layoutManager, testAdapter, false); in assertPendingUpdatesAndLayoutTest()
1543 runnable.run(testAdapter); in assertPendingUpdatesAndLayoutTest()
1575 TestAdapter testAdapter = new TestAdapter(10); in hasPendingUpdatesBeforeFirstLayout() local
1576 setupBasic(recyclerView, layoutManager, testAdapter, false); in hasPendingUpdatesBeforeFirstLayout()
1584 TestAdapter testAdapter = new TestAdapter(10); in noPendingUpdatesAfterLayout() local
1585 setupBasic(recyclerView, layoutManager, testAdapter, true); in noPendingUpdatesAfterLayout()
1593 public void run(TestAdapter testAdapter) throws Throwable { in hasPendingUpdatesAfterItemIsRemoved()
1594 testAdapter.deleteAndNotify(1, 1); in hasPendingUpdatesAfterItemIsRemoved()
1602 public void run(TestAdapter testAdapter) throws Throwable { in hasPendingUpdatesAfterItemIsInserted()
[all …]
DGridLayoutManagerCustomSizeInScrollDirectionTest.java72 final GridTestAdapter testAdapter = new GridTestAdapter(10) { in customSizeInScrollDirectionTest() local
97 testAdapter.setFullSpan(3, 5); in customSizeInScrollDirectionTest()
98 final RecyclerView rv = setupBasic(mConfig, testAdapter); in customSizeInScrollDirectionTest()
DBaseRecyclerViewAnimationsTest.java64 TestAdapter testAdapter) in setupBasic() argument
68 if (testAdapter == null) { in setupBasic()
71 mTestAdapter = testAdapter; in setupBasic()
500 abstract void onRun(TestAdapter testAdapter) throws Throwable; in onRun() argument
DBaseGridLayoutManagerTest.java51 public RecyclerView setupBasic(Config config, GridTestAdapter testAdapter) throws Throwable { in setupBasic() argument
53 mAdapter = testAdapter; in setupBasic()
DRecyclerViewAnimationsTest.java855 TestAdapter testAdapter = new TestAdapter(10) { in changeAnimTest() local
880 testAdapter.setHasStableIds(hasStableIds); in changeAnimTest()
881 setupBasic(testAdapter.getItemCount(), 0, 10, testAdapter); in changeAnimTest() local
942 TestAdapter testAdapter = new TestAdapter(10) { in testChangeWithPayload() local
968 testAdapter.setHasStableIds(false); in testChangeWithPayload()
969 setupBasic(testAdapter.getItemCount(), 0, 10, testAdapter); in testChangeWithPayload() local
1146 void onRun(TestAdapter testAdapter) throws Throwable { in stableIdNotifyDataSetChanged()
DBaseWrapContentTest.java73 TestAdapter testAdapter = new TestAdapter(20) { in unspecifiedWithHintTest() local
82 rv.setAdapter(testAdapter); in unspecifiedWithHintTest()
DBaseRecyclerViewInstrumentationTest.java613 TestAdapter testAdapter = (TestAdapter) mRecyclerView.getAdapter(); in assertVisibleItemPositions() local
624 testAdapter.mItems.get(vh.mPosition), item); in assertVisibleItemPositions()
/frameworks/rs/tests/java_api/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/tests/java_api/RsTest/src/com/android/rs/test/
DRSTestCore.java45 private ArrayAdapter<UnitTest> testAdapter; field in RSTestCore
139testAdapter = new ArrayAdapter<UnitTest>(mCtx, android.R.layout.simple_list_item_1, unitTests); in init()
140 mCtx.setListAdapter(testAdapter); in init()
158 if (testAdapter != null) in checkAndRunNextTest()
159 testAdapter.notifyDataSetChanged(); in checkAndRunNextTest()
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/
DRSTestCore.java47 private ArrayAdapter<UnitTest> testAdapter; field in RSTestCore
131testAdapter = new ArrayAdapter<UnitTest>(mCtx, android.R.layout.simple_list_item_1, unitTests); in init()
132 mCtx.setListAdapter(testAdapter); in init()
150 if (testAdapter != null) in checkAndRunNextTest()
151 testAdapter.notifyDataSetChanged(); in checkAndRunNextTest()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DItemAdapterTest.java61 public void testAdapter() { in testAdapter() method in ItemAdapterTest
DGlifListLayoutTest.java92 public void testAdapter() { in testAdapter() method in GlifListLayoutTest
/frameworks/opt/setupwizard/library/full-support/test/instrumentation/src/com/android/setupwizardlib/test/
DSetupWizardRecyclerLayoutTest.java81 public void testAdapter() { in testAdapter() method in SetupWizardRecyclerLayoutTest
DGlifRecyclerLayoutTest.java80 public void testAdapter() { in testAdapter() method in GlifRecyclerLayoutTest
/frameworks/opt/setupwizard/library/full-support/test/instrumentation/src/com/android/setupwizardlib/items/
DRecyclerItemAdapterTest.java69 public void testAdapter() { in testAdapter() method in RecyclerItemAdapterTest