Home
last modified time | relevance | path

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

/frameworks/support/car/src/main/java/androidx/car/utils/
DListItemBackgroundResolver.java44 public static void setBackground(View view, int currentPosition, int totalItems) { in setBackground() argument
49 if (currentPosition >= totalItems) { in setBackground()
51 + "totalItems: " + totalItems); in setBackground()
55 if (totalItems == 1) { in setBackground()
61 } else if (currentPosition == totalItems - 1) { in setBackground()
/frameworks/support/leanback/src/main/java/androidx/leanback/app/
DListRowDataAdapter.java121 int totalItems = mLastVisibleRowIndex - lastVisibleRowIndex; in onItemRangeInserted() local
122 onEventFired(ON_ITEM_RANGE_INSERTED, lastVisibleRowIndex + 1, totalItems); in onItemRangeInserted()
136 int totalItems = lastVisibleRowIndex - mLastVisibleRowIndex; in onItemRangeRemoved() local
137 if (totalItems > 0) { in onItemRangeRemoved()
140 totalItems); in onItemRangeRemoved()
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DGridLayoutManager.java2118 int totalItems = 0; in fillScrapViewsInPostLayout() local
2122 mDisappearingPositions[totalItems++] = pos; in fillScrapViewsInPostLayout()
2126 if (totalItems > 0) { in fillScrapViewsInPostLayout()
2127 Arrays.sort(mDisappearingPositions, 0, totalItems); in fillScrapViewsInPostLayout()
2128 mGrid.fillDisappearingItems(mDisappearingPositions, totalItems, in fillScrapViewsInPostLayout()