Home
last modified time | relevance | path

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

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DGridLayoutManager.java319 static int[] calculateItemBorders(int[] cachedBorders, int spanCount, int totalSpace) { in calculateItemBorders() argument
320 if (cachedBorders == null || cachedBorders.length != spanCount + 1 in calculateItemBorders()
321 || cachedBorders[cachedBorders.length - 1] != totalSpace) { in calculateItemBorders()
322 cachedBorders = new int[spanCount + 1]; in calculateItemBorders()
324 cachedBorders[0] = 0; in calculateItemBorders()
337 cachedBorders[i] = consumedPixels; in calculateItemBorders()
339 return cachedBorders; in calculateItemBorders()