Home
last modified time | relevance | path

Searched refs:layoutState (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
DLinearLayoutManager.java1192 void collectPrefetchPositionsForLayoutState(RecyclerView.State state, LayoutState layoutState, in collectPrefetchPositionsForLayoutState() argument
1194 final int pos = layoutState.mCurrentPosition; in collectPrefetchPositionsForLayoutState()
1196 layoutPrefetchRegistry.addPosition(pos, layoutState.mScrollingOffset); in collectPrefetchPositionsForLayoutState()
1453 private void recycleByLayoutState(RecyclerView.Recycler recycler, LayoutState layoutState) { in recycleByLayoutState() argument
1454 if (!layoutState.mRecycle || layoutState.mInfinite) { in recycleByLayoutState()
1457 if (layoutState.mLayoutDirection == LayoutState.LAYOUT_START) { in recycleByLayoutState()
1458 recycleViewsFromEnd(recycler, layoutState.mScrollingOffset); in recycleByLayoutState()
1460 recycleViewsFromStart(recycler, layoutState.mScrollingOffset); in recycleByLayoutState()
1475 int fill(RecyclerView.Recycler recycler, LayoutState layoutState, in fill() argument
1478 final int start = layoutState.mAvailable; in fill()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DLinearLayoutManager.java1197 void collectPrefetchPositionsForLayoutState(RecyclerView.State state, LayoutState layoutState, in collectPrefetchPositionsForLayoutState() argument
1199 final int pos = layoutState.mCurrentPosition; in collectPrefetchPositionsForLayoutState()
1201 layoutPrefetchRegistry.addPosition(pos, Math.max(0, layoutState.mScrollingOffset)); in collectPrefetchPositionsForLayoutState()
1458 private void recycleByLayoutState(RecyclerView.Recycler recycler, LayoutState layoutState) { in recycleByLayoutState() argument
1459 if (!layoutState.mRecycle || layoutState.mInfinite) { in recycleByLayoutState()
1462 if (layoutState.mLayoutDirection == LayoutState.LAYOUT_START) { in recycleByLayoutState()
1463 recycleViewsFromEnd(recycler, layoutState.mScrollingOffset); in recycleByLayoutState()
1465 recycleViewsFromStart(recycler, layoutState.mScrollingOffset); in recycleByLayoutState()
1480 int fill(RecyclerView.Recycler recycler, LayoutState layoutState, in fill() argument
1483 final int start = layoutState.mAvailable; in fill()
[all …]
DGridLayoutManager.java508 void collectPrefetchPositionsForLayoutState(RecyclerView.State state, LayoutState layoutState, in collectPrefetchPositionsForLayoutState() argument
512 while (count < mSpanCount && layoutState.hasMore(state) && remainingSpan > 0) { in collectPrefetchPositionsForLayoutState()
513 final int pos = layoutState.mCurrentPosition; in collectPrefetchPositionsForLayoutState()
514 layoutPrefetchRegistry.addPosition(pos, Math.max(0, layoutState.mScrollingOffset)); in collectPrefetchPositionsForLayoutState()
517 layoutState.mCurrentPosition += layoutState.mItemDirection; in collectPrefetchPositionsForLayoutState()
524 LayoutState layoutState, LayoutChunkResult result) { in layoutChunk() argument
535 layoutState.mItemDirection == LayoutState.ITEM_DIRECTION_TAIL; in layoutChunk()
540 int itemSpanIndex = getSpanIndex(recycler, state, layoutState.mCurrentPosition); in layoutChunk()
541 int itemSpanSize = getSpanSize(recycler, state, layoutState.mCurrentPosition); in layoutChunk()
544 while (count < mSpanCount && layoutState.hasMore(state) && remainingSpan > 0) { in layoutChunk()
[all …]
DStaggeredGridLayoutManager.java1536 private int fill(RecyclerView.Recycler recycler, LayoutState layoutState,
1544 if (layoutState.mLayoutDirection == LAYOUT_END) {
1550 if (layoutState.mLayoutDirection == LAYOUT_END) {
1551 targetLine = layoutState.mEndLine + layoutState.mAvailable;
1553 targetLine = layoutState.mStartLine - layoutState.mAvailable;
1557 updateAllRemainingSpans(layoutState.mLayoutDirection, targetLine);
1560 + "remaining spans:" + mRemainingSpans + ", state: " + layoutState);
1568 while (layoutState.hasMore(state)
1570 View view = layoutState.next(recycler);
1577 currentSpan = lp.mFullSpan ? mSpans[0] : getNextSpan(layoutState);
[all …]