Searched refs:layoutState (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/java/com/android/internal/widget/ |
D | LinearLayoutManager.java | 1188 void collectPrefetchPositionsForLayoutState(RecyclerView.State state, LayoutState layoutState, in collectPrefetchPositionsForLayoutState() argument 1190 final int pos = layoutState.mCurrentPosition; in collectPrefetchPositionsForLayoutState() 1192 layoutPrefetchRegistry.addPosition(pos, layoutState.mScrollingOffset); in collectPrefetchPositionsForLayoutState() 1449 private void recycleByLayoutState(RecyclerView.Recycler recycler, LayoutState layoutState) { in recycleByLayoutState() argument 1450 if (!layoutState.mRecycle || layoutState.mInfinite) { in recycleByLayoutState() 1453 if (layoutState.mLayoutDirection == LayoutState.LAYOUT_START) { in recycleByLayoutState() 1454 recycleViewsFromEnd(recycler, layoutState.mScrollingOffset); in recycleByLayoutState() 1456 recycleViewsFromStart(recycler, layoutState.mScrollingOffset); in recycleByLayoutState() 1471 int fill(RecyclerView.Recycler recycler, LayoutState layoutState, in fill() argument 1474 final int start = layoutState.mAvailable; in fill() [all …]
|
D | GridLayoutManager.java | 506 void collectPrefetchPositionsForLayoutState(RecyclerView.State state, LayoutState layoutState, in collectPrefetchPositionsForLayoutState() argument 510 while (count < mSpanCount && layoutState.hasMore(state) && remainingSpan > 0) { in collectPrefetchPositionsForLayoutState() 511 final int pos = layoutState.mCurrentPosition; in collectPrefetchPositionsForLayoutState() 512 layoutPrefetchRegistry.addPosition(pos, Math.max(0, layoutState.mScrollingOffset)); in collectPrefetchPositionsForLayoutState() 515 layoutState.mCurrentPosition += layoutState.mItemDirection; in collectPrefetchPositionsForLayoutState() 522 LayoutState layoutState, LayoutChunkResult result) { in layoutChunk() argument 533 layoutState.mItemDirection == LayoutState.ITEM_DIRECTION_TAIL; in layoutChunk() 538 int itemSpanIndex = getSpanIndex(recycler, state, layoutState.mCurrentPosition); in layoutChunk() 539 int itemSpanSize = getSpanSize(recycler, state, layoutState.mCurrentPosition); in layoutChunk() 542 while (count < mSpanCount && layoutState.hasMore(state) && remainingSpan > 0) { in layoutChunk() [all …]
|