Home
last modified time | relevance | path

Searched refs:textFieldWidth (Results 1 – 12 of 12) sorted by relevance

/compose/material/material/src/androidInstrumentedTest/kotlin/androidx/compose/material/textfield/
DTextFieldDecorationBoxTest.kt336 val textFieldWidth = 300 in outlinedTextFieldBox_defaultBorderColor_comesFromColors() constant
352 with(Density) { textFieldWidth.toDp() }, in outlinedTextFieldBox_defaultBorderColor_comesFromColors()
383 IntSize(textFieldWidth, textFieldHeight) in outlinedTextFieldBox_defaultBorderColor_comesFromColors()
386 if (it.x in 2..(textFieldWidth - 2) && it.y in 2..(borderWidth - 2)) { in outlinedTextFieldBox_defaultBorderColor_comesFromColors()
395 val textFieldWidth = 300 in textFieldBox_defaultIndicatorLineColor_comesFromColors() constant
418 with(Density) { textFieldWidth.toDp() }, in textFieldBox_defaultIndicatorLineColor_comesFromColors()
439 IntSize(textFieldWidth, textFieldHeight) in textFieldBox_defaultIndicatorLineColor_comesFromColors()
443 it.x in 2..(textFieldWidth - 2) && in textFieldBox_defaultIndicatorLineColor_comesFromColors()
454 val textFieldWidth = 300 in outlinedTextFieldBox_appliesBackgroundColor() constant
469 with(Density) { textFieldWidth.toDp() }, in outlinedTextFieldBox_appliesBackgroundColor()
[all …]
DOutlinedTextFieldTest.kt289 val textFieldWidth = 200.dp in <lambda>() constant
295 modifier = Modifier.requiredWidth(textFieldWidth), in <lambda>()
311 .isEqualTo(textFieldWidth.roundToPx() - 2 * ExpectedPadding.roundToPx()) in <lambda>()
388 val textFieldWidth = 200.dp in <lambda>() constant
394 modifier = Modifier.testTag(TextfieldTag).requiredWidth(textFieldWidth), in <lambda>()
413 .isEqualTo(textFieldWidth.roundToPx() - 2 * ExpectedPadding.roundToPx()) in <lambda>()
437 val textFieldWidth = 100.dp in <lambda>() constant
444 modifier = Modifier.testTag(TextfieldTag).requiredWidth(textFieldWidth), in <lambda>()
474 .isGreaterThan(textFieldWidth.roundToPx()) in <lambda>()
662 val textFieldWidth = 300.dp in <lambda>() constant
[all …]
DTextFieldTest.kt640 val textFieldWidth = 300.dp in <lambda>() constant
651 modifier = Modifier.size(textFieldWidth, textFieldHeight), in <lambda>()
693 (textFieldWidth.roundToPx() - in <lambda>()
711 val textFieldWidth = 300.dp in <lambda>() constant
723 modifier = Modifier.size(textFieldWidth, textFieldHeight), in <lambda>()
768 .isEqualTo((textFieldWidth.roundToPx() - trailingSize!!.width).toFloat()) in <lambda>()
782 val textFieldWidth = 300.dp in <lambda>() constant
795 modifier = Modifier.size(textFieldWidth, textFieldHeight), in <lambda>()
830 .isEqualTo((textFieldWidth.roundToPx() - trailingSize!!.width).toFloat()) in <lambda>()
/compose/material3/material3/src/androidInstrumentedTest/kotlin/androidx/compose/material3/
DOutlinedTextFieldTest.kt303 val textFieldWidth = 200.dp in <lambda>() constant
309 modifier = Modifier.requiredWidth(textFieldWidth), in <lambda>()
328 .isEqualTo(textFieldWidth.roundToPx() - 2 * ExpectedPadding.roundToPx()) in <lambda>()
371 val textFieldWidth = 200.dp in <lambda>() constant
377 modifier = Modifier.testTag(TextFieldTag).requiredWidth(textFieldWidth), in <lambda>()
400 .of((textFieldWidth - ExpectedPadding * 2).toPx()) in <lambda>()
499 val textFieldWidth = 100.dp in <lambda>() constant
506 modifier = Modifier.testTag(TextFieldTag).requiredWidth(textFieldWidth), in <lambda>()
536 .isGreaterThan(textFieldWidth.roundToPx()) in <lambda>()
813 val textFieldWidth = 300.dp in <lambda>() constant
[all …]
DTextFieldDecoratorTest.kt341 val textFieldWidth = 300 in outlinedTextFieldBox_defaultBorderColor_comesFromColors() constant
356 with(Density) { textFieldWidth.toDp() }, in outlinedTextFieldBox_defaultBorderColor_comesFromColors()
386 IntSize(textFieldWidth, textFieldHeight) in outlinedTextFieldBox_defaultBorderColor_comesFromColors()
389 if (it.x in 2..(textFieldWidth - 2) && it.y in 2..(borderWidth - 2)) { in outlinedTextFieldBox_defaultBorderColor_comesFromColors()
400 val textFieldWidth = 300 in textFieldBox_defaultIndicatorLineColor_comesFromColors() constant
423 with(Density) { textFieldWidth.toDp() }, in textFieldBox_defaultIndicatorLineColor_comesFromColors()
443 IntSize(textFieldWidth, textFieldHeight) in textFieldBox_defaultIndicatorLineColor_comesFromColors()
447 it.x in 2..(textFieldWidth - 2) && in textFieldBox_defaultIndicatorLineColor_comesFromColors()
/compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/
DTextFieldScroll.kt172 textFieldWidth = placeable.width in measure()
218 textFieldWidth = placeable.width in measure()
239 textFieldWidth: Int in getCursorRectInScroller()
249 textFieldWidth - cursorRect.left - thickness in getCursorRectInScroller()
256 textFieldWidth - cursorRect.left in getCursorRectInScroller()
/compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/textfield/
DTextFieldCursorTest.kt95 private val textFieldWidth = 40.dp in <lambda>() constant
103 private val sizeModifier = Modifier.size(textFieldWidth, textFieldHeight) in <lambda>()
143 Modifier.size(textFieldWidth, textFieldHeight * 2) in <lambda>()
196 assertThat(cursorRect.left).isLessThan(textFieldWidth.toPx()) in <lambda>()
227 assertThat(cursorRect.left).isLessThan(textFieldWidth.toPx()) in <lambda>()
261 assertThat(cursorRect.left).isGreaterThan(textFieldWidth.toPx()) in <lambda>()
263 val clampedCursorHorizontal = (textFieldWidth - cursorWidth).toPx() in <lambda>()
DTextFieldDefaultWidthTest.kt144 val textFieldWidth = 100.dp in respectsWidthSetByModifier() constant
153 Modifier.width(textFieldWidth).onGloballyPositioned { size = it.size.width }, in respectsWidthSetByModifier()
158 with(density) { assertThat(size).isEqualTo(textFieldWidth.roundToPx()) } in respectsWidthSetByModifier()
/compose/material/material/src/commonMain/kotlin/androidx/compose/material/
DTextField.kt876 val textFieldWidth = in intrinsicWidth() constant
897 textFieldWidth = textFieldWidth, in intrinsicWidth()
960 textFieldWidth: Int, in calculateWidth()
965 val middleSection = maxOf(textFieldWidth, labelWidth, placeholderWidth) in calculateWidth()
DOutlinedTextField.kt925 val textFieldWidth = in intrinsicWidth() constant
946 textFieldPlaceableWidth = textFieldWidth, in intrinsicWidth()
/compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/
DTextField.kt921 textFieldWidth = textFieldPlaceable.width, in measure()
1068 val textFieldWidth = in intrinsicWidth() constant
1099 textFieldWidth = textFieldWidth, in intrinsicWidth()
1192 textFieldWidth: Int, in calculateWidth()
1200 textFieldWidth + affixTotalWidth, in calculateWidth()
DOutlinedTextField.kt1046 val textFieldWidth = in intrinsicWidth() constant
1077 textFieldPlaceableWidth = textFieldWidth, in intrinsicWidth()