Home
last modified time | relevance | path

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

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/responsive/
DSizeSpecTest.kt44 SizeSpec(100f, 0f, 0f, false), in valid_values()
45 SizeSpec(0f, 1f, 0f, false), in valid_values()
46 SizeSpec(0f, 0f, 1f, false), in valid_values()
47 SizeSpec(0f, 0f, 0f, false), in valid_values()
48 SizeSpec(0f, 0f, 0f, true), in valid_values()
49 SizeSpec(100f, 0f, 0f, false, 100), in valid_values()
50 SizeSpec(0f, 1f, 0f, false, 100), in valid_values()
51 SizeSpec(0f, 0f, 1f, false, 100), in valid_values()
52 SizeSpec(0f, 0f, 0f, false, 100), in valid_values()
53 SizeSpec(0f, 0f, 0f, true, 100) in valid_values()
[all …]
DResponsiveSpecsProviderTest.kt83 startPadding = SizeSpec(1f.dpToPx()), in <lambda>()
84 endPadding = SizeSpec(1f.dpToPx()), in <lambda>()
85 gutter = SizeSpec(8f.dpToPx()), in <lambda>()
86 cellSize = SizeSpec(ofRemainderSpace = 1f) in <lambda>()
96 startPadding = SizeSpec(2f.dpToPx()), in <lambda>()
97 endPadding = SizeSpec(2f.dpToPx()), in <lambda>()
98 gutter = SizeSpec(8f.dpToPx()), in <lambda>()
99 cellSize = SizeSpec(ofRemainderSpace = 1f) in <lambda>()
174 val sizeSpec16 = SizeSpec(16f.dpToPx()) in <lambda>()
181 startPadding = SizeSpec(22f.dpToPx()), in <lambda>()
[all …]
DFolderSpecTest.kt50 val sizeSpec16 = SizeSpec(16f.dpToPx()) in parseValidFile()
60 cellSize = SizeSpec(matchWorkspace = true) in parseValidFile()
69 cellSize = SizeSpec(102f.dpToPx()) in parseValidFile()
78 startPadding = SizeSpec(24f.dpToPx()), in parseValidFile()
79 endPadding = SizeSpec(64f.dpToPx()), in parseValidFile()
81 cellSize = SizeSpec(matchWorkspace = true) in parseValidFile()
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()
[all …]
DResponsiveCellSpecsProviderTest.kt56 iconSize = SizeSpec(48f.dpToPx()), in parseValidFile()
57 iconTextSize = SizeSpec(12f.dpToPx()), in parseValidFile()
58 iconDrawablePadding = SizeSpec(8f.dpToPx()) in parseValidFile()
64 iconSize = SizeSpec(52f.dpToPx()), in parseValidFile()
65 iconTextSize = SizeSpec(12f.dpToPx()), in parseValidFile()
66 iconDrawablePadding = SizeSpec(11f.dpToPx()) in parseValidFile()
85 iconSize = SizeSpec(52f.dpToPx()), in parseValidFile()
86 iconTextSize = SizeSpec(0f), in parseValidFile()
87 iconDrawablePadding = SizeSpec(0f) in parseValidFile()
DHotseatSpecsProviderTest.kt55 hotseatQsbSpace = SizeSpec(24f.dpToPx()), in parseValidFile()
56 edgePadding = SizeSpec(48f.dpToPx()) in parseValidFile()
62 hotseatQsbSpace = SizeSpec(36f.dpToPx()), in parseValidFile()
63 edgePadding = SizeSpec(48f.dpToPx()) in parseValidFile()
89 hotseatQsbSpace = SizeSpec(0f), in parseValidLandscapeFile()
90 edgePadding = SizeSpec(48f.dpToPx()) in parseValidLandscapeFile()
96 hotseatQsbSpace = SizeSpec(0f), in parseValidLandscapeFile()
97 edgePadding = SizeSpec(64f.dpToPx()) in parseValidLandscapeFile()
/packages/apps/Launcher3/src/com/android/launcher3/responsive/
DResponsiveCellSpecsProvider.kt82 val iconSize: SizeSpec,
83 val iconTextSize: SizeSpec,
84 val iconDrawablePadding: SizeSpec
93 specs: Map<String, SizeSpec>
104 iconSize = specs.getOrError(SizeSpec.XmlTags.ICON_SIZE),
105 iconTextSize = specs.getOrError(SizeSpec.XmlTags.ICON_TEXT_SIZE),
106 iconDrawablePadding = specs.getOrError(SizeSpec.XmlTags.ICON_DRAWABLE_PADDING)
189 spec: SizeSpec, in getCalculatedValue()
DResponsiveSpec.kt56 val startPadding: SizeSpec,
57 val endPadding: SizeSpec,
58 val gutter: SizeSpec,
59 val cellSize: SizeSpec,
68 specs: Map<String, SizeSpec>
79 startPadding = specs.getOrError(SizeSpec.XmlTags.START_PADDING),
80 endPadding = specs.getOrError(SizeSpec.XmlTags.END_PADDING),
81 gutter = specs.getOrError(SizeSpec.XmlTags.GUTTER),
82 cellSize = specs.getOrError(SizeSpec.XmlTags.CELL_SIZE)
DResponsiveSpecsParser.kt37 sizeSpecs: Map<String, SizeSpec> in parseXML()
105 private fun parseSizeSpecs(parser: XmlResourceParser): Map<String, SizeSpec> { in parseSizeSpecs()
109 val result = mutableMapOf<String, SizeSpec>() in parseSizeSpecs()
112 result[parser.name] = SizeSpec.create(resourceHelper, Xml.asAttributeSet(parser)) in parseSizeSpecs()
127 fun Map<String, SizeSpec>.getOrError(key: String): SizeSpec { in starts()
DHotseatSpecsProvider.kt82 val hotseatQsbSpace: SizeSpec,
83 val edgePadding: SizeSpec
92 specs: Map<String, SizeSpec>
103 hotseatQsbSpace = specs.getOrError(SizeSpec.XmlTags.HOTSEAT_QSB_SPACE),
104 edgePadding = specs.getOrError(SizeSpec.XmlTags.EDGE_PADDING)
DSizeSpec.kt36 data class SizeSpec( class
146 fun create(resourceHelper: ResourceHelper, attrs: AttributeSet): SizeSpec { in create()
147 val styledAttrs = resourceHelper.obtainStyledAttributes(attrs, R.styleable.SizeSpec) in create()
158 return SizeSpec(fixedSize, ofAvailableSpace, ofRemainderSpace, matchWorkspace, maxSize) in create()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DTestResourceHelper.kt30 R.styleable.SizeSpec, in <lambda>()