Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListScrollListenerTest.java65 int firstVisibleItem = mFirstVisibleItem; in testKeyScrolling() local
70 assertTrue("Arrow scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
72 firstVisibleItem = mFirstVisibleItem; in testKeyScrolling()
80 assertTrue("Page scroll did not happen", mFirstVisibleItem < firstVisibleItem); in testKeyScrolling()
82 firstVisibleItem = mFirstVisibleItem; in testKeyScrolling()
91 assertTrue("Full scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
98 int firstVisibleItem = mFirstVisibleItem; in testTouchScrolling() local
101 assertTrue("Touch scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testTouchScrolling()
105 …public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCo… in onScroll() argument
106 mFirstVisibleItem = firstVisibleItem; in onScroll()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
DGridScrollListenerTest.java65 int firstVisibleItem = mFirstVisibleItem; in testKeyScrolling() local
71 assertTrue("Arrow scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
73 firstVisibleItem = mFirstVisibleItem; in testKeyScrolling()
82 assertTrue("Page scroll did not happen", mFirstVisibleItem < firstVisibleItem); in testKeyScrolling()
84 firstVisibleItem = mFirstVisibleItem; in testKeyScrolling()
93 assertTrue("Full scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testKeyScrolling()
102 int firstVisibleItem = mFirstVisibleItem; in testTouchScrolling() local
105 assertTrue("Touch scroll did not happen", mFirstVisibleItem > firstVisibleItem); in testTouchScrolling()
109 …public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCo… in onScroll() argument
110 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/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
DListViewScrollHandlingDelegate.java75 AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { in onScroll() argument
76 if (firstVisibleItem + visibleItemCount >= totalItemCount) { in onScroll()
/frameworks/base/core/java/android/widget/
DFastScroller.java533 final int firstVisibleItem = mList.getFirstVisiblePosition(); in onItemCountChanged() local
534 setThumbPos(getPosFromItemCount(firstVisibleItem, childCount, itemCount)); in onItemCountChanged()
943 public void onScroll(int firstVisibleItem, int visibleItemCount, int totalItemCount) { in onScroll() argument
951 setThumbPos(getPosFromItemCount(firstVisibleItem, visibleItemCount, totalItemCount)); in onScroll()
956 if (mFirstVisibleItem != firstVisibleItem) { in onScroll()
957 mFirstVisibleItem = firstVisibleItem; in onScroll()
1262 int firstVisibleItem, int visibleItemCount, int totalItemCount) { in getPosFromItemCount() argument
1280 return (float) firstVisibleItem / (totalItemCount - visibleItemCount); in getPosFromItemCount()
1285 firstVisibleItem -= mHeaderCount; in getPosFromItemCount()
1286 if (firstVisibleItem < 0) { in getPosFromItemCount()
[all …]
DCalendarViewLegacyDelegate.java765 AbsListView view, int firstVisibleItem, int visibleItemCount, in setUpListView()
767 CalendarViewLegacyDelegate.this.onScroll(view, firstVisibleItem, in setUpListView()
858 private void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, in onScroll() argument
DListPopupWindow.java1349 public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, in onScroll() argument
DAbsListView.java830 public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, in onScroll() argument
/frameworks/base/core/java/com/android/internal/app/
DChooserActivity.java725 public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, in onCreate()
728 if (firstVisibleItem > 0 || view.getChildAt(0).getTop() < 0) { in onCreate()