Searched refs:fixedSize (Results 1 – 6 of 6) sorted by relevance
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/responsive/ |
D | FolderSpecTest.kt | 126 startPadding = SizeSpec(fixedSize = 10f), in parseInvalidFile_missingWidthBreakpoint_throwsError() 127 endPadding = SizeSpec(fixedSize = 10f), in parseInvalidFile_missingWidthBreakpoint_throwsError() 128 gutter = SizeSpec(fixedSize = 10f), in parseInvalidFile_missingWidthBreakpoint_throwsError() 129 cellSize = SizeSpec(fixedSize = 10f) in parseInvalidFile_missingWidthBreakpoint_throwsError() 155 startPadding = SizeSpec(fixedSize = 10f), in parseInvalidFile_missingHeightBreakpoint_throwsError() 156 endPadding = SizeSpec(fixedSize = 10f), in parseInvalidFile_missingHeightBreakpoint_throwsError() 157 gutter = SizeSpec(fixedSize = 10f), in parseInvalidFile_missingHeightBreakpoint_throwsError() 158 cellSize = SizeSpec(fixedSize = 10f) in parseInvalidFile_missingHeightBreakpoint_throwsError() 184 startPadding = SizeSpec(fixedSize = 10f), in retrievesCalculatedWidthSpec() 185 endPadding = SizeSpec(fixedSize = 10f), in retrievesCalculatedWidthSpec() [all …]
|
D | SizeSpecTest.kt | 145 assertThat(SizeSpec(fixedSize = 16f).onlyFixedSize()).isEqualTo(true) in onlyFixedSize()
|
/packages/apps/Launcher3/src/com/android/launcher3/responsive/ |
D | SizeSpec.kt | 37 val fixedSize: Float = 0f, constant in com.android.launcher3.responsive.SizeSpec 48 fixedSize > 0 -> fixedSize.roundToInt() in getCalculatedValue() 79 if (fixedSize < 0f && ofAvailableSpace <= 0f && ofRemainderSpace <= 0f && !matchWorkspace) { in isValid() 86 (if (fixedSize > 0) 1 else 0) + in isValid() 102 if (fixedSize < 0f || maxSize < 0f) { in isValid() 107 if (fixedSize > 0f && fixedSize > maxSize) { in isValid() 149 val fixedSize = getValue(styledAttrs, R.styleable.SizeSpec_fixedSize) in create() constant 158 return SizeSpec(fixedSize, ofAvailableSpace, ofRemainderSpace, matchWorkspace, maxSize) in create()
|
D | ResponsiveCellSpecsProvider.kt | 130 val totalSize = iconSize.fixedSize + iconTextSize.fixedSize + iconDrawablePadding.fixedSize in isValidFixedSize() 135 return (iconSize.fixedSize > 0f || iconSize.matchWorkspace) && in allSpecsAreValid() 136 (iconTextSize.fixedSize >= 0f || iconTextSize.matchWorkspace) && in allSpecsAreValid() 137 (iconDrawablePadding.fixedSize >= 0f || iconDrawablePadding.matchWorkspace) in allSpecsAreValid()
|
D | ResponsiveSpec.kt | 150 return startPadding.fixedSize + in isValidFixedSize() 151 endPadding.fixedSize + in isValidFixedSize() 152 gutter.fixedSize + in isValidFixedSize() 153 cellSize.fixedSize <= maxAvailableSize in isValidFixedSize()
|
D | HotseatSpecsProvider.kt | 135 hotseatQsbSpace.fixedSize + edgePadding.fixedSize <= maxAvailableSize in isValidFixedSize()
|