Home
last modified time | relevance | path

Searched refs:firstVisibleItem (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridScrollListenerTest.java63 int firstVisibleItem = mFirstVisibleItem; in testKeyScrolling() local
69 assertTrue("Arrow scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
71 firstVisibleItem = mFirstVisibleItem; in testKeyScrolling()
75 assertTrue("Page scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
77 firstVisibleItem = mFirstVisibleItem; in testKeyScrolling()
86 assertTrue("Full scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
95 int firstVisibleItem = mFirstVisibleItem; in testTouchScrolling() local
98 assertTrue("Touch scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testTouchScrolling()
102 …public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCo… in onScroll() argument
103 mFirstVisibleItem = firstVisibleItem; in onScroll()
DGridScrollListener.java61 …public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCo… in onScroll() argument
62 int lastItem = firstVisibleItem + visibleItemCount - 1; in onScroll()
63 mText.setText("Showing " + firstVisibleItem + "-" + lastItem + "/" + totalItemCount); in onScroll()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListScrollListenerTest.java62 int firstVisibleItem = mFirstVisibleItem; in testKeyScrolling() local
67 assertTrue("Arrow scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
69 firstVisibleItem = mFirstVisibleItem; in testKeyScrolling()
72 assertTrue("Page scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
74 firstVisibleItem = mFirstVisibleItem; in testKeyScrolling()
83 assertTrue("Full scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
90 int firstVisibleItem = mFirstVisibleItem; in testTouchScrolling() local
93 assertTrue("Touch scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testTouchScrolling()
97 …public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCo… in onScroll() argument
98 mFirstVisibleItem = firstVisibleItem; in onScroll()
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DAbsListViewBindingAdapter.java45 public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, in setOnScroll()
49 .onScroll(view, firstVisibleItem, visibleItemCount, totalItemCount); in setOnScroll()
56 void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, in onScroll() argument
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
DListViewScrollHandlingDelegate.java79 public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, in onScroll() argument
81 if (firstVisibleItem + visibleItemCount >= totalItemCount) { in onScroll()
/frameworks/base/core/java/android/widget/
DFastScroller.java521 final int firstVisibleItem = mList.getFirstVisiblePosition(); in onItemCountChanged() local
522 setThumbPos(getPosFromItemCount(firstVisibleItem, childCount, itemCount)); in onItemCountChanged()
930 public void onScroll(int firstVisibleItem, int visibleItemCount, int totalItemCount) { in onScroll() argument
938 setThumbPos(getPosFromItemCount(firstVisibleItem, visibleItemCount, totalItemCount)); in onScroll()
943 if (mFirstVisibleItem != firstVisibleItem) { in onScroll()
944 mFirstVisibleItem = firstVisibleItem; in onScroll()
1249 int firstVisibleItem, int visibleItemCount, int totalItemCount) { in getPosFromItemCount() argument
1267 return (float) firstVisibleItem / (totalItemCount - visibleItemCount); in getPosFromItemCount()
1272 firstVisibleItem -= mHeaderCount; in getPosFromItemCount()
1273 if (firstVisibleItem < 0) { in getPosFromItemCount()
[all …]
DCalendarViewLegacyDelegate.java767 AbsListView view, int firstVisibleItem, int visibleItemCount, in setUpListView()
769 CalendarViewLegacyDelegate.this.onScroll(view, firstVisibleItem, in setUpListView()
860 private void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, in onScroll() argument
DListPopupWindow.java1326 public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, in onScroll() argument
DAbsListView.java785 public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, in onScroll() argument
/frameworks/support/wear/src/android/support/wear/widget/drawer/
DAbsListViewFlingWatcher.java64 AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {} in onScroll() argument
/frameworks/support/samples/Support4Demos/src/com/example/android/supportv4/media/
DBrowseFragment.java213 public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, in onCreateView()
215 if (mCanLoadNewPage && firstVisibleItem + visibleItemCount == totalItemCount) { in onCreateView()
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/
DListenerBindingObject.java62 public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, in onScroll() argument
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DDayPickerView.java255 AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { in onScroll() argument
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DListPopupWindow.java1390 public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, in onScroll() argument
/frameworks/support/v7/appcompat/src/android/support/v7/app/
DAlertController.java604 public void onScroll(AbsListView v, int firstVisibleItem, in setScrollIndicators()