Home
last modified time | relevance | path

Searched refs:boxHeight (Results 1 – 5 of 5) sorted by relevance

/compose/foundation/foundation-layout/src/commonMain/kotlin/androidx/compose/foundation/layout/
DBox.kt142 val boxHeight: Int in measure() constant
147 boxHeight = max(constraints.minHeight, placeable.height) in measure()
150 boxHeight = constraints.minHeight in measure()
156 return layout(boxWidth, boxHeight) { in measure()
157 placeInBox(placeable, measurable, layoutDirection, boxWidth, boxHeight, alignment) in measure()
165 var boxHeight = constraints.minHeight in measure() variable
171 boxHeight = max(boxHeight, placeable.height) in measure()
183 minHeight = if (boxHeight != Constraints.Infinity) boxHeight else 0, in measure()
185 maxHeight = boxHeight in measure()
195 return layout(boxWidth, boxHeight) { in measure()
[all …]
/compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/
DCanvasTest.kt59 val boxHeight = 100 constant
71 val minHeight = (boxHeight / density).dp in testCanvas()
94 val imageStartY = height / 2 - boxHeight / 2 in testCanvas()
108 getPixel(imageStartX + boxWidth - 1, imageStartY + boxHeight - 1) in testCanvas()
114 getPixel(imageStartX + boxWidth + strokeOffset, imageStartY + boxHeight) in testCanvas()
120 getPixel(imageStartX + boxWidth - strokeOffset, imageStartY + boxHeight) in testCanvas()
126 getPixel(imageStartX + boxWidth / 2, imageStartY + boxHeight / 2) in testCanvas()
132 getPixel(imageStartX + boxWidth / 2 - strokeOffset, imageStartY + boxHeight / 2) in testCanvas()
138 getPixel(imageStartX + boxWidth / 2 + strokeOffset, imageStartY + boxHeight / 2) in testCanvas()
DImageTest.kt395 val boxHeight = 240 in testVectorScaledCentered() constant
403 val minHeight = (boxHeight / density).dp in testVectorScaledCentered()
426 val imageStartY = height / 2 - boxHeight / 2 in testVectorScaledCentered()
434 getPixel(imageStartX + boxWidth + 1, imageStartY + boxHeight + 1) in testVectorScaledCentered()
438 getPixel(imageStartX - 1, imageStartY + boxHeight + 1) in testVectorScaledCentered()
448 getPixel(imageStartX + boxWidth - 10, imageStartY + boxHeight - 2) in testVectorScaledCentered()
450 Assert.assertEquals(imageColor, getPixel(imageStartX, imageStartY + boxHeight - 2)) in testVectorScaledCentered()
/compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/text/
DTextOverflowTest.kt74 val boxHeight = 100 in paint_singleParagraph_withVisibleOverflow() constant
82 Box(Modifier.testTag(BoxTag).size(boxWidth.dp, boxHeight.dp)) { in paint_singleParagraph_withVisibleOverflow()
104 Bitmap.createBitmap(boxBitmap, 0, 2 * lineHeight, boxWidth, boxHeight - 2 * lineHeight) in paint_singleParagraph_withVisibleOverflow()
116 val boxHeight = 100 in paint_multiParagraph_withVisibleOverflow() constant
124 Box(Modifier.testTag(BoxTag).size(boxWidth.dp, boxHeight.dp)) { in paint_multiParagraph_withVisibleOverflow()
146 Bitmap.createBitmap(boxBitmap, 0, 2 * lineHeight, boxWidth, boxHeight - 2 * lineHeight) in paint_multiParagraph_withVisibleOverflow()
/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/draw/
DPainterModifierTest.kt561 val boxHeight = 200 in <lambda>() constant
575 .requiredHeight(boxHeight.toDp()) in <lambda>()
580 rule.obtainScreenshotBitmap(boxWidth, boxHeight).apply { in <lambda>()
582 assertEquals(height, boxHeight) in <lambda>()
586 getPixel(boxWidth / 2 + srcImage.width + 5, boxHeight - 1) in <lambda>()
591 getPixel(boxWidth / 2 + srcImage.width - 5, boxHeight - 1) in <lambda>()
603 val boxHeight = 40 in <lambda>() constant
617 .requiredHeight((boxHeight / LocalDensity.current.density).dp) in <lambda>()
622 rule.obtainScreenshotBitmap(boxWidth, boxHeight).asImageBitmap().assertPixels { Color.Red } in <lambda>()
635 val boxHeight = 200 in <lambda>() constant
[all …]