Home
last modified time | relevance | path

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

/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
DActionMenuView.java202 int cellsRemaining = cellCount; in onMeasureExactFormat() local
236 final int cellsAvailable = lp.isOverflowButton ? 1 : cellsRemaining; in onMeasureExactFormat()
245 cellsRemaining -= cellsUsed; in onMeasureExactFormat()
258 while (expandableItemCount > 0 && cellsRemaining > 0) { in onMeasureExactFormat()
283 if (minCellsItemCount > cellsRemaining) break; // Couldn't expand anything evenly. Stop. in onMeasureExactFormat()
297 if (centerSingleExpandedItem && lp.preventEdgeOffset && cellsRemaining == 1) { in onMeasureExactFormat()
303 cellsRemaining--; in onMeasureExactFormat()
313 if (cellsRemaining > 0 && smallestItemsAt != 0 && in onMeasureExactFormat()
314 (cellsRemaining < visibleItemCount - 1 || singleItem || maxCellsUsed > 1)) { in onMeasureExactFormat()
330 (int) (cellsRemaining * cellSize / expandCount) : 0; in onMeasureExactFormat()
[all …]
DActionMenuPresenter.java465 int cellsRemaining = 0; in flagActionItems() local
467 cellsRemaining = widthLimit / mMinCellSize; in flagActionItems()
469 cellSize = mMinCellSize + cellSizeRemaining / cellsRemaining; in flagActionItems()
482 cellsRemaining -= ActionMenuView.measureChildForCells(v, in flagActionItems()
483 cellSize, cellsRemaining, querySpec, 0); in flagActionItems()
503 (!mStrictWidthLimit || cellsRemaining > 0); in flagActionItems()
512 cellSize, cellsRemaining, querySpec, 0); in flagActionItems()
513 cellsRemaining -= cells; in flagActionItems()
/frameworks/base/core/java/android/widget/
DActionMenuView.java198 int cellsRemaining = cellCount; in onMeasureExactFormat() local
232 final int cellsAvailable = lp.isOverflowButton ? 1 : cellsRemaining; in onMeasureExactFormat()
241 cellsRemaining -= cellsUsed; in onMeasureExactFormat()
254 while (expandableItemCount > 0 && cellsRemaining > 0) { in onMeasureExactFormat()
279 if (minCellsItemCount > cellsRemaining) break; // Couldn't expand anything evenly. Stop. in onMeasureExactFormat()
293 if (centerSingleExpandedItem && lp.preventEdgeOffset && cellsRemaining == 1) { in onMeasureExactFormat()
299 cellsRemaining--; in onMeasureExactFormat()
309 if (cellsRemaining > 0 && smallestItemsAt != 0 && in onMeasureExactFormat()
310 (cellsRemaining < visibleItemCount - 1 || singleItem || maxCellsUsed > 1)) { in onMeasureExactFormat()
326 (int) (cellsRemaining * cellSize / expandCount) : 0; in onMeasureExactFormat()
[all …]
DActionMenuPresenter.java673 int cellsRemaining = 0; in flagActionItems() local
675 cellsRemaining = widthLimit / mMinCellSize; in flagActionItems()
677 cellSize = mMinCellSize + cellSizeRemaining / cellsRemaining; in flagActionItems()
687 cellsRemaining -= ActionMenuView.measureChildForCells(v, in flagActionItems()
688 cellSize, cellsRemaining, querySpec, 0); in flagActionItems()
708 (!mStrictWidthLimit || cellsRemaining > 0); in flagActionItems()
714 cellSize, cellsRemaining, querySpec, 0); in flagActionItems()
715 cellsRemaining -= cells; in flagActionItems()