Searched defs:outRange (Results 1 - 3 of 3) sorted by relevance

/frameworks/support/v7/recyclerview/src/android/support/v7/util/
H A DAsyncListUtil.java539 * outRange[0] is the position of the first visible item (in the order of the backing
542 * outRange[1] is the position of the last visible item (in the order of the backing
548 * @param outRange The visible item range.
551 public abstract void getItemRangeInto(int[] outRange); argument
562 * is {@link #HINT_SCROLL_ASC}, then <code>outRange</code> will be <code>{50, 300}</code>.
565 * <code>outRange</code> will be <code>{50, 250}</code>
568 * @param outRange Extended range.
572 public void extendRangeInto(int[] range, int[] outRange, int scrollHint) { argument
575 outRange[0] = range[0] - (scrollHint == HINT_SCROLL_DESC ? fullRange : halfRange);
576 outRange[
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
H A DAsyncListUtilTest.java243 public void getItemRangeInto(int[] outRange) { argument
244 outRange[0] = mFirstVisibleItem;
245 outRange[1] = mLastVisibleItem;
249 public void extendRangeInto(int[] range, int[] outRange, int scrollHint) { argument
250 outRange[0] = range[0] - mStartPreload;
251 outRange[1] = range[1] + mEndPreload;
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DAsyncListUtilLayoutTest.java229 public void getItemRangeInto(int[] outRange) { argument
230 outRange[0] = mLayoutManager.findFirstVisibleItemPosition();
231 outRange[1] = mLayoutManager.findLastVisibleItemPosition();
235 public void extendRangeInto(int[] range, int[] outRange, int scrollHint) { argument
236 outRange[0] = range[0] - mStartPrefetch;
237 outRange[1] = range[1] + mEndPrefetch;

Completed in 142 milliseconds