Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/responsive/
DResponsiveSpecGroup.kt32 widthSpecs: List<T>,
35 val widthSpecs: List<T> constant
40 this.widthSpecs = widthSpecs.sortedBy { it.maxAvailableSize } in <lambda>()
54 widthSpecs.firstOrNull { availableSize <= it.maxAvailableSize } in getSpec()
72 val widthSpecsString = widthSpecs.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.kt47 val specWidth = specsGroup.widthSpecs.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/
DHotseatSpecsProviderTest.kt71 assertThat(specs.widthSpecs.size).isEqualTo(0) in parseValidFile()
101 assertThat(specs.widthSpecs.size).isEqualTo(expectedWidthSpecs.size) in parseValidLandscapeFile()
102 assertThat(specs.widthSpecs[0]).isEqualTo(expectedWidthSpecs[0]) in parseValidLandscapeFile()
103 assertThat(specs.widthSpecs[1]).isEqualTo(expectedWidthSpecs[1]) in parseValidLandscapeFile()
DCalculatedFolderSpecTest.kt59 assertThat(specs.widthSpecs.size).isEqualTo(2) in validate_matchWidthWorkspace()
60 assertThat(specs.widthSpecs[0].cellSize.matchWorkspace).isEqualTo(true) in validate_matchWidthWorkspace()
61 assertThat(specs.widthSpecs[1].cellSize.matchWorkspace).isEqualTo(false) in validate_matchWidthWorkspace()
DAllAppsSpecsTest.kt82 assertThat(specs.widthSpecs.size).isEqualTo(1) in parseValidFile()
83 assertThat(specs.widthSpecs[0].toString()) in parseValidFile()
DWorkspaceSpecsTest.kt137 assertThat(specs.widthSpecs.size).isEqualTo(1) in parseValidFile()
138 assertThat(specs.widthSpecs[0].toString()) in parseValidFile()
DResponsiveCellSpecsProviderTest.kt73 assertThat(portraitSpecs.widthSpecs.size).isEqualTo(0) in parseValidFile()
92 assertThat(landscapeSpecs.widthSpecs.size).isEqualTo(0) in parseValidFile()
DFolderSpecTest.kt84 assertThat(specs.widthSpecs.size).isEqualTo(widthSpecsExpected.size) in parseValidFile()
85 assertThat(specs.widthSpecs[0]).isEqualTo(widthSpecsExpected[0]) in parseValidFile()
86 assertThat(specs.widthSpecs[1]).isEqualTo(widthSpecsExpected[1]) in parseValidFile()
DResponsiveSpecsProviderTest.kt162 assertThat(specs.widthSpecs.size).isEqualTo(expectedWidthSpecs.size) in <lambda>()
163 specs.widthSpecs.forEachIndexed { index, responsiveSpec -> in <lambda>()