Home
last modified time | relevance | path

Searched refs:listRowAdapter (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/support/samples/SupportLeanbackDemos/src/main/java/com/example/android/leanback/
DBrowseSupportFragment.java174 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter((i & 1) == 0 ? in createListRowAdapter() local
176 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
179 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
183 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
187 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
190 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
193 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
197 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
201 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
205 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
[all …]
DBrowseFragment.java171 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter((i & 1) == 0 ? in createListRowAdapter() local
173 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
176 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
180 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
184 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
187 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
190 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
194 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
198 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
202 listRowAdapter.add(new PhotoItem( in createListRowAdapter()
[all …]
DRowsSupportFragment.java85 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(cardPresenter); in setupRows() local
86 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in setupRows()
87 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in setupRows()
88 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in setupRows()
89 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in setupRows()
90 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_5)); in setupRows()
91 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_6)); in setupRows()
92 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_7)); in setupRows()
93 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_8)); in setupRows()
95 rowsAdapter.add(new ListRow(header, listRowAdapter)); in setupRows()
DRowsFragment.java82 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(cardPresenter); in setupRows() local
83 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in setupRows()
84 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in setupRows()
85 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in setupRows()
86 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in setupRows()
87 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_5)); in setupRows()
88 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_6)); in setupRows()
89 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_7)); in setupRows()
90 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_8)); in setupRows()
92 rowsAdapter.add(new ListRow(header, listRowAdapter)); in setupRows()
DPlaybackTransportControlFragment.java96 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(new StringPresenter()); in createComponents() local
97 listRowAdapter.add("Some related content"); in createComponents()
98 listRowAdapter.add("Other related content"); in createComponents()
100 getAdapter().set(ROW_CONTROLS + 1 + i, new ListRow(header, listRowAdapter)); in createComponents()
DPlaybackFragment.java112 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(new StringPresenter()); in createComponents() local
113 listRowAdapter.add("Some related content"); in createComponents()
114 listRowAdapter.add("Other related content"); in createComponents()
116 getAdapter().set(ROW_CONTROLS + 1 + i, new ListRow(header, listRowAdapter)); in createComponents()
DPlaybackTransportControlSupportFragment.java99 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(new StringPresenter()); in createComponents() local
100 listRowAdapter.add("Some related content"); in createComponents()
101 listRowAdapter.add("Other related content"); in createComponents()
103 getAdapter().set(ROW_CONTROLS + 1 + i, new ListRow(header, listRowAdapter)); in createComponents()
DPlaybackSupportFragment.java115 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(new StringPresenter()); in createComponents() local
116 listRowAdapter.add("Some related content"); in createComponents()
117 listRowAdapter.add("Other related content"); in createComponents()
119 getAdapter().set(ROW_CONTROLS + 1 + i, new ListRow(header, listRowAdapter)); in createComponents()
DSearchFragment.java150 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(new CardPresenter()); in loadRows() local
151 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in loadRows()
152 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in loadRows()
154 mRowsAdapter.add(new ListRow(header, listRowAdapter)); in loadRows()
182 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(new CardPresenter()); in createFirstListRowAdapter() local
183 listRowAdapter.setItems(createDataSetOneDebug(), mDiffCallback); in createFirstListRowAdapter()
185 return listRowAdapter; in createFirstListRowAdapter()
DSearchSupportFragment.java153 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(new CardPresenter()); in loadRows() local
154 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in loadRows()
155 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in loadRows()
157 mRowsAdapter.add(new ListRow(header, listRowAdapter)); in loadRows()
185 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(new CardPresenter()); in createFirstListRowAdapter() local
186 listRowAdapter.setItems(createDataSetOneDebug(), mDiffCallback); in createFirstListRowAdapter()
188 return listRowAdapter; in createFirstListRowAdapter()
DDetailsFragment.java206 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(cardPresenter); in updateAdapter()
207 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in updateAdapter()
208 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in updateAdapter()
209 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in updateAdapter()
210 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in updateAdapter()
212 mRowsAdapter.add(new ListRow(header, listRowAdapter)); in updateAdapter()
DDetailsSupportFragment.java209 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(cardPresenter); in updateAdapter()
210 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in updateAdapter()
211 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in updateAdapter()
212 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in updateAdapter()
213 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in updateAdapter()
215 mRowsAdapter.add(new ListRow(header, listRowAdapter)); in updateAdapter()
DNewDetailsSupportFragment.java336 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(cardPresenter); in updateAdapter()
337 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in updateAdapter()
338 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in updateAdapter()
339 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in updateAdapter()
340 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in updateAdapter()
342 mRowsAdapter.add(new ListRow(header, listRowAdapter)); in updateAdapter()
DNewDetailsFragment.java333 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(cardPresenter); in updateAdapter()
334 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.gallery_photo_1)); in updateAdapter()
335 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.gallery_photo_2)); in updateAdapter()
336 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.gallery_photo_3)); in updateAdapter()
337 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.gallery_photo_4)); in updateAdapter()
339 mRowsAdapter.add(new ListRow(header, listRowAdapter)); in updateAdapter()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
DRowsFragmentTest.java77 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(sCardPresenter); in loadData() local
80 listRowAdapter.add("Hello world-" + (index++)); in loadData()
81 listRowAdapter.add("This is a test-" + (index++)); in loadData()
82 listRowAdapter.add("Android TV-" + (index++)); in loadData()
83 listRowAdapter.add("Leanback-" + (index++)); in loadData()
84 listRowAdapter.add("Hello world-" + (index++)); in loadData()
85 listRowAdapter.add("Android TV-" + (index++)); in loadData()
86 listRowAdapter.add("Leanback-" + (index++)); in loadData()
87 listRowAdapter.add("GuidedStepFragment-" + (index++)); in loadData()
90 adapter.add(new ListRow(header, listRowAdapter)); in loadData()
[all …]
DRowsSupportFragmentTest.java74 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(sCardPresenter); in loadData() local
77 listRowAdapter.add("Hello world-" + (index++)); in loadData()
78 listRowAdapter.add("This is a test-" + (index++)); in loadData()
79 listRowAdapter.add("Android TV-" + (index++)); in loadData()
80 listRowAdapter.add("Leanback-" + (index++)); in loadData()
81 listRowAdapter.add("Hello world-" + (index++)); in loadData()
82 listRowAdapter.add("Android TV-" + (index++)); in loadData()
83 listRowAdapter.add("Leanback-" + (index++)); in loadData()
84 listRowAdapter.add("GuidedStepSupportFragment-" + (index++)); in loadData()
87 adapter.add(new ListRow(header, listRowAdapter)); in loadData()
[all …]
DBrowseTestFragment.java146 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(sCardPresenter); in loadData() local
149 listRowAdapter.add("Hello world-" + (index++)); in loadData()
150 listRowAdapter.add("This is a test-" + (index++)); in loadData()
151 listRowAdapter.add("Android TV-" + (index++)); in loadData()
152 listRowAdapter.add("Leanback-" + (index++)); in loadData()
153 listRowAdapter.add("Hello world-" + (index++)); in loadData()
154 listRowAdapter.add("Android TV-" + (index++)); in loadData()
155 listRowAdapter.add("Leanback-" + (index++)); in loadData()
156 listRowAdapter.add("GuidedStepFragment-" + (index++)); in loadData()
159 mRowsAdapter.add(new ListRow(header, listRowAdapter)); in loadData()
DBrowseTestSupportFragment.java145 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(sCardPresenter); in loadData() local
148 listRowAdapter.add("Hello world-" + (index++)); in loadData()
149 listRowAdapter.add("This is a test-" + (index++)); in loadData()
150 listRowAdapter.add("Android TV-" + (index++)); in loadData()
151 listRowAdapter.add("Leanback-" + (index++)); in loadData()
152 listRowAdapter.add("Hello world-" + (index++)); in loadData()
153 listRowAdapter.add("Android TV-" + (index++)); in loadData()
154 listRowAdapter.add("Leanback-" + (index++)); in loadData()
155 listRowAdapter.add("GuidedStepSupportFragment-" + (index++)); in loadData()
158 mRowsAdapter.add(new ListRow(header, listRowAdapter)); in loadData()
DDetailsTestSupportFragment.java132 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(mCardPresenter); in setItem()
133 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.spiderman)); in setItem()
134 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.spiderman)); in setItem()
135 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.spiderman)); in setItem()
136 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.spiderman)); in setItem()
138 mRowsAdapter.add(new ListRow(header, listRowAdapter)); in setItem()
DDetailsTestFragment.java135 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(mCardPresenter); in setItem()
136 listRowAdapter.add(new PhotoItem("Hello world", R.drawable.spiderman)); in setItem()
137 listRowAdapter.add(new PhotoItem("This is a test", R.drawable.spiderman)); in setItem()
138 listRowAdapter.add(new PhotoItem("Android TV", R.drawable.spiderman)); in setItem()
139 listRowAdapter.add(new PhotoItem("Leanback", R.drawable.spiderman)); in setItem()
141 mRowsAdapter.add(new ListRow(header, listRowAdapter)); in setItem()
DPlaybackTestFragment.java132 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(new StringPresenter()); in createComponents() local
133 listRowAdapter.add("Some related content"); in createComponents()
134 listRowAdapter.add("Other related content"); in createComponents()
136 getAdapter().set(1 + i, new ListRow(header, listRowAdapter)); in createComponents()
DPlaybackTestSupportFragment.java129 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(new StringPresenter()); in createComponents() local
130 listRowAdapter.add("Some related content"); in createComponents()
131 listRowAdapter.add("Other related content"); in createComponents()
133 getAdapter().set(1 + i, new ListRow(header, listRowAdapter)); in createComponents()
DHeadersSupportFragmentTest.java43 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(); in loadData() local
45 adapter.add(new ListRow(header, listRowAdapter)); in loadData()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
DTestHelper.java163 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(mCardPresenter); in buildListRow() local
164 ListRow listRow = new ListRow(new HeaderItem(sRowIdSeed++, "Row"), listRowAdapter); in buildListRow()
169 listRowAdapter.add(new PhotoItem(sSampleStrings[indexSample], in buildListRow()
/frameworks/support/samples/SupportLeanbackJank/src/main/java/com/google/android/leanbackjank/ui/
DMainFragment.java160 ArrayObjectAdapter listRowAdapter = new ArrayObjectAdapter(cardPresenter); in loadVideoData() local
162 listRowAdapter.add(videoInfo); in loadVideoData()
165 mRowsAdapter.add(new ListRow(header, listRowAdapter)); in loadVideoData()

12