Searched refs:mLastVisibleIndex (Results 1 – 5 of 5) sorted by relevance
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/ |
D | Grid.java | 134 protected int mLastVisibleIndex = -1; field in Grid 236 return mLastVisibleIndex; in getLastVisibleIndex() 243 mFirstVisibleIndex = mLastVisibleIndex = -1; in resetVisibleIndex() 256 if (mLastVisibleIndex < 0) { in invalidateItemsAfter() 259 if (mLastVisibleIndex >= index) { in invalidateItemsAfter() 260 mLastVisibleIndex = index - 1; in invalidateItemsAfter() 289 return findRowMin(findLarge, mReversedFlow ? mLastVisibleIndex : mFirstVisibleIndex, in findRowMin() 304 return findRowMax(findLarge, mReversedFlow ? mFirstVisibleIndex : mLastVisibleIndex, in findRowMax() 318 if (mLastVisibleIndex < 0) { in checkAppendOverLimit() 329 if (mLastVisibleIndex < 0) { in checkPrependOverLimit() [all …]
|
D | StaggeredGrid.java | 178 if (mLastVisibleIndex < 0) { in prependVisbleItemsWithCache() 179 mLastVisibleIndex = itemIndex; in prependVisbleItemsWithCache() 259 if (mLastVisibleIndex < 0) { in prependVisibleItemToRow() 260 mLastVisibleIndex = itemIndex; in prependVisibleItemToRow() 301 if (mLastVisibleIndex >= 0) { in appendVisbleItemsWithCache() 303 itemIndex = mLastVisibleIndex + 1; in appendVisbleItemsWithCache() 304 edge = mProvider.getEdge(mLastVisibleIndex); in appendVisbleItemsWithCache() 331 mLastVisibleIndex = itemIndex; in appendVisbleItemsWithCache() 364 if (mLastVisibleIndex >= 0) { in appendVisibleItemToRow() 365 if (mLastVisibleIndex != getLastIndex() || mLastVisibleIndex != itemIndex - 1) { in appendVisibleItemToRow() [all …]
|
D | SingleRow.java | 44 pw.print(mLastVisibleIndex); in debugPrint() 50 if (mLastVisibleIndex >= 0) { in getStartIndexForAppend() 51 return mLastVisibleIndex + 1; in getStartIndexForAppend() 82 if (mFirstVisibleIndex < 0 || mLastVisibleIndex < 0) { in prependVisibleItems() 84 mLastVisibleIndex = mFirstVisibleIndex = index; in prependVisibleItems() 115 if (mFirstVisibleIndex < 0 || mLastVisibleIndex< 0) { in appendVisibleItems() 117 mLastVisibleIndex = mFirstVisibleIndex = index; in appendVisibleItems() 124 mLastVisibleIndex = index; in appendVisibleItems() 156 int itemSizeWithSpace = mProvider.getSize(mLastVisibleIndex) + mSpacing; in collectAdjacentPrefetchPositions() 157 nearestEdge = mProvider.getEdge(mLastVisibleIndex) in collectAdjacentPrefetchPositions()
|
D | StaggeredGridDefault.java | 45 int edge = mProvider.getEdge(mLastVisibleIndex); in getRowMax() 46 Location loc = getLocation(mLastVisibleIndex); in getRowMax() 50 for (int i = mLastVisibleIndex - 1; i >= getFirstIndex(); i--) { in getRowMax() 70 int edge = mProvider.getEdge(mLastVisibleIndex); in getRowMin() 71 Location loc = getLocation(mLastVisibleIndex); in getRowMin() 75 for (int i = mLastVisibleIndex - 1; i >= getFirstIndex(); i--) { in getRowMin() 113 for (int i = indexLimit + 1; visitedRows < mNumRows && i <= mLastVisibleIndex; i++) { in findRowMax() 181 for (int i = indexLimit + 1; visitedRows < mNumRows && i <= mLastVisibleIndex; i++) { in findRowMin() 205 for (int index = mLastVisibleIndex; index >= mFirstVisibleIndex; index--) { in findRowEdgeLimitSearchIndex() 214 for (int index = mFirstVisibleIndex; index <= mLastVisibleIndex; index++) { in findRowEdgeLimitSearchIndex() [all …]
|
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/ |
D | SingleRowTest.java | 49 assertEquals(dump(mSingleRow) + " Should filled 2 items", 1, mSingleRow.mLastVisibleIndex); in testAppendPrependRemove() 53 2, mSingleRow.mLastVisibleIndex); in testAppendPrependRemove() 57 3, mSingleRow.mLastVisibleIndex); in testAppendPrependRemove() 61 5, mSingleRow.mLastVisibleIndex); in testAppendPrependRemove() 70 assertEquals(dump(mSingleRow) + " Should filled 2 items", 1, mSingleRow.mLastVisibleIndex); in testAppendPrependRemove() 74 5, mSingleRow.mLastVisibleIndex); in testAppendPrependRemove() 94 assertEquals(dump(mSingleRow) + " Should filled 2 items", 1, mSingleRow.mLastVisibleIndex); in testAppendPrependRemoveReversed() 98 2, mSingleRow.mLastVisibleIndex); in testAppendPrependRemoveReversed() 102 3, mSingleRow.mLastVisibleIndex); in testAppendPrependRemoveReversed() 106 5, mSingleRow.mLastVisibleIndex); in testAppendPrependRemoveReversed() [all …]
|