Home
last modified time | relevance | path

Searched refs:matchWorkspace (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/responsive/
DSizeSpec.kt40 val matchWorkspace: Boolean = false, constant in com.android.launcher3.responsive.SizeSpec
49 matchWorkspace -> workspaceValue in getCalculatedValue()
79 if (fixedSize < 0f && ofAvailableSpace <= 0f && ofRemainderSpace <= 0f && !matchWorkspace) { in isValid()
89 (if (matchWorkspace) 1 else 0) in isValid()
116 if (ofAvailableSpace > 0 || ofRemainderSpace > 0 || matchWorkspace) { in onlyFixedSize()
152 val matchWorkspace = styledAttrs.getBoolean(R.styleable.SizeSpec_matchWorkspace, false) in create() constant
158 return SizeSpec(fixedSize, ofAvailableSpace, ofRemainderSpace, matchWorkspace, maxSize) in create()
DResponsiveCellSpecsProvider.kt135 return (iconSize.fixedSize > 0f || iconSize.matchWorkspace) && in allSpecsAreValid()
136 (iconTextSize.fixedSize >= 0f || iconTextSize.matchWorkspace) && in allSpecsAreValid()
137 (iconDrawablePadding.fixedSize >= 0f || iconDrawablePadding.matchWorkspace) in allSpecsAreValid()
192 if (spec.matchWorkspace) workspaceValue else spec.getCalculatedValue(availableSpace) in getCalculatedValue()
DResponsiveSpec.kt88 (startPadding.matchWorkspace || in isValid()
89 endPadding.matchWorkspace || in isValid()
90 gutter.matchWorkspace || in isValid()
91 cellSize.matchWorkspace) in isValid()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/responsive/
DSizeSpecTest.kt70 SizeSpec(matchWorkspace = true) to matchWorkspaceValue, in validate_getCalculatedValue()
75 SizeSpec(matchWorkspace = true, maxSize = 10) to 10 in validate_getCalculatedValue()
93 SizeSpec(matchWorkspace = true) to defaultValue, in validate_getRemainderSpaceValue()
98 SizeSpec(matchWorkspace = true, maxSize = 10) to 10, in validate_getRemainderSpaceValue()
DCalculatedFolderSpecTest.kt60 assertThat(specs.widthSpecs[0].cellSize.matchWorkspace).isEqualTo(true) in validate_matchWidthWorkspace()
61 assertThat(specs.widthSpecs[1].cellSize.matchWorkspace).isEqualTo(false) in validate_matchWidthWorkspace()
136 assertThat(specs.heightSpecs[0].cellSize.matchWorkspace).isEqualTo(true) in validate_matchHeightWorkspace()
DFolderSpecTest.kt60 cellSize = SizeSpec(matchWorkspace = true) in parseValidFile()
81 cellSize = SizeSpec(matchWorkspace = true) in parseValidFile()