Home
last modified time | relevance | path

Searched refs:listView (Results 1 – 6 of 6) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowListViewTest.java34 private ListView listView; field in ShadowListViewTest
44 listView = new ListView(context); in setUp()
57 listView.addHeaderView(view0); in addHeaderView_ShouldRecordHeaders()
58 listView.addHeaderView(view1); in addHeaderView_ShouldRecordHeaders()
59 listView.addHeaderView(view2, null, false); in addHeaderView_ShouldRecordHeaders()
60 listView.addHeaderView(view3, null, false); in addHeaderView_ShouldRecordHeaders()
61 listView.setAdapter(new ShadowCountingAdapter(2)); in addHeaderView_ShouldRecordHeaders()
62 assertThat(listView.getHeaderViewsCount()).isEqualTo(4); in addHeaderView_ShouldRecordHeaders()
63 assertThat(shadowOf(listView).getHeaderViews().get(0)).isSameAs(view0); in addHeaderView_ShouldRecordHeaders()
64 assertThat(shadowOf(listView).getHeaderViews().get(1)).isSameAs(view1); in addHeaderView_ShouldRecordHeaders()
[all …]
DShadowLayoutInflaterTest.java454 ListView listView = view.findViewById(R.id.list_view_with_enum_scrollbar); in testConverterAcceptsEnumOrdinal() local
455 assertThat(listView).isInstanceOf(ListView.class); in testConverterAcceptsEnumOrdinal()
/external/setupdesign/main/src/com/google/android/setupdesign/template/
DListViewScrollHandlingDelegate.java40 @Nullable private final ListView listView; field in ListViewScrollHandlingDelegate
43 @NonNull RequireScrollMixin requireScrollMixin, @Nullable ListView listView) { in ListViewScrollHandlingDelegate() argument
45 this.listView = listView; in ListViewScrollHandlingDelegate()
50 if (listView != null) { in startListening()
51 listView.setOnScrollListener(this); in startListening()
53 final ListAdapter adapter = listView.getAdapter(); in startListening()
54 if (listView.getLastVisiblePosition() < adapter.getCount()) { in startListening()
64 if (listView != null) { in pageScrollDown()
65 final int height = listView.getHeight(); in pageScrollDown()
66 listView.smoothScrollBy(height, SCROLL_DURATION); in pageScrollDown()
DListMixin.java45 @Nullable private ListView listView; field in ListMixin
91 if (listView == null) { in getListViewInternal()
94 listView = (ListView) list; in getListViewInternal()
97 return listView; in getListViewInternal()
118 final ListView listView = getListViewInternal(); in getAdapter() local
119 if (listView != null) { in getAdapter()
120 final ListAdapter adapter = listView.getAdapter(); in getAdapter()
131 final ListView listView = getListViewInternal(); in setAdapter() local
132 if (listView != null) { in setAdapter()
133 listView.setAdapter(adapter); in setAdapter()
[all …]
/external/u-boot/scripts/kconfig/
Dqconf.h84 ConfigList* listView() in listView() function
146 ConfigList* listView() const in listView() function
Dqconf.cc121 list = listView(); in updateMenu()
238 } else if (listView()->updateAll) in testUpdateMenu()
249 ConfigList* list = listView(); in init()
399 if (this == item->listView()) in findConfigItem()