Home
last modified time | relevance | path

Searched refs:heightSpecs (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/responsive/
DResponsiveSpecGroup.kt33 heightSpecs: List<T>
36 val heightSpecs: List<T> constant
41 this.heightSpecs = heightSpecs.sortedBy { it.maxAvailableSize } in <lambda>()
56 heightSpecs.firstOrNull { availableSize <= it.maxAvailableSize } in getSpec()
73 val heightSpecsString = heightSpecs.joinToString(", ") { printSpec(it) } in toString()
88 val (widthSpecs, heightSpecs) = in create() constant
91 return ResponsiveSpecGroup(aspectRatio, widthSpecs, heightSpecs) in create()
DResponsiveSpecsProvider.kt42 check(group.widthSpecs.isNotEmpty() && group.heightSpecs.isNotEmpty()) { in <lambda>()
DHotseatSpecsProvider.kt48 val specHeight = specsGroup.heightSpecs.firstOrNull { availableSize <= it.maxAvailableSize } in getSpecIgnoringDimensionType()
DResponsiveCellSpecsProvider.kt33 check(group.widthSpecs.isEmpty() && group.heightSpecs.isNotEmpty()) { in <lambda>()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/responsive/
DResponsiveCellSpecsProviderTest.kt74 assertThat(portraitSpecs.heightSpecs.size).isEqualTo(2) in parseValidFile()
75 assertThat(portraitSpecs.heightSpecs[0]).isEqualTo(expectedPortraitSpecs[0]) in parseValidFile()
76 assertThat(portraitSpecs.heightSpecs[1]).isEqualTo(expectedPortraitSpecs[1]) in parseValidFile()
93 assertThat(landscapeSpecs.heightSpecs.size).isEqualTo(1) in parseValidFile()
94 assertThat(landscapeSpecs.heightSpecs[0]).isEqualTo(expectedLandscapeSpec) in parseValidFile()
DWorkspaceSpecsTest.kt52 assertThat(specs.heightSpecs.size).isEqualTo(3) in parseValidFile()
53 assertThat(specs.heightSpecs[0].toString()) in parseValidFile()
81 assertThat(specs.heightSpecs[1].toString()) in parseValidFile()
109 assertThat(specs.heightSpecs[2].toString()) in parseValidFile()
DHotseatSpecsProviderTest.kt67 assertThat(specs.heightSpecs.size).isEqualTo(expectedHeightSpecs.size) in parseValidFile()
68 assertThat(specs.heightSpecs[0]).isEqualTo(expectedHeightSpecs[0]) in parseValidFile()
69 assertThat(specs.heightSpecs[1]).isEqualTo(expectedHeightSpecs[1]) in parseValidFile()
81 assertThat(specs.heightSpecs.size).isEqualTo(0) in parseValidLandscapeFile()
DAllAppsSpecsTest.kt52 assertThat(specs.heightSpecs.size).isEqualTo(1) in parseValidFile()
53 assertThat(specs.heightSpecs[0].toString()) in parseValidFile()
DCalculatedFolderSpecTest.kt135 assertThat(specs.heightSpecs.size).isEqualTo(1) in validate_matchHeightWorkspace()
136 assertThat(specs.heightSpecs[0].cellSize.matchWorkspace).isEqualTo(true) in validate_matchHeightWorkspace()
DResponsiveSpecsProviderTest.kt167 assertThat(specs.heightSpecs.size).isEqualTo(expectedHeightSpecs.size) in <lambda>()
168 specs.heightSpecs.forEachIndexed { index, responsiveSpec -> in <lambda>()
DFolderSpecTest.kt88 assertThat(specs.heightSpecs.size).isEqualTo(1) in parseValidFile()
89 assertThat(specs.heightSpecs[0]).isEqualTo(heightSpecsExpected) in parseValidFile()