Lines Matching defs:line

772                     int line = mPendingSavedState.mSpanOffsets[i];
773 if (line != Span.INVALID_LINE) {
775 line += mPrimaryOrientation.getEndAfterPadding();
777 line += mPrimaryOrientation.getStartAfterPadding();
780 mSpans[i].setLine(line);
1199 int line;
1201 line = mSpans[i].getEndLine(Span.INVALID_LINE);
1202 if (line != Span.INVALID_LINE) {
1203 line -= mPrimaryOrientation.getEndAfterPadding();
1206 line = mSpans[i].getStartLine(Span.INVALID_LINE);
1207 if (line != Span.INVALID_LINE) {
1208 line -= mPrimaryOrientation.getStartAfterPadding();
1211 state.mSpanOffsets[i] = line;
1718 // easy, recycle line is still valid
1725 // scrolling case, recycle line can be shifted by how much space we could cover
1728 // calculate recycle line
1730 final int line;
1732 line = layoutState.mEndLine;
1734 line = layoutState.mEndLine - Math.min(scrolled, layoutState.mAvailable);
1736 recycleFromEnd(recycler, line);
1738 // calculate recycle line
1740 final int line;
1742 line = layoutState.mStartLine;
1744 line = layoutState.mStartLine + Math.min(scrolled, layoutState.mAvailable);
1746 recycleFromStart(recycler, line);
1778 final int line = span.getStartLine();
1779 if (line + deletedSize <= targetLine) {
1783 final int line = span.getEndLine();
1784 if (line - deletedSize >= targetLine) {
1854 private void recycleFromStart(RecyclerView.Recycler recycler, int line) {
1857 if (mPrimaryOrientation.getDecoratedEnd(child) <= line &&
1858 mPrimaryOrientation.getTransformedEndWithDecoration(child) <= line) {
1883 private void recycleFromEnd(RecyclerView.Recycler recycler, int line) {
1888 if (mPrimaryOrientation.getDecoratedStart(child) >= line &&
1889 mPrimaryOrientation.getTransformedStartWithDecoration(child) >= line) {
2490 void setLine(int line) {
2491 mCachedEnd = mCachedStart = line;