Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/responsive/
DResponsiveSpec.kt192 var startPaddingPx: Int = 0 variable in com.android.launcher3.responsive.CalculatedResponsiveSpec
220 startPaddingPx =
223 calculatedWorkspaceSpec.startPaddingPx
241 startPaddingPx = spec.startPadding.getCalculatedValue(availableSpace)
253 val usedSpace = startPaddingPx + endPaddingPx + (gutterPx * gutters) + (cellSizePx * cells) in isResponsiveSpecType()
256 startPaddingPx = spec.startPadding.getRemainderSpaceValue(remainderSpace, startPaddingPx) in isResponsiveSpecType()
265 result = 31 * result + startPaddingPx.hashCode() in hashCode()
277 startPaddingPx == other.startPaddingPx && in equals()
286 "availableSpace=$availableSpace, cells=$cells, startPaddingPx=$startPaddingPx, " + in toString()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/responsive/
DCalculatedWorkspaceSpecTest.kt65 assertThat(widthSpec.startPaddingPx).isEqualTo(58) in normalPhone_returnsThirdBreakpointSpec()
72 assertThat(heightSpec.startPaddingPx).isEqualTo(21) in normalPhone_returnsThirdBreakpointSpec()
108 assertThat(widthSpec.startPaddingPx).isEqualTo(74) in smallPhone_returnsFirstBreakpointSpec()
115 assertThat(heightSpec.startPaddingPx).isEqualTo(0) in smallPhone_returnsFirstBreakpointSpec()
150 assertThat(widthSpec.startPaddingPx).isEqualTo(74) in smallPhone_returnsFirstBreakpointSpec_unsortedFile()
157 assertThat(heightSpec.startPaddingPx).isEqualTo(0) in smallPhone_returnsFirstBreakpointSpec_unsortedFile()
DCalculatedAllAppsSpecTest.kt79 assertThat(startPaddingPx).isEqualTo(widthSpec.startPaddingPx) in normalPhone_copiesFromWorkspace()
96 assertThat(startPaddingPx).isEqualTo(0) in normalPhone_copiesFromWorkspace()
DCalculatedFolderSpecTest.kt83 assertThat(startPaddingPx).isEqualTo(16.dpToPx()) in validate_matchWidthWorkspace()
109 assertThat(startPaddingPx).isEqualTo(16.dpToPx()) in validate_matchWidthWorkspace()
157 assertThat(startPaddingPx).isEqualTo(24.dpToPx()) in validate_matchHeightWorkspace()
DFolderSpecTest.kt205 assertThat(calculatedWidthSpec.startPaddingPx).isEqualTo(16.dpToPx()) in retrievesCalculatedWidthSpec()
271 assertThat(calculatedHeightSpec.startPaddingPx).isEqualTo(24.dpToPx()) in retrievesCalculatedHeightSpec()