/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/responsive/ |
D | SizeSpecTest.kt | 44 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 …]
|
D | ResponsiveSpecsProviderTest.kt | 83 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 …]
|
D | FolderSpecTest.kt | 50 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 …]
|
D | ResponsiveCellSpecsProviderTest.kt | 56 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()
|
D | HotseatSpecsProviderTest.kt | 55 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/ |
D | ResponsiveCellSpecsProvider.kt | 82 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()
|
D | ResponsiveSpec.kt | 56 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)
|
D | ResponsiveSpecsParser.kt | 37 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()
|
D | HotseatSpecsProvider.kt | 82 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)
|
D | SizeSpec.kt | 36 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/ |
D | TestResourceHelper.kt | 30 R.styleable.SizeSpec, in <lambda>()
|