Home
last modified time | relevance | path

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

/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DStaggeredGrid.java202 int cachedIndex = getLastIndex(); in calculateOffsetAfterLastItem() local
204 while (cachedIndex >= mFirstIndex) { in calculateOffsetAfterLastItem()
205 Location loc = getLocation(cachedIndex); in calculateOffsetAfterLastItem()
210 cachedIndex--; in calculateOffsetAfterLastItem()
213 cachedIndex = getLastIndex(); in calculateOffsetAfterLastItem()
218 int offset = isReversedFlow() ? -getLocation(cachedIndex).size - mSpacing: in calculateOffsetAfterLastItem()
219 getLocation(cachedIndex).size + mSpacing; in calculateOffsetAfterLastItem()
220 for (int i = cachedIndex + 1; i <= getLastIndex(); i++) { in calculateOffsetAfterLastItem()