Home
last modified time | relevance | path

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

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DIconSizeStepsTest.kt34 private lateinit var iconSizeSteps: IconSizeSteps variable in com.android.launcher3.util.IconSizeStepsTest
42 iconSizeSteps = IconSizeSteps(context!!.resources) in setup()
47 assertThat(iconSizeSteps.minimumIconSize()).isEqualTo(52) in minimumIconSize()
52 assertThat(iconSizeSteps.getNextLowerIconSize(66)).isEqualTo(63) in getNextLowerIconSize()
55 assertThat(iconSizeSteps.getNextLowerIconSize(52)).isEqualTo(52) in getNextLowerIconSize()
56 assertThat(iconSizeSteps.getNextLowerIconSize(30)).isEqualTo(52) in getNextLowerIconSize()
61 assertThat(iconSizeSteps.getIconSmallerThan(60)).isEqualTo(59) in getIconSmallerThan()
64 assertThat(iconSizeSteps.getIconSmallerThan(52)).isEqualTo(52) in getIconSmallerThan()
65 assertThat(iconSizeSteps.getIconSmallerThan(30)).isEqualTo(52) in getIconSmallerThan()
DCellContentDimensionsTest.kt34 private lateinit var iconSizeSteps: IconSizeSteps variable in com.android.launcher3.util.CellContentDimensionsTest
45 iconSizeSteps = IconSizeSteps(context!!.resources) in setup()
55 cellContentDimensions.resizeToFitCellHeight(cellSize.second, iconSizeSteps) in dimensionsFitTheCell()
72 cellContentDimensions.resizeToFitCellHeight(cellSize.second, iconSizeSteps) in decreasePadding()
89 cellContentDimensions.resizeToFitCellHeight(cellSize.second, iconSizeSteps) in decreaseIcon()
106 cellContentDimensions.resizeToFitCellHeight(cellSize.second, iconSizeSteps) in decreaseText()
123 cellContentDimensions.resizeToFitCellHeight(cellSize.second, iconSizeSteps) in decreaseIconAndTextTwoSteps()
140 cellContentDimensions.resizeToFitCellHeight(cellSize.second, iconSizeSteps) in decreaseIconAndTextToMinimum()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DCellContentDimensions.kt32 fun resizeToFitCellHeight(cellHeightPx: Int, iconSizeSteps: IconSizeSteps): Int { in resizeToFitCellHeight()
43 (iconTextSizePx > iconSizeSteps.minimumIconLabelSize || in resizeToFitCellHeight()
44 iconSizePx > iconSizeSteps.minimumIconSize()) && cellContentHeight > cellHeightPx in resizeToFitCellHeight()
47 iconSizePx = iconSizeSteps.getNextLowerIconSize(iconSizePx) in resizeToFitCellHeight()
53 iconTextSizePx > iconSizeSteps.minimumIconLabelSize in resizeToFitCellHeight()
57 iconSizeSteps.minimumIconLabelSize, in resizeToFitCellHeight()