Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/responsive/
DResponsiveSpec.kt198 var gutterPx: Int = 0 variable in com.android.launcher3.responsive.CalculatedResponsiveSpec
227 gutterPx = spec.gutter.getCalculatedValue(availableSpace, calculatedWorkspaceSpec.gutterPx)
243 gutterPx = spec.gutter.getCalculatedValue(availableSpace)
253 val usedSpace = startPaddingPx + endPaddingPx + (gutterPx * gutters) + (cellSizePx * cells) in isResponsiveSpecType()
258 gutterPx = spec.gutter.getRemainderSpaceValue(remainderSpace, gutterPx, gutters) in isResponsiveSpecType()
267 result = 31 * result + gutterPx.hashCode() in hashCode()
279 gutterPx == other.gutterPx && in equals()
287 "endPaddingPx=$endPaddingPx, gutterPx=$gutterPx, cellSizePx=$cellSizePx, " + in toString()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/responsive/
DCalculatedWorkspaceSpecTest.kt67 assertThat(widthSpec.gutterPx).isEqualTo(42) in normalPhone_returnsThirdBreakpointSpec()
74 assertThat(heightSpec.gutterPx).isEqualTo(42) in normalPhone_returnsThirdBreakpointSpec()
110 assertThat(widthSpec.gutterPx).isEqualTo(54) in smallPhone_returnsFirstBreakpointSpec()
117 assertThat(heightSpec.gutterPx).isEqualTo(54) in smallPhone_returnsFirstBreakpointSpec()
152 assertThat(widthSpec.gutterPx).isEqualTo(54) in smallPhone_returnsFirstBreakpointSpec_unsortedFile()
159 assertThat(heightSpec.gutterPx).isEqualTo(54) in smallPhone_returnsFirstBreakpointSpec_unsortedFile()
DCalculatedAllAppsSpecTest.kt81 assertThat(gutterPx).isEqualTo(widthSpec.gutterPx) in normalPhone_copiesFromWorkspace()
98 assertThat(gutterPx).isEqualTo(heightSpec.gutterPx) in normalPhone_copiesFromWorkspace()
DCalculatedFolderSpecTest.kt85 assertThat(gutterPx).isEqualTo(16.dpToPx()) in validate_matchWidthWorkspace()
111 assertThat(gutterPx).isEqualTo(16.dpToPx()) in validate_matchWidthWorkspace()
159 assertThat(gutterPx).isEqualTo(16.dpToPx()) in validate_matchHeightWorkspace()
DFolderSpecTest.kt207 assertThat(calculatedWidthSpec.gutterPx).isEqualTo(16.dpToPx()) in retrievesCalculatedWidthSpec()
273 assertThat(calculatedHeightSpec.gutterPx).isEqualTo(16.dpToPx()) in retrievesCalculatedHeightSpec()