Lines Matching defs:mListView
36 private ListView mListView;
47 mListView = getActivity().getListView();
53 assertNotNull(mListView);
56 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition());
61 int originalCount = mListView.getChildCount();
63 TouchUtils.scrollToTop(this, mListView);
67 mListView.getSelectedItemPosition());
69 View firstChild = mListView.getChildAt(0);
73 assertEquals("Item zero not at the top of the list", mListView.getListPaddingTop(),
77 mListView.getChildCount(), originalCount + 1),
78 mListView.getChildCount() <= originalCount + 1);
83 TouchUtils.scrollToBottom(this, mListView);
87 mListView.getSelectedItemPosition());
89 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1);
91 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1,
95 mListView.getHeight() - mListView.getListPaddingBottom(), lastChild.getBottom());
100 View firstChild = mListView.getChildAt(0);
101 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1);
108 View newLastChild = mListView.getChildAt(mListView.getChildCount() - 1);
111 assertEquals("Wrong view in last position", mListView.getAdapter().getCount() - 1,
118 View firstChild = mListView.getChildAt(0);
119 if (firstChild.getTop() < this.mListView.getListPaddingTop()) {
120 firstChild = mListView.getChildAt(1);
123 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1);
130 View newLastChild = mListView.getChildAt(mListView.getChildCount() - 1);
133 assertEquals("Wrong view in last position", mListView.getAdapter().getCount() - 1,
140 View firstChild = mListView.getChildAt(0);
141 if (firstChild.getTop() < mListView.getListPaddingTop()) {
142 firstChild = mListView.getChildAt(1);